Dispersion Loss Counteracts Embedding Condensation and Improves Generalization in Small Language Models
Chen Liu, Xingzhi Sun, Xi Xiao, Alexandre Van Tassel, Ke Xu, Kristof Reimann, Danqi Liao, Mark Gerstein, Tianyang Wang, Xiao Wang, Smita Krishnaswamy
TL;DR
This paper investigates a geometric bottleneck in Transformer representations called embedding condensation, which is more severe in small language models and manifests as token embeddings becoming nearly parallel across layers. The authors quantify layer-wise embedding alignment using pairwise cosine similarities and show that larger models exhibit embedding dispersion rather than condensation. To counteract condensation, they introduce dispersion loss, an auxiliary objective that promotes embedding dispersion with several variants (decorrelation, ℓ2-repel, orthogonalization). Across mid-training and full pre-training, dispersion-aware training yields consistent improvements on 10 benchmarks and notable gains on target tasks, demonstrating a principled, parameter-efficient path to improve generalization in small Transformers without increasing model size.
Abstract
Large language models (LLMs) achieve remarkable performance through ever-increasing parameter counts, but scaling incurs steep computational costs. To better understand LLM scaling, we study representational differences between LLMs and their smaller counterparts, with the goal of replicating the representational qualities of larger models in the smaller models. We observe a geometric phenomenon which we term $\textbf{embedding condensation}$, where token embeddings collapse into a narrow cone-like subspace in some language models. Through systematic analyses across multiple Transformer families, we show that small models such as $\texttt{GPT2}$ and $\texttt{Qwen3-0.6B}$ exhibit severe condensation, whereas the larger models such as $\texttt{GPT2-xl}$ and $\texttt{Qwen3-32B}$ are more resistant to this phenomenon. Additional observations show that embedding condensation is not reliably mitigated by knowledge distillation from larger models. To fight against it, we formulate a dispersion loss that explicitly encourages embedding dispersion during training. Experiments demonstrate that it mitigates condensation, recovers dispersion patterns seen in larger models, and yields performance gains across 10 benchmarks. We believe this work offers a principled path toward improving smaller Transformers without additional parameters.
