A Neural Rewriting System to Solve Algorithmic Problems
Not on the map. Why?
Abstract (arXiv)
Modern neural network architectures still struggle to learn algorithmic procedures that require to systematically apply compositional rules to solve out-of-distribution problem instances. In this work, we focus on formula simplification problems, a class of synthetic benchmarks used to study the systematic generalization capabilities of neural architectures. We propose a modular architecture designed to learn a general procedure for solving nested mathematical formulas by only relying on a minimal set of training examples. Inspired by rewriting systems, a classic framework in symbolic artificial intelligence, we include in the architecture three specialized and interacting modules: the Selector, trained to identify solvable sub-expressions; the Solver, mapping sub-expressions to their values; and the Combiner, replacing sub-expressions in the original formula with the solution provided by the Solver. We benchmark our system against the Neural Data Router, a recent model specialized for systematic generalization, and a state-of-the-art large language model (GPT-4) probed with advanced prompting strategies. We demonstrate that our approach achieves a higher degree of out-of-distribution generalization compared to these alternative approaches on three different types of formula simplification problems, and we discuss its limitations by analyzing its failures.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 27 Feb 2024.
Builds on
23 of 32 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2016HyperNetworkscited by 1,003
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2018Learning to Perform Local Rewriting for Combinatorial Optimizationcited by 183
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
11 more
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
- 2022Is a Modular Architecture Enough?cited by 35
- 2022Systematic Generalization and Emergent Structures in Transformers Trained on Structured Taskscited by 19
- 2023Can neural networks do arithmetic? A survey on the elementary numerical skills of state-of-the-art deep learning modelscited by 18
- 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
- 2021Analyzing the Nuances of Transformers' Polynomial Simplification Abilitiescited by 9
- 2017Learning of Human-like Algebraic Reasoning Using Deep Feedforward Neural Networkscited by 3
Built on by
Citing papers per year: 2025: 2.
2 papers.