← 返回论文检索
ICML 2026PosterAccept (regular)

Universality, Function Composition, and Algorithm Emulation All In-Context

Hong-Yu Chen, Po-Chiao Lin, Maojiang Su, Jerry Yao-Chieh Hu, Han Liu

Northwestern University · National Taiwan University · University of Science and Technology of China · Northwestern

PDF 由论文原始站点提供,PaperCompass 不保存论文文件。

摘要

We study the in-context universal approximation and compositional generalization of softmax Transformers. We prove an in-context universality result: a fixed-weight softmax Transformer approximates a broad class of continuous sequence-to-sequence functions. Building on this universality, we establish a composition theorem: by concatenating prompts associated with simple ``subprograms,'' the same fixed Transformer executes their composition, and thereby synthesizes more complex programs on-the-fly. These results support a principled view of prompts as programs and fixed-weight Transformers as program interpreters. Moreover, we provide a concrete mechanism by which GPT-style models both execute and assemble algorithms in context.