Algorithmic Language Models with Neurally Compiled Libraries

Lucas Saldyt, Subbarao Kambhampati
7/6/2024
cs.AIcs.CLcs.PL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{saldyt2024algorithmic,
  title  = {Algorithmic Language Models with Neurally Compiled Libraries},
  author = {Lucas Saldyt and Subbarao Kambhampati},
  year   = {2024},
  eprint = {2407.04899},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04899v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.04899.svg)](https://codeofpaper.com/paper/2407.04899)

Discussion