arXiv AI

Discovering Interpretable Algorithms by Decompiling Transformers to RASP

arXiv:2602. 08857v2 Announce Type: replace-cross Abstract: Recent work has shown that the computations of Transformers can be simulated in the RASP family of programming languages.

arXiv AI
Oct 31

Towards Training Transformers as a Universal Computer

The paper shows that a small transformer can learn to execute programs written in MicroPy, a simplified yet computationally universal language. By training on randomly generated MicroPy programs, the model learns to predict small‑step execution using PENCIL scaffolding, enabling efficient evaluation within a bounded context window. The transformer generalizes to unseen human‑written programs—including tasks such as bit copying, binary arithmetic, and SAT solving—and even to programs from a different distribution, demonstrating out‑of‑distribution performance.

By Ruize Xu, Chenxiao Yang, Yanhong Li, David McAllester
arXiv AI
Jul 7

On the Ability of Transformers to Verify Plans

arXiv:2603. 19954v2 Announce Type: replace Abstract: Transformers have shown inconsistent success in AI planning tasks, and theoretical understanding of when generalization should be expected has been limited.

By Yash Sarrof, Yupei Du, Katharina Stein, Alexander Koller, Sylvie Thi\'ebaux, Michael Hahn
arXiv Machine Learning
Sep 10

Length Generalization for Transformers via Compression

arXiv:2609.08851v1 Announce Type: new Abstract: Recent advancements in transformer length generalization theory enable us to reliably predict when a transformer can learn to solve a task. In particul...

By Georg Zetzsche, Hongjian Jiang, Andy Yang, Pascal Bergstr\"a{\ss}er, Marco S\"alzer, David Chiang, Anthony W. Lin
arXiv Machine Learning
Jun 2

Length Generalization Bounds for Transformers

arXiv:2603. 02238v2 Announce Type: replace Abstract: Length generalization is a key property of a learning algorithm that enables it to make correct predictions on inputs of any length, given finite training data.

By Andy Yang, Pascal Bergstr\"a{\ss}er, Georg Zetzsche, David Chiang, Anthony W. Lin
arXiv AI
Nov 11

The Shape of a Program: Path Signatures for Trace-to-Program Induction

The paper introduces a method for synthesizing programs from execution traces by treating traces as high‑dimensional rough paths and encoding them with the path signature transform. Experiments on Karel, List, and RASP domains show that the log‑signature encoder outperforms LSTM, Transformer, and Fourier baselines, especially with limited training data, and often produces shorter, valid programs. The approach also reveals redundancy in supervision and yields a more interpretable latent geometry where nearest neighbors lie on the same execution trace.

By Mohamed Ghanem, Bernd Finkbeiner
arXiv Machine Learning
Oct 19

What Accuracy Hides In Learned Transformer Programs

The paper investigates Transformer Programs (TP), a constrained Transformer architecture that outputs readable Python code. It shows that token‑level accuracy can mask incorrect full‑sequence outputs, and that inspecting the generated programs reveals failures missed by standard tests. By using program inspection to guide data augmentation, the authors achieved higher sequence accuracy on several algorithmic tasks, demonstrating the value of program‑level analysis for training TP models.

By Jonathan Lee, Narmeen Oozeer, Philip Quirke