# How do Transformers Perform Low-Level Control In-Context?

DevFeed: [How do Transformers Perform Low-Level Control In-Context?](<https://devfeed.tech/articles/how-do-transformers-perform-low-level-control-in-context-120596.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.07291>)

Author: Ebonye Smith, Aidan Andrews, Phoenix Wilson, Alexis Frias, Ayush Pandey, Gireeja Ranade

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Transformers](<https://devfeed.tech/topics/transformers.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Robotics](<https://devfeed.tech/topics/robotics.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [context](<https://devfeed.tech/tags/context.md>), [control](<https://devfeed.tech/tags/control.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-sy](<https://devfeed.tech/tags/cs-sy.md>), [eess-sy](<https://devfeed.tech/tags/eess-sy.md>), [learning](<https://devfeed.tech/tags/learning.md>), [low-level](<https://devfeed.tech/tags/low-level.md>), [networks](<https://devfeed.tech/tags/networks.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [performance](<https://devfeed.tech/tags/performance.md>), [policy](<https://devfeed.tech/tags/policy.md>), [system](<https://devfeed.tech/tags/system.md>), [systems](<https://devfeed.tech/tags/systems.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [time](<https://devfeed.tech/tags/time.md>), [train](<https://devfeed.tech/tags/train.md>), [training](<https://devfeed.tech/tags/training.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [transformer-models](<https://devfeed.tech/tags/transformer-models.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

## AI overview

The study reports that Transformers can learn low-level in-context control of unstable nonlinear systems using only unforced system trajectories as context, without knowing system parameters. It evaluates a multi-head GPT-2-style model on cartpole and two-link acrobot, with expert-controller trajectories available during training but not inference. The authors identify essential training techniques and find that policy performance generally improves with more context; models also stabilize some out-of-distribution systems. The supplied abstract does not specify the training techniques or quantify performance.

## Source excerpt

arXiv:2611.07291v1 Announce Type: new 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.