thaki-AI commited on
Commit
825d836
·
verified ·
1 Parent(s): 329b63d

Align card with ThakiCloud card conventions

Browse files
Files changed (1) hide show
  1. README.md +85 -20
README.md CHANGED
@@ -1,47 +1,112 @@
1
  ---
2
- license: [cc-by-4.0, apache-2.0]
3
- language: [en]
4
- task_categories: [text-classification, question-answering]
5
- tags: [rag, evidence-sufficiency, multi-hop-qa, counterfactual, benchmark, chaincheck]
 
 
 
 
 
 
 
 
 
 
 
6
  pretty_name: ChainCheck
 
 
 
 
 
 
 
 
 
7
  ---
8
 
9
  # ChainCheck
10
 
11
- Counterfactual controls for evaluating evidence-sufficiency scorers in retrieval-augmented QA. From *ChainCheck: When Near-Perfect Evidence-Sufficiency Scores Fail to Distinguish Chain-Sensitive Systems* (preprint forthcoming).
12
 
13
- A sufficiency scorer can look near-perfect on an ordinary benchmark by reacting to any edit in the passages. ChainCheck adds a matched control so the two can be told apart:
 
 
14
 
15
  | Cell | Chain | Edit |
16
  |---|---|---|
17
  | A | intact | none |
18
- | B | intact | consistent bridge-entity swap |
19
- | D | broken (later-hop substitution) | yes |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- Nominal = AUC(A > D), chain effect = AUC(B > D) − 0.5, edit effect = AUC(A > B) − 0.5, chain selectivity Σ = CE − |EE|. These are matched contrasts, not an additive decomposition.
 
 
 
 
 
 
 
 
22
 
23
  ## Files
24
 
25
  | File | Rows | Source license |
26
  |---|---|---|
27
- | `musique_test.jsonl.gz` | 1716 | MuSiQue (Trivedi et al., TACL 2022), CC BY 4.0 |
28
  | `musique_confirmation.jsonl.gz` | 678 | MuSiQue (Trivedi et al., TACL 2022), CC BY 4.0 |
29
- | `twowiki_replication.jsonl.gz` | 1392 | 2WikiMultiHopQA (Ho et al., COLING 2020), Apache-2.0 |
30
 
31
- Each row is one (question, passage set) item: `item_id`, `pair_id`, `variant` (`real`, or `fict` for a synthetic replacement entity), `cell` (A/B/D), `query`, `passages`, `answer`, `bridge`, `replacement`, `chain`, `edit`, `earlier_support`, `later_support`, `label_sufficient`, `cb_27b_correct` (Qwen3.8-27B answered closed-book; the paper excludes these pairs) and `source`. Only quadruples that pass the Q1 to Q9 validator are included. Labels follow mechanically from source provenance; no human or LLM labels.
32
 
33
- ## Evaluate your scorer
34
 
35
- ```bash
36
- python chaincheck_eval.py --data twowiki_replication.jsonl.gz --scores my_scores.jsonl --exclude-cb27b
37
- ```
 
 
 
 
 
 
 
38
 
39
- `my_scores.jsonl` holds one `{"item_id": ..., "score": float}` per item (higher = more sufficient). The script needs only numpy and reproduces the paper's reference-judge numbers exactly.
40
 
41
- ## Licenses
 
 
 
42
 
43
- Derived from MuSiQue (CC BY 4.0) and 2WikiMultiHopQA (Apache-2.0); passage text originates from Wikipedia (CC BY-SA). Each file keeps its source license; cite the original datasets alongside this one.
 
 
 
 
 
 
44
 
45
  ## Models
46
 
47
- Judges trained with these controls: [ChainCheck-Judge collection](https://huggingface.co/ThakiCloud).
 
 
 
 
 
1
  ---
2
+ license: other
3
+ license_name: mixed-cc-by-4.0-and-apache-2.0
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - text-classification
8
+ - question-answering
9
+ tags:
10
+ - rag
11
+ - evidence-sufficiency
12
+ - multi-hop-qa
13
+ - counterfactual
14
+ - benchmark
15
+ - evaluation
16
+ - chaincheck
17
  pretty_name: ChainCheck
18
+ size_categories:
19
+ - 1K<n<10K
20
+ configs:
21
+ - config_name: musique_test
22
+ data_files: musique_test.jsonl.gz
23
+ - config_name: musique_confirmation
24
+ data_files: musique_confirmation.jsonl.gz
25
+ - config_name: twowiki_replication
26
+ data_files: twowiki_replication.jsonl.gz
27
  ---
28
 
29
  # ChainCheck
30
 
31
+ A benchmark kit for **evidence-sufficiency scorers in RAG** that separates two things an ordinary benchmark mixes up: reacting to a broken reasoning chain, and reacting to any edit in the passages. 3,786 items over MuSiQue and 2WikiMultiHopQA, with a standalone evaluator.
32
 
33
+ An ordinary sufficiency benchmark asks whether a scorer ranks untouched passages above broken ones. Near-perfect scores on that question are common, and they can come from a scorer that flags *every* edited context. ChainCheck adds a matched control, so a scorer that tracks the chain and a scorer that tracks edits no longer look the same.
34
+
35
+ ## Three cells
36
 
37
  | Cell | Chain | Edit |
38
  |---|---|---|
39
  | A | intact | none |
40
+ | B | intact | consistent bridge-entity swap across all passages |
41
+ | D | broken (substitution in the later hop only) | yes |
42
+
43
+ - Nominal = AUC(A > D): what an ordinary benchmark reports.
44
+ - Chain effect CE = AUC(B > D) − 0.5: edit held fixed, chain varied.
45
+ - Edit effect EE = AUC(A > B) − 0.5: chain held fixed, edit varied.
46
+ - Chain selectivity Σ = CE − |EE|. A 95% lower bound above zero means the scorer reacts more to chain breaks than to edits.
47
+
48
+ These are matched contrasts, not an additive decomposition (Nominal is not CE + EE), and the fourth cell (broken chain, no edit) is not constructed.
49
+
50
+ ## Getting started
51
+
52
+ ```python
53
+ from datasets import load_dataset
54
+ ds = load_dataset("ThakiCloud/ChainCheck", "twowiki_replication", split="train")
55
+ print(ds[0]["cell"], ds[0]["query"], len(ds[0]["passages"]))
56
+ ```
57
 
58
+ ## Running the evaluation
59
+
60
+ Score every item with your system (higher = more sufficient), write one `{"item_id": ..., "score": float}` per line, then:
61
+
62
+ ```bash
63
+ python chaincheck_eval.py --data twowiki_replication.jsonl.gz --scores my_scores.jsonl --exclude-cb27b
64
+ ```
65
+
66
+ The evaluator needs only numpy. It reports Nominal, CE, EE and Σ with pair-bootstrap intervals (2,000 resamples, seed 0), separately for real and synthetic replacement entities. `--exclude-cb27b` drops pairs that Qwen3.8-27B answers closed-book, as the paper does.
67
 
68
  ## Files
69
 
70
  | File | Rows | Source license |
71
  |---|---|---|
72
+ | `musique_test.jsonl.gz` | 1,716 | MuSiQue (Trivedi et al., TACL 2022), CC BY 4.0 |
73
  | `musique_confirmation.jsonl.gz` | 678 | MuSiQue (Trivedi et al., TACL 2022), CC BY 4.0 |
74
+ | `twowiki_replication.jsonl.gz` | 1,392 | 2WikiMultiHopQA (Ho et al., COLING 2020), Apache-2.0 |
75
 
76
+ Each row is one (question, passage set) item: `item_id`, `pair_id`, `variant` (`real`, or `fict` for a synthetic replacement entity), `cell` (A/B/D), `query`, `passages`, `answer`, `bridge`, `replacement`, `chain`, `edit`, `earlier_support`, `later_support`, `label_sufficient`, `cb_27b_correct` and `source`. Only quadruples that pass the Q1 to Q9 validator are included.
77
 
78
+ ## Baseline (Qwen3.8-27B zero-shot judge)
79
 
80
+ | File | Variant | Pairs | Nominal | Chain effect | Edit effect | Σ [95% CI] |
81
+ |---|---|---|---|---|---|---|
82
+ | MuSiQue test | real | 324 | 0.895 | +0.309 | +0.108 | +0.201 [+0.123, +0.278] |
83
+ | MuSiQue test | fict | 224 | 0.906 | +0.397 | -0.009 | +0.388 [+0.312, +0.420] |
84
+ | MuSiQue confirmation | real | 122 | 0.943 | +0.344 | +0.164 | +0.180 [+0.066, +0.295] |
85
+ | MuSiQue confirmation | fict | 98 | 0.908 | +0.449 | -0.031 | +0.418 [+0.316, +0.469] |
86
+ | 2Wiki replication | real | 295 | 0.905 | +0.320 | +0.192 | +0.129 [+0.054, +0.200] |
87
+ | 2Wiki replication | fict | 141 | 0.929 | +0.443 | +0.046 | +0.397 [+0.305, +0.454] |
88
+
89
+ Scored with the same pipeline as the released judges. The paper's own run of this judge ranks items essentially identically; its Σ values differ from this table within the reported intervals because A and B score almost the same and bf16 differences flip some comparisons.
90
 
91
+ ## What not to trust
92
 
93
+ - Nominal is near its ceiling for almost every system. Do not rank systems by it alone; that is the failure this kit exists to expose.
94
+ - A and B differ by one entity and often score almost the same, so EE is sensitive to small numerical differences in the scorer. Compare systems scored on the same hardware and precision, and read Σ with its interval.
95
+ - MuSiQue confirmation has 122 real pairs after filtering; its intervals are wide.
96
+ - Edits are entity substitutions on two-hop chains over Wikipedia. Numerical errors, temporal staleness and longer chains are not covered.
97
 
98
+ ## Provenance
99
+
100
+ Labels follow mechanically from source provenance and the validator; no human or LLM labels. `musique_test` and `musique_confirmation` derive from MuSiQue (Trivedi et al., TACL 2022); `twowiki_replication` derives from 2WikiMultiHopQA (Ho et al., COLING 2020), compositional and inference question types. The confirmation slice and the 2Wiki replication were built after the protocol was frozen.
101
+
102
+ ## License
103
+
104
+ Each file keeps its source license: MuSiQue-derived files are CC BY 4.0, the 2WikiMultiHopQA-derived file is Apache-2.0, and passage text originates from Wikipedia (CC BY-SA). The evaluator script is Apache-2.0. Cite the original datasets alongside this one.
105
 
106
  ## Models
107
 
108
+ Judges trained with these controls (4B, 9B, 27B): [ChainCheck collection](https://huggingface.co/ThakiCloud).
109
+
110
+ ## Paper
111
+
112
+ ChainCheck: When Near-Perfect Evidence-Sufficiency Scores Fail to Distinguish Chain-Sensitive Systems — preprint forthcoming