jizej commited on
Commit
7ec4870
·
verified ·
1 Parent(s): 5372502

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +154 -0
README.md ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - question-answering
5
+ - text-generation
6
+ language:
7
+ - en
8
+ pretty_name: Competence-Based Evaluation (Invariance Benchmark)
9
+ size_categories:
10
+ - 10K<n<100K
11
+ tags:
12
+ - reasoning
13
+ - logical-reasoning
14
+ - invariance
15
+ - robustness
16
+ - benchmark
17
+ - sft
18
+ configs:
19
+ - config_name: eval_pos
20
+ data_files:
21
+ - split: original
22
+ path: eval/pos/original.jsonl
23
+ - split: equivalent
24
+ path: eval/pos/equivalent.jsonl
25
+ - config_name: eval_pos_largeN
26
+ data_files:
27
+ - split: original
28
+ path: eval/pos_largeN/original.jsonl
29
+ - split: equivalent
30
+ path: eval/pos_largeN/equivalent.jsonl
31
+ - config_name: eval_depth
32
+ data_files:
33
+ - split: original
34
+ path: eval/depth/original.jsonl
35
+ - split: equivalent
36
+ path: eval/depth/equivalent.jsonl
37
+ - config_name: sft_full
38
+ data_files:
39
+ - split: train
40
+ path: sft/full/train.jsonl
41
+ - split: validation
42
+ path: sft/full/val.jsonl
43
+ - config_name: sft_noleak
44
+ data_files:
45
+ - split: train
46
+ path: sft/noleak/train.jsonl
47
+ - split: validation
48
+ path: sft/noleak/val.jsonl
49
+ ---
50
+
51
+ # Competence-Based Evaluation (Invariance Benchmark)
52
+
53
+ A benchmark for testing whether language models give the **same answer** to
54
+ semantically equivalent reformulations of a logical-ordering question. Given a
55
+ set of pairwise constraints (e.g. *Alice is in front of Bob*), a model should
56
+ answer transitive-closure queries (*Is Carol in front of Dave?*) consistently
57
+ whether the constraints are stated using a relation or its inverse.
58
+
59
+ Each item exists as a paired (`original`, `equivalent`) record describing the
60
+ same underlying ordering with different surface phrasings. **Invariance** is
61
+ measured as the agreement between the model's `original` and `equivalent`
62
+ answers; **accuracy** is measured against the ground-truth boolean.
63
+
64
+ ## Subsets
65
+
66
+ ### Evaluation (held-out)
67
+
68
+ | Config | Split | Rows | N range | Notes |
69
+ |---|---|---|---|---|
70
+ | `eval_pos` | `original`, `equivalent` | 4,000 each | 4–2048 | Main yes/no eval. Uses the held-out `pos` (in-front-of/behind) relation. Names list shown in the prompt is shuffled to remove the order-of-names leak. |
71
+ | `eval_pos_largeN` | `original`, `equivalent` | 1,200 each | up to several thousand | Stress test at large N. |
72
+ | `eval_depth` | `original`, `equivalent` | 2,000 each | 4–64 | Held-out `depth` (above/below stacking) relation, names-list shuffled. |
73
+
74
+ Each row is one yes/no question. Within a config, row `i` of the
75
+ `original` split and row `i` of the `equivalent` split describe the **same
76
+ underlying ordering** and the **same query**, only with the relation phrased
77
+ differently (e.g. "Alice in front of Bob" vs. "Bob behind Alice"). They share
78
+ the same ground-truth answer.
79
+
80
+ Schema:
81
+
82
+ ```json
83
+ {
84
+ "question": "There are 4 people standing in some order.\nTheir names are [...]\n...\nIs Nicholas in front of Thomas? Provide your answer only as yes or no. Answer: \n",
85
+ "answer": "yes",
86
+ "is_fwd": true,
87
+ "num_elements": 4
88
+ }
89
+ ```
90
+
91
+ ### Supervised fine-tuning
92
+
93
+ The SFT subsets are chat-formatted (`messages` field) and ready for
94
+ `trl.SFTTrainer` / OpenAI fine-tuning. They are built from a different set of
95
+ fact-agnostic relations than the eval set, with `n` skewed toward small values.
96
+ Each underlying ordering is expanded across `(is_fwd, answer)` combinations
97
+ × `(original, equivalent)` phrasing = 8 rows.
98
+
99
+ | Config | Split | Rows | Train relations | Notes |
100
+ |---|---|---|---|---|
101
+ | `sft_full` | `train` | 45,600 | arrival, priority, proximity, seniority, spatial_lr, spatial_ud | All fact-agnostic relations. |
102
+ | `sft_full` | `validation` | 2,400 | (same) | In-distribution validation split. |
103
+ | `sft_noleak` | `train` | 45,600 | (same as `sft_full`) | Built with `--shuffle-names-display` to remove the names-list leak; **this is the version used for the paper's reported fine-tuning results**. |
104
+ | `sft_noleak` | `validation` | 2,400 | (same) | In-distribution validation split. |
105
+
106
+ The `pos` and `depth` relations are **deliberately excluded** from training so
107
+ that the eval subsets remain genuinely out-of-distribution.
108
+
109
+ Schema (chat / messages format):
110
+
111
+ ```json
112
+ {
113
+ "messages": [
114
+ {"role": "system", "content": "You are a helpful assistant. Answer logical reasoning questions concisely."},
115
+ {"role": "user", "content": "There are 8 employees ... Is Juana more senior than Felecia? ..."},
116
+ {"role": "assistant", "content": "no"}
117
+ ]
118
+ }
119
+ ```
120
+
121
+ Per-config metadata (n distribution, per-relation counts, seed) lives in
122
+ `sft/full/meta.json` and `sft/noleak/meta.json`.
123
+
124
+ ## Loading
125
+
126
+ ```python
127
+ from datasets import load_dataset
128
+
129
+ # Eval — paired splits, same row index = same underlying ordering.
130
+ ds = load_dataset("jizej/Competence-Based-Evaluation", "eval_pos")
131
+ org = ds["original"]
132
+ eqv = ds["equivalent"]
133
+
134
+ # SFT — chat-formatted.
135
+ sft = load_dataset("jizej/Competence-Based-Evaluation", "sft_noleak")
136
+ train = sft["train"]
137
+ ```
138
+
139
+ ## Construction
140
+
141
+ Datasets are generated procedurally from entity pools sourced from Wikidata,
142
+ Wikipedia, and curated lists. The generator and entity-pool fetcher are open
143
+ source at the project repository (linked above). All generation seeds are
144
+ recorded in the per-subset `meta.json`.
145
+
146
+ ## License
147
+
148
+ Released under **CC BY 4.0**. Entity names sourced from Wikidata/Wikipedia
149
+ retain their original licenses (CC0 / CC BY-SA).
150
+
151
+ ## Citation
152
+
153
+ Please cite the accompanying paper if you use this dataset (citation TBD —
154
+ NeurIPS 2026 Datasets & Benchmarks track submission).