Tiny Recursive Message Passing
Organizations: Relational Intelligence, Inc · Vienna University of Technology
Abstract
Message passing neural networks have shown remarkable performance in algorithmic and constraint reasoning, due to their ability to encode the structure of the task directly in the architecture. Recent work has shown that better results can be achieved using recursive transformers trained with deep supervision and truncated recursions, which make extremely deep loops stable to train, and equipped with test-time procedures such as discrete deduction lattices. In this work, we apply the same procedures to message passing networks, and show that the two ingredients are complementary, and lead to parameter efficient models: we obtain about test accuracy on Sudoku-Extreme with a model of k parameters that trains in about minutes on an H100, or in hours on a CPU. We further show that the cost of truncating gradients grows with the number of rounds information needs to cross the graph, making the choice of wiring a trade-off between robustness to truncation and transfer across problem sizes. We conclude by showing that our models transfer zero-shot to larger instances than those seen during training, outperforming popular neural baselines on N-queens and Boolean satisfiability with a fraction of their parameters.
Figures & tables
| Peer Graph no Lattice (32k) | Lattice (<24k) | Baselines (32k) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Dataset | Single Pass | Noisy Single | best-of- | Peer graph | Factor graph | LDT | Graph-LDT | RRN | SE-RRN |
| Sudoku-Extreme | |||||||||
| Maze-Unique | n.a. | ||||||||
| G4SATBench | RandCSPBench | ||||||||
| Easy | Medium | Hard | |||||||
| Model | Params | SR | 3-SAT | SR | 3-SAT | SR | 3-SAT | 3-SAT | 4-SAT |
| NeuroSAT | k | ||||||||
| GGNN | k | – | – | – | – | ||||
| QuerySAT | k | – | – | – | – | – | – | ||
| Ours, ACT ( ) | k | ||||||||
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Task and wiring | Budget | Widths | Parameters |
|---|---|---|---|
| Sudoku, peer graph | 16k | 16,485 | |
| Sudoku, peer graph | 24k | 23,978 | |
| Sudoku, peer graph | 32k | 32,763 | |
| Sudoku, peer graph, with halting head | 32k | 32,784 | |
| Sudoku, factor graph | 16k | 16,543 | |
| Sudoku, factor graph | 32k | 32,798 |
| Full gradient | Width study | Credit-horizon ablation | ||
| factor graph | peer graph | peer graph | factor graph | |
| Shape | ||||
| Detached cycles | 0 | 11 | , | , |
| Credit horizon | 28 | 5 | 5, 10 | 5, 10 |
| Widths | 6k–32k; 24k: | |||
| Peak learning rate | ||||
| 6k | 9k | 12k | 16k | 24k | 32k | |
|---|---|---|---|---|---|---|
| Peer, , ( ) | ||||||
| FG, , ( ) | – | – | – | – | ||
| Peer, , (full) |
| (one cycle) | (two cycles) | |
|---|---|---|
| Peer graph | 97.5 | 98.3 |
| Factor graph | 85.3 | 95.7 |
| Main recipe | Credit-horizon ladder | Truncation ladder | |
| Shape | , | ||
| Detached cycles | 6 | 8, 6, 3, 0 | , |
| Credit horizon | 24 | 3, 9, 18, 27 | 24, 12 |
| Peak learning rate | |||
| Training steps | 275,000 | 150,000 | 180,000 |
| Board-level halting loss | – | – |
| Accuracy | Escape step | Accuracy | |||||
|---|---|---|---|---|---|---|---|
| 8 | 3 | 15.8 | never | 7 | 12 | 34.4 | |
| 6 | 9 | 25.0 | never | 6 | 24 | 89.6 | |
| 3 | 18 | 41.4 | 64k | 3 | 12 | 31.9 | |
| 0 | 27 | 87.2 | 40k | 2 | 24 | 61.2 | |
| Lattice | ACT | |
| Shape | ||
| Detached cycles | 20 | 10 |
| Credit horizon | 32 | 24 |
| Parameters | 9k–128k; 32k: | 60,720; |
| Optimiser | AdamW, , decay on matrices only | |
| Peak learning rate | ||
| Budget | Steps | Accuracy |
|---|---|---|
| 128k | 10,000 | 99.10 |
| 64k | 12,000 | 99.63 |
| 32k | 15,000 | 99.90 |
| 16k | 20,000 | 98.92 |
| 12k | 25,000 | 99.20 |
| 9k | 25,000 | 99.15 |
| Shape ( ) | 9k | 12k | 16k | 32k |
|---|---|---|---|---|
| , (32) | ||||
| , (16) | ||||
| , (32) |
| Solutions of the board | Train puzzles | Test puzzles | Test orbits | Coverage floor | |
|---|---|---|---|---|---|
| 10 | 724 | 13,442 | 2,372 | 756 | 0.426 |
| 11 | 2,680 | – | 703 | 703 | 0.146 |
| 12 | 14,200 | – | 736 | 736 | 0.037 |
| 13 | 73,712 | – | 777 | 777 | 0.009 |
| 14 | 365,596 | – | 782 | 782 | 0.002 |
| 15 | 2,279,184 | – | 799 | 799 | 0.0005 |
Neural Algorithmic Reasoning
Neural algorithmic reasoning studies how neural networks can learn, execute, and generalize algorithmic procedures.
See all 45 papers