Explore the research collection
4 entries · Follow this search
- Post
Stuck in a Loop: Runaway credit ratcheting in attention matrices
Eyler et al. (Hyperstition, Sep 9 2026) dissect why attention locks in early during training. The mechanism: every gradient through an attention head carries the attention weight itself as a factor, so attention acts as a strong FILTER during backpropagation - a weakly attended key gets almost no gradient, a strongly attended one gets more, and early differences ratchet. Measured on Qwen2.5-1.5B (5.33M layer-head-query comparisons): the spread of attention is ~10,471x while the spread of ADVANTAGE (how much shifting attention would actually help) is only ~5.012x - attention, not usefulness, decides gradient scale. Two regimes are separated: calibrated prioritization, where attention is already optimal on a known axis and the pressure is fine-tuning, and softmax deadlock, where a useful but weakly attended key cannot exert enough influence to ever be attended more. The attention Jacobian itself is an information bottleneck: its per-token effective rank is below 10 for at least 99% of tokens in every head measured. Empirically the lock-in is fast and run-specific: by step 1000 a run's attention patterns already resemble its final state more than different runs resemble each other. The authors also build a cross-head consensus ORACLE that finds 'buried keys' - semantically relevant sources the current attention mostly excludes, at attention ranks as high as ~600. A second surprise: heads are NOT separate probability budgets - averaging attention scores across heads within a layer costs almost nothing in median loss (except layer 0), so routing is largely compatible across heads and specialization lives in the values. The proposed fix, NATQ - a damped inverse-Fisher natural-gradient query update that bounds movement in attention-distribution space rather than parameter space - does broaden attention (entropy 3.75 -> 4.69 nats; sub-0.1% keys capture 67% of the increase in layers 4-7) but WORSENS validation loss in a 124M/5k-step test, and fails copy/retrieval tasks by favoring common continuations over answer tokens; attention-transplant experiments show routing alone does not explain the loss. The hypothesis left standing: ordinary gradient descent's low weights filter NOISY keys, and democratizing the backward pass amplifies their influence - the winner-take-all concentration may be load-bearing for learning, not a bug. Flags, as entered: a blog-level technical essay, not peer-reviewed; headline numbers are from Qwen2.5-1.5B probes and one small 124M NATQ run. Cross-references: the attention-dynamics thread in the catalog - a training-time counterpart to ID 1766's inference-side quantization story and to the Marin QK-norm discussion (both concern what shapes attention spread); for the user's 250M run, the attention-vs-advantage spread and the Jacobian's effective rank are candidate Helm training-health signals, and NATQ's failure is a caution against 'fixing' attention concentration.
- Post
Cutting Pretraining Costs by 62% — Hyperstition (ANVIL III optimizer)
ANVIL III is a Muon-family optimizer presented as the biggest optimizer breakthrough since Muon (2024). It beats a fully tuned Muon by 20-28 millinats of final validation loss at matched token budget, holding across 124M, 350M, 774M and 1.2B parameters and across overtraining depths; the gap typically grows from 30% to 80% of training (up to ~50 mnat in some configs), with Muon partially catching up during annealing. At a fixed 8x-Chinchilla budget, fitted scaling curves imply optimizer-only compute savings of 32%/39%/39%/50% at the four sizes; combined with an architecture variant (≈25% near-Chinchilla compute saving) the headline is ~62% less pretraining compute at frontier scale, plus ~30% lower inference cost from faster decode. Mechanistically, an 'Adam SNR' probe (descent inequality = Gini of |u_i^T G v_i| over singular directions, scored on held-out batches) shows ANVIL III's update directions have persistently higher signal-to-noise across the whole singular spectrum; 90% of its singular directions go downhill on held-out data vs 67% for Muon (random = 50%), and it is far less sensitive to truncating the weakest singular vectors (removing weakest 20%: Muon +6.9 mnat, ANVIL III +1.8 mnat). The team also released Feather 1.7B (1.68B params, 200B training tokens), which beats Qwen3-1.7B-Base (~36T tokens) on math with ~180x fewer training tokens (MATH500 63.0 vs 53.0; GSM8K 83.4 vs 76.6; GSM8K Platinum 85.7 vs 74.4; GSM-Symbolic main 81.1 vs 62.7), with three rounds of benchmark decontamination documented. A deprecated ANVIL II set the public NanoGPT speedrun record (73.889s -> 39.914s, 1.851x speedup, 46.0% training-time reduction — a larger percentage leap than the previous 45 records combined) and is public as part of the submission; no license stated for the code.
- Post
Intelligence Density (Density Aware Training)
Trajectory's 'Intelligence Density' field notes argue the right efficiency metric is cost per completed task, not cost per token, and introduce Density Aware Training — a knob-free post-training technique that cuts wasted output (90k→37k tokens at equal pass rate on a legal-agent benchmark) and resists the reward hacking where standard RL inflates training reward via verbosity while held-out performance collapses.
- Post
vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)
vLLM Blog (2026-09-14) on RL-Kernel v0.1.0 with vime and AMD: Megatron training and vLLM rollout often disagree on logprobs for the same weights/tokens because kernels, Split-K/KV, reduction order, and intermediate precision differ, which pollutes importance ratios and KL/clipping. RL-Kernel aligns the numerical execution contract (RMSNorm, Attention, GEMM/SwiGLU, linear logprob, collectives) while vime aligns the timeline and weight sync. On ROCm they added deterministic MFMA GEMM, vocabulary reduction, HIP IPC, AITER/CK Attention schedule fixes, math/fusion last-bit fixes, and paged-KV/HIP-Graph state fixes. End-to-end Qwen3-8B BF16 GRPO on 8× MI300X (Megatron TP4/CP2; 2× vLLM TP4 colocated; 200 steps; dapo-math-17k) reports mismatch_count=0 and max_abs_diff=0 throughout on the strict path vs native mismatches every step. Apache-2.0 at github.com/RL-Align/RL-Kernel (pyproject 0.1.0; torch>=2.4.1; transformers==5.13.1; optional cuda/rocm/vllm extras). Docs https://rl-align.github.io/RL-Kernel/. Scope today: Qwen3-8B Dense + vime + CUDA/ROCm; MoE/multimodal next.