Reproduce “Neural Arithmetic Logic Units” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Andrew Trask, Felix Hill, Scott Reed, Jack Rae, Chris Dyer, Phil Blunsom

Neural Arithmetic Logic Units (NALUs) are introduced as a neural network module that allows models to systematically learn and extrapolate arithmetic operations on numerical quantities. This architectural design enables robust generalization to values outside the training distribution, addressing a historical limitation of neural networks in numerical reasoning.

Key insights

  • Incorporating strong architectural inductive biases into neural network modules, particularly through constrained weight parameterizations and single-neuron representations, can enable systematic numerical generalization.
  • Operating a NAC in log-space effectively converts multiplication and division into addition and subtraction, allowing a unified mechanism to handle a broader range of arithmetic operations.
  • Differentiable gating mechanisms can be effectively used to select between different internal computational pathways (e.g., additive vs. multiplicative), allowing end-to-end learning of complex arithmetic functions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.