task_name stringclasses 6
values | strategy_id stringclasses 20
values | input_text stringlengths 6 26 | reasoning_trace stringlengths 11 152 |
|---|---|---|---|
multidigit_addition | multidigit_addition:left-to-right-partials | 560+342 | p100:500+300=800 ; p10:60+40=100 ; p1:0+2=2 ; sum=800+100+2=902 |
sorting_algorithms | sorting_algorithms:bubble-sort | 0, 7, 6, 1, 9 | [0,6,7,1,9] ; [0,6,1,7,9] ; [0,1,6,7,9] |
base_conversion | base_conversion:via-binary | n=139,base=8 | BINLEN:8 ; CHUNK:0:2 ; CHUNK:1:1 ; CHUNK:2:3 ; OUT:213 |
multidigit_addition | multidigit_addition:right-to-left-carry | 834+703 | d2:4+3+0=7→w7,c0 ; d1:3+0+0=3→w3,c0 ; d0:8+7+0=15→w5,c1 ; sum=1537 |
list_summation | list_summation:right-to-left | 8, 5, 0, 7 | 0+7=7 ; 5+7=12 ; 8+12=20 |
base_conversion | base_conversion:decomposition | n=45,base=2 | TERM:1*2^5=32 ; TERM:0*2^4=0 ; TERM:1*2^3=8 ; TERM:1*2^2=4 ; TERM:0*2^1=0 ; TERM:1*2^0=1 ; OUT:101101 |
multidigit_addition | multidigit_addition:right-to-left-carry | 587+172 | d2:7+2+0=9→w9,c0 ; d1:8+7+0=15→w5,c1 ; d0:5+1+1=7→w7,c0 ; sum=759 |
sorting_algorithms | sorting_algorithms:insertion-sort | 1, 8, 6, 0, 2 | [1,8,6,0,2] ; [1,6,8,0,2] ; [0,1,6,8,2] ; [0,1,2,6,8] |
sorting_algorithms | sorting_algorithms:merge-sort | 4, 8, 3, 2, 9 | [4,8,2,3,9] ; [2,3,4,8,9] |
linear_equation_solving | linear_equation_solving:inverse-ops | 7x-14=14 | 7x-14=14 ; x=(14--14)/7 ; x=28/7 ; x=4 |
multidigit_addition | multidigit_addition:right-to-left-carry | 621+749 | d2:1+9+0=10→w0,c1 ; d1:2+4+1=7→w7,c0 ; d0:6+7+0=13→w3,c1 ; sum=1370 |
multidigit_addition | multidigit_addition:left-to-right-partials | 437+379 | p100:400+300=700 ; p10:30+70=100 ; p1:7+9=16 ; sum=700+100+16=816 |
grid_pathfinding | grid_pathfinding:down-first | grid=6 ; S=(3,4) ; G=(4,5) | D:(4,4) ; R:(4,5) |
multidigit_addition | multidigit_addition:left-to-right-partials | 422+705 | p100:400+700=1100 ; p10:20+0=20 ; p1:2+5=7 ; sum=1100+20+7=1127 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 4x+8=24 | 4x+8=24 ; 4x=16 ; x=4 |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 8x-24=-40 | 8x-24=-40 ; x+-3=-5 ; x=-5--3 ; x=-2 |
multidigit_addition | multidigit_addition:right-to-left-carry | 304+742 | d2:4+2+0=6→w6,c0 ; d1:0+4+0=4→w4,c0 ; d0:3+7+0=10→w0,c1 ; sum=1046 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 2x+12=8 | 2x+12=8 ; 2x=-4 ; x=-2 |
grid_pathfinding | grid_pathfinding:alternating | grid=6 ; S=(1,1) ; G=(5,5) | R:(1,2) ; D:(2,2) ; R:(2,3) ; D:(3,3) ; R:(3,4) ; D:(4,4) ; R:(4,5) ; D:(5,5) |
list_summation | list_summation:left-to-right | 6, 3, 5, 1 | 6+3=9 ; 9+5=14 ; 14+1=15 |
multidigit_addition | multidigit_addition:left-to-right-partials | 905+816 | p100:900+800=1700 ; p10:0+10=10 ; p1:5+6=11 ; sum=1700+10+11=1721 |
base_conversion | base_conversion:repeated-division | n=196,base=2 | DIV:196/2=98,r:0 ; DIV:98/2=49,r:0 ; DIV:49/2=24,r:1 ; DIV:24/2=12,r:0 ; DIV:12/2=6,r:0 ; DIV:6/2=3,r:0 ; DIV:3/2=1,r:1 ; DIV:1/2=0,r:1 ; OUT:11000100 |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 9x+72=18 | 9x+72=18 ; x+8=2 ; x=2-8 ; x=-6 |
list_summation | list_summation:right-to-left | 5, 8, 2, 9 | 2+9=11 ; 8+11=19 ; 5+19=24 |
base_conversion | base_conversion:decomposition | n=51,base=16 | TERM:3*16^1=48 ; TERM:3*16^0=3 ; OUT:33 |
multidigit_addition | multidigit_addition:right-to-left-carry | 428+672 | d2:8+2+0=10→w0,c1 ; d1:2+7+1=10→w0,c1 ; d0:4+6+1=11→w1,c1 ; sum=1100 |
list_summation | list_summation:right-to-left | 6, 7, 9, 4 | 9+4=13 ; 7+13=20 ; 6+20=26 |
grid_pathfinding | grid_pathfinding:down-first | grid=6 ; S=(4,0) ; G=(5,3) | D:(5,0) ; R:(5,1) ; R:(5,2) ; R:(5,3) |
list_summation | list_summation:right-to-left | 9, 6, 3, 9 | 3+9=12 ; 6+12=18 ; 9+18=27 |
linear_equation_solving | linear_equation_solving:inverse-ops | 2x+12=10 | 2x+12=10 ; x=(10-12)/2 ; x=-2/2 ; x=-1 |
base_conversion | base_conversion:via-binary | n=127,base=4 | BINLEN:7 ; CHUNK:0:1 ; CHUNK:1:3 ; CHUNK:2:3 ; CHUNK:3:3 ; OUT:1333 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 8x-16=-80 | 8x-16=-80 ; 8x=-64 ; x=-8 |
sorting_algorithms | sorting_algorithms:merge-sort | 8, 6, 7, 1, 4 | [6,8,7,1,4] ; [6,8,1,7,4] ; [1,6,7,8,4] ; [1,4,6,7,8] |
multidigit_addition | multidigit_addition:rounding-decomposition | 971+884 | round:980+884=1864 ; adjust:1864-9=1855 ; sum=1855 |
list_summation | list_summation:left-to-right | 8, 0, 9, 8 | 8+0=8 ; 8+9=17 ; 17+8=25 |
multidigit_addition | multidigit_addition:left-to-right-partials | 233+565 | p100:200+500=700 ; p10:30+60=90 ; p1:3+5=8 ; sum=700+90+8=798 |
multidigit_addition | multidigit_addition:left-to-right-partials | 900+445 | p100:900+400=1300 ; p10:0+40=40 ; p1:0+5=5 ; sum=1300+40+5=1345 |
base_conversion | base_conversion:repeated-division | n=123,base=4 | DIV:123/4=30,r:3 ; DIV:30/4=7,r:2 ; DIV:7/4=1,r:3 ; DIV:1/4=0,r:1 ; OUT:1323 |
sorting_algorithms | sorting_algorithms:heap-sort | 8, 4, 0, 2, 7 | [8,7,0,2,4] ; [4,7,0,2,8] ; [7,4,0,2,8] ; [2,4,0,7,8] ; [4,2,0,7,8] ; [0,2,4,7,8] ; [2,0,4,7,8] ; [0,2,4,7,8] |
list_summation | list_summation:pairwise | 6, 0, 8, 7 | 6+0=6 ; 8+7=15 ; 6+15=21 |
sorting_algorithms | sorting_algorithms:merge-sort | 0, 6, 7, 9, 3 | [0,3,6,7,9] |
linear_equation_solving | linear_equation_solving:inverse-ops | 9x-72=-108 | 9x-72=-108 ; x=(-108--72)/9 ; x=-36/9 ; x=-4 |
grid_pathfinding | grid_pathfinding:alternating | grid=6 ; S=(3,0) ; G=(5,2) | R:(3,1) ; D:(4,1) ; R:(4,2) ; D:(5,2) |
sorting_algorithms | sorting_algorithms:insertion-sort | 8, 1, 5, 7, 6 | [1,8,5,7,6] ; [1,5,8,7,6] ; [1,5,7,8,6] ; [1,5,6,7,8] |
multidigit_addition | multidigit_addition:right-to-left-carry | 303+212 | d2:3+2+0=5→w5,c0 ; d1:0+1+0=1→w1,c0 ; d0:3+2+0=5→w5,c0 ; sum=515 |
list_summation | list_summation:pairwise | 2, 8, 5, 8 | 2+8=10 ; 5+8=13 ; 10+13=23 |
linear_equation_solving | linear_equation_solving:inverse-ops | 8x+8=-56 | 8x+8=-56 ; x=(-56-8)/8 ; x=-64/8 ; x=-8 |
grid_pathfinding | grid_pathfinding:right-first | grid=6 ; S=(2,2) ; G=(4,5) | R:(2,3) ; R:(2,4) ; R:(2,5) ; D:(3,5) ; D:(4,5) |
base_conversion | base_conversion:via-binary | n=182,base=16 | BINLEN:8 ; CHUNK:0:11 ; CHUNK:1:6 ; OUT:B6 |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 2x-10=-8 | 2x-10=-8 ; x+-5=-4 ; x=-4--5 ; x=1 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 8x-56=8 | 8x-56=8 ; 8x=64 ; x=8 |
base_conversion | base_conversion:via-binary | n=11,base=16 | BINLEN:4 ; CHUNK:0:11 ; OUT:B |
multidigit_addition | multidigit_addition:right-to-left-carry | 634+840 | d2:4+0+0=4→w4,c0 ; d1:3+4+0=7→w7,c0 ; d0:6+8+0=14→w4,c1 ; sum=1474 |
base_conversion | base_conversion:via-binary | n=220,base=16 | BINLEN:8 ; CHUNK:0:13 ; CHUNK:1:12 ; OUT:DC |
list_summation | list_summation:left-to-right | 1, 3, 1, 0 | 1+3=4 ; 4+1=5 ; 5+0=5 |
sorting_algorithms | sorting_algorithms:merge-sort | 1, 7, 3, 6, 9 | [1,3,6,7,9] |
multidigit_addition | multidigit_addition:left-to-right-partials | 153+528 | p100:100+500=600 ; p10:50+20=70 ; p1:3+8=11 ; sum=600+70+11=681 |
grid_pathfinding | grid_pathfinding:down-first | grid=6 ; S=(2,1) ; G=(4,3) | D:(3,1) ; D:(4,1) ; R:(4,2) ; R:(4,3) |
multidigit_addition | multidigit_addition:rounding-decomposition | 798+107 | round:800+107=907 ; adjust:907-2=905 ; sum=905 |
sorting_algorithms | sorting_algorithms:heap-sort | 5, 8, 3, 6, 1 | [8,5,3,6,1] ; [8,6,3,5,1] ; [1,6,3,5,8] ; [6,1,3,5,8] ; [6,5,3,1,8] ; [1,5,3,6,8] ; [5,1,3,6,8] ; [3,1,5,6,8] ; [1,3,5,6,8] |
linear_equation_solving | linear_equation_solving:inverse-ops | 7x-56=-77 | 7x-56=-77 ; x=(-77--56)/7 ; x=-21/7 ; x=-3 |
sorting_algorithms | sorting_algorithms:selection-sort | 5, 9, 1, 2, 6 | [1,9,5,2,6] ; [1,2,5,9,6] ; [1,2,5,9,6] ; [1,2,5,6,9] |
multidigit_addition | multidigit_addition:rounding-decomposition | 665+874 | round:670+874=1544 ; adjust:1544-5=1539 ; sum=1539 |
multidigit_addition | multidigit_addition:right-to-left-carry | 606+227 | d2:6+7+0=13→w3,c1 ; d1:0+2+1=3→w3,c0 ; d0:6+2+0=8→w8,c0 ; sum=833 |
list_summation | list_summation:pairwise | 0, 7, 8, 1 | 0+7=7 ; 8+1=9 ; 7+9=16 |
base_conversion | base_conversion:via-binary | n=228,base=16 | BINLEN:8 ; CHUNK:0:14 ; CHUNK:1:4 ; OUT:E4 |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 7x+35=42 | 7x+35=42 ; x+5=6 ; x=6-5 ; x=1 |
sorting_algorithms | sorting_algorithms:merge-sort | 0, 5, 3, 2, 4 | [0,5,2,3,4] ; [0,2,3,5,4] ; [0,2,3,4,5] |
grid_pathfinding | grid_pathfinding:right-first | grid=6 ; S=(2,3) ; G=(5,5) | R:(2,4) ; R:(2,5) ; D:(3,5) ; D:(4,5) ; D:(5,5) |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 9x+54=27 | 9x+54=27 ; x+6=3 ; x=3-6 ; x=-3 |
sorting_algorithms | sorting_algorithms:selection-sort | 4, 6, 5, 1, 9 | [1,6,5,4,9] ; [1,4,5,6,9] ; [1,4,5,6,9] ; [1,4,5,6,9] |
list_summation | list_summation:left-to-right | 5, 4, 5, 7 | 5+4=9 ; 9+5=14 ; 14+7=21 |
sorting_algorithms | sorting_algorithms:bubble-sort | 9, 7, 4, 2, 0 | [7,9,4,2,0] ; [7,4,9,2,0] ; [7,4,2,9,0] ; [7,4,2,0,9] ; [4,7,2,0,9] ; [4,2,7,0,9] ; [4,2,0,7,9] ; [2,4,0,7,9] ; [2,0,4,7,9] ; [0,2,4,7,9] |
grid_pathfinding | grid_pathfinding:alternating | grid=6 ; S=(4,1) ; G=(5,3) | R:(4,2) ; D:(5,2) ; R:(5,3) |
linear_equation_solving | linear_equation_solving:inverse-ops | 3x+24=39 | 3x+24=39 ; x=(39-24)/3 ; x=15/3 ; x=5 |
multidigit_addition | multidigit_addition:right-to-left-carry | 214+634 | d2:4+4+0=8→w8,c0 ; d1:1+3+0=4→w4,c0 ; d0:2+6+0=8→w8,c0 ; sum=848 |
list_summation | list_summation:left-to-right | 0, 2, 8, 6 | 0+2=2 ; 2+8=10 ; 10+6=16 |
linear_equation_solving | linear_equation_solving:inverse-ops | 5x-30=-75 | 5x-30=-75 ; x=(-75--30)/5 ; x=-45/5 ; x=-9 |
sorting_algorithms | sorting_algorithms:merge-sort | 2, 8, 6, 9, 0 | [2,6,8,9,0] ; [0,2,6,8,9] |
base_conversion | base_conversion:repeated-division | n=24,base=2 | DIV:24/2=12,r:0 ; DIV:12/2=6,r:0 ; DIV:6/2=3,r:0 ; DIV:3/2=1,r:1 ; DIV:1/2=0,r:1 ; OUT:11000 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 3x+18=30 | 3x+18=30 ; 3x=12 ; x=4 |
multidigit_addition | multidigit_addition:left-to-right-partials | 570+989 | p100:500+900=1400 ; p10:70+80=150 ; p1:0+9=9 ; sum=1400+150+9=1559 |
linear_equation_solving | linear_equation_solving:subtract-then-divide | 4x-36=0 | 4x-36=0 ; 4x=36 ; x=9 |
base_conversion | base_conversion:via-binary | n=123,base=16 | BINLEN:7 ; CHUNK:0:7 ; CHUNK:1:11 ; OUT:7B |
base_conversion | base_conversion:via-binary | n=154,base=16 | BINLEN:8 ; CHUNK:0:9 ; CHUNK:1:10 ; OUT:9A |
linear_equation_solving | linear_equation_solving:divide-then-subtract | 9x-72=-9 | 9x-72=-9 ; x+-8=-1 ; x=-1--8 ; x=7 |
linear_equation_solving | linear_equation_solving:inverse-ops | 2x+0=-4 | 2x+0=-4 ; x=(-4-0)/2 ; x=-4/2 ; x=-2 |
sorting_algorithms | sorting_algorithms:merge-sort | 6, 1, 4, 2, 5 | [1,6,4,2,5] ; [1,6,2,4,5] ; [1,2,4,6,5] ; [1,2,4,5,6] |
multidigit_addition | multidigit_addition:right-to-left-carry | 836+737 | d2:6+7+0=13→w3,c1 ; d1:3+3+1=7→w7,c0 ; d0:8+7+0=15→w5,c1 ; sum=1573 |
sorting_algorithms | sorting_algorithms:merge-sort | 6, 9, 5, 7, 2 | [5,6,7,9,2] ; [2,5,6,7,9] |
grid_pathfinding | grid_pathfinding:alternating | grid=6 ; S=(2,2) ; G=(4,4) | R:(2,3) ; D:(3,3) ; R:(3,4) ; D:(4,4) |
list_summation | list_summation:pairwise | 4, 1, 0, 4 | 4+1=5 ; 0+4=4 ; 5+4=9 |
base_conversion | base_conversion:repeated-division | n=218,base=2 | DIV:218/2=109,r:0 ; DIV:109/2=54,r:1 ; DIV:54/2=27,r:0 ; DIV:27/2=13,r:1 ; DIV:13/2=6,r:1 ; DIV:6/2=3,r:0 ; DIV:3/2=1,r:1 ; DIV:1/2=0,r:1 ; OUT:11011010 |
list_summation | list_summation:right-to-left | 7, 2, 8, 0 | 8+0=8 ; 2+8=10 ; 7+10=17 |
multidigit_addition | multidigit_addition:right-to-left-carry | 859+103 | d2:9+3+0=12→w2,c1 ; d1:5+0+1=6→w6,c0 ; d0:8+1+0=9→w9,c0 ; sum=962 |
grid_pathfinding | grid_pathfinding:right-first | grid=6 ; S=(4,3) ; G=(5,5) | R:(4,4) ; R:(4,5) ; D:(5,5) |
grid_pathfinding | grid_pathfinding:down-first | grid=6 ; S=(2,3) ; G=(4,5) | D:(3,3) ; D:(4,3) ; R:(4,4) ; R:(4,5) |
sorting_algorithms | sorting_algorithms:insertion-sort | 1, 8, 7, 9, 6 | [1,8,7,9,6] ; [1,7,8,9,6] ; [1,7,8,9,6] ; [1,6,7,8,9] |
linear_equation_solving | linear_equation_solving:inverse-ops | 2x-4=-12 | 2x-4=-12 ; x=(-12--4)/2 ; x=-8/2 ; x=-4 |
multidigit_addition | multidigit_addition:right-to-left-carry | 507+528 | d2:7+8+0=15→w5,c1 ; d1:0+2+1=3→w3,c0 ; d0:5+5+0=10→w0,c1 ; sum=1035 |
Multi-Strategy Algorithmic Tasks
A synthetic benchmark of parseable algorithmic problems with multiple valid solution strategies for each task. Each example contains a problem,a strategy-specific solution trace, and the strategy used to generate that trace.
The benchmark accompanies Uncovering Latent Reasoning Strategies in Language Models, which studies the problem of recovering mixtures of strategies implicitly represented in language models. The benchmark provides a controlled setting for studying strategy recovery, representation, routing, and controllable generation.
Load the dataset
from datasets import load_dataset
dataset = load_dataset("awni00/multi-strategy-algorithmic-tasks")
example = dataset["train"][0]
The release contains:
| Split | Rows |
|---|---|
train |
1,000,000 |
validation |
10,000 |
test |
10,000 |
Release version: v1.0.0.
To select one task family:
sorting = dataset.filter(
lambda example: example["task_name"] == "sorting_algorithms"
)
Fields
| Field | Description |
|---|---|
task_name |
Algorithmic task family |
strategy_id |
Namespaced strategy sampled to generate the trace |
input_text |
Rendered problem instance |
reasoning_trace |
Complete strategy-specific solution trace, including the final answer |
Example:
{
"task_name": "multidigit_addition",
"strategy_id": "multidigit_addition:left-to-right-partials",
"input_text": "560+342",
"reasoning_trace": (
"p100:500+300=800 ; p10:60+40=100 ; "
"p1:0+2=2 ; sum=800+100+2=902"
),
}
Tasks and strategies
The generator first samples one of the six task families uniformly. It then samples a strategy uniformly within that task family.
| Task | Problem | Strategies |
|---|---|---|
list_summation |
Sum four integers from 0 to 9 | left-to-right, right-to-left, pairwise |
sorting_algorithms |
Sort five integers from 0 to 9 | bubble-sort, selection-sort, insertion-sort, merge-sort, heap-sort |
grid_pathfinding |
Monotone shortest paths on a 6×6 grid | right-first, down-first, alternating |
linear_equation_solving |
Solve integer equations of the form ax+b=c |
subtract-then-divide, divide-then-subtract, inverse-ops |
base_conversion |
Convert integers from 1 to 255 to base 2, 4, 8, or 16 | repeated-division, via-binary, decomposition |
multidigit_addition |
Add two three-digit nonnegative integers | right-to-left-carry, left-to-right-partials, rounding-decomposition |
The public strategy_id includes the task namespace, for example
grid_pathfinding:alternating. There are 20 strategies in total across the six tasks.
strategy_id is the strategy selected by the generator. On some inputs,
multiple strategies produce the same observable trace.
This is most common when a problem requires only a few steps or different
algorithms happen to traverse identical intermediate states.
License
The dataset is released under the Creative Commons Attribution 4.0 International License.
Citation
@misc{altabaa2026uncovering,
title = {Uncovering Latent Reasoning Strategies in Language Models},
author = {Awni Altabaa and John Lafferty},
year = {2026},
eprint = {2607.17674},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2607.17674}
}
Code associated with the paper is available at Awni00/latent-strategies-in-lms.
- Downloads last month
- 48