Neural Status Registers
Lukas Faber, Roger Wattenhofer
Abstract
Neural networks excel at approximating functions and finding patterns in complex and challenging domains. Yet, they fail to learn simple but precise computation. Recent work addressed the ability to add, subtract, and multiply numbers but is lacking a component to drive control flow. True computer intelligence should also be able to decide when to perform what operation. In this paper, we introduce the Neural Status Register (NSR), inspired by physical Status Registers. At the heart of the NSR are arithmetic comparisons between inputs. With theoretically principled changes to physical Status Registers, the NSR allows end-to-end differentiation and learns such comparisons reliably. But the NSR also extrapolates: it generalizes to unseen data distributions. For example, the NSR trains on single digits and correctly predicts numbers that are up to 14 orders of magnitude larger. This suggests that the NSR captures the true underlying arithmetic. In follow-up experiments, we use the NSR to control the computation of a downstream arithmetic unit to learn piecewise functions. We can also learn more challenging tasks through redundancy. Finally, we use the NSR to learn an upstream convolutional neural network to compare images of MNIST digits to decide which image contains the larger digit.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- MC-LSTM: Mass-Conserving LSTM cites Neural Arithmetic Units
- MC-LSTM: Mass-Conserving LSTM cites Neural Power Units
- How Neural Networks Extrapolate: From Feedforward to Graph Neural Networks cites Neural Execution of Graph Algorithms
- How Neural Networks Extrapolate: From Feedforward to Graph Neural Networks cites Neural Arithmetic Units
- How Neural Networks Extrapolate: From Feedforward to Graph Neural Networks cites Deep Learning For Symbolic Mathematics
- Towards Scale-Invariant Graph-related Problem Solving by Iterative Homogeneous GNNs cites Neural Execution of Graph Algorithms
- Neural Power Units cites Deep Learning For Symbolic Mathematics
Cited by top-tier papers2
Builds on7
- Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 citations
- How Neural Networks Extrapolate: From Feedforward to Graph Neural NetworksKeyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du et al.ICLR 2021 · 364 citations
- Neural Execution of Graph AlgorithmsPetar Velickovic, Rex Ying, Matilde Padovano, Raia Hadsell et al.ICLR 2020 · 192 citations
- Towards Scale-Invariant Graph-related Problem Solving by Iterative Homogeneous GNNsHao Tang, Zhiao Huang, Jiayuan Gu, Bao-Liang Lu et al.NeurIPS 2020 · 54 citations
- Neural Arithmetic UnitsAndreas Madsen, Alexander Rosenberg JohansenICLR 2020 · 53 citations
Related papers
- Discrete Neural Algorithmic ReasoningGleb Rodionov, Liudmila ProkhorenkovaICML 2025
- Learning to Add, Multiply, and Execute Algorithmic Instructions Exactly with Neural NetworksArtur Back de Luca, George Giapitzakis, Kimon FountoulakisNeurIPS 2025 · 4 citations
- Transformers Can Do Arithmetic with the Right EmbeddingsSean McLeish, Arpit Bansal, Alex Stein, Neel Jain et al.NeurIPS 2024 · 94 citations
- Memorization Capacity of Neural Networks with Conditional ComputationErdem KoyuncuICLR 2023
- Neuromechanical Autoencoders: Learning to Couple Elastic and Neural Network NonlinearityDeniz Oktay, Mehran Mirramezani, Eder Medina, Ryan P. AdamsICLR 2023
