Learning neuro-symbolic convergent term rewriting systems
Not on the map. Why?
Abstract (arXiv)
Building neural systems that can learn to execute symbolic algorithms is a challenging open problem in artificial intelligence, especially when aiming for strong generalization and out-of-distribution performance. In this work, we introduce a general framework for learning convergent term rewriting systems using a neuro-symbolic architecture inspired by the rewriting algorithm itself. We present two modular implementations of such architecture: the Neural Rewriting System (NRS) and the Fast Neural Rewriting System (FastNRS). As a result of algorithmic-inspired design and key architectural elements, both models can generalize to out-of-distribution instances, with FastNRS offering significant improvements in terms of memory efficiency, training speed, and inference time. We evaluate both architectures on four tasks involving the simplification of mathematical formulas and further demonstrate their versatility in a multi-domain learning scenario, where a single model is trained to solve multiple types of problems simultaneously. The proposed system significantly outperforms two strong neural baselines: the Neural Data Router, a recent transformer variant specifically designed to solve algorithmic problems, and GPT-4o, one of the most powerful general-purpose large-language models. Moreover, our system matches or outperforms the latest o1-preview model from OpenAI that excels in reasoning benchmarks.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 37 of its 53 references that are in the map. First posted on arXiv 25 Jul 2025.
Builds on
37 of 53 references.
References · 37
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2015Pointer Networkscited by 895
- 2023Muse: Text-To-Image Generation via Masked Generative Transformerscited by 648
- 2014Neural Turing Machinescited by 644
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
25 more
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 335
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
- 2019Deep Learning for Symbolic Mathematicscited by 270
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2022Exploring Length Generalization in Large Language Modelscited by 206
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2018Learning to Perform Local Rewriting for Combinatorial Optimizationcited by 185
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 129
- 2019Neural Execution of Graph Algorithmscited by 121
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 117
- 2021Neural Algorithmic Reasoningcited by 94
- 2021Towards a Theoretical Framework of Out-of-Distribution Generalizationcited by 94
- 2023LLMCarbon: Modeling the end-to-end Carbon Footprint of Large Language Modelscited by 72
- 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
- 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
- 2023Mathematics, word problems, common sense, and artificial intelligencecited by 12
- 2021Analyzing the Nuances of Transformers' Polynomial Simplification Abilitiescited by 9
- 2024Benchmarking GPT-4 on Algorithmic Problems: A Systematic Evaluation of Prompting Strategiescited by 9
- 2022Transformers discover an elementary calculation system exploiting local attention and grid-like problem representationcited by 7
- 2021Iterative Decoding for Compositional Generalization in Transformerscited by 6
- 2017Learning of Human-like Algebraic Reasoning Using Deep Feedforward Neural Networkscited by 3
- 2022Recursive Decoding: A Situated Cognition Approach to Compositional Generation in Grounded Language Understandingcited by 3
- 2024A Neural Rewriting System to Solve Algorithmic Problemscited by 2
Built on by
Not cited yet.