Transformer Alignment in Large Language Models

Murdock Aubry, Haoming Meng, Anton Sugolov, Vardan Papyan · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities, yet the internal mechanisms governing their success remain largely opaque. While architectural components like attention and feed-forward blocks are well-defined, the collective dynamics of these layers during inference are less understood. Recent research introduces the concept of transformer block coupling, a phenomenon where the internal mathematical transformations (Jacobians) of successive layers align their focus as training progresses. This structural coordination suggests that high-performing LLMs converge toward a simplified, coherent internal dynamical system rather than a collection of disparate transformations.

Methodology: Measuring Internal Coordination

To quantify the interaction between transformer blocks, researchers analyze the "trajectories" of token embeddings as they traverse the network depth. The primary tool for this analysis is Jacobian linearization. For each transformer block, a Jacobian matrix is computed, mapping how infinitesimal changes in the input embedding affect the output.

By applying Singular Value Decomposition (SVD) to these Jacobians, the primary directions of transformation (top singular vectors) are identified. Coupling is then defined as the degree of alignment between these vectors across different layers. High coupling indicates that adjacent layers operate within the same high-dimensional subspace. Additionally, metrics such as the Line-Shape Score (LSS) measure the "straightness" of a token's path, while Expodistance tracks the exponential growth of embedding norms—a hallmark of stable, coordinated dynamics.

Key Findings: The Emergence of Alignment

The study, encompassing over 30 pre-trained LLMs including Llama-3, Mistral, and the Pythia suite, reveals several critical insights:

  1. Coupling as a Learned Property: At initialization, models exhibit near-zero coupling. Coordination is not an architectural default but an emergent property of the training process.
  2. Predictive Power: The strength of block coupling is a robust predictor of downstream benchmark performance ($R^2 = 0.80$), outperforming traditional metrics like total parameter count or embedding dimension.
  3. Trajectory Simplification: As models mature, token trajectories become increasingly linear. Instead of chaotic shifts, tokens follow a directed path toward the final prediction layer.
Figure 1: (Left) Correlation between LLM benchmark scores and coupling strength. (Right) Evolution of normalized coupling across training checkpoints for Pythia 6.9B and 12B models.

Results and Training Dynamics

The evolution of coupling is closely tied to the training duration. In the Pythia 12B model, coupling increases persistently throughout 143,000 training steps, mirroring the logarithmic gains in accuracy. Visually, this is represented by the densification of alignment between layers over time.

Figure 2: Visualizing the evolution of block coupling in Pythia 12B across training checkpoints 1, 4000, and 143000. The increasing density of connections illustrates the emergence of structural alignment.

Quantitative results further support this: trained models exhibit an average LSS of 4.25, significantly lower (more linear) than the 6.54 observed in untrained counterparts. Furthermore, the exponential growth of hidden representation norms with depth only appears after substantial training, suggesting a transition to a "steady-state" dynamical regime.

Conclusion and Future Directions

The discovery of transformer block coupling provides a new lens through which to evaluate and understand LLM performance. It suggests that the "secret" to generalization lies in the model's ability to coordinate its internal layers into a unified transformation pipeline.

While the correlation with performance is strong, future work is needed to establish direct causality—specifically, whether architectural constraints that force coupling can accelerate training or improve efficiency. These insights also open doors for practical applications, such as more effective model merging or "early exiting" strategies during inference, where computation is halted once a token's trajectory has achieved sufficient linearity.

Summary updated

BibTeX
@inproceedings{aubry2025transformer,
  author = {Murdock Aubry and Haoming Meng and Anton Sugolov and Vardan Papyan},
  title = {{Transformer Alignment in Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=kvLenbZZgg},
}
Figure