High-dimensional layer-state trajectories reveal the internal dynamics of transformer inference
Heng Zhao, Yufei Wang, Ruidian Song, Weisheng Chen
Key points
From the paper's conclusion- Layer order exposes an observable, computable and behaviourally consequential process of transformer inference without establishing a complete theory of LLM dynamics or control of answer correctness.
Abstract
Mechanistic studies of large language models localize function in parameters, attention heads or neurons, but those parts do not specify how one inference unfolds. We treat the ordered layer-state trajectory as the empirical process and test whether layer order defines a measurable computation. Across representative Qwen, Llama and Gemma checkpoints, realized order produced paths 1.60--2.24 times as aligned with their endpoint chord as endpoint-preserving shuffles. The order effect transferred to a lexical task, but was stronger in three random initializations of the same Qwen architecture, identifying an architecture-compatible scaffold rather than a training-specific law. Direct hidden states provided stronger mechanism coordinates than vocabulary readbacks, and a task-defined coordinate made candidate competition computable. After additive interventions failed, local transition actuators selectively controlled internal trajectories across checkpoints. A confidence gate then drove 17 of 87 held-out Qwen closure trajectories across the full-vocabulary top-1 candidate boundary while leaving all 203 non-closure top-1 outputs unchanged. Safety-matched action reassignment performed similarly, locating the gain in selective gating and the bounded actuator family rather than fine-grained dose assignment. Layer order exposes an observable, computable and behaviourally consequential process of transformer inference without establishing a complete theory of LLM dynamics or control of answer correctness.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Sparse Internal Control of Language ModelsarXiv · 2026
- Library of Layers (LoL): Adaptively Ordering Transformer Layers at RuntimearXiv · 2026
- Understanding AI from the Inside: The State of Mechanistic Interpretability for AI SafetyarXiv · 2026
- Written Once, Read Differently How Language Models Own Answers Steer Their Next OnesarXiv · 2026
- Many Perturbations, Shared Failure Dynamics: Tracing Direction-Sensitive Perturbation Influence in Language ModelsarXiv · 2026
- LOCKR: A Hidden-State Trajectory-Guided Planner for Detecting and Repairing Stable-but-Wrong Lock-In in Diffusion Language ModelsarXiv · 2026