MAGE-train / README.md
Junhohan's picture
Add files using upload-large-folder tool
0637cda verified
|
Raw History Blame Contribute Delete
1.36 kB
---
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`.