Researchers at Duke University and other institutions have identified a low-dimensional subspace that large language models consistently use during text generation, offering new insights into how AI systems make decisions.

The team developed DecodeShare, a protocol that maps the shared neural pathways active when models generate text, rather than when they process input prompts. Published on arXiv, the research shows this compact subspace plays a crucial role in steering model behavior across different tasks.

Why decode-time matters for AI control

The findings challenge assumptions about when and how language models can be effectively steered. Previous research focused on manipulating models during the "prefill" phase when they process input prompts.

But the Duke-led team found that a shared subspace emerges specifically during the "decode" phase when models generate responses. Disrupting this subspace degraded performance far more than interfering with prefill-derived or random neural pathways.

"Despite its compactness, the shared subspace can serve as a high-leverage causal channel at decode time," the researchers wrote.

The discovery has practical implications for activation steering — techniques used to guide AI behavior by manipulating internal representations. Common steering directions often overlap with this task-general decode channel, the study found.

The research team included 13 authors from Duke University, Carnegie Mellon, and other institutions. Lead author Zishan Shao and colleagues tested their protocol across multiple language models and tasks.

Their experiments showed that evaluating steering vectors during decode-time yields more reliable signals for real-world deployment than prefill-based methods. This could improve techniques for controlling AI systems in production environments.

The researchers have made their code available on GitHub, potentially enabling further research into decode-time model steering and AI safety applications.