Skip to content

[DOCS] Adds ELSER benchmark info #2472

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

Merged
merged 6 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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.
40 changes: 39 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,36 @@ 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 is the most complete metric as it can

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would replace "the most complete metric" by "an interesting metric". There might be some obscure metric capturing something similar than NDCG and you could argue than NDCG is only looking at relevancy which is not a complete picture of information retrieval (you could add performance, index size, ...). But I'm being picky maybe !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the suggestion and the explanation, @qherreros. I addressed in c29b337. Eventually, I removed the adjective from the sentence and didn't replace it with another one. Let me know if you'd like to add or remove anything!

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