6 cumulative citations
View corpus contextSoftmax plus cross-entropy makes LLM training intrinsically slow: learning peaked next-token distributions drives loss and gradient decay by a power law with a universal 1/3 time exponent, creating a fundamental computational bottleneck.
Citation observations
Cumulative provider counts captured on specific dates; providers are never combined.
Training large language models (LLMs) is computationally expensive, partly because the loss exhibits slow power-law convergence whose origin remains debatable. Through systematic analysis of toy models and empirical evaluation of LLMs, we show that this behavior can arise intrinsically from the use of softmax and cross-entropy. When learning peaked probability distributions, e.g., next-token distributions, these components generically yield power-law vanishing losses and gradients, regardless of many microscopic details, creating a fundamental optimization bottleneck. This ultimately leads to power-law time scaling of the loss with a universal exponent of $1/3$. Our results provide a mechanistic explanation for observed neural scaling and suggest new directions for improving LLM training efficiency.
Summary
Main Finding
Softmax + cross-entropy, when used to learn peaked (low-entropy) next-token distributions, intrinsically produce power-law vanishing loss and gradients that lead to a universal training-time scaling of loss L(t) ∝ t−1/3 (i.e., one-third exponent). This behavior does not require power-law structure in the data; it follows from the low-temperature (large-logit-variance) expansion of the softmax partition function and gradient-flow dynamics.
Key Points
- Mechanism: For peaked teacher distributions (large logit standard deviation, parameterized as inverse temperature β*), the student logits must grow (β → large) to match the teacher. The low-temperature expansion of the softmax free energy gives analytic leading-order behavior that yields β(τ) ∝ τ1/3 under gradient flow, hence L(τ) ∝ τ−1/3 (τ dynamic time ∝ training steps t with constant LR).
- Minimal model: A teacher–student one-layer softmax head with KL / cross-entropy loss suffices to reproduce the effect. The analysis uses an aligned-student ansatz (student weight proportional to teacher weight) to obtain closed-form dynamics; the 1/3 exponent follows from Taylor expansion + time integration and is robust to many microscopic details.
- Numerical & empirical support:
- Extensive toy-model experiments (varying β*, initialization, learning rate, optimizer, weight decay) confirm L ∝ t−1/3 in the intermediate low-temperature regime and under gradient-flow-like dynamics; the effect persists beyond the aligned ansatz (rotation-dominated dynamics can also produce the same scaling).
- Variants (extra layers before head, MLPs, data with power-law structure) also show the 1/3 time scaling.
- Evaluation of Pythia LLM checkpoints indicates next-token distributions are sufficiently peaked (logit variance above the threshold ≈ √(2 ln n)), and measured loss vs. time is consistent with the 1/3 scaling.
- Regime conditions / caveats:
- The 1/3 exponent holds in an intermediate low-temperature regime (student β large but β ≪ β*); high-temperature (flat-output) regimes do not show this behavior.
- The result is “universal” in the physics sense: exponent determined by broad structural features (softmax + cross-entropy + peaked outputs + gradient-flow-like dynamics), not by fine-grained data statistics—though coefficients (prefactors) depend on details.
Data & Methods
- Theoretical analysis:
- Setup: Teacher and student share a linear projection to logits followed by softmax; loss is KL (equivalently cross-entropy up to constant).
- Parameterization: Teacher weights W = (1/√m) Ŵ β with Ŵ entries i.i.d. N(0,1); inputs x ∼ N(0,I). Student assumed W = (1/√m) Ŵ β(t) under the aligned-student ansatz.
- Key analytic tools: continuous-time gradient flow dW/dτ = −c_eff ∇L; partition function / free-energy expansion at low temperature: F(β) = −c0 − c1 β−1 − c2 β−2 + · · · (c0 ≈ √(2 ln n) for i.i.d. Gaussian logits); internal energy U = ∂(βF)/∂β. Leading terms give −dL/dβ ∝ β−2 and hence β ∝ τ1/3, L ∝ τ−1/3.
- Empirics:
- Toy-model simulations with varied β*, network sizes (m, n), initializations, learning rates; optimizers include SGD and Adam (with effective step-size factor c_eff).
- Tests of deviations (weight decay, non-aligned initializations, rotation-dominated updates).
- Generalization tests: toy architectures with added layers, MNIST MLP, and training on data with power-law features.
- LLM validation: analysis of Pythia model checkpoints to estimate logit std (inverse temperature β*) and fit loss vs. training time curves; code released (paper link; authors provide GitHub repository).
Implications for AI Economics
- Compute / cost scaling:
- If loss L ∝ t−1/3 and performance correlates monotonically with loss, reducing loss by a factor α requires increasing training steps (and thus compute/dataset size in single-pass pretraining) by α−3. Example: halving the loss (α = 1/2) needs ≈ 8× more training time/compute. That cubic sensitivity implies steeply diminishing returns for further loss reduction when this mechanism dominates.
- Because the mechanism is intrinsic to standard output-layer choices (softmax + cross-entropy) and the peaked nature of next-token distributions, it can be a fundamental optimization bottleneck for autoregressive LLM pretraining costs—not just an empirical artifact.
- Strategic levers with economic consequences:
- Objective / output-layer redesign: Alternatives to softmax or to plain cross-entropy (e.g., temperature-regularized losses, label smoothing, hierarchical or sampled softmax, contrastive / pairwise objectives, energy-based approaches) could change the low-temperature expansion and potentially improve the exponent or prefactor—yielding large compute savings if successful.
- Temperature engineering: Raising effective temperature (smoothing logits) early in training, annealing schedules, or entropy regularization could keep the model out of the worst low-temperature regime and accelerate early learning; this is an operational lever to reduce marginal training cost.
- Architectural fixes: Heads that avoid extremely large logit variances or that model token distributions hierarchically could lessen peakiness and reduce the dominating 1/3-scaling regime.
- Optimizer & initialization choices: Ensuring trajectories remain in regimes where gradient-flow approximations hold (appropriate LR scheduling, small init, adaptive optimizers tuned to reduce noisy rotation) can help realize the predicted scaling and guide cost-effective training.
- Broader economic impacts:
- Carbon and compute budgets: If the 1/3 scaling dominates, incremental improvements in loss/performance become more expensive (cube-law relation), raising the stakes for algorithmic efficiency improvements and green compute investments.
- Industrial strategy and competition: Firms achieving architectures or objectives that mitigate this bottleneck could gain outsized reductions in training cost and therefore competitive advantage.
- Access & concentration: High marginal compute costs of diminishing-loss improvements reinforce access barriers (large compute budgets concentrated in fewer actors), with implications for market concentration and research centralization.
- Policy and R&D priorities:
- Prioritize research into alternative output-layer losses, temperature/entropy control methods, and head architectures that reduce peakiness.
- Fund independent replication across diverse architectures and datasets to quantify how general the 1/3 bottleneck is in practice and to measure impact on cost projections.
- Consider supporting open, efficient training toolkits that implement candidate mitigations (e.g., smoothed objectives, hierarchical softmax variants) to lower barriers.
Limitations & open questions - The 1/3 scaling is derived for an intermediate low-temperature regime and under gradient-flow-like dynamics; real training has noise, learning-rate schedules, parameterization changes, and other nonlinear effects that may modulate or combine with data-driven scaling laws. - Empirical validation in the paper covers Pythia models and multiple toy/MLP experiments but broader verification across model families, tokenizers, datasets, and autoregressive vs. masked objectives is needed. - Interaction with previously proposed mechanisms (data power laws, feature learning dynamics) is not exclusive—multiple mechanisms can coexist and the observed net exponent in practice can be a combination. - Practical translation from loss reduction to downstream utility (model quality metrics used in economics) may be nonlinear; cost estimates based solely on cross-entropy loss scaling should be used cautiously.
Concise takeaway Softmax + cross-entropy learning of peaked next-token distributions creates an intrinsic optimization bottleneck with loss ∝ t−1/3. For AI economics, this implies potentially cubic increases in compute to achieve linear improvements in loss in regimes where this mechanism dominates, making architectural or objective changes that alter this exponent high-leverage targets for reducing training costs and their economic/market consequences.
Assessment
Claims (5)
| Claim | Direction | Outcome | Confidence & Evidence | Details |
|---|---|---|---|---|
| Training large language models (LLMs) is computationally expensive, partly because the loss exhibits slow power-law convergence whose origin remains debatable. Training Effectiveness | negative | loss convergence rate (power-law slow convergence) |
Reading fidelity
high
Study strength
medium
|
not reported
|
| The slow power-law convergence behavior can arise intrinsically from the use of softmax and cross-entropy. Error Rate | negative | vanishing of loss and gradients attributable to softmax + cross-entropy |
Reading fidelity
high
Study strength
medium
|
not reported
|
| When learning peaked probability distributions (e.g., next-token distributions), softmax and cross-entropy generically yield power-law vanishing losses and gradients, regardless of many microscopic details, creating a fundamental optimization bottleneck. Error Rate | negative | rate at which losses and gradients vanish (power-law behavior) when fitting peaked distributions |
Reading fidelity
high
Study strength
medium
|
not reported
|
| This behavior ultimately leads to power-law time scaling of the loss with a universal exponent of 1/3. Task Completion Time | negative | time-scaling of the loss (power-law in time with exponent = 1/3) |
Reading fidelity
high
Study strength
medium
|
universal exponent of 1/3
|
| The results provide a mechanistic explanation for observed neural scaling and suggest new directions for improving LLM training efficiency. Training Effectiveness | positive | LLM training efficiency / mechanistic explanation of scaling laws |
Reading fidelity
high
Study strength
speculative
|
not reported
|