Klu raises $1.7M to empower AI Teams  

MTEB: Massive Text Embedding Benchmark

by Stephen M. Walker II, Co-Founder / CEO

What is MTEB (Massive Text Embedding Benchmark)?

The Massive Text Embedding Benchmark (MTEB) is a comprehensive benchmark designed to evaluate the performance of text embedding models across a wide range of tasks and datasets. It was introduced to address the issue that text embeddings were commonly evaluated on a limited set of datasets from a single task, making it difficult to track progress in the field and to understand whether state-of-the-art embeddings on one task would generalize to others.

MTEB encompasses 8 embedding tasks, which include bitext mining, classification, clustering, pair classification, reranking, retrieval, semantic textual similarity (STS), and summarization. It covers a total of 58 datasets and spans 112 languages, making it one of the most extensive benchmarks for text embeddings to date.

The benchmark has been used to evaluate 33 different models, revealing that no single text embedding method consistently outperforms others across all tasks. This suggests that the field has not yet converged on a universal text embedding method.

MTEB is designed to be massive, multilingual, and extensible. It includes a large number of datasets and summarizes thousands of results on its leaderboard. The benchmark is also open to contributions, such as new tasks, datasets, metrics, or leaderboard additions.

The benchmark comes with open-source code and a public leaderboard, which can be found on the Hugging Face platform. This allows researchers and practitioners to compare the performance of various models and to submit their own models for evaluation.

The MTEB project is hosted on GitHub, where the code and resources for the benchmark are available under the Apache-2.0 license. The benchmark has been discussed in academic conferences and papers, highlighting its role in providing clarity on model performance across various embedding tasks and serving as a gateway to finding universal text embeddings applicable to a variety of tasks.

Current Leaderboard

As of January 15, 2024, the current leaderboard is led by voyage-lite-02-intruct.

RankModelModel Size (GB)Embedding DimensionsMax TokensAverage (56 datasets)Classification Average (12 datasets)Clustering Average (11 datasets)Pair Classification Average (3 datasets)Reranking Average (4 datasets)Retrieval Average (15 datasets)STS Average (10 datasets)Summarization Average (1 dataset)
1voyage-lite-02-instruct1024400067.1379.2552.4286.8758.2456.685.7931.01
2e5-mistral-7b-instruct14.2240963276866.6378.4750.2688.3460.2156.8984.63
3UAE-Large-V11.34102451264.6475.5846.7387.2559.8854.6684.54
4text-embedding-3-large3072819164.5975.4549.0185.7259.1655.4481.7329.92
5voyage-lite-01-instruct1024400064.4974.7947.486.5759.7455.5882.9330.97
6Cohere-embed-english-v3.0102451264.4776.4947.4385.8458.015582.6230.18
7bge-large-en-v1.51.34102451264.2375.9746.0887.1260.0354.2983.11
8Cohere-embed-multilingual-v3.0102451264.0176.0146.686.1557.8653.8483.1530.99
9bge-base-en-v1.50.4476851263.5575.5345.7786.5558.8653.2582.4
10ember-v11.34102451263.5475.9945.5887.3760.0451.9283.34

How does MTEB work?

MTEB works by providing a comprehensive framework for evaluating the performance of text embedding models across these tasks. It includes a total of 58 datasets and spans 112 languages. The datasets contain varying text lengths and are grouped into three categories: Sentence to sentence, Paragraph to paragraph, and Sentence to paragraph.

Models are benchmarked on these tasks and datasets, and the results are made publicly available on a leaderboard. This allows for a comparison of the performance of different models across a wide range of tasks and languages. The benchmarking process has revealed that no single text embedding method consistently outperforms others across all tasks, indicating that the field has not yet converged on a universal text embedding method.

MTEB comes with open-source code, allowing researchers and developers to use the benchmark for their own models and contribute to the project. This makes MTEB not only a tool for evaluation but also a platform for collaboration and progress in the field of text embeddings.

The Massive Text Embedding Benchmark (MTEB) covers the following 8 embedding tasks:

  1. Bitext mining
  2. Classification
  3. Clustering
  4. Pair classification
  5. Reranking
  6. Retrieval
  7. Semantic Textual Similarity (STS)
  8. Summarization

When to use MTEB

The Massive Text Embedding Benchmark (MTEB) is used when you want to evaluate the performance of text embedding models across a diverse range of tasks and datasets. It is particularly useful when you want to compare your model's performance with other models in the field.

MTEB is beneficial when you want to:

  1. Benchmark your model: MTEB allows you to benchmark any model that produces embeddings and add its results to the public leaderboard. This can help you understand how your model performs relative to other models on a variety of tasks and datasets.

  2. Choose a model for a specific task: Since model performance varies significantly depending on the task and dataset, MTEB can help you decide which model to use for a specific task. By checking the various tabs of the leaderboard, you can identify the models that perform best on the task you are interested in.

  3. Contribute to the field: MTEB is open-source and encourages contributions from the community. If you have developed a new task, dataset, metric, or model, you can contribute it to MTEB and help advance the field of text embeddings.

  4. Research: If you are a researcher in the field of text embeddings, MTEB can provide you with a comprehensive benchmark for your studies. It can help you understand the current state of the art and identify areas where further research is needed.

Limitations of MTEB

The Massive Text Embedding Benchmark (MTEB) is a comprehensive tool for evaluating the performance of text embedding models across a variety of tasks. However, it does have several limitations:

  1. Lack of Long Document Datasets: MTEB covers multiple text lengths, but it does not include very long documents. The longest datasets in MTEB only have a few hundred words, and longer text sizes could be relevant for use cases like retrieval.

  2. Task Imbalance: Tasks in MTEB have a different amount of datasets. For instance, summarization consists of only a single dataset. This means MTEB average scores, which are computed over all datasets, are biased towards tasks with many datasets, notably retrieval, classification, and clustering.

  3. Limited Multilinguality: While MTEB contains multilingual classification, STS, and bitext mining datasets, retrieval and clustering are English-only. This limits the benchmark's ability to comprehensively evaluate models geared towards multilingual retrieval datasets.

  4. Absence of Code Datasets: MTEB does not contain any code datasets that could be used to benchmark code models.

  5. Limited Dataset Diversity: Some tasks are underrepresented in MTEB, such as summarization or pair classification. As MTEB grows, there are plans to add more datasets to these underrepresented tasks.

Despite these limitations, MTEB remains a valuable tool for benchmarking text embedding models, and its extensibility allows for the potential addition of new tasks, datasets, and metrics.

More terms

Computational Mathematics

Computational mathematics plays a crucial role in AI, providing the foundation for data representation, computation, automation, efficiency, and accuracy.

Read more

What is eager learning?

Eager learning is a method used in artificial intelligence where the system constructs a general, input-independent target function during the training phase. This is in contrast to lazy learning, where generalization beyond the training data is delayed until a query is made to the system.

Read more

It's time to build

Collaborate with your team on reliable Generative AI features.
Want expert guidance? Book a 1:1 onboarding session from your dashboard.

Start for free