How do Transformers Perform Low-Level Control In-Context?
Ebonye Smith, Aidan Andrews, Phoenix Wilson, Alexis Frias, Ayush Pandey, Gireeja Ranade
Key points
From the paper's conclusion- Here, we identify training techniques that are essential to train Transformers to perform low-level control.
Abstract
One of the remarkable abilities of Transformer-based neural networks is in-context learning. This motivates us to think about "in-context" control. Can we control a system knowing only (1) that it belongs to a particular family of systems and (2) some data on system evolution (provided as the context trajectory) but no specific parameter information? Specifically, we investigate the ability of Transformer-models to perform "in-context" control of unstable, nonlinear dynamical systems, where context consists only of the unforced system dynamics. We leverage a multi-head, GPT-2-style architecture, and we evaluate performance for two classical nonlinear systems -- the cartpole system and the two-link acrobot system, where the system parameters are unknown to the Transformer. We consider a setting where trajectories from an expert controller are available at training time but not at inference time. Here, we identify training techniques that are essential to train Transformers to perform low-level control. Through an analysis over checkpoints, we show that in-context control is possible, and the learned policy performance generally improves as context increases. Furthermore, the Transformer models can generalize to stabilize systems that are out-of-distribution.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Mind Control of LLMs via Closed-Loop Stimulation: Out-of-Distribution RobustnessarXiv · 2026
- Distinct mechanisms underlying in-context learning in transformersPhysical Review X · 2026
- In-Context Learning for System Identification: Probabilistic Formulation, Long-Sequence Handling, and Benchmark ValidationarXiv · 2026
- Learning Changes the World and Then What Was Learned has Changed: Training and Deploying Neural Networks in the Control LooparXiv · 2026
- Generalizable Output Feedback Optimal Control via Transformers Without Explicit State EstimationarXiv · 2026
- Pretraining Latent Information Feedback Transformers with Teacher SupervisionarXiv · 2026