swim-ir-eval
Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval — Thakur et al. (2023) (arXiv:2311.05800, 2023)
What this evaluates
Evaluates multilingual dense retrieval models on cross-lingual and monolingual open retrieval tasks. It measures how effectively synthetic LLM-generated training data scales retrieval performance compared to human-labeled baselines across diverse languages and corpus sizes.
Datasets
- XOR-Retrieve — total 17000; splits: train (15000), dev (2000)
- MIRACL — total 101783; splits: train (88288), dev (13495)
- XTREME-UP — total 15985; splits: train (5280), test (10705)
Metrics
Recall@mkt (primary) — range: [0, 1]
- Computes the fraction of queries for which the minimal answer is contained within the top m thousand tokens of the retrieved passages. Evaluated at m=5 and m=2.
nDCG@10 — range: [0, 1]
- Normalized Discounted Cumulative Gain at rank 10, measuring ranking quality based on graded relevance judgments.
Recall@100 — range: [0, 1]
- Fraction of queries where the relevant passage appears in the top 100 retrieved results.
MRR@10 — range: [0, 1]
- Mean Reciprocal Rank at rank 10, averaging the inverse rank of the first relevant passage for each query.
Input / output format
Input: Query string (monolingual or multilingual) and a passage corpus (Wikipedia or TyDi-QA passages).
Output: Ranked list of passages (or top-k passages) for each query.
Scoring recipe
def compute_recall_mkt(retrieved_passages, gold_answer, k=5):
token_limit = k * 1000
acc_tokens = 0
for p in retrieved_passages:
acc_tokens += len(p.split())
if acc_tokens >= token_limit:
break
return 1.0 if gold_answer in retrieved_passages else 0.0
Common pitfalls
- SWIM-X models were not optimized with hard negatives, unlike supervised baselines that use up to four hard negatives per pair.
- Corpus token limits vary by dataset (e.g., 100-word tokens for XOR-Retrieve, varying sizes for MIRACL), affecting Recall@mkt calculations.
- Translation script mismatches (e.g., Manipuri in 'Meitei' vs 'Bengali-Assamese' script) can cause evaluation failures if not handled.
Evidence (verbatim from paper)
We evaluate our models using recall at m kilo-tokens, i.e., Recall@mkt, which computes the fraction of queries for which the minimal answer is contained within the top m thousand tokens of the retrieved passages. Following prior work in Asai et al. (2021a), we evaluate our models at Recall@5kt and Recall@2kt.
Citation
@misc{thakur2023swimir,
title={Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval},
author={Thakur et al. (2023)},
year={2023},
note={arXiv:2311.05800}
}
1---2name: swim-ir-eval3description: Evaluates multilingual dense retrieval models on cross-lingual and monolingual open retrieval tasks. It measures how effectively synthetic LLM-generated training data scales retrieval performance compared to human-labeled baselines across diverse languages and corpus sizes. Use when the user wants to benchmark on XOR-Retrieve, MIRACL, XTREME-UP, or asks about evaluating this task. Reports Recall@mkt.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/swim-ir-eval6 skill_kind: dataset_eval7 source_arxiv: 2311.058008 bibtex_key: thakur2023swimir9 confidence: high10---1112# swim-ir-eval1314> Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval — Thakur et al. (2023) (arXiv:2311.05800, 2023)1516## What this evaluates1718Evaluates multilingual dense retrieval models on cross-lingual and monolingual open retrieval tasks. It measures how effectively synthetic LLM-generated training data scales retrieval performance compared to human-labeled baselines across diverse languages and corpus sizes.1920## Datasets2122- **XOR-Retrieve** — total 17000; splits: train (15000), dev (2000)23- **MIRACL** — total 101783; splits: train (88288), dev (13495)24- **XTREME-UP** — total 15985; splits: train (5280), test (10705)2526## Metrics2728- `Recall@mkt` **(primary)** — range: [0, 1]29 - Computes the fraction of queries for which the minimal answer is contained within the top m thousand tokens of the retrieved passages. Evaluated at m=5 and m=2.30- `nDCG@10` — range: [0, 1]31 - Normalized Discounted Cumulative Gain at rank 10, measuring ranking quality based on graded relevance judgments.32- `Recall@100` — range: [0, 1]33 - Fraction of queries where the relevant passage appears in the top 100 retrieved results.34- `MRR@10` — range: [0, 1]35 - Mean Reciprocal Rank at rank 10, averaging the inverse rank of the first relevant passage for each query.3637## Input / output format3839**Input**: Query string (monolingual or multilingual) and a passage corpus (Wikipedia or TyDi-QA passages).4041**Output**: Ranked list of passages (or top-k passages) for each query.4243## Scoring recipe4445```python46def compute_recall_mkt(retrieved_passages, gold_answer, k=5):47 token_limit = k * 100048 acc_tokens = 049 for p in retrieved_passages:50 acc_tokens += len(p.split())51 if acc_tokens >= token_limit:52 break53 return 1.0 if gold_answer in retrieved_passages else 0.054```5556## Common pitfalls5758- SWIM-X models were not optimized with hard negatives, unlike supervised baselines that use up to four hard negatives per pair.59- Corpus token limits vary by dataset (e.g., 100-word tokens for XOR-Retrieve, varying sizes for MIRACL), affecting Recall@mkt calculations.60- Translation script mismatches (e.g., Manipuri in 'Meitei' vs 'Bengali-Assamese' script) can cause evaluation failures if not handled.6162## Evidence (verbatim from paper)6364> We evaluate our models using recall at m kilo-tokens, i.e., Recall@mkt, which computes the fraction of queries for which the minimal answer is contained within the top m thousand tokens of the retrieved passages. Following prior work in Asai et al. (2021a), we evaluate our models at Recall@5kt and Recall@2kt.6566## Citation6768```bibtex69@misc{thakur2023swimir,70 title={Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval},71 author={Thakur et al. (2023)},72 year={2023},73 note={arXiv:2311.05800}74}75```7677- arXiv: 2311.05800