How do Transformers Perform Low-Level Control In-Context?
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 25 of its 38 references that are in the map. Submitted 5 Nov 2026.
Builds on
25 of 38 references.
References · 25
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,582
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,268
- 2022In-context Learning and Induction Headscited by 1,085
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 744
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 656
- 2023Vision-Language Foundation Models as Effective Robot Imitatorscited by 367
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 342
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 326
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 155
13 more
- 2022Prompting Decision Transformer for Few-Shot Policy Generalizationcited by 152
- 2020Toward the Fundamental Limits of Imitation Learningcited by 99
- 2024In-Context Language Learning: Architectures and Algorithmscited by 98
- 2024In-Context Imitation Learning via Next-Token Predictioncited by 83
- 2023How Many Demonstrations Do You Need for In-context Learning?cited by 53
- 2023Prompt a Robot to Walk with Large Language Modelscited by 47
- 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 42
- 2024Transformer-based Model Predictive Control: Trajectory Optimization via Sequence Modelingcited by 18
- 2023Can Transformers Learn Optimal Filtering for Unknown Systems?cited by 17
- 2024Dynamics as Prompts: In-Context Learning for Sim-to-Real System Identificationscited by 13
- 2024InCoRo: In-Context Learning for Robotics Control with Feedback Loopscited by 11
- 2024Decision Transformer as a Foundation Model for Partially Observable Continuous Controlcited by 6
- 2024One controller to rule them allcited by 1
Built on by
Not cited yet.