Hugging Face Trending Papers

Attention Head Specialization: Phase Transitions in Sample Complexity

Read the original on Hugging Face Trending Papers →

Attention heads in transformer models specialize into distinct functions during training, often appearing in stages that coincide with sharp changes in model behavior. This study investigates how such specialization depends on the amount of training data, finding that heads focused on syntactic relations in BERT emerge as dataset size grows. Using a solvable high‑dimensional multi‑head attention model, the authors show that head specialization is a genuine phase transition in sample complexity, marked by non‑analytic changes in test error and other observables, and they link these statistical transitions to the stagewise emergence of specialized heads during online learning.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Hugging Face Trending Papers.

arXiv AI
Oct 9

Emergent Inverse-Depth Scaling From Nonlinearity In Attention

The paper investigates how nonlinearity in attention mechanisms affects scaling laws in large language models. It finds that nonlinear attention leads to an inverse-depth decay of loss across various data spectra, enabling models to learn both strong and weak spectral directions simultaneously. This behavior contrasts with linear-attention models, which rely on a power-law data spectrum and learn directions sequentially.

By Zirui Peng, Yizhou Liu, Ziming Liu, Jeff Gore