Datasets:
File size: 1,361 Bytes
0637cda | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ---
license: cc-by-sa-4.0
language:
- en
task_categories:
- text-ranking
- question-answering
tags:
- rag
- reranking
- multi-hop-qa
pretty_name: MAGE Training Data
size_categories:
- 100K<n<1M
---
# MAGE Training Data
Training data for **MAGE: Utility-Aware Re-ranking via Marginal Gain Estimator**.
## Files
| File | Description |
|---|---|
| `train/mhqa_train_half.jsonl` | 128,950 questions: a 50% random subset of the HotpotQA and 2WikiMultihopQA training sets, each with up to 110 candidate passages: the 10 paragraphs provided by the original dataset (gold + distractors, `score: 0.0`) followed by the retriever's top-100. |
| `mg_table.h5` | Precomputed marginal-gain (MG) oracle table for the reader `meta-llama/Meta-Llama-3-8B-Instruct`. |
## Format
Each line of `train/mhqa_train_half.jsonl`:
```json
{
"question": "...",
"answers": ["..."],
"num_answer": 1,
"name": "hotpotqa-w | 2wiki",
"ans_type": null,
"idx": "<unique id, also the key in mg_table.h5>",
"ctxs": [{"id": 0, "title": "...", "text": "...", "score": 0.0, "hasanswer": false}, ...]
}
```
`mg_table.h5` has one group per `idx` with two arrays over the candidate list:
`base_loss` (shape (1,)): the reader's answer NLL without a document; `doc_loss` (one value per candidate): the NLL with that document.
The marginal gain of a document is `base_loss - doc_loss`.
|