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.4---56# swim-ir-eval78> Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval — Thakur et al. (2023) (arXiv:2311.05800, 2023)910## What this evaluates1112Evaluates 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.1314## Datasets1516- **XOR-Retrieve** — total 17000; splits: train (15000), dev (2000)17- **MIRACL** — total 101783; splits: train (88288), dev (13495)18- **XTREME-UP** — total 15985; splits: train (5280), test (10705)1920## Metrics2122- `Recall@mkt` **(primary)** — range: [0, 1]23 - 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.24- `nDCG@10` — range: [0, 1]25 - Normalized Discounted Cumulative Gain at rank 10, measuring ranking quality based on graded relevance judgments.26- `Recall@100` — range: [0, 1]27 - Fraction of queries where the relevant passage appears in the top 100 retrieved results.28- `MRR@10` — range: [0, 1]29 - Mean Reciprocal Rank at rank 10, averaging the inverse rank of the first relevant passage for each query.3031## Input / output format3233**Input**: Query string (monolingual or multilingual) and a passage corpus (Wikipedia or TyDi-QA passages).3435**Output**: Ranked list of passages (or top-k passages) for each query.3637## Scoring recipe3839```python40def compute_recall_mkt(retrieved_passages, gold_answer, k=5):41 token_limit = k * 100042 acc_tokens = 043 for p in retrieved_passages:44 acc_tokens += len(p.split())45 if acc_tokens >= token_limit:46 break47 return 1.0 if gold_answer in retrieved_passages else 0.048```4950## Common pitfalls5152- SWIM-X models were not optimized with hard negatives, unlike supervised baselines that use up to four hard negatives per pair.53- Corpus token limits vary by dataset (e.g., 100-word tokens for XOR-Retrieve, varying sizes for MIRACL), affecting Recall@mkt calculations.54- Translation script mismatches (e.g., Manipuri in 'Meitei' vs 'Bengali-Assamese' script) can cause evaluation failures if not handled.5556## Evidence (verbatim from paper)5758> 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.5960## Citation6162```bibtex63@misc{thakur2023swimir,64 title={Leveraging LLMs for Synthesizing Training Data Across Many Languages in Multilingual Dense Retrieval},65 author={Thakur et al. (2023)},66 year={2023},67 note={arXiv:2311.05800}68}69```7071- arXiv: 2311.05800