Explore the research collection
4 entries · Follow this search
- Paper
The Role of Quantization in Loss Spikes
Why do some pretraining runs look healthy for most of training and then diverge irreversibly? The paper names these delayed, terminal divergences time-bomb spikes and traces them to finite precision in the LM head. Mechanism: the cross-entropy gradient over the LM head is zero-sum along the vocabulary axis, but Adam's coordinate-wise preconditioning breaks that structure, inducing persistent drift in the mean output embedding and hence growth in output logit magnitude. In exact arithmetic that drift is harmless (a constant logit shift leaves softmax and its gradients unchanged), but in finite precision a large logit scale degrades how precisely the logit differences that determine the predictive distribution can be represented - measured directly, LM-head quantization error (RMS difference between native BF16 logits and FP32 logits recomputed from the same hidden states, plus the KL between the two predictive distributions) grows by orders of magnitude before each failure, and loss diverges soon after. Evidence (JAX/Flax modernized GPT-2 with QK-Norm, FineWeb, elevated learning rates, models 28M-1.4B): 404M models overtrained on 96B tokens (~12x Chinchilla) sit on near-identical loss curves until the higher-LR run time-bombs with accelerating logit growth; 28M models overtrained ~28x Chinchilla (16B tokens, five seeds) fail in strict precision order - BF16-true (weights and optimizer states stored in BF16) first, BF16-mixed later, FP32 LM head stable across the whole horizon - while logit norm grows under every AdamW baseline including FP32, so drift alone does not destabilize; precision decides whether drift becomes error. Mitigation: replace AdamW with SGD with momentum (momentum 0.99, separately tuned head LR) on the LM head only - SGD-M preserves the zero-sum gradient structure, keeps logit norm and quantization error nearly flat, prevents time-bombs even in BF16, stays competitive on final loss across the 404M LR sweep, and stores one fewer optimizer buffer; raising the head's AdamW beta1 to 0.99 closes much of the gap but still diverges at the largest trunk LR. Unifying result: z-loss, mu-centering, higher head precision, and SGD-M all prevent time-bombs and all keep quantization error bounded, suggesting suppressed finite-precision error is the shared mechanism behind previously unrelated mitigations. Costs: an FP32 LM head is the direct fix but the head GEMM is among the largest in the model and FP32 logits double the largest activation tensor; the optimizer-side mitigations keep BF16 and add little overhead. Caveats: demonstrated at 28M-404M scale in the overtraining regime with deliberately elevated LRs, not at frontier scale; fast transient spikes are a separate phenomenon, largely suppressed by learnable RMSNorm gains. Joins the catalog's precision thread as its loss-spike mechanism paper: LM-head quantization error is a measurable leading indicator that rises before the spike (a per-checkpoint series in the same family as the logit-margin signal), complementing the checkpoint-level spike-risk screen and the logit-growth mitigations already cataloged. Enrichment (2026-11-03, from senior author Micah Goldblum's launch thread for the paper's v2, revised 29 Oct 2026; project led by first author Zaiqian Chen): the thread's seed-averaged figures (n=5) put a concrete number on the at-horizon gap the abstract describes qualitatively - by 120k steps the AdamW baseline's logit quantization error climbs to roughly 1e0, while LM-head SGD-M holds it near 1e-2 to 1e-3, a two-to-three-orders-of-magnitude separation at the point where the baseline time-bombs; the same figures show the AdamW output-logit norm growing from about 1e6 to above 1e7 over 600k steps while the SGD-M curve stays flat. The thread also states the unification explicitly as the paper's moral: z-loss (acts on the loss), mu-centering (acts on the embeddings), and LM-head SGD-M (acts on the optimizer) are three intervention points on one principle - keep the LM head in the regime where BF16 arithmetic stays stable. Third-share thread additions (Dolatabadi explainer thread, via @miyashita_03, 2026-11-05): the delayed spike is framed as a time bomb set by absolute logit scale - a rare token whose LM-head row has a large norm produces logits around ~128, a magnitude where bf16 rounding misassigns probability mass; a small model spiked 3x after ~150B tokens and a larger one jumped from 2.9 to ~10 with benchmark forgetting. Raising peak LR reproduces the spike more strongly than widening the precision range does. Scope flag from the thread: the long runs are 28M and 404M models with no weight decay and learning rates chosen to provoke instability, so the mechanism explains a specific failure class rather than loss spikes in general. The share's framing (Miyashita): softmax is shift-invariant, so a shared logit offset cancels out - the damage is per-logit rounding at large magnitudes. The thread closes with an open question, flagged as the author's speculation: whether Muon-style momentum could serve as the LM-head optimizer in SGD-M's place.
- Paper
Beyond Parameters: Exploring Virtual Logic Depth for Scaling Laws
Proposes virtual logical depth (VLD) as a fourth scaling dimension alongside depth, width, and parameter count: VLD = effective algorithmic depth minus base layer count, increased by repeating whole transformer layers with tied weights inside the computation graph, during training and/or inference — not token-wise test-time scaling. Three reuse patterns (after Takase & Kiyono 2021): sequence (adjacent layers share parameters in uniform blocks), cycle (a block of layers repeated), and inverse cycle (the block repeated in reverse order, motivated by larger gradient norms in higher layers). Repetition factors ×1–×3, cycle up to ×5. Two controlled measurements. (1) Knowledge capacity, operationalized Allen-Zhu & Li-style as absorbed entropy ΔH: train a model to memorize a 640k-token IID random sequence over a 50,257-token vocabulary (~15.6 bits/token, sized to the ~2 bits/parameter estimate) and measure the entropy reduction of its softmax outputs on the training sequence. Across 4-layer GPT-2 models of 5M/10M/15M/20M parameters, capacity grows with parameter count; at fixed parameters (5M and 20M tested), absorbed entropy stays nearly unchanged across all three patterns and factors ×1–×3 (reported in Fig. 4, graphically). (2) Reasoning, measured on synthetic iGSM (500K problems, trained at ≤15 operations, exact-answer accuracy, greedy decoding): GPT-2 models of 4/8/12/16 layers (≈50M/100M/150M/200M) trained from scratch. Cycle is the strongest pattern: the 4-layer model's op15 accuracy rises 46.3% (base) → 62.1% (×2) → 70.7% (×5), and the gains grow under depth distribution shift (op20: 21.8→43.8; op21: 21.2→40.2). A 50M cycle ×2 model (effective depth 12) scores 62.05%, beating the native 12-layer 150M model (61.15%) — reasoning decoupled from parameter count. Real-world check: LLaMA-3.2-3B-Instruct with Cycle VLD inserted before LoRA fine-tuning (both arms from identical pretrained weights, same 2.3B-token multi-domain SFT corpus) improves over base on Math500 30.40→35.40, GPQA 29.80→32.32, AIME 3.33→6.67, HumanEval 37.79→39.52, MBPP 38.36→40.22. "Properly implemented" is load-bearing: pattern and placement matter — inverse cycle at ×1 underperforms the base model (4-layer op15 43.9 vs 46.3; 8-layer 53.3 vs 60.5), and in an 8-layer placement ablation, cycle reuse on later layers only (5–8) scores 64.2 vs 62.0 for all layers and 54.2 for early layers only (below the 60.5 no-VLD baseline). Scaling is also non-monotonic: cycle ×3 dips below ×2 on the 4-layer model (61.6 vs 62.1), and effective depth 32 underperforms depth 16 — the authors flag possible fixed points. No fitted scaling-law functional forms or exponents are given; the laws are qualitative (knowledge ∝ parameters; reasoning ↑ with VLD). Caveats: synthetic experiments cap at 200M from-scratch GPT-2 models; the real-world evidence is a single 3B model with LoRA-only fine-tuning and small absolute gains (AIME 3.33→6.67 is one additional problem in 30); knowledge capacity is a synthetic memorization probe, not natural knowledge; all reuse experiments train (or fine-tune) with the reuse graph in place — inference-only looping of a conventionally trained model is not tested; multi-seed statistics deferred to future work (authors' Appendix I).
- Paper
Check The Scoreboard: An Analysis of Scoring Schemes on Multiple-Choice Evaluation
MCQA benchmarks use number-right scoring (accuracy), but educational testing treats the scoring scheme — response mode (how test-takers answer) + scoring rule (how answers are graded) — as the key design choice for which abilities get rewarded. The paper ports six education-inspired schemes to LLM eval, each implemented as a prompt (response mode) plus metric (scoring rule), all on InspectAI MCQA templates: (1) Negative Marking (NM) — pick one answer or abstain; +1 right, −1/(n−1) wrong, 0 abstain (uncertainty, abstention); (2) Elimination Scoring (Elim) — list answers believed wrong; score = proportion of distractors eliminated, 0 if the correct answer is eliminated (partial knowledge, eliminative reasoning); (3) Elimination+NM — 1/(n−1) per eliminated distractor, −1 for eliminating the correct one (partial knowledge + abstention); (4) Confidence-Based Marking (CBM) — predict answer + confidence C∈{1,2,3}: C=1 → +1/0, C=2 → +2/−2, C=3 → +3/−6 (discrete confidence calibration); (5) Personal Point Allocation (PPA) — output a probability distribution per choice, scored by Brier score vs the one-hot gold (probabilistic calibration); (6) Answer Until Correct (AUC) — answer until correct over a fixed number of tries, told when wrong; score (r−1)/(n−1) where r = choices left when correct (self-correction, adaptability). Number Right (NR) is the baseline and a rephrased Control Variation (NR-Var) is the prompt-sensitivity control — so the table has 8 rows, 6 of them the alternative schemes. 31 LLMs (Gemini 2/3 Flash, 2.5 Lite, 2.5/3 Pro; GPT 4.1, 5 Nano, 5 Mini, 5, 5.2; Claude 3.7/4/4.5 Sonnet, 4.5 Haiku; Cohere Command-R/R+/R7B; DeepSeek V3.1, R1; Qwen-3 80B/235B Inst/Think; LLaMA-3.1 8B/70B/405B; GPT OSS 20B/120B; GLM 4.5/4.6; Kimi-K2; GPT-OSS and Cmd-R+ omitted on SuperGPQA for speed; default params) on 1,000 sampled MCQs each from ARC, MMLU, and SuperGPQA (285 graduate topics). Findings (author-reported, exact correlation values live in the paper's figures): (1) Elim, Elim-NM, PPA, and AUC shift LLM rankings beyond the NR-Var control (Spearman vs NR, bootstrapped SE n=1000) — they measure abilities NR doesn't; NM and CBM correlate highly with NR. Also holds under choice-shuffling/letter→number sensitivity baselines on ARC; ARC's NR scores cluster, so the schemes double as tie-breakers. (2) AUC best predicts LLM Arena crowd-preference rankings — better than NR — consistent with users preferring models that adapt to feedback; the NR-vs-AUC gap is wider on technical queries (Math, Expert) than on Creative Writing; a cheaper self-refine-once ablation also improves Arena agreement. (3) Schemes surface model quirks NR hides: GPT models state high confidence and rarely abstain; weaker GPT models struggle to change answers after being told they're wrong while stronger ones readily self-correct; Command-R+ often abstains; LLaMA-3.1 hesitates to eliminate choices; weaker open-weight models often abstain and hesitate to eliminate. All models state high confidence in CBM and rarely abstain in NM on easier datasets (ARC, MMLU) but not SuperGPQA — some awareness of item difficulty. Larger models and test-time reasoning improve cross-scheme consistency (NR answer must not be eliminated in Elim; NR answer must carry the most PPA weight). Caveats (authors' own): prompt sensitivity — changing prompts can shift ranks; LLM Arena doesn't disclose its prompts/inference params; AUC is the most expensive scheme (many turns, costs in Table 3) though still cheaper than crowdsourcing. Discussion: extend education-inspired scoring to programming (White 1993) and writing (Tew & Guzdial 2010) rubrics, and run classic NLP tasks (NLI, summarization) as multi-turn dialogues to form user-inspired evaluations. AI-use statement: Cursor used for plot design/refactoring/debugging, ChatGPT for writing brevity ("AI tools did not directly write any parts of this paper"). Code repo: github.com/nbalepur/mcqa-scoring (created 2026-03-01, 8 commits, 0 stars) — includes a "Self-Refine (ablation)" scheme row not in the paper's Table 1.
- Paper
On the Diffusibility of High-Dimensional Latents
ECCV 2026 paper (arXiv 2609.28473v1; HF Papers daily 2026-09-24) from Cornell/Adobe/Virginia Tech/UW/UMD on diffusibility of high-dimensional RAE latents. Finetuning pretrained visual encoders for reconstruction recovers detail (DINOv2-L PSNR 17.34→29.12) but collapses effective dimensionality (R90 672→129 of 1024). Under that geometry, standard flow-matching v-prediction wastes capacity on orthogonal noise off the low-dimensional signal manifold; x0-prediction (JiT-style velocity loss via clean-latent output, t≥0.05) focuses learning on the manifold. On a 1B Lumina-Next DiT with frozen Qwen3-VL-2B queries (34M BLIP-3o subset, 256², 90k steps): FT-DINOv2-L x0 beats v on GenEval 39.48 vs 30.96, DPG-Bench 71.83 vs 67.47, COCO-30k FID 16.80 vs 29.97, and also beats frozen DINOv2-L v (37.63 / 70.21 / 18.34); a 32-dim adapter bottleneck scores GenEval 40.99 / DPG 73.04 but worse FID 17.64. MAE-B-RAE (768-d, R90=103) similarly improves v→x0: GenEval 36.17→40.89, DPG 67.54→73.90, FID 22.20→17.24. Scaled on internal 90M + BLIP3o-60k SFT: GenEval/DPG 78.62/80.13 at 256 and 79.69/81.15 at 512 (vs authors’ Scale-RAE* 2.4B 77.43/78.47). No public code/weights at catalog time.