Symmetry Breaking in Transformers for Efficient and Interpretable Training
Eva Silverstein, Daniel Kunin, Vasudev Shyam
TL;DR
Transformers contain rotational symmetries in attention that carry no direct gradient signal yet shape learning dynamics. The authors propose batchwise, unlearned biases $b_Q$ and $b_V$ to break these symmetries, guided by a Hamiltonian view that links optimization dynamics to conserved angular momenta. Empirically, symmetry breaking enables memory-efficient optimizers, particularly Energy Conserving Descent, to approach or exceed the performance of adaptive methods on GPT-2 scale models and reveals an interpretable mechanism where attention weights are amplified for token classes aligned with $\, ext{E}[b_Q]$. The work combines theoretical and empirical analysis to show that minimal architectural modifications can improve both efficiency and interpretability in transformer training, while outlining scaling and analysis directions for future work.
Abstract
The attention mechanism in its standard implementation contains extraneous rotational degrees of freedom that are carried through computation but do not affect model activations or outputs. We introduce a simple symmetry-breaking protocol that inserts a preferred direction into this rotational space through batchwise-sampled, unlearned query and value biases. This modification has two theoretically motivated and empirically validated consequences. First, it can substantially improve the performance of simple, memory-efficient optimizers, narrowing -- and in some cases closing -- the gap to successful but more complex memory-intensive adaptive methods. We demonstrate this by pretraining 124M parameter transformer models with four optimization algorithms (AdamW, SOAP, SGDM, and Energy Conserving Descent(ECD)) and evaluating both validation loss and downstream logical reasoning. Second, it enables an interpretable use of otherwise redundant rotational degrees of freedom, selectively amplifying semantically meaningful token classes within individual attention heads. Overall, our results show that minimal, principled architectural changes can simultaneously improve performance and interpretability.
