Tiny Recursive Message Passing
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, however, shown that better results can be achieved using recursive transformers trained with deep supervision and truncated recursion, which make extremely deep loops stable to train thanks to newly developed procedures such as adaptive halting and discrete deduction lattices. However, these models are tied to a fixed input size, and cannot generalize to inputs larger than those seen during training. In this work, we apply the same procedures to message passing networks, and show that graph structure and recursive training are complementary, leading to parameter-efficient models with strong zero-shot transfer to larger instances. First, we test our method on standard constraint satisfaction problems, where we reach $99\%$ test accuracy on Sudoku-Extreme with a model of $16$k parameters, $50\times$ fewer than the previous best; this model trains in about $10$ minutes on an H100, or in $9$ hours on a CPU. Second, we show that the graph structure allows zero-shot transfer to larger instances on mazes, N-Queens, and achieve state-of-the-art performance among neural methods on Boolean satisfiability.