Explore the research collection
2 entries · Follow this search
- Paper
Towards joint scaling laws with optimal batch size schedules
Derives optimal batch-size schedules from LR schedules in closed form under a convex loss model. Given an LR schedule, horizon, and token budget, the noise-term-minimizing schedule is B_t^optim = (K/2)·η_t/√(∫₀ᵀη_k dk · ∫_tᵀη_k dk), with K = B_static·T — depends only on LR schedule shape and budget, independent of peak LR, weight decay, model size, architecture, or optimizer. Cosine LR → BS grows then declines; WSD → grows then plateaus; linear → exactly flat at B_static; constant LR → grows like 1/√(T−t). η_t/B_t is NOT a sufficient statistic (matched trajectories favor realizing the schedule through LR over BS, +0.017–0.743 val loss), so BS scheduling is an independent dimension. Scaling experiments (Llama3 dense, Qwen3 MoE, 0.1B–7B, up to 1e21 FLOPs, Fineweb-edu; peak LR ∝ 1/√T, same LR/WD for both): +15% compute efficiency on Llama3 at 50 TPP, +6% on Qwen3 MoE at 100 TPP; Llama3-1B best-perplexity gains 0.8%/2.5%/14.6% for cosine/WSD/constant; lm-eval-harness wins on all 8 tasks for both families. Joint scaling laws: peak LR and WD ∝ 1/√T, scale-free BS schedule, O(1/√T) convergence; universal dynamics (supercollapse) preserved. Holds on AdamW and Muon-NSGD; ablations incl. VLM post-training (dynamic wins 7/9 benchmarks) and math fine-tuning. Caveats: the cosine-derived schedule decays to zero at the end (proven endpoint behavior — nonzero-terminal-slope schedules give constant terminal BS instead); no practical floor prescribed, and end-of-training tiny batches are systems-impractical; convex foundation is empirical-fit, not a theorem; token-based compute optimality, not wall-clock. Zero overhead — it's a schedule-shape recipe, no extra tuning.
- Paper
Demystifying Manifold Constraints in LLM Pre-training
Introduces MACRO, a single-loop Riemannian spectral-SGD (Muon-style msign on the tangent-space gradient plus retraction) with O(T^{-1/4}) stochastic nonconvex rate. Spectral sphere bounds worst-case activation scale; Frobenius sphere bounds average-case (radius r√D_out). Without learnable RMSNorm, Muon NaNs at large LR while MACRO-spec stays stable (330M Qwen3-like val 2.739 vs normalized MACRO-spec 2.714). Constraints lock relative LR η_rel=cη and rotational equilibrium from step 1, replacing decoupled weight decay. On standard (RMSNorm) Qwen3-like 120M–1B above Chinchilla, MACRO-spec matches or slightly beats Muon/MuonH/SSO with exact Riemannian updates. No official code on abs.