Skip to content

Commit 1b08569

Browse files
[DOCS] Adds ELSER benchmark info (#2472) (#2481)
(cherry picked from commit 171d1e8) Co-authored-by: István Zoltán Szabó <[email protected]>
1 parent 196861f commit 1b08569

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed
Loading
Loading

docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,18 @@ more allocations or more threads per allocation, which requires bigger ML nodes.
4545
Autoscaling provides bigger nodes when required. If autoscaling is turned off,
4646
you must provide suitably sized nodes yourself.
4747

48+
[discrete]
49+
[[elser-benchamrks]]
50+
== Benchmarks
51+
52+
The following sections provide information about how ELSER performs on different
53+
hardwares and compares the model performance to {es} BM25 and other strong
54+
baselines such as Splade or OpenAI.
55+
4856

4957
[discrete]
5058
[[elser-hw-benchamrks]]
51-
== Hardware benchmarks
59+
=== Hardware benchmarks
5260

5361
Two data sets were utilized to evaluate the performance of ELSER in different
5462
hardware configurations: `msmarco-long-light` and `arguana`.
@@ -83,6 +91,35 @@ configurations.
8391
|==================================================================================================================================================================================
8492

8593

94+
[discrete]
95+
[[elser-qualitative-benchmarks]]
96+
=== Qualitative benchmarks
97+
98+
The metric that is used to evaluate ELSER's ranking ability is the Normalized
99+
Discounted Cumulative Gain (NDCG) which can handle multiple relevant documents
100+
and fine-grained document ratings. The metric is applied to a fixed-sized list
101+
of retrieved documents which, in this case, is the top 10 documents (NDCG@10).
102+
103+
The table below shows the performance of ELSER compared to {es} BM25 with an
104+
English analyzer broken down by the 12 data sets used for the evaluation. ELSER
105+
has 10 wins, 1 draw, 1 loss and an average improvement in NDCG@10 of 17%.
106+
107+
image::images/ml-nlp-elser-ndcg10-beir.png[alt="ELSER benchmarks",align="center"]
108+
_NDCG@10 for BEIR data sets for BM25 and ELSER - higher values are better)_
109+
110+
The following table compares the average performance of ELSER to some other
111+
strong baselines. The OpenAI results are separated out because they use a
112+
different subset of the BEIR suite.
113+
114+
image::images/ml-nlp-elser-average-ndcg.png[alt="ELSER average performance compared to other baselines",align="center"]
115+
_Average NDCG@10 for BEIR data sets vs. various high quality baselines (higher_
116+
_is better). OpenAI chose a different subset, ELSER results on this set_
117+
_reported separately._
118+
119+
To read more about the evaluation details, refer to
120+
https://www.elastic.co/blog/may-2023-launch-information-retrieval-elasticsearch-ai-model[this blog post].
121+
122+
86123
[discrete]
87124
[[download-deploy-elser]]
88125
== Download and deploy ELSER

0 commit comments

Comments
 (0)