Add risk-routed KV exact-recall benchmark dataset
Browse files- .gitattributes +1 -0
- README.md +56 -0
- data/benchmark_examples.jsonl +3 -0
- data/preview.csv +31 -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 |
+
data/benchmark_examples.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
- question-answering
|
| 8 |
+
pretty_name: Risk-Routed KV Exact-Recall Benchmark
|
| 9 |
+
size_categories:
|
| 10 |
+
- n<1K
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Risk-Routed KV Exact-Recall Benchmark
|
| 14 |
+
|
| 15 |
+
This dataset contains controlled synthetic exact-recall examples used to evaluate **risk-routed heterogeneous KV memory** policies for long-context Transformer inference.
|
| 16 |
+
|
| 17 |
+
The benchmark is designed for testing whether a model can retrieve exact strings from long contexts under different KV-cache policies:
|
| 18 |
+
|
| 19 |
+
- **Full KV**
|
| 20 |
+
- **Uniform low-bit Quantized KV**
|
| 21 |
+
- **Risk-routed heterogeneous KV**, where exact-critical spans stay in Full KV and background context is quantized
|
| 22 |
+
|
| 23 |
+
## Tasks
|
| 24 |
+
|
| 25 |
+
1. `single_needle`: retrieve a secret marker from a long filler context.
|
| 26 |
+
2. `multi_needle`: retrieve the marker associated with a queried label such as BLUE.
|
| 27 |
+
3. `kv_retrieval`: retrieve a key-value record such as a city access code.
|
| 28 |
+
4. `code_string`: retrieve the exact string returned by a small code block.
|
| 29 |
+
5. `date_negation`: retrieve the approved final date while ignoring a negated distractor.
|
| 30 |
+
|
| 31 |
+
## Schema
|
| 32 |
+
|
| 33 |
+
Each JSONL row has:
|
| 34 |
+
|
| 35 |
+
```json
|
| 36 |
+
{
|
| 37 |
+
"id": "single_needle-8192w-0",
|
| 38 |
+
"task": "single_needle",
|
| 39 |
+
"context_words_target": 8192,
|
| 40 |
+
"context": "...long context...",
|
| 41 |
+
"query": "Which marker was labeled as the secret marker?",
|
| 42 |
+
"gold": "MK53-4897X",
|
| 43 |
+
"distractors": ["ZX17-2044Q", "ALPHA-77K2"],
|
| 44 |
+
"choices": ["MK53-4897X", "ZX17-2044Q", "ALPHA-77K2"],
|
| 45 |
+
"exact_spans": ["MK53-4897X"],
|
| 46 |
+
"source": "synthetic_controlled_exact_recall"
|
| 47 |
+
}
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Intended evaluation
|
| 51 |
+
|
| 52 |
+
For forced-choice evaluation, compute answer sequence NLL for each candidate in `choices` after the context and query. The prediction is correct if the `gold` answer has the lowest NLL.
|
| 53 |
+
|
| 54 |
+
## Related code
|
| 55 |
+
|
| 56 |
+
https://github.com/Ahmet2001/-risk-routed-heterogeneous-kv-memory
|
data/benchmark_examples.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:040ceeb019d9a7eea3fe1617668461778f170997d43d835cd8817ac5e574427f
|
| 3 |
+
size 13061164
|
data/preview.csv
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
id,task,context_words_target,query,gold,distractors
|
| 2 |
+
single_needle-2048w-0,single_needle,2048,Which marker was labeled as the secret marker?,MK53-4897X,"['ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 3 |
+
single_needle-2048w-1,single_needle,2048,Which marker was labeled as the secret marker?,ZX17-2044Q,"['MK53-4897X', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 4 |
+
single_needle-2048w-2,single_needle,2048,Which marker was labeled as the secret marker?,ALPHA-77K2,"['MK53-4897X', 'ZX17-2044Q', 'NOVA-9031B', 'RIVER-42M']"
|
| 5 |
+
single_needle-2048w-3,single_needle,2048,Which marker was labeled as the secret marker?,NOVA-9031B,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'RIVER-42M']"
|
| 6 |
+
single_needle-2048w-4,single_needle,2048,Which marker was labeled as the secret marker?,RIVER-42M,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 7 |
+
single_needle-2048w-5,single_needle,2048,Which marker was labeled as the secret marker?,ORBIT-118X,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 8 |
+
single_needle-2048w-6,single_needle,2048,Which marker was labeled as the secret marker?,CYPHER-8007Z,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 9 |
+
single_needle-2048w-7,single_needle,2048,Which marker was labeled as the secret marker?,DELTA-330Q,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 10 |
+
single_needle-2048w-8,single_needle,2048,Which marker was labeled as the secret marker?,TITAN-991K,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 11 |
+
single_needle-2048w-9,single_needle,2048,Which marker was labeled as the secret marker?,VECTOR-118B,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 12 |
+
multi_needle-2048w-0,multi_needle,2048,Which passcode was BLUE?,ZX17-2044Q,"['MK53-4897X', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 13 |
+
multi_needle-2048w-1,multi_needle,2048,Which passcode was BLUE?,NOVA-9031B,"['ALPHA-77K2', 'MK53-4897X', 'ZX17-2044Q', 'RIVER-42M']"
|
| 14 |
+
multi_needle-2048w-2,multi_needle,2048,Which passcode was BLUE?,ORBIT-118X,"['RIVER-42M', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 15 |
+
multi_needle-2048w-3,multi_needle,2048,Which passcode was BLUE?,DELTA-330Q,"['CYPHER-8007Z', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 16 |
+
multi_needle-2048w-4,multi_needle,2048,Which passcode was BLUE?,VECTOR-118B,"['TITAN-991K', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 17 |
+
multi_needle-2048w-5,multi_needle,2048,Which passcode was BLUE?,ZX17-2044Q,"['MK53-4897X', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 18 |
+
multi_needle-2048w-6,multi_needle,2048,Which passcode was BLUE?,NOVA-9031B,"['ALPHA-77K2', 'MK53-4897X', 'ZX17-2044Q', 'RIVER-42M']"
|
| 19 |
+
multi_needle-2048w-7,multi_needle,2048,Which passcode was BLUE?,ORBIT-118X,"['RIVER-42M', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 20 |
+
multi_needle-2048w-8,multi_needle,2048,Which passcode was BLUE?,DELTA-330Q,"['CYPHER-8007Z', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 21 |
+
multi_needle-2048w-9,multi_needle,2048,Which passcode was BLUE?,VECTOR-118B,"['TITAN-991K', 'MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2']"
|
| 22 |
+
kv_retrieval-2048w-0,kv_retrieval,2048,What is the access code for Ankara?,NOVA-9031B,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'RIVER-42M']"
|
| 23 |
+
kv_retrieval-2048w-1,kv_retrieval,2048,What is the access code for Izmir?,RIVER-42M,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 24 |
+
kv_retrieval-2048w-2,kv_retrieval,2048,What is the access code for Bursa?,ORBIT-118X,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 25 |
+
kv_retrieval-2048w-3,kv_retrieval,2048,What is the access code for Konya?,CYPHER-8007Z,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 26 |
+
kv_retrieval-2048w-4,kv_retrieval,2048,What is the access code for Samsun?,DELTA-330Q,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 27 |
+
kv_retrieval-2048w-5,kv_retrieval,2048,What is the access code for Mersin?,TITAN-991K,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 28 |
+
kv_retrieval-2048w-6,kv_retrieval,2048,What is the access code for Trabzon?,VECTOR-118B,"['MK53-4897X', 'ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B']"
|
| 29 |
+
kv_retrieval-2048w-7,kv_retrieval,2048,What is the access code for Kayseri?,MK53-4897X,"['ZX17-2044Q', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 30 |
+
kv_retrieval-2048w-8,kv_retrieval,2048,What is the access code for Edirne?,ZX17-2044Q,"['MK53-4897X', 'ALPHA-77K2', 'NOVA-9031B', 'RIVER-42M']"
|
| 31 |
+
kv_retrieval-2048w-9,kv_retrieval,2048,What is the access code for Van?,ALPHA-77K2,"['MK53-4897X', 'ZX17-2044Q', 'NOVA-9031B', 'RIVER-42M']"
|