Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient
George Wang, Jesse Hoogland, Stan van Wingerden, Zach Furman, Daniel Murfet
TL;DR
This work introduces refined local learning coefficients ($rLLC$) to study how data distribution structure shapes internal transformer organization during training, enabling developmental interpretability of attention heads in a two-layer attention-only model. By developing weight-refined ($wrLLC$) and data-refined ($drLLC$) variants, the authors quantify how heads differentiate by function and specialize to data types, respectively, and identify a novel cross-layer multigram circuit arising from head coordination. Empirical results show that wrLLCs align with head types and memorization of multigrams, while drLLCs reveal data-driven specialization (notably code) and a multigram-coordination mechanism across layers. The study connects distributional structure, loss landscape geometry, and learning dynamics to emergent computational structures, offering a principled toolkit for developmental interpretability and guiding future analyses of larger models across diverse data. These findings broaden our understanding of how internal neural architectures develop in response to structured data during training, with potential implications for model auditing and architectural design.
Abstract
We introduce refined variants of the Local Learning Coefficient (LLC), a measure of model complexity grounded in singular learning theory, to study the development of internal structure in transformer language models during training. By applying these \textit{refined LLCs} (rLLCs) to individual components of a two-layer attention-only transformer, we gain novel insights into the progressive differentiation and specialization of attention heads. Our methodology reveals how attention heads differentiate into distinct functional roles over the course of training, analyzes the types of data these heads specialize to process, and discovers a previously unidentified multigram circuit. These findings demonstrate that rLLCs provide a principled, quantitative toolkit for \textit{developmental interpretability}, which aims to understand models through their evolution across the learning process. More broadly, this work takes a step towards establishing the correspondence between data distributional structure, geometric properties of the loss landscape, learning dynamics, and emergent computational structures in neural networks.
