Datasets:
Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- README.md +46 -0
- mg_table.h5 +3 -0
- train/mhqa_train_half.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
train/mhqa_train_half.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-ranking
|
| 7 |
+
- question-answering
|
| 8 |
+
tags:
|
| 9 |
+
- rag
|
| 10 |
+
- reranking
|
| 11 |
+
- multi-hop-qa
|
| 12 |
+
pretty_name: MAGE Training Data
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# MAGE Training Data
|
| 18 |
+
|
| 19 |
+
Training data for **MAGE: Utility-Aware Re-ranking via Marginal Gain Estimator**.
|
| 20 |
+
|
| 21 |
+
## Files
|
| 22 |
+
|
| 23 |
+
| File | Description |
|
| 24 |
+
|---|---|
|
| 25 |
+
| `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. |
|
| 26 |
+
| `mg_table.h5` | Precomputed marginal-gain (MG) oracle table for the reader `meta-llama/Meta-Llama-3-8B-Instruct`. |
|
| 27 |
+
|
| 28 |
+
## Format
|
| 29 |
+
|
| 30 |
+
Each line of `train/mhqa_train_half.jsonl`:
|
| 31 |
+
|
| 32 |
+
```json
|
| 33 |
+
{
|
| 34 |
+
"question": "...",
|
| 35 |
+
"answers": ["..."],
|
| 36 |
+
"num_answer": 1,
|
| 37 |
+
"name": "hotpotqa-w | 2wiki",
|
| 38 |
+
"ans_type": null,
|
| 39 |
+
"idx": "<unique id, also the key in mg_table.h5>",
|
| 40 |
+
"ctxs": [{"id": 0, "title": "...", "text": "...", "score": 0.0, "hasanswer": false}, ...]
|
| 41 |
+
}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
`mg_table.h5` has one group per `idx` with two arrays over the candidate list:
|
| 45 |
+
`base_loss` (shape (1,)): the reader's answer NLL without a document; `doc_loss` (one value per candidate): the NLL with that document.
|
| 46 |
+
The marginal gain of a document is `base_loss - doc_loss`.
|
mg_table.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba0cd773053366be138b2b44b72da5d659dbf661935b8f4458098e623341e821
|
| 3 |
+
size 245551184
|
train/mhqa_train_half.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69091a65959f92d769f4fb2856713fbaa2df73c6306d842ed968c7d0dccf824e
|
| 3 |
+
size 10053651872
|