Explore the research collection
6 entries · Follow this search
- Paper
Rethinking Activation Functions: Reducing Bias Can Improve Learning
ReLU, GELU, Swish, and Sigmoid all produce predominantly positive outputs, so their post-activation mean is nonzero — the paper names this the activation bias, b = E[phi(z)], and asks what it does to learning over the full course of training, not just at initialization. Intervention: subtract a fixed scalar b from the activation output (estimated at initialization: ReLU 0.230, GELU 0.115, Swish 0.077, Sigmoid 0.500), or, at scale, layerwise adaptive shifting (subtracting the running post-activation mean). Controlled evidence (deep residual teacher–student model with pre-norm MLP blocks, identical init/data/optimizer, only the shift differs): the unshifted student learns faster early but its residual-stream hidden state overshoots (~step 100), its parameter trajectory turns sharply within the initial-gradient plane, and its loss landscape is steeper (larger leading Hessian eigenvalues); the shifted student starts slower, moves in nearly orthogonal parameter directions, and ends at a lower final loss — despite the teacher itself using the unshifted activation. The bias component is not inert: in a VGG-style reconstruction task, decoding the bias component alone early in training recovers recognizable coarse image structure, color, and texture — the model transiently exploits information carried in the mean component, then relies on it less; shifting largely suppresses this. Theory: in the simplified settings studied, shifting by the activation mean minimizes or nearly minimizes Hessian / Gauss–Newton sharpness. Scale-up (adaptive shifting, everything else fixed): ViT-Base on ImageNet-1K (300 epochs) — shifted model trails early, finishes with HIGHER training loss but lower test loss and higher top-1 accuracy; DiT-B/2 on ImageNet-256 (400k steps) — comparable or lower training loss throughout and lower FID at every evaluated checkpoint; GPT-2 Small on OpenWebText (300k steps, nanoGPT setup) — consistent but small gain, ~0.01 absolute loss and ~1% relative perplexity. Appendix results extend to ViT-L and OLMo/HyenaDNA-style models, and document hidden-state overshoot in released Pythia-410M, OLMo-2-1B, and Amber-7B checkpoints.
- Paper
Don't Stop Long-Context Continual Pre-Training Too Early: An Empirical Scaling Law
Asks how the benefits of long-context continual pre-training (LCCP — the stage after short-context pre-training that extends the window) scale with its token budget, and whether they can be predicted. Setup: five dense full-attention scales S1–S5 (non-embedding N = 31M–821M; total 165M–1.22B; S5 = 36 layers, hidden 1,536, GQA 24Q/2KV heads, vocab 130,560, attention sink enabled), all trained with Muon in bf16 on 16×H800. Short stage: 4K sequences, WSD schedule. LCCP stage: 32K sequences, RoPE base 10,000 → 500,000, LR starting at the 4K stage's terminal value, on a fixed 32K mixture of public + internally curated data (not fully released — exact replication impossible). Metric: LongPPL (Fang et al. 2025) — perplexity only on tokens a reference model (Llama-3.1-8B) predicts well with full context but badly with a 4K chunk (only 1.42% of tokens on 10K GovReport 32K documents); ShortPPL is the matched local-token control. (1) THE LAW: an additive Chinchilla-style power law with short-context tokens D_s and LCCP tokens D_l as SEPARATE predictors — log(LongPPL) = A/N^α + B_s/D_s^β_s + B_l/D_l^β_l + C — fit on 109 Linear-Decay configurations. Held-out-scale extrapolation: fit S1–S4 → S5 R² 0.9516 / MAPE 1.71% (Linear-Decay) and 0.9718 / 0.66% (Constant-Last4), despite S5's ~100B LCCP tokens being >8× the largest D_l in the fitting set; collapsing D_s+D_l into one budget wrecks extrapolation (R² 0.849), and no-offset variants collapse entirely (R² −0.10 / −4.09 on S5) — separating the two budgets is doing real work. (2) CONSTANT-LAST4 PROTOCOL: linear decay needs a pre-committed endpoint, blocking open-ended scaling; their alternative trains LCCP at constant LR (extensible trajectory) but OBSERVES it through the uniform average of the 4 most recent checkpoints — merging is an observation mechanism only, training always continues from the latest raw checkpoint. It tracks budget-matched Linear-Decay endpoints closely (32K LongPPL 2.241 vs raw-constant 2.312; RULER-32K 45.48 vs 44.29), but its small edge shrinks and slightly reverses after the larger SFT budget (−0.16) — the authors explicitly decline to claim merging improves downstream training. (3) DOWNSTREAM: RULER-32K rises across the whole 5N→120N LCCP trajectory with no clear saturation, driven by intermediate-difficulty retrieval (niah_multikey_2 51.2 → 71.2, niah_multivalue 10.2 → 28.75, niah_multiquery 18.75 → 45.0); gains transfer to 128K after a fixed 2.10B-token extension and persist through identical long-context and agentic SFT stages (the agentic arm — GAIA / BFCL-WebSearch / τ²-telecom — improves with upstream 32K LCCP budget). Proxy sanity checks: LongPPL improves much faster than ShortPPL (elasticity ratio 3.35 → 2.22, always >2 — gains are not just general LM improvement), while retrieval-head probes plateau after ~30N even as behavior improves to 120N — mechanistic probes saturate before behavior does. Caveats: everything ≤1.22B params, 32K LCCP (128K only as fixed extension), one data mixture — frontier transfer asserted, not shown; the law is explicitly finite-range (fitted offset C is negative, so it eventually predicts LongPPL < 1 — authors compute the zero crossing and disown asymptotic interpretation); downstream evidence is mostly figure trends at modest absolute levels with non-monotonic per-subtask movement; "no saturation" ≠ no diminishing returns (their own elasticity ratio shrinks); the HF weights release was mid-upload at check time (several checkpoint repos incomplete/"coming soon").
- Paper
Training-Free On-Policy Distillation
Specialist models sharing a base model can be merged without gradient training: the distillation objective per linear layer — reproduce every teacher's output on the inputs that teacher receives while reading its own rollouts — is exactly least squares, needing only the input second-moment Gram matrices. TF-OPD gathers those on-policy: each specialist answers a few hundred domain training problems, looping/unverifiable answers are filtered, the kept answers are read once with teacher forcing while forward hooks accumulate per-layer Gram matrices, then one linear solve per layer. This is the RegMean closed form (Jin et al. 2023) fed rollout statistics instead of training-corpus inputs — what trained on-policy distillation does, minus the optimization. On Olmo 3 7B, fusing a math and a code RL specialist (≈10 GPU-hours total, 48 GB GPUs, zero backward passes) yields a generalist with the highest mean over 7 benchmarks (61.1 vs math 59.8 / code 53.6 / base 31.6): equals the math specialist on AIME24 (50.0), beats it on OlympiadBench (69.4 vs 68.7), within ~2 pts of the code specialist on HumanEval+/MBPP+. The key finding: unfiltered rollouts match task arithmetic on AIME25 (34.2); removing repetition-loop answers — a small share of answers carrying a several-times-larger token share — lifts it to the specialist's level (40.0); correctness filtering, student rollouts, and hard-problem mining add nothing further. On easier saturated benchmarks every merge rule looks alike; the method separates only on hard problems. Precision matters: store fused weights in float32, evaluate in float16 — bf16 rounding measurably distorts the closed-form update. Training remains the tool when teachers differ in architecture or size.
- Paper
Video Generation Models Are Good Latent Reward Models
Extending reward feedback learning (ReFL) to video generation is blocked by pixel-space reward models: they need near-complete denoising plus expensive VAE decoding, OOM on full-frame sequences, and supervise only late-stage steps. PRFL (Process Reward Feedback Learning) conducts preference optimization entirely in latent space. A Process-Aware Video Reward Model (PAVRM) reuses the first 8 DiT blocks of the pretrained video-generation backbone (Wan2.1-14B) as a feature extractor, compresses spatiotemporal features with a learnable query-attention, and predicts motion-quality scores from noisy latents at arbitrary timesteps — trained on human labels of finished videos only, with noise injected at random timesteps (no per-step annotations). Training rolls out gradient-free to a sampled timestep, backpropagates reward through a single gradient-enabled denoising step, and alternates with SFT to prevent over-optimization. On Wan2.1-14B at 480p/720p (T2V and I2V): T2V dynamic degree +46.00 (480p) / +56.00 (720p), human anatomy +10.49 / +12.16; PRFL wins 67% of human comparisons (25 prompts, 30 annotators, 2,250 pairs) vs RGB ReFL. Timestep ablation on 100 prompts: early-only better on motion (DD 51.00 vs 44.00), late-only better on anatomy (HA 91.54 vs 87.52), full-trajectory sampling best on both. PRFL processes all 81 frames within 67 GB VRAM at 1.42×–1.49× faster training than first-frame-only RGB ReFL (whose full-frames variant OOMs). Caveats: the RGB ReFL baseline uses PickScore on the first frame only — a weak comparison; the missing control is the same ReFL setup with a different full-video reward model, so the results support the system but don't isolate the backbone-reward contribution. Author-stated limitation: focuses on motion quality; aesthetics/semantics evaluation left to future work. No code released at catalog time.
- Paper
QwenGyre: An Elastic Reinforcement Learning Framework for Training xLong-Horizon Agents
QwenGyre (Alibaba Token Hub) is an end-to-end framework for online RL on extreme-long-horizon (xLong) agent executions — single rollouts lasting hours, spanning hundreds of model–environment interactions and ~1M tokens — run through unmodified black-box harnesses (Claude Code in the evals). It attacks two problems. (1) Scheduling: rollout durations are long-tailed, so Colocate training waits on stragglers and Async's fixed rollout/training GPU partitions idle on both sides. QwenGyre's Elastic Scheduler organizes GPUs into independently switchable cells and reallocates them between rollout and training as unfinished work changes, without interrupting live executions — harness state persists across role changes and in-flight model calls keep being served; newly freed nodes join an ongoing training batch, and streaming training feeds cells micro-steps on demand so they finish the batch together (role switches take ~3.5–8.5s). (2) Trajectory redundancy: harnesses branch via compaction, sub-agents, and retries, so expanding every path into samples explodes token volume. The Trajectory Processor records every model call token-in/token-out (exact token IDs, behavior log-probs, provenance), organizes calls into a prefix-shared trajectory tree preserving each output's original conditioning context, scores preserved work after termination — including partial progress after timeout — and admits at most 5 trajectories per execution by role priority (main > main-summary > sub-agent > sub-agent-summary), counting shared prefixes once, training only on policy-generated tokens, and averaging token losses within each execution. The RL algorithm is group-relative (16 rollouts/group) with a GSPO adaptation (token importance weights capped at 5, execution-level clipping [0.995, 1.005]). Against Colocate and Async baselines at equal GPU budgets and matched scheduling staleness, with comparable training scores (all figures first-party): on Qwen3.6 122B, 1.42–1.53× over Async and 1.36–1.47× over Colocate on NL2RepoBench, 1.57×/1.61–1.82× on DeepSWE, 1.38–1.43×/1.81–1.85× on TerminalBench; scaled to the flagship Qwen3.8 2.4T (~700K tokens per rollout, 192 nodes), 48 NL2RepoBench steps take 75.42h vs 134.55h (Async) and 91.47h (Colocate), lifting eval passrate from 52.48% to 58.54%.
- Paper
Understanding Mamba-3 Through Oscillatory Dynamics
Mamba-3 adds input-dependent rotations to the SSM state update (each rotary state pair evolves as decay × rotation, Ā = ρR(θ)), but what the rotations contribute beyond retention was unclear. Liang & Song (Tsinghua) show this decay–rotation transition is exactly the flow of an underdamped second-order system: the damping ratio ζ = a/√(a²+ν²) is < 1 for any nonzero rotation frequency ν, with decay setting the damping envelope and learned phase supplying the oscillation. In a shared second-order framework, underdamped dynamics dominate state tracking (scaled accuracy: 100.0% parity, 95.26% mod-3, 95.68% arithmetic-without-brackets vs 3.27/0.58/81.60 overdamped, 3.22/0.32/1.97 critically damped, and ≤48.95% for Mamba-3 with rotation removed or made static), because overdamped modes collapse asymptotically and critically damped modes become directionally degenerate while underdamped modes preserve state geometry. Pretraining Mamba-3 ± oscillation (187M/444M, 100B FineWeb-Edu tokens, 2K context) gives lower PG-19 perplexity beyond the training length at both scales and a LongBench-E gain at 444M (13.22 vs 10.61; none at 187M), with standard downstream averages comparable (43.43 vs 43.63 at 187M; 51.08 vs 50.18 at 444M). Interventions on pretrained 1.5B Mamba-3 show long-context prediction depends heavily on learned phase (phase removal/reversal raise 64K PG-19 perplexity to 41×/74× native in SISO) and that rotation moderates constructive accumulation between retained history and incoming updates (phase removal raises history–update cosine similarity 0.294→0.474 and state RMS norm). Authors' caveat: oscillation improves but is not required for stable length extrapolation. Paper CC BY 4.0; code via project page shutian-liang.github.io/oscillationmamba.