Explore the research collection
7 entries · Follow this search
- Paper
Optimizing Large Language Model Training Using FP4 Quantization
First from-scratch FP4 LLM pretraining: Differentiable Gradient Estimator (DGE, k=5) corrects E2M1 weight grads vs STE, and Outlier Clamping and Compensation (OCC, α=0.99 plus a ~2% sparse residual) keeps activations from collapsing. Mixed-precision W4A4 GeMM simulated on H100 FP8 cores with token-wise activation and channel-wise weight scaling. LLaMA-2 1.3B/7B/13B on 100B DCLM tokens: train loss 2.55/2.17/1.97 vs BF16 2.49/2.07/1.88; zero-shot avg 53.13/54.42/54.95 vs 53.23/53.87/54.44. Direct W4A4 diverges. ICML 2025. Framework https://aka.ms/MS.AMP (Azure/MS-AMP).
- Paper
Compute as Teacher: Turning Inference Compute Into Reference-Free Supervision
CaT aggregates G=8 policy rollouts into a pseudo-reference (synthesis via a frozen anchor) then derives rewards: answer-match in verifiable domains, self-proposed binary rubrics scored by an LLM judge in non-verifiable ones. On HealthBench, relative gains up to +30% vs the initial policy and self-proposed rubrics match physician rubrics; on MATH-500 up to +33%. Trained policy matches or exceeds inference-time synthesis at 9× less test-time compute. Gemma 3 4B / Qwen 3 4B / Llama 3.1 8B. No official code on abs.
- Paper
Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting
Treats forgetting as local Hessian curvature along the fine-tuning direction. SAM, larger peak LR, and shorter WSD annealing each improve the learning–forgetting Pareto frontier even when they do not lower base pretraining loss. OLMo-60M / 192B tokens: SAM cuts StarCoder forgetting ~80% at matched FT loss; gap widens with token budget. Late-only SAM during WSD decay (~10% of steps) recovers much of full-SAM robustness. OLMo-2-1B mid-train 50B tokens: SAM vs OLMo recipe reduces forgetting 31% after MetaMath SFT and 40% after 4-bit NF4 quantization despite a slightly weaker base (42.9 vs 43.2 avg). Hessian analysis: SAM and large peak LR lower fine-tuning-directional sharpness. No official code on abs.
- Paper
OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iteration
OPUS (Optimizer-induced Projected Utility Selection) linearizes AdamW/Muon one-step updates, sketches ghost outer-product gradients with CountSketch, and Boltzmann-samples a batch aligned with a Bench-Proxy retrieved from the corpus. Scoring overhead 4.7% vs naive 3.5×. GPT-2 XL Muon FineWeb 30B: avg 41.75 vs random 40.29, beating 60B random (41.29) and static filters. FineWeb-Edu: OPUS on score-3 beats baselines trained on score 4+5 (XL 44.99). Qwen3-8B-Base CPT on SciencePedia: 0.5B tokens beats 3B full CPT. Code https://github.com/gszfwsb/OPUS.
- Paper
Emergent Analogical Reasoning in Transformers
Synthetic two-category task with atomic, compositional, and analogical facts. Emergence is sensitive to entity/relation counts, OOD ratio, optimization, and scale. Mechanism: (1) geometric alignment of relational structure in the embedding space (Dirichlet energy) and (2) functor application inside the Transformer. Same qualitative signatures in pretrained Gemma-2-2B/9B and Llama-3.1-8B. ICML 2026 spotlight. Code https://github.com/gouki510/Analogy_in_Transformer.
- Paper
One LR Doesn't Fit All: Heavy-Tail Guided Layerwise Learning Rates for LLMs
Uniform LR ignores Transformer heterogeneity. LLR fits a power-law to each layer's weight-correlation ESD (PL_Alpha_Hill) and maps weaker heavy tails (embeddings/FFN) to larger LRs and stronger tails (attention) to smaller ones, with embedding pinned at the upper bound, a soft LR switch, and updates only in the first 20% of tokens. Transfers the uniform baseline's near-optimal global LR. LLaMa-1B FineWeb: zero-shot avg 47.09→49.02; 3B 48.58→50.61; up to 1.5x token speedup. Beats LARS/LAMB/Sharpness/TempBalance/AlphaDecay; also helps Muon and GPT-nano. Code https://github.com/hed-ucas/Layer-wise-Learning-Rate.
- Paper
Do Transformers Need Three Projections? Systematic Study of QKV Variants
Evaluates Q=K≠V, Q≠K=V, and Q=K=V (plus 2D-PE + variants for non-causal tasks) against standard QKV. On language modeling, Q≠K=V cuts KV cache 50% at +3.1% val PPL (300M) and +2.48% (1.2B) vs QKV; Q=K≠V has no cache benefit, Q=K=V degrades ~25%. Combining Q≠K=V with GQA-4/MQA reaches 87.5%/96.9% cache reduction. K and V projections are highly similar (cosine 0.73) while Q stays distinct, so K=V preserves directional QK^T. Code https://github.com/Brainchip-Inc/Do-Transformers-Need-3-Projections.