Beyond Interpolation: Extrapolative Reasoning with Reinforcement Learning and Graph Neural Networks
Niccolò Grillo, Andrea Toccaceli, Joël Mathys, Benjamin Estermann, Stefania Fresca, Roger Wattenhofer
TL;DR
This work tackles extrapolative reasoning by modeling logic puzzles as graphs and solving them with graph neural networks in a multi-agent reinforcement learning framework. It introduces a graph-based PUZZLES evaluation setup and systematically compares GNNs against Transformer baselines, as well as recurrent versus state-less variants and different reward schemes. The findings show that explicit relational inductive biases in GNNs enhance both in-distribution performance and out-of-distribution generalization to larger puzzle sizes, while reward design and recurrence impact extrapolation differently across difficulty. Overall, the study provides a principled, graph-centric approach to scalable, generalizable reasoning and offers insights into designing learning-based systems that extrapolate beyond interpolation.
Abstract
Despite incredible progress, many neural architectures fail to properly generalize beyond their training distribution. As such, learning to reason in a correct and generalizable way is one of the current fundamental challenges in machine learning. In this respect, logic puzzles provide a great testbed, as we can fully understand and control the learning environment. Thus, they allow to evaluate performance on previously unseen, larger and more difficult puzzles that follow the same underlying rules. Since traditional approaches often struggle to represent such scalable logical structures, we propose to model these puzzles using a graph-based approach. Then, we investigate the key factors enabling the proposed models to learn generalizable solutions in a reinforcement learning setting. Our study focuses on the impact of the inductive bias of the architecture, different reward systems and the role of recurrent modeling in enabling sequential reasoning. Through extensive experiments, we demonstrate how these elements contribute to successful extrapolation on increasingly complex puzzles.These insights and frameworks offer a systematic way to design learning-based systems capable of generalizable reasoning beyond interpolation.
