Explore the research collection
12 entries · Follow this search
- Paper
You don't need long context
A challenge to the long-context roadmap, on cost grounds. Observation: later tokens are more expensive to generate than earlier ones - each decode step attends over a longer prefix and a larger KV cache - and on frontier open-weight models the per-token cost disparity between early and late positions rises to as much as 7x. If long contexts are that expensive, the question is whether tasks actually need them. The paper's answer, via FREQUENT COMPACTION (periodically compressing the working context back down to a short semantic summary and continuing from it): across a broad range of long-horizon and long-input tasks, frontier language models sacrifice little to no task accuracy when they are forced to maintain short contexts. The extreme version is the striking one: on long-horizon software-engineering tasks, performance does not collapse even when the agent takes AT MOST ONE ACTION PER CONTEXT - every step starts from the compacted state, acts once, and the state is re-compacted - meaning the trajectory's information survives being funneled through a short text bottleneck at every single step. From this the authors outline a concept they call semantic state space models (SSSMs): recast the agent as a state-space model whose recurrent state is not a latent vector but a semantic (natural-language) state, updated by compaction rather than by a learned transition - long-horizon behavior emerges from state quality, not context length. Caveats: abstract-level evidence - the task list, the size of 'little to no' accuracy loss, the compaction method and its own token cost, and which models were run are all full-text details; the 7x figure is a maximum disparity, not a typical one; results are on frontier open-weight models, whose compaction quality (the model summarizing its own state) may not transfer to smaller models; and tasks whose bottleneck is verbatim recall of a long input are exactly where a summary bottleneck should hurt most, so the breadth of 'long-input tasks' tested matters. Catalog placement: the demand-side counterpart to the catalog's long-context supply-side work (e.g. ID 1801's subquadratic sparse attention makes long context cheaper; this argues the expensive thing may be unnecessary) - and for agent architectures it is the compaction/state-carrying position stated at full strength: the context window as a cache you keep evicting into a semantic state, not a memory you keep growing.
- Paper
Scaling Verifiable Environments for Long-horizon Work Agents
WorkForge is a scalable synthesis framework for building verifiable long-horizon work-agent environments from real-world resources. From expert-authored 'Scene Blueprints' (workflow, deliverable, source requirements, domain decisions), an acquisition agent iteratively searches, downloads, and previews real files to instantiate a workspace; profiling then extracts observable factual anchors (file roles, dependencies, verifiable facts). Task generation derives each task's instruction, hidden solution plan, and complementary verifiers from those anchors: programmatic verifiers check deterministic requirements on final artifacts (mean pass rate over rubric items), while semantic verifiers score open-ended deliverables via an LLM judge with criterion-specific scoring guides (scores 0-10, normalized). The corpus is 16,665 environments across 40 professional domains (top 4 = 31.9% of tasks), workspaces covering 60 file types, avg 42.3 files / 279KB, avg 21.9 rubrics per task; solver rollouts (GLM 5.3 with Claude Code and OpenClaw harnesses) average 31.8 steps, 33.8 tool calls, 76.5K tokens. Full-parameter SFT of Qwen3.5-35B-A3B-Base on the 16,665 trajectories lifts GDPval 45.5 to 73.6 (+28.1) and APEX Score 5.0 to 21.3 (+16.3), with similar gains on WildClaw, ClawEval, and Agents' Last Exam; the 73.6 GDPval beats the prior sub-100B specialized SOTA (ClawGym-30A3, 35.0) by 38.6 points. Applied to the post-trained Qwen3.5-27B, WorkForge-27B reaches GDPval 82.4, beating Qwen3.5-397B-A17B (79.7) with ~15x fewer parameters. Scaling holds across data volume (1K to 16K trajectories: ALE +13.0, WildClaw +8.4) and interaction horizon (41-60-turn training trajectories vs 0-20: ALE +4.2, WildClaw +5.0). Hybrid verification-based trajectory selection beats programmatic-only or LLM-only selection; real-workspace environments have 5.4x more files and 2.4x more file types than synthetic ones.
- 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
Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training
Diagnoses a late-training blow-up training a 450M transformer on 50B tokens with FlashAttention-3 in BF16: healthy for 25B tokens, then gradient norm grows 1000x and loss ends 0.2 nats above FP32 attention — with no NaNs at all. Recomputing just two layers' attention backward in FP32 removes almost all excess gradient. Part of the cause is known (a fused multiply-add in the forward softmax, never fixed in FA3); repairing it stops the blow-up but leaves the query gradient wrong by more than its own size (219% median error). The deeper cause is a broken conservation law: the softmax score gradient dS sums to zero along every row, making dQ blind to where the keys sit as a group; rounding dS to BF16 leaves a small nonzero sum that leaks the mean key into dQ — and the leak grows exactly as late training makes keys large and attention sharp. Fix: GProj (gauge projection), which restores the zero row sum after the cast with two rank-one corrections per row — cuts median dQ/dK errors from 219%/13% to 0.34%/0.37% (FP32-attention level) for 4.7% more step time; in matched from-scratch runs it reaches the same loss as FP32 attention while FA3 and key smoothing destabilize. KohakuBlueleaf replied on the thread reporting the same class of precision bug in FA4/cuDNN/flex attention and their KohakuFA fix. If a BF16 run blows up late with no NaNs, check the attention backward. Directly relevant to the user's LLM training-run debugging work.
- Paper
The Lessons of Developing Process Reward Models in Mathematical Reasoning
Qwen team shows MC-only PRM labels underperform LLM-judge/human; proposes consensus filtering and richer eval beyond BoN. Releases SOTA open PRMs (Qwen2.5-Math-PRM-7B/72B) strong on ProcessBench and BoN.
- Paper
Qwen2.5-Omni Technical Report
Block-wise audio/vision encoders feed a shared LLM; TMRoPE interleaves time-aligned audio/video. Thinker generates text; Talker is a dual-track AR speech head on Thinker hidden states plus sliding-window DiT. Qwen2.5-Omni-7B sits between Qwen2-7B and Qwen2.5-7B on text (MMLU-redux 71.0 vs Qwen2.5-7B 75.4 / Qwen2-7B 67.3). OmniBench avg 56.13 vs Gemini-1.5-Pro 42.91; MMMU val 59.2; Video-MME w/o sub 64.3; speech-instruction MMLU 65.6 vs text Qwen2-7B 69.3. Streaming TTS WER 1.42/2.33/6.54 on SEED test-zh/en/hard. Code https://github.com/QwenLM/Qwen2.5-Omni; blog https://qwenlm.github.io/blog/qwen2.5-omni/.
- 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
DepthBench: Measuring How Residual Connections Enable More Computational Depth
Introduces DepthBench, a controlled benchmark for studying computational depth across architectures, proposing effective computational depth as a new scaling axis. Systematically varies the width-depth aspect ratio (d_model/n_layer) from shallow-wide to deep-narrow shapes while keeping model size and the pretraining recipe fixed, across 10 representative architectures. Finds the benefit of allocating capacity to depth is strongly architecture-dependent: standard Pre-LN and most norm- and scaling-based variants (e.g. LayerNorm Scaling) give little benefit and can even degrade as models get deeper and narrower, whereas HC and Full AttnRes improve consistently even at extreme deep shapes. Gains extend beyond pretraining loss into improved domain-specific performance and effective computation; layer-level analyses link HC/Full AttnRes gains to more effective utilization of additional layers via distinct mechanisms. Concludes residual-connection design determines whether depth can serve as a meaningful scaling axis.
- Paper
Rufus-Air: An Open LLM Post-Training Recipe
Rufus-Air is an eight-stage serial post-training pipeline on GLM-4.5-Air-Base (106B-A12B): SFT, Reasoning RL, Coding RL, Instruction-Following RL, General Agent, Coding Agent, Search Agent, and RLHF. It combines public data and open-source components without newly commissioned human annotation or an in-house distillation teacher, and emphasizes difficulty filtering, reliable rewards, and infrastructure details. The resulting model improves over the official GLM-4.5-Air release on every reported benchmark except Arena-Hard v2 Creative Writing and is competitive with similarly sized open models.
- Paper
Hymba: A Hybrid-head Architecture for Small Language Models
arXiv 2411.13676: Hymba hybrid-head (attention + SSM in parallel), learnable meta tokens, cross-layer KV sharing, partial SWA. Hymba-1.5B-Base claims SOTA among sub-2B public models and beats Llama-3.2-3B avg accuracy with ~11.67× smaller cache and ~3.49× throughput. HF: nvidia/Hymba-1.5B-Base|Instruct. Discord: NVIDIA hybrid Mamba×Attention 1.5B.
- Paper
Automated Tensor Scheduling for Hybrid CPU-GPU LLM Inference on Consumer Devices
ATSInfer (Nanjing University) extends llama.cpp (~15k C++ lines) for consumer hybrid inference. Static knapsack placement uses measured empirical performance density (latency per byte) plus backend-switch costs; load-aware dynamic transfer promotes CPU-resident tensors when PCIe overlap can hide the copy; async coordination splits compute vs copy-engine streams. Vs llama.cpp under the same VRAM budget: prefill up to 1.94×, decode up to 3.29× (laptop) / 3.12× (RTX 4090), ~70% higher average decode SM utilization. Also beats vLLM offload and KTransformers on the models those support. Hardware: RTX 3060 6GB+32GB (Qwen3-14B INT4, Qwen3-30B-A3B INT4, GPT-OSS-20B MXFP4, GLM-Z1-9B FP16) and RTX 4090 24GB+64GB (Llama 3.1-70B INT4, Qwen3-Next-80B-A3B INT4, Qwen3.5-122B-A10B INT4, GPT-OSS-120B MXFP4). No public code linked in the paper.
- 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.