Explore the research collection
6 entries · Follow this search
- Paper
A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training
Unifies the two emergent outlier phenomena in LLMs — attention sinks (a few tokens receiving large attention logits) and residual sinks (fixed dimensions with persistently large activations) — under 'outlier-driven rescaling': the outliers work jointly with normalization (softmax attention, RMSNorm) to rescale non-outlier components, and this mechanism is validated across architectures and training token counts. Main conclusions: (1) outliers function jointly with normalization — removing normalization eliminates the outliers but degrades training stability and performance; clipping outliers while keeping normalization also degrades, so outlier-driven rescaling contributes to training stability; (2) outliers act as rescale factors, not contributors — their post-norm contributions are far smaller than non-outliers'; (3) outliers can be absorbed into learnable parameters or replaced by explicit gated rescaling (GatedNorm), improving training performance by an average of 2 points and drastically improving quantization robustness (only 1.2 points degradation under W4A4). Since outliers' post-norm contribution is tiny, relying on them is what makes LLM quantization a nightmare (huge dynamic ranges).
- Paper
Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free
Compares ~30 gating variants on 15B MoE (15A2B, 2.54B active) and 1.7B dense models trained on up to 3.5T tokens. A head-specific sigmoid gate after SDPA (G1) is best: MoE 400B-token Avg PPL 5.761 vs 6.026 baseline and MMLU 60.82 vs 58.79, beating parameter-matched KV-head/expert expansions. Gains come from non-linearity between low-rank Wv and Wo plus query-dependent sparse gates (mean score 0.116). First-token attention falls 46.7%→4.8%; YaRN-extended RULER at 128k is 58.82 vs 31.65. Gate also damps loss spikes and allows higher LR (8e-3) where the baseline diverges. Claims first attention-sink-free models.
- Paper
Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation
RL can turn one language model into several specialists (math, coding, instruction-following), and multi-teacher on-policy distillation (MOPD) merges them by having the specialist for each prompt's domain give per-token feedback. But the routing decides which specialist teaches, not how strongly its feedback moves the shared student: in Qwen3.5 models at three sizes, the MOPD student does not beat one taught by the best single specialist and captures little of the math specialist's advantage, because instruction-following feedback is several times more spread out than math feedback and dominates updates. Domain-Normalized MOPD (DN-MOPD) keeps the routing and rescales each domain's feedback by its measured spread; on six public benchmarks it improves average score over MOPD at every size, across three seeds and two answer-length limits, recovering most of the lost math gain. Controls show the gain comes mainly from turning down instruction-following feedback rather than turning up math alone.
- Paper
Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs
arXiv 2609.29845 (cs.CL/cs.AI; submitted 2026-09-24; CC BY-NC-ND 4.0). Averaging embeddings of two unrelated streams makes standard decoder-only LLMs (Pythia, Qwen2.5, Llama, OLMo, Gemma) put both streams' next tokens in the mixed distribution (often top-10 ~30–40% without FT). Superposition is strongest at init and degrades over Pythia pretraining; lightweight FineWeb KL self-distillation (<0.025% of pretrain size) restores it (e.g. Pythia-2.8B KL 1.86→0.27; top-5 recovery ≈30%→>60%; content-token median rank 284→5) at a single-stream quality cost. Geometric-mean obstruction makes naive sampling mix streams; Joint Contrastive guided decoding (large mixed + small-model contrastive logits) raises mixed LAMBADA mean accuracy (e.g. Llama-3.2-3B 0.182→0.430) and Separate mode claims ~2× throughput vs sequential with ~½ KV per stream. No public code on abs/HF at catalog time. Distinct from Token Superposition (id 543) and Superposed Decoding (2405.18400).
- Dataset
Reducing Doom Loops with Final Token Preference Optimization
Antidoom mines the first token of a detected loop (≥4 repeats, ≥60 chars), then trains LoRA with Final Token Preference Optimization (FTPO): one rejected token vs up to 20 chosen alternatives, logit-space KL, two-part regularization. Early LFM2.5-2.6B: 10.2%→1.4% doom-loop rate; Qwen3.5-4B greedy: 22.9%→1%, with eval gains attributed to fewer loops. Early-stop at chosen_win≈0.35. Prompt mix LiquidAI/antidoom-mix-v1.0 (478,229 rows) used to elicit loops. Enrichment (2026-11-03 re-share; page updated 2026-10-27): the post's three-mechanism anatomy - (1) overtrained high-prior tokens become fallbacks under uncertainty (loop-starting tokens in the LFM2.5-2.6B checkpoint: ' the' 11.4%, ' So' 4.5%, 'Alternatively' 3.2%, 'Wait' 2.6%, ' But' 2.5%); (2) each repetition self-reinforces toward probability 1, with semantic repetition preceding textual repetition (Duan et al.); (3) low-temperature decoding has no exit, and looping persists even at temp 0.67 once saturation sets in. Recipe detail: LoRA rank 128-256 over all attention/MLP projections plus lm_head, LR 4e-6 to 2e-5, one epoch; about 1 hour on 8x MI325 to generate 20K pairs and 1-2 hours on 1x MI325 to train; overtraining creates NEW loop points, and multiple Antidoom rounds help because each round exposes new loop-starting tokens. Notable secondary finding: after de-looping, the temp=1.0 sampling advantage disappears and near-greedy decoding wins - the authors suggest the 'higher temperature helps reasoning' heuristic was partly a doom-loop artifact. Cross-reference: the same reasoning-loop failure in Qwen3.5-0.8B was fixed without any training in ID 1798 by deleting a weight direction; Antidoom is the training-side counterpart, positioned against inference-time repetition_penalty (degrades performance) and anti-repetition RL (rollout-expensive).
- Paper
Breaking Entropy Bounds: Accelerating RL Training via MTP with Rejection Sampling
Bebop shows MTP accept length falls linearly with policy entropy under target-only sampling or CE/KL-trained drafts. Switching verification to rejection sampling (accept = 1 − TV(p,q)) and training drafts with an end-to-end TV loss that directly maximizes multi-step overlap cuts the entropy–accept slope ~95% and adds ~3–10 pp accept vs CE (up to 95% on agent tasks). Pre-RL TV SFT plus rejection sampling is enough; online MTP updates during RL are unnecessary under RS because draft–target mismatch from weight updates is negligible. Up to 1.8× async RL e2e on Qwen3.5/3.6/3.7; agentic rollouts up to 2.4×. SGLang RS implementation https://github.com/sgl-project/sglang/pull/26312. No official training-code repo on the abs page.