embeddinggemma-eval
EmbeddingGemma: Powerful and Lightweight Text Representations — Henrique Schechter Vera et al. (2025) (arXiv:2509.20354, 2025)
What this evaluates
Evaluates the quality of text embeddings across diverse tasks including retrieval, classification, clustering, and semantic similarity. It probes multilingual, cross-lingual, and code understanding capabilities, measuring how well dense vector representations capture semantic relationships for downstream applications.
Datasets
- MTEB (Massive Text Embedding Benchmark) — total 162; splits: test (-1)
- XOR-Retrieve — total ?; splits: test (-1)
- XTREME-UP — total ?; splits: test (-1)
Metrics
MTEB Task Mean (primary) — range: [0, 1]
- Average of normalized scores across all individual MTEB tasks. Scores are typically normalized to [0, 1] per task before averaging.
MTEB Type Mean — range: [0, 1]
- Average of normalized scores grouped by task type (e.g., Retrieval, Classification, Clustering, STS).
Borda rank — range: rank
- Ranking metric computed by assigning points based on task-level performance across all models, then summing to produce an aggregate rank.
Recall@5kt — range: [0, 1]
- Fraction of queries where the correct passage is retrieved within the top 5,000 candidates.
MRR@10 — range: [0, 1]
- Mean Reciprocal Rank at 10, averaging the inverse rank of the first correct passage across queries.
Input / output format
Input: Text pairs (query, passage) or single documents, formatted with task-specific prompt instructions from the model card. Context length is typically 512 tokens, extended to 1024 or 2048 for long-context tasks.
Output: Dense embedding vectors, defaulting to 768 dimensions but also evaluated at 512, 256, and 128 dimensions.
Scoring recipe
def compute_mteb_scores(predictions, gold, task_type):
if task_type in ['retrieval', 'reranking']:
return compute_ranking_metrics(predictions, gold, k=10)
elif task_type in ['classification', 'multilabel']:
return compute_accuracy(predictions, gold)
elif task_type == 'clustering':
return compute_clustering_score(predictions, gold)
elif task_type == 'sts':
return pearson_spearson_correlation(predictions, gold)
return normalized_score
def aggregate_scores(task_scores):
task_mean = mean(task_scores)
type_mean = mean(group_by_type(task_scores))
return task_mean, type_mean
Common pitfalls
- Models trained on more than 25% of the MTEB data are excluded to mitigate potential overfitting; failing to check training data composition can lead to invalid comparisons.
- Prompt instructions must strictly follow the model card; using default or mismatched prompts significantly degrades performance.
- Context length varies by task (512 vs 1024/2048); using a fixed context length across all tasks may underperform on long-context benchmarks.
- Embedding dimensionality heavily impacts scores; comparing 768d results directly with 128d results without noting the trade-off is misleading.
Evidence (verbatim from paper)
We also show results on XOR-Retrieve and XTREME-UP, reporting Recall@5kt and MRR@10 respectively. EmbeddingGemma achieves the #1 rank and highest overall performance on the MTEB multilingual, English, and code leaderboards across models under 500M parameters, with a significant lead over all previous top performing models on each of the metrics summarizing aggregate performance across tasks (Task Mean, Task Type Mean, and Borda rank).
Citation
@misc{vera2025embeddinggemma,
title={EmbeddingGemma: Powerful and Lightweight Text Representations},
author={Henrique Schechter Vera et al. (2025)},
year={2025},
note={arXiv:2509.20354}
}
1---2name: embeddinggemma-eval3description: Evaluates the quality of text embeddings across diverse tasks including retrieval, classification, clustering, and semantic similarity. It probes multilingual, cross-lingual, and code understanding capabilities, measuring how well dense vector representations capture semantic relationships for downstream applications. Use when the user wants to benchmark on MTEB (Massive Text Embedding Benchmark), XOR-Retrieve, XTREME-UP, or asks about evaluating this task. Reports MTEB Task Mean.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/embeddinggemma-eval6 skill_kind: dataset_eval7 source_arxiv: 2509.203548 bibtex_key: vera2025embeddinggemma9 confidence: high10---1112# embeddinggemma-eval1314> EmbeddingGemma: Powerful and Lightweight Text Representations — Henrique Schechter Vera et al. (2025) (arXiv:2509.20354, 2025)1516## What this evaluates1718Evaluates the quality of text embeddings across diverse tasks including retrieval, classification, clustering, and semantic similarity. It probes multilingual, cross-lingual, and code understanding capabilities, measuring how well dense vector representations capture semantic relationships for downstream applications.1920## Datasets2122- **MTEB (Massive Text Embedding Benchmark)** — total 162; splits: test (-1)23- **XOR-Retrieve** — total ?; splits: test (-1)24- **XTREME-UP** — total ?; splits: test (-1)2526## Metrics2728- `MTEB Task Mean` **(primary)** — range: [0, 1]29 - Average of normalized scores across all individual MTEB tasks. Scores are typically normalized to [0, 1] per task before averaging.30- `MTEB Type Mean` — range: [0, 1]31 - Average of normalized scores grouped by task type (e.g., Retrieval, Classification, Clustering, STS).32- `Borda rank` — range: rank33 - Ranking metric computed by assigning points based on task-level performance across all models, then summing to produce an aggregate rank.34- `Recall@5kt` — range: [0, 1]35 - Fraction of queries where the correct passage is retrieved within the top 5,000 candidates.36- `MRR@10` — range: [0, 1]37 - Mean Reciprocal Rank at 10, averaging the inverse rank of the first correct passage across queries.3839## Input / output format4041**Input**: Text pairs (query, passage) or single documents, formatted with task-specific prompt instructions from the model card. Context length is typically 512 tokens, extended to 1024 or 2048 for long-context tasks.4243**Output**: Dense embedding vectors, defaulting to 768 dimensions but also evaluated at 512, 256, and 128 dimensions.4445## Scoring recipe4647```python48def compute_mteb_scores(predictions, gold, task_type):49 if task_type in ['retrieval', 'reranking']:50 return compute_ranking_metrics(predictions, gold, k=10)51 elif task_type in ['classification', 'multilabel']:52 return compute_accuracy(predictions, gold)53 elif task_type == 'clustering':54 return compute_clustering_score(predictions, gold)55 elif task_type == 'sts':56 return pearson_spearson_correlation(predictions, gold)57 return normalized_score5859def aggregate_scores(task_scores):60 task_mean = mean(task_scores)61 type_mean = mean(group_by_type(task_scores))62 return task_mean, type_mean63```6465## Common pitfalls6667- Models trained on more than 25% of the MTEB data are excluded to mitigate potential overfitting; failing to check training data composition can lead to invalid comparisons.68- Prompt instructions must strictly follow the model card; using default or mismatched prompts significantly degrades performance.69- Context length varies by task (512 vs 1024/2048); using a fixed context length across all tasks may underperform on long-context benchmarks.70- Embedding dimensionality heavily impacts scores; comparing 768d results directly with 128d results without noting the trade-off is misleading.7172## Evidence (verbatim from paper)7374> We also show results on XOR-Retrieve and XTREME-UP, reporting Recall@5kt and MRR@10 respectively. EmbeddingGemma achieves the #1 rank and highest overall performance on the MTEB multilingual, English, and code leaderboards across models under 500M parameters, with a significant lead over all previous top performing models on each of the metrics summarizing aggregate performance across tasks (Task Mean, Task Type Mean, and Borda rank).7576## Citation7778```bibtex79@misc{vera2025embeddinggemma,80 title={EmbeddingGemma: Powerful and Lightweight Text Representations},81 author={Henrique Schechter Vera et al. (2025)},82 year={2025},83 note={arXiv:2509.20354}84}85```8687- arXiv: 2509.20354