Algorithmic Language Models with Neurally Compiled Libraries
Not on the map. Why?
Abstract (arXiv)
Important tasks such as reasoning and planning are fundamentally algorithmic, meaning that solving them robustly requires acquiring true reasoning or planning algorithms, rather than shortcuts. Large Language Models lack true algorithmic ability primarily because of the limitations of neural network optimization algorithms, their optimization data and optimization objective, but also due to architectural inexpressivity. To solve this, our paper proposes augmenting LLMs with a library of fundamental operations and sophisticated differentiable programs, so that common algorithms do not need to be learned from scratch. We add memory, registers, basic operations, and adaptive recurrence to a transformer architecture built on LLaMA3. Then, we define a method for directly compiling algorithms into a differentiable starting library, which is used natively and propagates gradients for optimization. In this preliminary study, we explore the feasability of augmenting LLaMA3 with a differentiable computer, for instance by fine-tuning small transformers on simple algorithmic tasks with variable computational depth.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 37 of its 51 references that are in the map. First posted on arXiv 6 Jul 2024.
Builds on
37 of 51 references.
References · 37
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017Graph Attention Networkscited by 8,854
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2017Deep Setscited by 1,394
- 2021How Attentive are Graph Attention Networks?cited by 818
- 2014Neural Turing Machinescited by 630
- 2018Universal Transformerscited by 613
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
- 2023Augmented Language Models: a Surveycited by 398
- 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
25 more
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2023Looped Transformers as Programmable Computerscited by 224
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2021Thinking Like Transformerscited by 182
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2019Neural Execution of Graph Algorithmscited by 118
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 100
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
- 2022On the Paradox of Learning to Reason from Datacited by 93
- 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 64
- 2022Top-Down Synthesis for Library Learningcited by 57
- 2024Contextual Position Encoding: Learning to Count What's Importantcited by 53
- 2024The Elements of Differentiable Programmingcited by 41
- 2023Learning Transformer Programscited by 40
- 2018HOUDINI: Lifelong Learning as Program Synthesiscited by 38
- 2020Hierarchical Message-Passing Graph Neural Networkscited by 21
- 2016TerpreT: A Probabilistic Programming Language for Program Inductioncited by 12
- 2023Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networkscited by 12
- 2024Transformers meet Neural Algorithmic Reasonerscited by 12
- 2018Implementing Neural Turing Machinescited by 4
- 2016Adaptive Neural Compilationcited by 3
- 2024Verified Neural Compressed Sensingcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.