Explore the research collection
3 entries · Follow this search
- Paper
Emergent One-Third Scaling Law as Attention Tries to Concentrate
Proposes an origin for neural scaling laws: any softmax learning peaked distributions, regardless of its position in the model, develops logit magnitudes that grow as a power law with exponent 1/3, becoming a training bottleneck whose loss contribution decays with the same 1/3 exponent — so total loss obeys 1/3 scaling whenever at least one softmax learns peaked distributions. Toy models show the effect for both output selection and attention-like gating, with a 'loss universality' result (any reasonable loss yields the same law; nonlinearity is the key ingredient). In real LLMs (Pythia, OLMo), loss falls and attention's internal logits grow with exponents near 1/3 while the output head shows no such growth, pointing to attention heads — not the LM head — as the bottleneck driving 1/3 loss scaling. Bypassing the output softmax with MSE training, and using sigmoid/tanh gates, preserves the law.
- Paper
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision
FlashAttention-3 redesigns FA2 for Hopper: warp-specialized TMA/WGMMA producer-consumer, pingpong scheduling so softmax hides under GEMM, and FP8 with in-kernel V transpose, block quantization, and Hadamard incoherent processing. H100 FP16 is 1.5-2.0× FA2 (up to 740 TFLOPs/s, 75% util) and 1.5-1.75× backward; FP8 reaches ~1.2 PFLOPs/s with 2.6× lower RMSE vs per-tensor FP8 on outlier-injected QKV. Competitive with or faster than cuDNN FA2 at seq≥1k. Code https://github.com/Dao-AILab/flash-attention.
- Paper
High-Dimensional Learning Dynamics of Attention-Indexed Models
ML theory paper on "attention-indexed models," a framework for multi-layer and multi-head attention architectures in the high-dimensional limit. Core result: the population-loss landscape collapses into a finite set of trace order parameters, yet under online SGD the parameter trajectories are governed by an infinite hierarchy of coupled matrix moments (each SGD step mixes S_k with the gradient tensor, so degree-w moments couple to degree-(w+1); degree-M truncations approximate the exact trajectory with exponential precision O((C/s0)^M)). Parameterization is an active regularizer: direct optimization of an attention matrix S in R^(d x d) can stay trapped on an uninformative manifold; tied attention (S = WW^T) forces a positive initial trace and yields automatic symmetry-breaking with weak recovery in Theta(d^2 log d) samples; untied attention (S = UV^T) shows a fast-slow relaxation (fast pre-activation mean drift toward a critical manifold, then slow feature recovery only if the fast boundary layer broke student symmetry). Caveats: assumes online SGD with one-pass streaming Gaussian data (no finite-sample ERM or multi-pass token reuse) and analyzes effective bilinear interactions rather than full end-to-end multi-layer QKV co-evolution.