Gradient-Based Program Synthesis with Neurally Interpreted Languages
Not on the map. Why?
Abstract (arXiv)
A central challenge in program induction has long been the trade-off between symbolic and neural approaches. Symbolic methods offer compositional generalisation and data efficiency, yet their scalability is constrained by formalisms such as domain-specific languages (DSLs), which are labour-intensive to create and may not transfer to new domains. In contrast, neural networks flexibly learn from data but tend to generalise poorly in compositional and out-of-distribution settings. We bridge this divide with an instance of a Latent Adaptation Network architecture named Neural Language Interpreter (NLI), which learns its own discrete, symbolic-like programming language end-to-end. NLI autonomously discovers a vocabulary of primitive operations and uses a novel differentiable neural executor to interpret variable-length sequences of these primitives. This allows NLI to represent programs that are not bound to a constant number of computation steps, enabling it to solve more complex problems than those seen during training. To make these discrete, compositional program structures amenable to gradient-based optimisation, we employ the Gumbel-Softmax relaxation, enabling the entire model to be trained end-to-end. Crucially, this same differentiability enables powerful test-time adaptation. At inference, NLI's program inductor provides an initial program guess. This guess is then refined via gradient descent through the neural executor, enabling efficient search for the neural program that best explains the given data. We demonstrate that NLI outperforms in-context learning, test-time training, and continuous latent program networks on tasks that require combinatorial generalisation and rapid adaptation to unseen tasks. Our results establish a new path toward models that combine the compositionality of discrete languages with the gradient-based search and end-to-end learning of neural networks.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 21 of its 30 references that are in the map. First posted on arXiv 20 Apr 2026.
Builds on
21 of 30 references.
References · 21
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2017Neural Discrete Representation Learningcited by 4,712
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2018Recurrent World Models Facilitate Policy Evolutioncited by 785
- 2018Neural Processescited by 311
- 2016DeepCoder: Learning to Write Programscited by 149
- 2015Neural Programmer-Interpreterscited by 101
- 2023Straightening Out the Straight-Through Estimator: Overcoming Optimization Challenges in Vector Quantized Networkscited by 82
- 2019Linguistic generalization and compositionality in modern artificial neural networkscited by 58
- 2020Robust Training of Vector Quantized Bottleneck Modelscited by 54
- 2017Making Neural Programming Architectures Generalize via Recursioncited by 35
9 more
- 2018Automatically Composing Representation Transformations as a Means for Generalizationcited by 35
- 2020BUSTLE: Bottom-Up Program Synthesis Through Learning-Guided Explorationcited by 30
- 2017Neural Program Meta-Inductioncited by 23
- 2024Searching Latent Program Spacescited by 20
- 2020Just-in-Time Learning for Bottom-Up Enumerative Synthesiscited by 18
- 2020Latent Programmer: Discrete Latent Codes for Program Synthesiscited by 18
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2023Program Synthesis with Best-First Bottom-Up Searchcited by 7
- 2025Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spacescited by 4
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Learning to Theorize the World from Observationcited by 2
- 2026Latent Programming Horizons in Coding Agentscited by 1
- 2026Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpretercited by 0
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learningcited by 0
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Executioncited by 0
- 2026A Symbolic Neural CPU for Quantization-Simulated Writeback and Interpretable Program Execution10 Jul 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2026Differentiate the Evaluator, Not the Program: An Efficient Runtime Representation for Neuro-Symbolic Learning3 Jul 2026
- 2026Compile Once, Differentiate Everywhere: A Differentiable Meta-Circular Interpreter7 Jun 2026
- 2026Learning to Theorize the World from Observation5 May 2026