Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- question-answering
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- rag
|
| 9 |
+
- cacheblend
|
| 10 |
+
- multi-hop
|
| 11 |
+
- kv-cache
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# CacheBlend RAG Extended
|
| 17 |
+
|
| 18 |
+
Multi-hop QA splits derived from MuSiQue and 2WikiMQA (as bundled in the
|
| 19 |
+
[official CacheBlend repo](https://github.com/YaoJiayi/CacheBlend)), augmented
|
| 20 |
+
with extra distractor chunks per query so that each example carries **20
|
| 21 |
+
context passages** instead of the original 10.
|
| 22 |
+
|
| 23 |
+
Designed to amplify the contrast between `full_reuse` (no cross-chunk
|
| 24 |
+
attention -> quality drop) and `cacheblend` (selective KV recompute ->
|
| 25 |
+
quality recovers) while preserving the multi-hop questions and gold
|
| 26 |
+
short answers.
|
| 27 |
+
|
| 28 |
+
## Splits
|
| 29 |
+
|
| 30 |
+
| split | n | chunks/query | ~tokens/chunk | gold preserved vs source | structural preservation | CacheBlend ready |
|
| 31 |
+
|---|---|---|---|---|---|---|
|
| 32 |
+
| `musique` | 150 | 20 | 598 | 100.00% | 100% | PASS |
|
| 33 |
+
| `wikimqa` | 200 | 20 | 560 | 103.81% | 100% | PASS |
|
| 34 |
+
|
| 35 |
+
## Schema
|
| 36 |
+
|
| 37 |
+
Each row matches the bundled CacheBlend JSON format:
|
| 38 |
+
|
| 39 |
+
```json
|
| 40 |
+
{
|
| 41 |
+
"question": "Where was the author of Hannibal and Scipio educated at?",
|
| 42 |
+
"ctxs": [
|
| 43 |
+
{"title": "<wiki title>", "text": "<512-token passage>"},
|
| 44 |
+
... // 20 entries
|
| 45 |
+
],
|
| 46 |
+
"answers": ["Exeter College"]
|
| 47 |
+
}
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## How it was built
|
| 51 |
+
|
| 52 |
+
1. Start from `musique_s.json` (150 ex) and `wikimqa_s.json` (200 ex) — both
|
| 53 |
+
already have the multi-hop questions and 10 gold/distractor passages
|
| 54 |
+
per query that the CacheBlend paper used.
|
| 55 |
+
2. For each query, sample 10 additional chunks from OTHER queries in the
|
| 56 |
+
same source (no chunk is reused twice within a query; titles deduped).
|
| 57 |
+
3. Shuffle the resulting 20 chunks so gold evidence is not always first.
|
| 58 |
+
4. Verify (per row): (i) chunks/query == 20, (ii) at least one gold-answer
|
| 59 |
+
substring is preserved across the 20 chunks.
|
| 60 |
+
|
| 61 |
+
Reproduce with `scripts/build_cacheblend_dataset.py --extra 10` in
|
| 62 |
+
[mkim0628/experiment-reproducer](https://github.com/mkim0628/experiment-reproducer).
|
| 63 |
+
|
| 64 |
+
## Suitability gates
|
| 65 |
+
|
| 66 |
+
The build script runs three CacheBlend-relevance checks. All splits must
|
| 67 |
+
pass before upload:
|
| 68 |
+
|
| 69 |
+
- `chunks_per_query_ge_10`: at least 10 passages so KV reuse pays off
|
| 70 |
+
- `gold_preservation_ratio_ge_0.95`: ≥95 % of queries still have the
|
| 71 |
+
gold-answer substring after distractor injection
|
| 72 |
+
- `chunk_size_within_paper_range_300_800_tokens`: chunk length matches
|
| 73 |
+
the paper's 512-token spec
|
| 74 |
+
|
| 75 |
+
See `suitability_report.json` for the per-split numbers.
|