On Logical Extrapolation for Mazes with Recurrent and Implicit Networks
Not on the map. Why?
Abstract (arXiv)
Recent work suggests that certain neural network architectures -- particularly recurrent neural networks (RNNs) and implicit neural networks (INNs) -- are capable of logical extrapolation. When trained on easy instances of a task, these networks (henceforth: logical extrapolators) can generalize to more difficult instances. Previous research has hypothesized that logical extrapolators do so by learning a scalable, iterative algorithm for the given task which converges to the solution. We examine this idea more closely in the context of a single task: maze solving. By varying test data along multiple axes -- not just maze size -- we show that models introduced in prior work fail in a variety of ways, some expected and others less so. It remains uncertain whether any of these models has truly learned an algorithm. However, we provide evidence that a certain RNN has approximately learned a form of `deadend-filling'. We show that training these models on more diverse data addresses some failure modes but, paradoxically, does not improve logical extrapolation. We also analyze convergence behavior, and show that models explicitly trained to converge to a fixed point are likely to do so when extrapolating, while models that are not may exhibit more exotic limiting behavior such as limit cycles, even when they correctly solve the problem. Our results (i) show that logical extrapolation is not immune to the problem of goal misgeneralization, and (ii) suggest that analyzing the dynamics of extrapolation may yield insights into designing better logical extrapolators.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 37 of its 66 references that are in the map. First posted on arXiv 3 Oct 2024.
Builds on
37 of 66 references.
References · 37
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2018Universal Transformerscited by 613
- 2019Deep Equilibrium Modelscited by 603
- 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 417
- 2020Multiscale Deep Equilibrium Modelscited by 149
- 2021Deep Equilibrium Architectures for Inverse Problems in Imagingcited by 126
- 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 126
- 2019Implicit Deep Learningcited by 124
- 2021Acquisition of Chess Knowledge in AlphaZerocited by 120
- 2022Goal Misgeneralization: Why Correct Specifications Aren't Enough For Correct Goalscited by 120
- 2019Ripser: efficient computation of Vietoris-Rips persistence barcodescited by 115
25 more
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 108
- 2020Monotone operator equilibrium networkscited by 100
- 2021JFB: Jacobian-Free Backpropagation for Implicit Networkscited by 84
- 2023Evaluating Cognitive Maps and Planning in Large Language Models with CogEvalcited by 77
- 2021Is Attention Better Than Matrix Decomposition?cited by 75
- 2018Reviving and Improving Recurrent Back-Propagationcited by 69
- 2022Deep Equilibrium Optical Flow Estimationcited by 63
- 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Modelscited by 60
- 2021Measuring Robustness in Deep Learning Based Compressive Sensingcited by 53
- 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
- 2020The troublesome kernel -- On hallucinations, no free lunches and the accuracy-stability trade-off in inverse problemscited by 40
- 2022Path Independent Equilibrium Models Can Better Exploit Test-Time Computationcited by 33
- 2024Evidence of Learned Look-Ahead in a Chess-Playing Neural Networkcited by 33
- 2021Representation Matters: Assessing the Importance of Subgroup Allocations in Training Datacited by 31
- 2023A Configurable Library for Generating and Manipulating Maze Datasetscited by 31
- 2023One-step differentiation of iterative algorithmscited by 28
- 2024Dictionary Learning Improves Patch-Free Circuit Discovery in Mechanistic Interpretability: A Case Study on Othello-GPTcited by 27
- 2021SHINE: SHaring the INverse Estimate from the forward pass for bi-level optimization and implicit modelscited by 26
- 2022Online Deep Equilibrium Learning for Regularization by Denoisingcited by 22
- 2023Understanding and Controlling a Maze-Solving Policy Networkcited by 19
- 2021Feasibility-based Fixed Point Networkscited by 17
- 2022Explainable AI via Learning to Optimizecited by 14
- 2021Datasets for Studying Generalization from Easy to Hard Examplescited by 12
- 2023Differentiating Through Integer Linear Programs with Quadratic Regularization and Davis-Yin Splittingcited by 11
- 2017(Quasi)Periodicity Quantification in Video Data, Using Topologycited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 4.
7 papers.
- 2026Think Shallow, Solve Deep: Controlling Recurrent Dynamics for Reliable Test-Time Depthcited by 5
- 2024A Generalization Bound for a Family of Implicit Networkscited by 4
- 2025Path Channels and Plan Extension Kernels: a Mechanistic Description of Planning in a Sokoban RNNcited by 4
- 2025End-to-End Training of High-Dimensional Optimal Control with Implicit Hamiltonians via Jacobian-Free Backpropagationcited by 3
- 2026On the Convergence of Jacobian-Free Backpropagation for Optimal Control Problems with Implicit Hamiltonianscited by 1
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layerscited by 0
- 2026When Recursive Models Finish Computingcited by 0
- 2026When Recursive Models Finish Computing22 Sep 2026
- 2026Think Shallow, Solve Deep: Controlling Recurrent Dynamics for Reliable Test-Time Depth18 Aug 2026
- 2026End-to-End Learning of Safe Optimal Feedback Control in High Dimensions with Control Barrier Function Layers22 Jul 2026
- 2026On the Convergence of Jacobian-Free Backpropagation for Optimal Control Problems with Implicit Hamiltonians31 Jan 2026
- 2025End-to-End Training of High-Dimensional Optimal Control with Implicit Hamiltonians via Jacobian-Free Backpropagation1 Oct 2025
- 2025Path Channels and Plan Extension Kernels: a Mechanistic Description of Planning in a Sokoban RNN11 Jun 2025
- 2024A Generalization Bound for a Family of Implicit Networks9 Oct 2024