mteb-eval
KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs — Tang et al. (2026) (arXiv:2601.01046, 2026)
What this evaluates
This evaluation probes the ability of decoder-only LLMs to generate high-quality, fixed-dimensional text embeddings without fine-tuning. It measures semantic similarity, information retrieval, classification, clustering, and long-context comprehension across diverse tasks and sequence lengths.
Datasets
- MTEB — total ?; splits: test (-1)
- LoCoV1 — total ?; splits: test (-1)
Metrics
MTEB Average Score (primary) — range: [0, 1]
- Task-specific metric (e.g., cosine similarity for STS, accuracy for classification, NDCG@10 for retrieval) computed per dataset, averaged within each of the seven task categories, then averaged across categories for an overall score.
NDCG@10 — range: [0, 1]
- Normalized Discounted Cumulative Gain at rank 10, measuring the quality of ranked document retrieval lists against ground-truth relevant documents.
Input / output format
Input: Text sequences (sentences or documents) fed to decoder-only LLMs. Max length 512 for MTEB; truncated to 1024, 2048, or 4096 tokens for LoCoV1.
Output: Fixed-dimensional text embeddings extracted from internal Key-Value (KV) states of specified transformer layers, without modifying the input sequence.
Scoring recipe
def compute_mteb_avg(datasets_by_category):
category_scores = []
for cat, ds_list in datasets_by_category.items():
task_scores = []
for ds in ds_list:
preds = extract_kv_embeddings(ds.texts)
gold = ds.labels
task_scores.append(compute_task_metric(preds, gold))
category_scores.append(mean(task_scores))
return mean(category_scores)
def compute_locov1_score(retrieval_preds, gold_docs, k=10):
return ndcg_at_k(retrieval_preds, gold_docs, k)
Common pitfalls
- Assuming the method requires gradient-based fine-tuning; it is explicitly training-free and zero-shot.
- Misinterpreting the 'w/o KV Re-routing' row as the main method; it is an ablation that disables the core re-routing mechanism while keeping the compression prompt.
- Overlooking that MTEB scores are category-averaged task-specific metrics, not a single unified score, and vary by backbone architecture.
Evidence (verbatim from paper)
We evaluate KV-Embedding on two complementary benchmarks. MTEB provides a multi-task assessment across seven categories: STS, Retrieval, Classification, Pair Classification, Clustering, Reranking, and Summarization. To evaluate robustness in long-context scenarios, we use LoCoV1, truncating documents to 1024, 2048, and 4096 tokens. Table 2: Retrieval performance (NDCG@10) on LoCoV1 across different context lengths.
Citation
@misc{tang2026kvembedding,
title={KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs},
author={Tang et al. (2026)},
year={2026},
note={arXiv:2601.01046}
}
1---2name: mteb-eval3description: This evaluation probes the ability of decoder-only LLMs to generate high-quality, fixed-dimensional text embeddings without fine-tuning. It measures semantic similarity, information retrieval, classification, clustering, and long-context comprehension across diverse tasks and sequence lengths. Use when the user wants to benchmark on MTEB, LoCoV1, or asks about evaluating this task. Reports MTEB Average Score.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/mteb-eval6 skill_kind: dataset_eval7 source_arxiv: 2601.010468 bibtex_key: tang2026kvembedding9 confidence: high10---1112# mteb-eval1314> KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs — Tang et al. (2026) (arXiv:2601.01046, 2026)1516## What this evaluates1718This evaluation probes the ability of decoder-only LLMs to generate high-quality, fixed-dimensional text embeddings without fine-tuning. It measures semantic similarity, information retrieval, classification, clustering, and long-context comprehension across diverse tasks and sequence lengths.1920## Datasets2122- **MTEB** — total ?; splits: test (-1)23- **LoCoV1** — total ?; splits: test (-1)2425## Metrics2627- `MTEB Average Score` **(primary)** — range: [0, 1]28 - Task-specific metric (e.g., cosine similarity for STS, accuracy for classification, NDCG@10 for retrieval) computed per dataset, averaged within each of the seven task categories, then averaged across categories for an overall score.29- `NDCG@10` — range: [0, 1]30 - Normalized Discounted Cumulative Gain at rank 10, measuring the quality of ranked document retrieval lists against ground-truth relevant documents.3132## Input / output format3334**Input**: Text sequences (sentences or documents) fed to decoder-only LLMs. Max length 512 for MTEB; truncated to 1024, 2048, or 4096 tokens for LoCoV1.3536**Output**: Fixed-dimensional text embeddings extracted from internal Key-Value (KV) states of specified transformer layers, without modifying the input sequence.3738## Scoring recipe3940```python41def compute_mteb_avg(datasets_by_category):42 category_scores = []43 for cat, ds_list in datasets_by_category.items():44 task_scores = []45 for ds in ds_list:46 preds = extract_kv_embeddings(ds.texts)47 gold = ds.labels48 task_scores.append(compute_task_metric(preds, gold))49 category_scores.append(mean(task_scores))50 return mean(category_scores)5152def compute_locov1_score(retrieval_preds, gold_docs, k=10):53 return ndcg_at_k(retrieval_preds, gold_docs, k)54```5556## Common pitfalls5758- Assuming the method requires gradient-based fine-tuning; it is explicitly training-free and zero-shot.59- Misinterpreting the 'w/o KV Re-routing' row as the main method; it is an ablation that disables the core re-routing mechanism while keeping the compression prompt.60- Overlooking that MTEB scores are category-averaged task-specific metrics, not a single unified score, and vary by backbone architecture.6162## Evidence (verbatim from paper)6364> We evaluate KV-Embedding on two complementary benchmarks. MTEB provides a multi-task assessment across seven categories: STS, Retrieval, Classification, Pair Classification, Clustering, Reranking, and Summarization. To evaluate robustness in long-context scenarios, we use LoCoV1, truncating documents to 1024, 2048, and 4096 tokens. Table 2: Retrieval performance (NDCG@10) on LoCoV1 across different context lengths.6566## Citation6768```bibtex69@misc{tang2026kvembedding,70 title={KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs},71 author={Tang et al. (2026)},72 year={2026},73 note={arXiv:2601.01046}74}75```7677- arXiv: 2601.01046