Four shared blocks of cold attention, each trained on eleven of DeepMind's CLRS-30 algorithms: the tasks whose answers need long chains of steps or exact numbers (DFS, SCC, Topological Sort, MST-Prim, Bellman-Ford, DAG Shortest Paths, MST-Kruskal, Task Scheduling, LCS Length, Optimal BST, Quickselect). Each task keeps only its own input encoder and read-outs; the blocks that run the algorithms are shared. The paper uses them for its study of depth: whether a block keeps doubling its reach on graphs deeper than any it was trained on. Every input of n items is read after ceil(log2 n) + 3 loops (the registered read) and four loops later; the paper's depth figure uses the later read. One seed per block.
Paper: Attention at Absolute Zero (arXiv:2611.11937). Code: github.com/NeoVand/cold-attention (the package witness_clrs/).
Share of answers right (%), read after ceil(log2 n) + 7 loops (the paper's depth read), weight-averaged parameters.
The deeper graphs come from the study's own generator and are in data/.
| Task | graphs | warm |
warm_plus_warm |
warm_plus_cold |
warm_plus_cold_tied |
|---|---|---|---|---|---|
| DFS | official test (64 nodes), 32 graphs | 84.6 | 82.6 | 83.3 | 82.0 |
| DFS | chains of 64 nodes, 32 graphs | 98.0 | 100.0 | 100.0 | 99.9 |
| DFS | graphs of 96 nodes, 8 graphs | 80.2 | 77.0 | 81.9 | 76.4 |
| DFS | graphs of 128 nodes, 8 graphs | 75.8 | 66.5 | 70.4 | 67.1 |
| DFS | graphs of 256 nodes, 4 graphs | 67.0 | 54.9 | 64.3 | 56.8 |
| SCC | official test (64 nodes), 32 graphs | 95.2 | 96.9 | 96.8 | 96.1 |
| SCC | chains of 64 nodes, 32 graphs | 100.0 | 100.0 | 100.0 | 100.0 |
| SCC | deep graphs of 128 nodes, 32 graphs | 100.0 | 100.0 | 100.0 | 100.0 |
| SCC | deep graphs of 256 nodes, 16 graphs | 100.0 | 100.0 | 100.0 | 100.0 |
| SCC | library-style graphs of 128 nodes, 32 graphs | 87.7 | 89.1 | 88.6 | 93.1 |
| Topological Sort | official test (64 nodes), 32 graphs | 99.6 | 99.8 | 99.7 | 100.0 |
| Topological Sort | chains of 64 nodes, 32 graphs | 100.0 | 100.0 | 100.0 | 100.0 |
| Topological Sort | deep graphs of 128 nodes, 32 graphs | 100.0 | 100.0 | 100.0 | 99.9 |
| Topological Sort | deep graphs of 256 nodes, 16 graphs | 99.9 | 99.9 | 99.9 | 99.9 |
| Topological Sort | library-style graphs of 128 nodes, 32 graphs | 99.2 | 99.3 | 99.4 | 99.7 |
| MST-Prim | official test (64 nodes), 32 graphs | 96.3 | 96.7 | 100.0 | 100.0 |
| MST-Prim | chains of 64 nodes, 32 graphs | 57.3 | 87.2 | 81.2 | 98.1 |
| MST-Prim | deep graphs of 128 nodes, 32 graphs | 96.8 | 97.0 | 98.3 | 97.0 |
| MST-Prim | deep graphs of 256 nodes, 16 graphs | 87.0 | 96.5 | 91.2 | 88.3 |
| MST-Prim | library-style graphs of 128 nodes, 32 graphs | 93.4 | 93.7 | 100.0 | 100.0 |
| Bellman-Ford | official test (64 nodes), 32 graphs | 98.3 | 98.8 | 98.6 | 98.6 |
| Bellman-Ford | chains of 64 nodes, 32 graphs | 50.9 | 64.9 | 77.3 | 96.8 |
| Bellman-Ford | deep graphs of 128 nodes, 32 graphs | 84.1 | 96.4 | 98.7 | 99.6 |
| Bellman-Ford | deep graphs of 256 nodes, 16 graphs | 77.3 | 85.5 | 94.2 | 98.2 |
| Bellman-Ford | library-style graphs of 128 nodes, 32 graphs | 96.7 | 97.7 | 97.1 | 97.6 |
| DAG Shortest Paths | official test (64 nodes), 32 graphs | 99.4 | 99.2 | 99.4 | 99.5 |
| DAG Shortest Paths | chains of 64 nodes, 32 graphs | 93.1 | 99.9 | 100.0 | 100.0 |
| MST-Kruskal | official test (64 nodes), 32 graphs | 98.9 | 99.2 | 100.0 | 100.0 |
| MST-Kruskal | chains of 64 nodes, 32 graphs | 98.2 | 98.3 | 100.0 | 100.0 |
warm/)The census block (the general setting: the input's numbers enter through the learned embedding), the same architecture as the 30-task shared release, trained on these eleven tasks only. 146,424 shared parameters. Seed 0. Read: each input read after ceil(log2 n) + 3 loops, with the weight-averaged parameters. Mean test accuracy over the eleven tasks: 93.80.
| Task | test, read | test, 4 loops later | val |
|---|---|---|---|
| DFS | 78.96 | 84.57 | 95.90 |
| SCC | 95.51 | 95.21 | 100.00 |
| Topological Sort | 99.58 | 99.56 | 100.00 |
| MST-Prim | 96.04 | 96.34 | 97.66 |
| Bellman-Ford | 98.34 | 98.29 | 99.22 |
| DAG Shortest Paths | 99.37 | 99.37 | 100.00 |
| MST-Kruskal | 98.75 | 98.86 | 100.00 |
| Task Scheduling | 90.31 | 92.05 | 99.85 |
| LCS Length | 94.62 | 94.96 | 99.85 |
| Optimal BST | 80.89 | 82.69 | 99.08 |
| Quickselect | 99.41 | 99.37 | 100.00 |
Training: 30,000 updates; in every update one batch of 32 inputs from every task, the losses summed; loops ceil(log2 n) + 3 plus a draw from 0 to 3 per update; AdamW (learning rate 0.001, 2,000 warm-up steps, cosine decay to 1%, weight decay 0.01); the released parameters are the mean of the snapshots from half way, one every 1,000 updates. Training inputs: the library's own (dm-clrs 2.0.3), except pools built for the study, not the library's, for Bellman-Ford, MST-Prim, SCC, Topological Sort; a share of 25% of their training inputs at 24, 28, 32 nodes.
warm_plus_warm/)The control for the cold block: a second census block beside the first, with its own embedding and read-outs per task. In every loop the second block runs first and its normalised state reaches the first block's state through a linear map that starts at zero; the second block never reads the first. Each answer adds the two blocks' read-outs. It has 3.4% more parameters in all than the census-plus-cold pair below. 309,360 shared parameters. Seed 0. Read: each input read after ceil(log2 n) + 3 loops, with the weight-averaged parameters. Mean test accuracy over the eleven tasks: 94.53.
| Task | test, read | test, 4 loops later | val |
|---|---|---|---|
| DFS | 77.59 | 82.62 | 96.29 |
| SCC | 96.34 | 96.92 | 100.00 |
| Topological Sort | 99.85 | 99.83 | 100.00 |
| MST-Prim | 96.34 | 96.68 | 98.05 |
| Bellman-Ford | 98.83 | 98.78 | 99.22 |
| DAG Shortest Paths | 99.32 | 99.22 | 99.80 |
| MST-Kruskal | 99.16 | 99.22 | 100.00 |
| Task Scheduling | 91.40 | 92.76 | 99.85 |
| LCS Length | 95.28 | 96.23 | 100.00 |
| Optimal BST | 86.20 | 85.85 | 99.25 |
| Quickselect | 99.56 | 99.71 | 99.95 |
Training: 30,000 updates; in every update one batch of 32 inputs from every task, the losses summed; loops ceil(log2 n) + 3 plus a draw from 0 to 3 per update; AdamW (learning rate 0.001, 2,000 warm-up steps, cosine decay to 1%, weight decay 0.01); the released parameters are the mean of the snapshots from half way, one every 1,000 updates. Training inputs: the library's own (dm-clrs 2.0.3), except pools built for the study, not the library's, for Bellman-Ford, MST-Prim, SCC, Topological Sort; a share of 25% of their training inputs at 24, 28, 32 nodes.
warm_plus_cold/)A cold block beside the census block. The cold block hands on only bits, and keeps one built number per pair, a best bottleneck (max arithmetic) over the edge weights, grown over the witnesses its bits admit; its state is rebuilt from the input and its bits every loop, so once its bits repeat it rests. Every number leaves its input: weights go to the built number's register, positions and other item numbers to three register rows that are only compared. In every loop the cold block runs first and its new bits reach the census state through a linear map that starts at zero; the cold block never reads the census state. Each answer adds the census read-out and the cold read-out. 292,848 shared parameters. Seed 0. Read: each input read after ceil(log2 n) + 3 loops, with the weight-averaged parameters. Mean test accuracy over the eleven tasks: 95.25.
| Task | test, read | test, 4 loops later | val |
|---|---|---|---|
| DFS | 80.18 | 83.30 | 97.85 |
| SCC | 95.95 | 96.83 | 100.00 |
| Topological Sort | 99.51 | 99.73 | 100.00 |
| MST-Prim | 100.00 | 100.00 | 100.00 |
| Bellman-Ford | 98.58 | 98.58 | 99.02 |
| DAG Shortest Paths | 99.46 | 99.37 | 100.00 |
| MST-Kruskal | 100.00 | 100.00 | 100.00 |
| Task Scheduling | 89.55 | 91.70 | 100.00 |
| LCS Length | 94.10 | 94.67 | 99.76 |
| Optimal BST | 90.38 | 89.93 | 99.44 |
| Quickselect | 100.00 | 100.00 | 100.00 |
Training: 30,000 updates; in every update one batch of 32 inputs from every task, the losses summed; loops ceil(log2 n) + 3 plus a draw from 0 to 3 per update; AdamW (learning rate 0.001, 2,000 warm-up steps, cosine decay to 1%, weight decay 0.01); the released parameters are the mean of the snapshots from half way, one every 1,000 updates. Training inputs: the library's own (dm-clrs 2.0.3), except pools built for the study, not the library's, for Bellman-Ford, MST-Prim, SCC, Topological Sort; a share of 25% of their training inputs at 24, 28, 32 nodes.
warm_plus_cold_tied/)The same pair, with the last 8 channels of the cold block's best half asking one learned question of both legs, so that each such channel squares its relation at every loop. 292,848 shared parameters. Seed 0. Read: each input read after ceil(log2 n) + 3 loops, with the weight-averaged parameters. Mean test accuracy over the eleven tasks: 94.81.
| Task | test, read | test, 4 loops later | val |
|---|---|---|---|
| DFS | 76.51 | 81.98 | 97.85 |
| SCC | 96.19 | 96.14 | 100.00 |
| Topological Sort | 99.88 | 99.95 | 100.00 |
| MST-Prim | 99.80 | 100.00 | 100.00 |
| Bellman-Ford | 98.63 | 98.58 | 98.83 |
| DAG Shortest Paths | 99.32 | 99.51 | 100.00 |
| MST-Kruskal | 100.00 | 100.00 | 100.00 |
| Task Scheduling | 89.13 | 92.04 | 100.00 |
| LCS Length | 92.68 | 93.68 | 99.95 |
| Optimal BST | 90.75 | 90.05 | 99.38 |
| Quickselect | 100.00 | 100.00 | 100.00 |
Training: 30,000 updates; in every update one batch of 32 inputs from every task, the losses summed; loops ceil(log2 n) + 3 plus a draw from 0 to 3 per update; AdamW (learning rate 0.001, 2,000 warm-up steps, cosine decay to 1%, weight decay 0.01); the released parameters are the mean of the snapshots from half way, one every 1,000 updates. Training inputs: the library's own (dm-clrs 2.0.3), except pools built for the study, not the library's, for Bellman-Ford, MST-Prim, SCC, Topological Sort; a share of 25% of their training inputs at 24, 28, 32 nodes.
from huggingface_hub import hf_hub_download
from witness_clrs import load_shared_hub, registered_read, score
from witness_clrs.data import load_split
params, cfg = load_shared_hub("mohsenvand/cold-attention-clrs30-eleven", "warm_plus_cold/seed0", "bellman_ford")
d = load_split(hf_hub_download("mohsenvand/cold-attention-clrs30-eleven", "data/bellman_ford/deep256.npz")) # or the official split from witness_clrs.generate
outs = [(o["name"], o["kind"]) for o in cfg["outputs"]]
pred, loops = registered_read(params, cfg["model"], outs, d) # each input after ceil(log2 n) + 3 loops
print(score(pred, d, outs))
The code is the companion repository's witness_clrs package (github.com/NeoVand/cold-attention).
<block>/seed<k>/
model.safetensors the census block (blk/*) and every task's own parameters (task/<task>/*); for two blocks also
the second block (second/blk/*), every task's second embedding and read-outs
(second/task/<task>/*) and the map between them (couple/*); float32
config.json every task's outputs, input features, training sizes and scores (registered read and four
loops later, every split); training; the read rule
reference_predictions.npz every task's predictions on every split after loops 1 to 16 and at the registered read
data/<task>/<split>.npz the deeper evaluation graphs (format of witness_clrs.data.load_split); <split>_depth.npz:
each node's depth in the answer and whether it is reachable
reference_predictions.npz exactly for all four blocks and every task (44 of 44 task models): at the registered read and after every loop from 1 to 16, on the official test and val splits and on every deeper split in data/ (2,561,984 read entries).witness_clrs.evaluate.predict_loops does this for them); compiling all 16 loops as one call rounds a few near ties differently (up to 7 of 135,200 entries of a task).config.json equal those recorded when the blocks were trained, and the depth table's numbers (read four loops later) equal the paper's depth study on Bellman-Ford and Prim's algorithm (32 of 32).One seed per block. The census-plus-census control has 3.4% more parameters in all than the census-plus-cold pair, so the comparison is not at equal size. The deeper graphs are small fixed sets (32 graphs per split; 16 at 256 nodes; for depth-first search 8 at 96 and at 128 nodes and 4 at 256), so one graph moves a score by up to several points.
Apache 2.0.
@misc{mohsenvand2026absolutezero,
title = {Attention at Absolute Zero},
author = {Mohsenvand, Mostafa},
year = {2026},
eprint = {2611.11937},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2611.11937}
}
warm_plus_warm/seed0/model.safetensors 2 MiBwarm_plus_cold/seed0/model.safetensors 2 MiBwarm_plus_cold_tied/seed0/model.safetensors 2 MiBwarm/seed0/reference_predictions.npz 1 MiBwarm_plus_warm/seed0/reference_predictions.npz 1 MiBwarm_plus_cold_tied/seed0/reference_predictions.npz 1 MiBwarm_plus_cold/seed0/reference_predictions.npz 1 MiBwarm/seed0/model.safetensors 1 MiBdata/bellman_ford/lib128.npz 628.6 KiBdata/mst_prim/lib128.npz 627.4 KiBdata/topological_sort/lib128.npz 178.9 KiBdata/strongly_connected_components/lib128.npz 133.9 KiBdata/dfs/dfs256.npz 107.1 KiBdata/mst_prim/deep256.npz 95.9 KiBdata/bellman_ford/deep256.npz 94.2 KiBdata/mst_prim/deep128.npz 81.6 KiBdata/bellman_ford/deep128.npz 80 KiBdata/dfs/dfs128.npz 54.6 KiBdata/topological_sort/deep256.npz 40.1 KiBdata/strongly_connected_components/deep256.npz 39.3 KiBdata/mst_kruskal/chain64.npz 36.4 KiBdata/topological_sort/deep128.npz 32.5 KiBdata/strongly_connected_components/deep128.npz 32.3 KiBdata/dfs/dfs96.npz 31.5 KiBdata/mst_prim/chain64.npz 31.5 KiBdata/bellman_ford/chain64.npz 31.3 KiBdata/dag_shortest_paths/chain64.npz 20.3 KiBdata/topological_sort/deep256_depth.npz 15.7 KiBdata/topological_sort/deep128_depth.npz 14.5 KiBdata/topological_sort/chain64.npz 13.7 KiBdata/dfs/chain64.npz 13.6 KiBdata/strongly_connected_components/chain64.npz 12.4 KiBdata/topological_sort/lib128_depth.npz 10.5 KiBdata/topological_sort/chain64_depth.npz 6.5 KiBdata/mst_prim/deep256_depth.npz 5.7 KiBdata/bellman_ford/deep256_depth.npz 5.6 KiBdata/bellman_ford/deep128_depth.npz 5.1 KiBdata/mst_prim/deep128_depth.npz 5.1 KiBdata/strongly_connected_components/deep128_depth.npz 4.6 KiBdata/strongly_connected_components/deep256_depth.npz 4.3 KiBdata/mst_prim/lib128_depth.npz 3.6 KiBdata/bellman_ford/chain64_depth.npz 2.3 KiBdata/mst_prim/chain64_depth.npz 2.3 KiBdata/bellman_ford/lib128_depth.npz 2.2 KiBdata/dfs/chain64_depth.npz 1.9 KiBdata/dag_shortest_paths/chain64_depth.npz 1.7 KiBdata/strongly_connected_components/chain64_depth.npz 1.6 KiBdata/dfs/dfs256_depth.npz 1.5 KiBdata/dfs/dfs128_depth.npz 1.3 KiBdata/dfs/dfs96_depth.npz 1 KiBdata/strongly_connected_components/lib128_depth.npz 0.6 KiB