How are linear representations learned? Exact solutions to the dynamics of abstraction
Abstract
In neural networks, concepts often appear to be encoded as consistent linear directions in representation space. This idea is known as the linear representation hypothesis and underpins many methods for interpretability and control, from linear probing to activation steering. However, the way these representations emerge during training remains poorly understood. Here, we develop a framework to study how linear representations form during training via the alignment of concept directions -- a process we call "abstraction". In a linear network setting, we obtain exact solutions for the full trajectory of abstraction. These solutions reveal key analytic principles governing abstraction: (i) data and target geometry jointly determine abstraction at the end-of-learning, (ii) initialization scale controls the maximum abstraction reached during training, and (iii) abstraction improves with network depth. We extend our theory to nonlinear networks and find that ReLU makes abstraction dynamics depend more on input geometry than target geometry. More generally, we prove that abstraction is typically weaker in activations compared to preactivations for a broad class of activation functions. We find evidence for this in Gemma 4 and DINOv3 and apply our theory to improve linear probe generalization in LLMs. Together, our results provide a dynamical theory of representation learning with implications for interpretability.