Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.9] [DOCS] Adds ELSER benchmark info (backport #2472) #2480

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 38 additions & 1 deletion docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,18 @@ more allocations or more threads per allocation, which requires bigger ML nodes.
Autoscaling provides bigger nodes when required. If autoscaling is turned off,
you must provide suitably sized nodes yourself.

[discrete]
[[elser-benchamrks]]
== Benchmarks

The following sections provide information about how ELSER performs on different
hardwares and compares the model performance to {es} BM25 and other strong
baselines such as Splade or OpenAI.


[discrete]
[[elser-hw-benchamrks]]
== Hardware benchmarks
=== Hardware benchmarks

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


[discrete]
[[elser-qualitative-benchmarks]]
=== Qualitative benchmarks

The metric that is used to evaluate ELSER's ranking ability is the Normalized
Discounted Cumulative Gain (NDCG) which can handle multiple relevant documents
and fine-grained document ratings. The metric is applied to a fixed-sized list
of retrieved documents which, in this case, is the top 10 documents (NDCG@10).

The table below shows the performance of ELSER compared to {es} BM25 with an
English analyzer broken down by the 12 data sets used for the evaluation. ELSER
has 10 wins, 1 draw, 1 loss and an average improvement in NDCG@10 of 17%.

image::images/ml-nlp-elser-ndcg10-beir.png[alt="ELSER benchmarks",align="center"]
_NDCG@10 for BEIR data sets for BM25 and ELSER - higher values are better)_

The following table compares the average performance of ELSER to some other
strong baselines. The OpenAI results are separated out because they use a
different subset of the BEIR suite.

image::images/ml-nlp-elser-average-ndcg.png[alt="ELSER average performance compared to other baselines",align="center"]
_Average NDCG@10 for BEIR data sets vs. various high quality baselines (higher_
_is better). OpenAI chose a different subset, ELSER results on this set_
_reported separately._

To read more about the evaluation details, refer to
https://www.elastic.co/blog/may-2023-launch-information-retrieval-elasticsearch-ai-model[this blog post].


[discrete]
[[download-deploy-elser]]
== Download and deploy ELSER
Expand Down