E5-Mistral: Improving Text Embeddings with Large Language Models (Microsoft, Dec 2023)
Source: https://arxiv.org/pdf/2401.00368 — academic paper, Embedding models section.
Overview
This post indexes Microsoft's paper *Improving Text Embeddings with Large Language Models* (arXiv:2401.00368), which introduced the E5-Mistral embedding model in December 2023.
Key points
- Core idea: Replace human-annotated training data with fully synthetic data. A proprietary LLM (GPT-4) is prompted to generate diverse text-pair datasets spanning many task categories (e.g., query–document, related sentence pairs, classification-style pairs) and multiple languages.
- Model: The synthetic pairs are used to fine-tune Mistral-7B, a decoder-only LLM adapted into a bidirectional embedding model via contrastive learning (InfoNCE-style training with hard negatives).
- Results: The resulting E5-Mistral-7B model reported state-of-the-art performance on the BEIR retrieval benchmark and competitive results on MTEB at the time of release, showing that synthetic data alone can match models trained on large human-labeled corpora.
- Significance: The work established a recipe for building general-purpose embedders without expensive annotation pipelines, and E5-Mistral became a widely used baseline and foundation for later open embedding models.
- Decoder-based embedders like E5-Mistral offer strong semantic generalization, but come with higher inference cost and memory footprint than smaller bi-encoder models (e.g., BERT-scale embedders); consider distillation or smaller E5 variants for latency-sensitive production search.
- Asymmetric usage (instruction-prefixed query + raw passage) matters for retrieval quality.
- Evaluate on your own domain data rather than relying only on BEIR/MTEB aggregate scores.
- BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity (arXiv:2402.03216)
- BGE-en-ICL / BGE-ICL: Making Text Embedders Few-Shot Learners (arXiv:2409.15700)
- Arctic-Embed 2.0: Multilingual Retrieval Without Compromise (arXiv:2412.04506)
- Beyond Benchmarks: Evaluating Embedding Model Similarity for Retrieval (arXiv:2407.08275)
- A Universal Framework for Compressing Embeddings in CTR Prediction (arXiv:2502.15355)
- Wang et al., *Improving Text Embeddings with Large Language Models*, arXiv:2401.00368. https://arxiv.org/pdf/2401.00368