awni00 commited on
Commit
d1d4cef
·
verified ·
1 Parent(s): 6fa2e54

Publish Multi-Strategy Algorithmic Tasks v1.0.0

Browse files

Text-only release accompanying arXiv:2607.17674. Includes 1.02M validated examples, generation configuration, checksums, and validation statistics.

README.md ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Multi-Strategy Algorithmic Tasks
3
+ license: cc-by-4.0
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - synthetic
10
+ - reasoning
11
+ - algorithmic-reasoning
12
+ - strategy
13
+ - datasets
14
+ size_categories:
15
+ - 1M<n<10M
16
+ ---
17
+
18
+ # Multi-Strategy Algorithmic Tasks
19
+
20
+ Multi-Strategy Algorithmic Tasks is a synthetic benchmark of parseable
21
+ algorithmic problems with multiple valid solution strategies. Each example
22
+ contains a problem, a complete strategy-specific solution trace, and the
23
+ strategy used to generate that trace.
24
+
25
+ The benchmark accompanies
26
+ [Uncovering Latent Reasoning Strategies in Language Models](https://arxiv.org/abs/2607.17674).
27
+ It provides controlled reference strategy labels for studying strategy
28
+ recovery, representation, routing, and controllable generation.
29
+
30
+ ## Load the dataset
31
+
32
+ ```python
33
+ from datasets import load_dataset
34
+
35
+ dataset = load_dataset("awni00/multi-strategy-algorithmic-tasks")
36
+ example = dataset["train"][0]
37
+ ```
38
+
39
+ The release contains:
40
+
41
+ | Split | Rows |
42
+ | --- | ---: |
43
+ | `train` | 1,000,000 |
44
+ | `validation` | 10,000 |
45
+ | `test` | 10,000 |
46
+
47
+ To select one task family:
48
+
49
+ ```python
50
+ sorting = dataset.filter(
51
+ lambda example: example["task_name"] == "sorting_algorithms"
52
+ )
53
+ ```
54
+
55
+ ## Fields
56
+
57
+ All four fields are strings.
58
+
59
+ | Field | Description |
60
+ | --- | --- |
61
+ | `task_name` | Algorithmic task family |
62
+ | `strategy_id` | Namespaced strategy sampled to generate the trace |
63
+ | `input_text` | Rendered problem instance |
64
+ | `reasoning_trace` | Complete strategy-specific solution trace, including the final answer |
65
+
66
+ The dataset intentionally contains text rather than token IDs. Users can apply
67
+ the tokenizer and sequence framing appropriate for their own model.
68
+
69
+ Example:
70
+
71
+ ```python
72
+ {
73
+ "task_name": "multidigit_addition",
74
+ "strategy_id": "multidigit_addition:left-to-right-partials",
75
+ "input_text": "560+342",
76
+ "reasoning_trace": (
77
+ "p100:500+300=800 ; p10:60+40=100 ; "
78
+ "p1:0+2=2 ; sum=800+100+2=902"
79
+ ),
80
+ }
81
+ ```
82
+
83
+ ## Tasks and strategies
84
+
85
+ The generator first samples one of the six task families uniformly. It then
86
+ samples a strategy uniformly within that task family.
87
+
88
+ | Task | Problem | Strategies |
89
+ | --- | --- | --- |
90
+ | `list_summation` | Sum four integers from 0 to 9 | `left-to-right`, `right-to-left`, `pairwise` |
91
+ | `sorting_algorithms` | Sort five integers from 0 to 9 | `bubble-sort`, `selection-sort`, `insertion-sort`, `merge-sort`, `heap-sort` |
92
+ | `grid_pathfinding` | Monotone shortest paths on a 6×6 grid | `right-first`, `down-first`, `alternating` |
93
+ | `linear_equation_solving` | Solve integer equations of the form `ax+b=c` | `subtract-then-divide`, `divide-then-subtract`, `inverse-ops` |
94
+ | `base_conversion` | Convert integers from 1 to 255 to base 2, 4, 8, or 16 | `repeated-division`, `via-binary`, `decomposition` |
95
+ | `multidigit_addition` | Add two three-digit nonnegative integers | `right-to-left-carry`, `left-to-right-partials`, `rounding-decomposition` |
96
+
97
+ The public `strategy_id` includes the task namespace, for example
98
+ `grid_pathfinding:alternating`. There are 20 namespaced strategies in total.
99
+
100
+ ## Generation and reproducibility
101
+
102
+ The published rows are a text rendering of the frozen aggregate dataset used
103
+ for the accompanying paper. The release preserves the original examples,
104
+ split membership, and row order. It does not resample or filter the data.
105
+
106
+ The task family, input, and strategy are sampled as:
107
+
108
+ \[
109
+ T \sim \operatorname{Unif}(\text{task families}), \qquad
110
+ X \sim \mathcal{D}_T, \qquad
111
+ S \sim \operatorname{Unif}(\mathcal{S}_T), \qquad
112
+ Y = \operatorname{Trace}_T(X,S).
113
+ \]
114
+
115
+ The repository includes `generation_config.yaml` with the resolved task
116
+ parameters and random seeds. `release_manifest.json` records source and
117
+ release checksums. `validation_report.json` records task and strategy counts,
118
+ trace ambiguity, duplicates, and cross-split overlap.
119
+
120
+ ## Important characteristics
121
+
122
+ ### Sampled strategy labels
123
+
124
+ `strategy_id` is the strategy selected by the generator. On some inputs,
125
+ multiple strategies produce the same observable trace. Such a trace is valid
126
+ but its sampled strategy may not be uniquely recoverable from the trace alone.
127
+ This is most common when a problem requires only a few steps or different
128
+ algorithms happen to traverse identical intermediate states.
129
+
130
+ ### Sampling with replacement
131
+
132
+ Examples are sampled with replacement from finite task distributions.
133
+ Repeated examples within a split and overlap between splits are therefore
134
+ expected. The splits represent independent samples from the same controlled
135
+ distribution; they are not disjoint-input generalization splits.
136
+
137
+ ## Intended use
138
+
139
+ The dataset is intended for controlled research on:
140
+
141
+ - learning and evaluating multiple reasoning strategies;
142
+ - strategy recovery from generated traces or model representations;
143
+ - latent-variable routing and controllable generation;
144
+ - algorithmic sequence modeling with parseable outputs.
145
+
146
+ The reference strategy labels are intended for evaluation and analysis. In the
147
+ paper's main setup, they are not provided as supervision to the language model.
148
+
149
+ ## Limitations
150
+
151
+ - The tasks are synthetic, symbolic, and deliberately small.
152
+ - Difficulty ranges are fixed by the published generation configuration.
153
+ - The traces implement a finite reference set of procedures, not every valid
154
+ solution method.
155
+ - Strategy labels describe the generator procedure and should not be treated
156
+ as natural human reasoning annotations.
157
+ - Results on this benchmark do not by themselves establish strategy recovery
158
+ on open-ended natural-language reasoning.
159
+
160
+ The dataset contains no human-authored examples or personal information.
161
+
162
+ ## License
163
+
164
+ The dataset is released under the
165
+ [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
166
+
167
+ ## Citation
168
+
169
+ ```bibtex
170
+ @misc{altabaa2026uncovering,
171
+ title = {Uncovering Latent Reasoning Strategies in Language Models},
172
+ author = {Awni Altabaa and John Lafferty},
173
+ year = {2026},
174
+ eprint = {2607.17674},
175
+ archivePrefix = {arXiv},
176
+ primaryClass = {cs.LG},
177
+ url = {https://arxiv.org/abs/2607.17674}
178
+ }
179
+ ```
180
+
181
+ Code associated with the paper is available at
182
+ [Awni00/latent-strategies-in-lms](https://github.com/Awni00/latent-strategies-in-lms).
data/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c322f640f5e8f6ef448f87281340252df0c75b3fd45175ab413530cad484d41
3
+ size 205404
data/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03563441091e962868c4f558e2e9b22aae3970cba7e53d56aa1707d7899e5c35
3
+ size 19837251
data/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a4d2d70b9640ecddc088edc12320417fd2d2314a0bb656e6f0feca405c57636
3
+ size 205088
generation_config.yaml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed: 0
2
+ split_sizes:
3
+ train: 1_000_000
4
+ val: 10_000
5
+ test: 10_000
6
+ split_seed_offsets:
7
+ train: 0
8
+ val: 1_000_000
9
+ test: 2_000_000
10
+ task_seed_stride: 100_000
11
+ include_semantic: false
12
+ strict_validation: false
13
+ data_dir: .data/synthetic_sequences
14
+ task_args:
15
+ multi_task:
16
+ included_task_names:
17
+ - list_summation
18
+ - sorting_algorithms
19
+ - grid_pathfinding
20
+ - linear_equation_solving
21
+ - base_conversion
22
+ - multidigit_addition
23
+ subtask_args:
24
+ list_summation:
25
+ min_value: 0
26
+ max_value: 9
27
+ list_length: 4
28
+ sorting_algorithms:
29
+ min_value: 0
30
+ max_value: 9
31
+ list_length: 5
32
+ grid_pathfinding:
33
+ grid_size: 6
34
+ linear_equation_solving:
35
+ min_a: 2
36
+ max_a: 9
37
+ min_solution: -9
38
+ max_solution: 9
39
+ min_k: -9
40
+ max_k: 9
41
+ base_conversion:
42
+ min_value: 1
43
+ max_value: 255
44
+ allowed_bases:
45
+ - 2
46
+ - 4
47
+ - 8
48
+ - 16
49
+ multidigit_addition:
50
+ digits: 3
release_manifest.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset_id": "awni00/multi-strategy-algorithmic-tasks",
3
+ "public_schema": {
4
+ "input_text": "string",
5
+ "reasoning_trace": "string",
6
+ "strategy_id": "string",
7
+ "task_name": "string"
8
+ },
9
+ "release_files": {
10
+ "README": {
11
+ "path": "README.md",
12
+ "sha256": "2704f4a4840dd372acffd65f32144df875be0de9123222506d6d74dd17b0eb82"
13
+ },
14
+ "generation_config": {
15
+ "path": "generation_config.yaml",
16
+ "sha256": "945fecea0fc4b246aa08b106e59d6072c04ddb0fbd0e9b71740e47e5f2c943a0"
17
+ },
18
+ "test": {
19
+ "num_rows": 10000,
20
+ "path": "data/test.parquet",
21
+ "sha256": "9c322f640f5e8f6ef448f87281340252df0c75b3fd45175ab413530cad484d41"
22
+ },
23
+ "train": {
24
+ "num_rows": 1000000,
25
+ "path": "data/train.parquet",
26
+ "sha256": "03563441091e962868c4f558e2e9b22aae3970cba7e53d56aa1707d7899e5c35"
27
+ },
28
+ "validation": {
29
+ "num_rows": 10000,
30
+ "path": "data/validation.parquet",
31
+ "sha256": "3a4d2d70b9640ecddc088edc12320417fd2d2314a0bb656e6f0feca405c57636"
32
+ },
33
+ "validation_report": {
34
+ "path": "validation_report.json",
35
+ "sha256": "f0973a532e9ae165f064b7b35116a2e4eb5277784aac990727a46e560a3439e2"
36
+ }
37
+ },
38
+ "release_version": "1.0.0",
39
+ "source": {
40
+ "directory": ".data/synthetic_sequences/multi_task",
41
+ "files": {
42
+ "test": {
43
+ "num_rows": 10000,
44
+ "path": "test.parquet",
45
+ "sha256": "fd2c489e4b8fbea50526979dfe27ac5ddec9d6c8df0db9eb93117b39f6730785"
46
+ },
47
+ "train": {
48
+ "num_rows": 1000000,
49
+ "path": "train.parquet",
50
+ "sha256": "dd172fee55aa89d30a2fe53aa4f7e1b7fe3f0b4899879ed3e71b95b9cf3bc765"
51
+ },
52
+ "val": {
53
+ "num_rows": 10000,
54
+ "path": "val.parquet",
55
+ "sha256": "f4862c9a9a8f1ae2c02debfb7ca6ce79b134e479d945c7c22ba996206bfda290"
56
+ }
57
+ },
58
+ "generated_at": "2026-04-26T00:01:29",
59
+ "metadata_schema_version": "synthetic_sequences.task_metadata.v1",
60
+ "metadata_sha256": "24087732ffedb083b763be12c00786be1f7bb7c3df2869dc066b520aa2e22596",
61
+ "task_version": "1.0.0"
62
+ }
63
+ }
validation_report.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cross_split_overlap": {
3
+ "train__test": {
4
+ "shared_unique_inputs": 5792,
5
+ "shared_unique_rows": 6209
6
+ },
7
+ "train__validation": {
8
+ "shared_unique_inputs": 5845,
9
+ "shared_unique_rows": 6254
10
+ },
11
+ "validation__test": {
12
+ "shared_unique_inputs": 1777,
13
+ "shared_unique_rows": 1356
14
+ }
15
+ },
16
+ "fingerprint_definition": {
17
+ "algorithm": "sha256-length-framed-utf8",
18
+ "input": [
19
+ "task_name",
20
+ "input_text"
21
+ ],
22
+ "row": [
23
+ "task_name",
24
+ "strategy_id",
25
+ "input_text",
26
+ "reasoning_trace"
27
+ ]
28
+ },
29
+ "schema": {
30
+ "input_text": "string",
31
+ "reasoning_trace": "string",
32
+ "strategy_id": "string",
33
+ "task_name": "string"
34
+ },
35
+ "splits": {
36
+ "test": {
37
+ "ambiguous_rate": 0.0662,
38
+ "ambiguous_rows": 662,
39
+ "ambiguous_task_counts": {
40
+ "grid_pathfinding": 497,
41
+ "sorting_algorithms": 165
42
+ },
43
+ "duplicate_rows": 1673,
44
+ "num_rows": 10000,
45
+ "public_split_name": "test",
46
+ "repeated_inputs": 2870,
47
+ "source_split_name": "test",
48
+ "strategy_counts": {
49
+ "base_conversion:decomposition": 570,
50
+ "base_conversion:repeated-division": 575,
51
+ "base_conversion:via-binary": 507,
52
+ "grid_pathfinding:alternating": 556,
53
+ "grid_pathfinding:down-first": 530,
54
+ "grid_pathfinding:right-first": 571,
55
+ "linear_equation_solving:divide-then-subtract": 552,
56
+ "linear_equation_solving:inverse-ops": 615,
57
+ "linear_equation_solving:subtract-then-divide": 555,
58
+ "list_summation:left-to-right": 540,
59
+ "list_summation:pairwise": 566,
60
+ "list_summation:right-to-left": 518,
61
+ "multidigit_addition:left-to-right-partials": 569,
62
+ "multidigit_addition:right-to-left-carry": 529,
63
+ "multidigit_addition:rounding-decomposition": 564,
64
+ "sorting_algorithms:bubble-sort": 320,
65
+ "sorting_algorithms:heap-sort": 352,
66
+ "sorting_algorithms:insertion-sort": 333,
67
+ "sorting_algorithms:merge-sort": 351,
68
+ "sorting_algorithms:selection-sort": 327
69
+ },
70
+ "task_counts": {
71
+ "base_conversion": 1652,
72
+ "grid_pathfinding": 1657,
73
+ "linear_equation_solving": 1722,
74
+ "list_summation": 1624,
75
+ "multidigit_addition": 1662,
76
+ "sorting_algorithms": 1683
77
+ },
78
+ "unique_inputs": 7130,
79
+ "unique_rows": 8327
80
+ },
81
+ "train": {
82
+ "ambiguous_rate": 0.066884,
83
+ "ambiguous_rows": 66884,
84
+ "ambiguous_task_counts": {
85
+ "grid_pathfinding": 51002,
86
+ "list_summation": 13,
87
+ "sorting_algorithms": 15869
88
+ },
89
+ "duplicate_rows": 696118,
90
+ "num_rows": 1000000,
91
+ "public_split_name": "train",
92
+ "repeated_inputs": 805381,
93
+ "source_split_name": "train",
94
+ "strategy_counts": {
95
+ "base_conversion:decomposition": 55857,
96
+ "base_conversion:repeated-division": 55377,
97
+ "base_conversion:via-binary": 55784,
98
+ "grid_pathfinding:alternating": 55490,
99
+ "grid_pathfinding:down-first": 55740,
100
+ "grid_pathfinding:right-first": 55647,
101
+ "linear_equation_solving:divide-then-subtract": 55737,
102
+ "linear_equation_solving:inverse-ops": 55601,
103
+ "linear_equation_solving:subtract-then-divide": 55350,
104
+ "list_summation:left-to-right": 55430,
105
+ "list_summation:pairwise": 55421,
106
+ "list_summation:right-to-left": 55171,
107
+ "multidigit_addition:left-to-right-partials": 55920,
108
+ "multidigit_addition:right-to-left-carry": 55284,
109
+ "multidigit_addition:rounding-decomposition": 55486,
110
+ "sorting_algorithms:bubble-sort": 33429,
111
+ "sorting_algorithms:heap-sort": 33399,
112
+ "sorting_algorithms:insertion-sort": 33391,
113
+ "sorting_algorithms:merge-sort": 33252,
114
+ "sorting_algorithms:selection-sort": 33234
115
+ },
116
+ "task_counts": {
117
+ "base_conversion": 167018,
118
+ "grid_pathfinding": 166877,
119
+ "linear_equation_solving": 166688,
120
+ "list_summation": 166022,
121
+ "multidigit_addition": 166690,
122
+ "sorting_algorithms": 166705
123
+ },
124
+ "unique_inputs": 194619,
125
+ "unique_rows": 303882
126
+ },
127
+ "validation": {
128
+ "ambiguous_rate": 0.0652,
129
+ "ambiguous_rows": 652,
130
+ "ambiguous_task_counts": {
131
+ "grid_pathfinding": 491,
132
+ "list_summation": 1,
133
+ "sorting_algorithms": 160
134
+ },
135
+ "duplicate_rows": 1682,
136
+ "num_rows": 10000,
137
+ "public_split_name": "validation",
138
+ "repeated_inputs": 2831,
139
+ "source_split_name": "val",
140
+ "strategy_counts": {
141
+ "base_conversion:decomposition": 574,
142
+ "base_conversion:repeated-division": 524,
143
+ "base_conversion:via-binary": 578,
144
+ "grid_pathfinding:alternating": 518,
145
+ "grid_pathfinding:down-first": 548,
146
+ "grid_pathfinding:right-first": 562,
147
+ "linear_equation_solving:divide-then-subtract": 594,
148
+ "linear_equation_solving:inverse-ops": 535,
149
+ "linear_equation_solving:subtract-then-divide": 545,
150
+ "list_summation:left-to-right": 541,
151
+ "list_summation:pairwise": 553,
152
+ "list_summation:right-to-left": 580,
153
+ "multidigit_addition:left-to-right-partials": 527,
154
+ "multidigit_addition:right-to-left-carry": 555,
155
+ "multidigit_addition:rounding-decomposition": 551,
156
+ "sorting_algorithms:bubble-sort": 350,
157
+ "sorting_algorithms:heap-sort": 325,
158
+ "sorting_algorithms:insertion-sort": 341,
159
+ "sorting_algorithms:merge-sort": 368,
160
+ "sorting_algorithms:selection-sort": 331
161
+ },
162
+ "task_counts": {
163
+ "base_conversion": 1676,
164
+ "grid_pathfinding": 1628,
165
+ "linear_equation_solving": 1674,
166
+ "list_summation": 1674,
167
+ "multidigit_addition": 1633,
168
+ "sorting_algorithms": 1715
169
+ },
170
+ "unique_inputs": 7169,
171
+ "unique_rows": 8318
172
+ }
173
+ },
174
+ "strategy_ids": [
175
+ "base_conversion:decomposition",
176
+ "base_conversion:repeated-division",
177
+ "base_conversion:via-binary",
178
+ "grid_pathfinding:alternating",
179
+ "grid_pathfinding:down-first",
180
+ "grid_pathfinding:right-first",
181
+ "linear_equation_solving:divide-then-subtract",
182
+ "linear_equation_solving:inverse-ops",
183
+ "linear_equation_solving:subtract-then-divide",
184
+ "list_summation:left-to-right",
185
+ "list_summation:pairwise",
186
+ "list_summation:right-to-left",
187
+ "multidigit_addition:left-to-right-partials",
188
+ "multidigit_addition:right-to-left-carry",
189
+ "multidigit_addition:rounding-decomposition",
190
+ "sorting_algorithms:bubble-sort",
191
+ "sorting_algorithms:heap-sort",
192
+ "sorting_algorithms:insertion-sort",
193
+ "sorting_algorithms:merge-sort",
194
+ "sorting_algorithms:selection-sort"
195
+ ]
196
+ }