NeuralSolver: Learning Algorithms For Consistent and Efficient Extrapolation Across General Tasks
Bernardo Esteves, Miguel Vasco, Francisco S. Melo
Abstract
We contribute NeuralSolver, a novel recurrent solver that can efficiently and consistently extrapolate, i.e., learn algorithms from smaller problems (in terms of observation size) and execute those algorithms in large problems. Contrary to previous recurrent solvers, NeuralSolver can be naturally applied in both same-size problems, where the input and output sizes are the same, and in different-size problems, where the size of the input and output differ. To allow for this versatility, we design NeuralSolver with three main components: a recurrent module, that iteratively processes input information at different scales, a processing module, responsible for aggregating the previously processed information, and a curriculum-based training scheme, that improves the extrapolation performance of the method. To evaluate our method we introduce a set of novel different-size tasks and we show that NeuralSolver consistently outperforms the prior state-of-the-art recurrent solvers in extrapolating to larger problems, considering smaller training problems and requiring less parameters than other approaches.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on5
- Decision Transformer: Reinforcement Learning via Sequence ModelingLili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee et al.NeurIPS 2021 · 2,557 citations
- Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent NetworksAvi Schwarzschild, Eitan Borgnia, Arjun Gupta, Furong Huang et al.NeurIPS 2021 · 133 citations
- Elastic Decision TransformerYueh-Hua Wu, Xiaolong Wang, Masashi HamayaNeurIPS 2023 · 96 citations
- End-to-end Algorithm Synthesis with Recurrent Networks: Extrapolation without OverthinkingArpit Bansal, Avi Schwarzschild, Eitan Borgnia, Zeyad Emam et al.NeurIPS 2022 · 54 citations
- Adaptive recurrent vision performs zero-shot computation scaling to unseen difficulty levelsVijay Veerabadran, Srinivas Ravishankar, Yuan Tang, Ritik Raina et al.NeurIPS 2023 · 11 citations
Related papers
- On Logical Extrapolation for Mazes with Recurrent and Implicit NetworksBrandon Knutson, Amandin Chyba Rabeendran, Michael I. Ivanitskiy, Jordan Pettyjohn et al.AAAI 2026 · 7 citations
- Neural TSP Solver with Progressive DistillationDongxiang Zhang, Ziyang Xiao, Yuan Wang, Mingli Song et al.AAAI 2023 · 19 citations
- Learning to Extrapolate to New Tasks: A Relational Approach to Task ExtrapolationAdam Ousherovitch, Yixin WangICML 2026
- From Few to More: Large-Scale Dynamic Multiagent Curriculum LearningWeixun Wang, Tianpei Yang, Yong Liu, Jianye Hao et al.AAAI 2020 · 138 citations
- Neural Algorithmic Reasoning Without Intermediate SupervisionGleb Rodionov, Liudmila ProkhorenkovaNeurIPS 2023 · 20 citations
