mlsanityData to 7 Oct 2026

Algorithmic Language Models with Neurally Compiled Libraries

arXiv 2407.04899 ↗First posted 6 Jul 2024cs.AI cs.CL cs.PLcited by 2

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2017Graph Attention Networkscited by 8,854
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2017Deep Setscited by 1,394
  5. 2021How Attentive are Graph Attention Networks?cited by 818
  6. 2014Neural Turing Machinescited by 630
  7. 2018Universal Transformerscited by 613
  8. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  9. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  10. 2023Augmented Language Models: a Surveycited by 398
  11. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
  12. 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
25 more
  1. 2022Transformers Learn Shortcuts to Automatacited by 260
  2. 2023Looped Transformers as Programmable Computerscited by 224
  3. 2022Neural Networks and the Chomsky Hierarchycited by 214
  4. 2021Thinking Like Transformerscited by 182
  5. 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
  6. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  7. 2019Neural Execution of Graph Algorithmscited by 118
  8. 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
  9. 2024Chain of Thoughtlessness? An Analysis of CoT in Planningcited by 100
  10. 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
  11. 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 97
  12. 2022On the Paradox of Learning to Reason from Datacited by 93
  13. 2022Theseus: A Library for Differentiable Nonlinear Optimizationcited by 64
  14. 2022Top-Down Synthesis for Library Learningcited by 57
  15. 2024Contextual Position Encoding: Learning to Count What's Importantcited by 53
  16. 2024The Elements of Differentiable Programmingcited by 41
  17. 2023Learning Transformer Programscited by 40
  18. 2018HOUDINI: Lifelong Learning as Program Synthesiscited by 38
  19. 2020Hierarchical Message-Passing Graph Neural Networkscited by 21
  20. 2016TerpreT: A Probabilistic Programming Language for Program Inductioncited by 12
  21. 2023Mastering Symbolic Operations: Augmenting Language Models with Compiled Neural Networkscited by 12
  22. 2024Transformers meet Neural Algorithmic Reasonerscited by 12
  23. 2018Implementing Neural Turing Machinescited by 4
  24. 2016Adaptive Neural Compilationcited by 3
  25. 2024Verified Neural Compressed Sensingcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.