Compute Time Scaling with Recursive Models for Combinatorial Optimization
Abstract
We propose Tiny Recursive Models for Combinatorial Optimization (\ours{}), a general neural method for combinatorial optimization that scales both depth (how often we recursively invoke our network) and width (how much we sample in parallel). Both are fundamental for combinatorial optimization: hard instances demand a large amount of compute, while a small network is essential to avoid overfitting and capture the algorithmic essence of optimization. In particular, our method consists of a graph-aware tiny recursive model that iterates on a latent state with adaptive halting and needs only a lightweight problem-specific decoder. Compared with previous heatmap-based general neural solvers, it achieves a better balance between solution quality and inference speed on both the Traveling Salesman Problem~(TSP) and the Maximum Independent Set~(MIS) problem, and remains competitive with hybrid methods that combine neural components with heuristics specific to each problem. With the same backbone architecture for both tasks, \ours{} outperforms every diffusion-based solver on TSP from 500 to 10,000 cities at a lower inference cost, and on the standard Erdős--Rényi-[700-800] MIS benchmark it surpasses all neural solvers except those that only work well on MIS. We then explore self-relabeling for self-supervised training. We periodically replace the current set of training labels with the model's own better solutions, as an alternative training signal. Self-relabeling can, while forgoing supervision from near-optimal solutions, still result in on-par quality.
Figures & tables
| Dataset | ER-[700-800] | SATLIB | |||||
|---|---|---|---|---|---|---|---|
| Method | Type | Size | Gap % | s/inst | Size | Gap % | s/inst |
| KaMIS (reference) | heuristic | 44.87 | 0.00 | 24 | 425.96 | 0.00 | 4.5 |
| General-purpose neural solvers (MIS and TSP) | |||||||
| DIMES ( Qiu et al., 2022 ) | RL | 42.06 | 6.26 | – | 423.28 | 0.63 | – |
| DIFUSCO ( Sun and Yang, 2023 ) | S | 41.12 | 8.36 | 7.4 | 425.13 | 0.19 | 1.6 |
| T2T ( Li et al., 2023 ) | S + search | 41.37 | 7.80 | 9.0 | 425.22 | 0.17 | 1.5 |
| Dataset | TSP-500 | TSP-1000 | TSP-10000 | |||||||
| Method | Search | Len. | Gap % | s/inst | Len. | Gap % | s/inst | Len. | Gap % | s/inst |
| Concorde / LKH-3 (reference) | – | 16.55 | 0.00 | 18 | 23.12 | 0.00 | 187 | 71.77 | 0.00 | 1980 |
| General-purpose neural solvers (MIS and TSP) | ||||||||||
| DIMES ( Qiu et al., 2022 ) | MCTS | 16.84 | 1.76 | 67 | 23.69 | 2.46 | 136 | 74.06 | 3.19 | 1219 |
| DIFUSCO ( Sun and Yang, 2023 ) | 2-opt | 16.65 | 0.57 | 2.9 | 23.45 | 1.43 | 12.4 | 73.89 | 2.95 | 266 |
| DIFUSCO | MCTS | 16.63 | 0.46 | 51 | 23.39 | 1.17 | 104 | 73.62 | 2.58 | 1076 |
| Run | Labels | Gap % |
| MIS ER-[700-800] | ||
| Supervised | KaMIS | 2.53 |
| Self-relabel continuation | KaMIS, then own | 1.11 |
| Self-relabel from scratch | Own only | 1.43 |
| TSP-500 | ||
| Supervised | LKH-3 | 0.11 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Hook | MIS | TSP |
|---|---|---|
| Instance | Adjacency | Coordinates |
| Tokens | Linear | Linear |
| Attention bias | Adjacency | None (standard self-attention) |
| Head | Node logits | Bilinear successor logits |
| Decoder | Greedy independent set in score order | Greedy edge insertion by |
| Wrapper | Sequential peeling around the recursion | 2-opt on the tour returned by Solve |
| Parameter | Value |
|---|---|
| Hidden size, heads, blocks | 512, 8, 2 |
| MLP expansion | 4 |
| Recursion , | 3, 6 |
| Prefix tokens | 16 |
| Structure, MIS | Edge-biased attention, 12-step random-walk positional encoding |
| Structure, TSP | Self-attention, coordinate encoding |
| Method | MIS | TSP |
|---|---|---|
| Moco | 0.36M | 0.85M |
| T2T / Fast T2T | 1.34M | 5.33M |
| DIFUSCO / DISCO | – | 5.33M |
| CAM | 0.18M | 5.20M |
| UDC | 4.35M | 1.56M |
| DRHG | – | 2.65M |
| Factor | Variant | Gap % |
| MIS structure injection (one-shot, ) | ||
| 3-layer GNN encoder + self-attention | 20.2 | |
| 6-layer GNN encoder + self-attention | 13.5 | |
| No encoder + edge-biased attention (default) | 10.0 | |
| MIS prefix tokens (same schedule, best checkpoint of the last training window) | ||
| 15.0 | ||