Search papers, labs, and topics across Lattice.
The paper investigates a structural misalignment in autoregressive Transformers arising from residual connections linking activations to the current token while the model is trained to predict the *next* token. Using decoding trajectories and similarity metrics, the authors empirically demonstrate that hidden token representations transition from input-aligned to output-aligned deep within the network. They then propose and validate residual attenuation strategies, implemented as either fixed-layer interventions or learnable gating mechanisms, to mitigate this misalignment.
Transformers suffer from a subtle but significant misalignment: residual connections inadvertently tie information to the *wrong* token, but a simple residual attenuation fix can boost performance.
Large Language Models (LLMs) are trained with next-token prediction, implemented in autoregressive Transformers via causal masking for parallelism. This creates a subtle misalignment: residual connections tie activations to the current token, while supervision targets the next token, potentially propagating mismatched information if the current token is not the most informative for prediction. In this work, we empirically localize this input-output alignment shift in pretrained LLMs, using decoding trajectories over tied embedding spaces and similarity-based metrics. Our experiments reveal that the hidden token representations switch from input alignment to output alignment deep within the network. Motivated by this observation, we propose a lightweight residual-path mitigation based on residual attenuation, implemented either as a fixed-layer intervention or as a learnable gating mechanism. Experiments on multiple benchmarks show that these strategies alleviate the representation misalignment and yield improvements, providing an efficient and general architectural enhancement for autoregressive Transformers.