paper-with-me

홈 › Papers

Training Transformers as a Universal Computer

2026-04-28 · Ruize Xu, Chenxiao Yang, Yanhong Li, David McAllester arxiv

We demonstrate that a small transformer can learn to execute programs in MicroPy, a simplified yet computationally universal programming language. Given procedure definitions together with an expression to evaluate, the transformer predicts small-step execution using PENCIL scaffolding for space-efficient execution within a bounded context window. After training on randomly generated, meaningless MicroPy programs, the learned transformer generalizes to various human-written programs including bit copying and flipping, binary addition and multiplication, and SAT verification and solving. We note that the trained model can achieve out-of-distribution generalization; i.e., evaluate novel programs from distribution on programs. Since MicroPy can express any computation, our results provide empirical evidence that a standard transformer can be trained to act as a universal computer.

📄 PDF Abstract BibTeX arXiv:2604.25166

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

On the Universality of Transformer Architectures; How Much Attention Is Enough?

2025-12-20 · Amirreza Abbasi, Mohsen Hooshmand arxiv

Transformers are crucial across many AI fields, such as large language models, computer vision, and reinforcement learning. This prominence stems from the architecture's perceived universality and scalability compared to…

Reinforcement Learning

Looped ReLU MLPs May Be All You Need as Practical Programmable Computers

2024-10-12 · YIngyu Liang, Zhizhou Sha, Zhenmei Shi, Zhao Song 외

Previous work has demonstrated that attention mechanisms are Turing complete. More recently, it has been shown that a looped 9-layer Transformer can function as a universal programmable computer. In contrast, the multi-l…

All

Looped Transformers as Programmable Computers

2023-01-30 · Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee 외

We present a framework for using transformer networks as universal computers by programming them with specific weights and placing them in a loop. Our input sequence acts as a punchcard, consisting of instructions and me…

In-Context Learning

Is In-Context Universality Enough? MLPs are Also Universal In-Context

2025-02-05 · Anastasis Kratsios, Takashi Furuya

The success of transformers is often linked to their ability to perform in-context learning. Recent work shows that transformers are universal in context, capable of approximating any real-valued continuous function of a…

In-Context LearningInductive Bias

UniverSat: Resolution- and Modality-Agnostic Transformers for Earth Observation

2026-06-22 · Yohann Perron, Guillaume Astruc, Nicolas Gonthier, Clement Mallet 외 arxiv

Vision Transformers (ViT) dominate computer vision. However, their reliance on rigid patch projectors hinders transfer to Earth Observation (EO), where input modalities, scales, and resolutions vary widely. We introduce …