Explore the research collection
44 entries · showing 1–24 · Follow this search
- Paper
DR Tulu 2: Scaling Simulated Environments for Deep Research Agents
Chen, Faria, Zhuo, Shao, Gupta, Jiang, Zettlemoyer, Koh, Smith, Brahman, Dasigi & Asai (Ai2), 'DR Tulu 2: Scaling Simulated Environments for Deep Research Agents' (released Dec 1 2026; code Apache-2.0 at github.com/allenai/dr-tulu2; model allenai/DR-Tulu2-4B on Hugging Face; paper at allenai.org/papers/dr-tulu2). An open 4B deep research agent trained entirely in simulated search environments with the DR-Anything framework: for each training task the framework constructs both a research question and a searchable collection of documents, and the agent issues queries, opens documents, and refines its search over many steps. Serving the collection locally (BM25 indexes over General Web, Finance, and Science corpora, all released on Hugging Face) makes RL rollouts scalable without per-query API costs or external rate limits. Training is a three-stage checkpoint sequence from Qwen3.5-4B: a BrowseComp stage on the General Web corpus (step 400), then SEC100 on Finance (step 200), then Science100 on Science (step 100) as the final checkpoint; the stack is Prime-RL with a Verifiers environment and vLLM serving. Ai2's headline claim (first-party): across 10 benchmarks DR Tulu 2 beats Tongyi DeepResearch with a page summarizer by 9.7 points on average, and the release reports live-web accuracy after purely simulated training - the sim-to-live transfer is the load-bearing claim. Evaluation covers BrowseComp-Plus with GPT-4.1 grading, plus live-web runs via Serper/Jina. Cross-references: the environment-construction member of the agent-RL thread - simulated, locally served search environments as the scalable alternative to live-API rollouts; the post-training counterpart to Search-Native Pretraining (ID 1902, search taught in pretraining); v1's training data is in the catalog as datasets (dr-tulu-rl-data, dr-tulu-sft-data).
- Paper
Sample-Efficient In-Context Adaptation via Sleep
Lee et al. (CMU, Yale, Microsoft Research; alphaXiv, Nov 24 2026) ask whether sleep - N recurrent forward passes refining a model's representations of a chunk of context - improves in-context adaptation for plain transformer LMs on general, non-synthetic tasks, not just long-context reasoning in SSM-attention hybrids where it was first shown. They pretrain LMs up to 1.2B parameters on up to 100B tokens with sleep mechanisms. Longer sleep learns faster in-context on multiple few-shot algorithmic and question-answering tasks and reaches lower next-token prediction loss on out-of-distribution evaluations. On held-out code, N=2 matches the no-sleep baseline's loss using 2.10x fewer tokens in-context, and N=4 using 2.39x fewer. The authors frame it as a tradeoff between in-context adaptation and decoding latency: sleep buys sample efficiency with extra recurrent passes per chunk. Flags, as entered: abstract-level at cataloging, authors' own numbers; alphaXiv Exclusive - NO arXiv ID exists for this paper (the '2611.sample-efficient-in-context-adaptation-sleep' string is the alphaXiv slug, not an arXiv identifier) and no license is confirmed; code/release status not confirmed. Cross-references: NOT a duplicate of ID 506 (Behrouz et al., Google Sleep, arXiv 2606.03979 - a different mechanism: MoE consolidation plus dreaming) - this is the recurrent-pass sleep of Lee et al.'s own earlier 'Do Language Models Need Sleep?' (arXiv 2605.26099, SSM-attention hybrids), which is itself NOT in the catalog. Sits beside the looped cluster (recurrent passes over context vs recurrent passes over layers) and the in-context-adaptation question of staged slot 18-adjacent work. For the user's 250M stack, the transferable idea is sleep as a pretraining mechanism for in-context sample efficiency at his scale (1.2B/100B evidence), with the caveat that it costs inference-time recurrent passes and must be baked in during pretraining, not bolted on after.
- Paper
LittleBit: Ultra Low-Bit Quantization via Latent Factorization
LittleBit (Lee, Kim, You & Kim; arXiv 2506.13771, May 2025, v5 Feb 2026, CC BY-NC-ND 4.0) pushes weight quantization into the extreme sub-1-bit regime: as low as 0.1 bits per weight, a ~31x memory reduction that compresses Llama2-13B to under 0.9 GB. Instead of quantizing weights directly, it represents each weight matrix by a LOW-RANK LATENT FACTORIZATION and binarizes the resulting factors. To counter the information loss at such precision, a multi-scale compensation mechanism learns importance parameters across the row, column and latent dimensions. Two pieces make training work: Dual Sign-Value-Independent Decomposition (Dual-SVID), which initializes the quantization-aware training, and Residual Compensation, which minimizes the factorization's approximation error. Headline claim: at 0.1 BPW on Llama2-7B, LittleBit surpasses leading techniques operating at 0.7 BPW, and the authors project up to an 11.6x inference speedup versus FP16; code is public. Flags, as entered: abstract-level record at cataloging time; the evidence is Llama2-era 7B/13B models, the cross-method comparison is the authors' own, and the speedup is stated as potential rather than measured end-to-end; unlike calibration-free PTQ, LittleBit is a quantization-AWARE TRAINING method, so its costs include a training run. Cross-references: the catalog's quantization thread, at the opposite design pole from the SINQ/BeeLlama entry staged the same day - SINQ keeps 2-8 bit weights and removes calibration; LittleBit removes the bits themselves (down to a tenth of a bit) and pays with factorization plus training. Both treat the weight matrix's row/column scale structure as the thing to model explicitly.
- Paper
On the Design of Hyper-Connections: Simplification, Stability, and Scalability
Ablation-driven simplification of Hyper-Connections (HC / mHC), the expanded-residual architecture increasingly adopted in frontier LMs, whose components the authors argue are poorly understood and carry non-negligible training overhead (arXiv 2611.05984, Nov 4 2026). Two findings drive the redesign: (1) the HC interaction decomposes into two independently effective groups - learned read/write gating WITHOUT residual mixing, and unconstrained mixing with FIXED gates - and either alone matches full mHC performance, so the full combination is redundant; (2) repeated access to the expanded residual state is a major source of training overhead even without any mixing. The resulting architecture, SimpleHC, removes residual mixing entirely and simplifies execution through shared memory access, exploiting the additive structure and shared gate inputs: layer-specific gates share a group-entry state, enabling batched reads and deferred writes, and scalar corrections exactly preserve the contributions of preceding sublayer outputs. Results: SimpleHC costs only 2.4% extra end-to-end training time over a vanilla residual baseline at the largest tested scale, maintains performance comparable to mHC when scaling from 15B to 30B MoE models, shows smoother gradient dynamics during standard training, and remains stable under stress tests. Flags, as entered: abstract-level record (ablation details and per-component numbers live in the full text); evidence is at 15B-30B MoE scale, far above small-model regimes, so the transferable claim for smaller stacks is the qualitative one - that HC's mixing machinery appears dispensable and its systems overhead is mostly memory access, not the mixing itself; license not confirmed from the arXiv record at cataloging time. Cross-references: the catalog's HC family - ID 1540 (Hyper-Connection Factory repo), ID 1688 (xHC: Expanded Hyper-Connections), ID 1654 (Multi-Stream Attention Residuals); Junchi Yan also co-authored ID 1805 (DepthGraft), whose references cite this work.
- 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
DepthGraft: Structural Regularization through Hierarchical Cross-Layer KV Reconstruction
Cross-layer KV sharing, reframed: the cache saving may be the least interesting thing it does. The problem setting is depth-wise information dilution in Pre-LN architectures, which limits how much deep layers get used. Prior cross-layer connectivity either costs extra compute/memory or treats KV sharing purely as cache compression. The paper's analysis: every KV reuse edge also creates a direct gradient path from deep layers back to the source layer's KV projections, so sharing acts as an implicit structural regularizer on KV representation geometry - and the topology matters: properly chosen sharing sharpens key retrieval directions while enriching the value content subspace, whereas adjacent-layer sharing and global-anchor designs do not fully exploit the effect. DepthGraft is the topology their analysis motivates: a hierarchical scheme that reconstructs each deep layer's KV from stride-aligned shallow-middle source PAIRS, distributing the non-local gradient flow across many source layers instead of concentrating it on neighbors or a single anchor. It preserves prefill early completion and cuts KV cache by roughly one third. Experiments span dense and MoE models from 0.5B to 16B parameters, under both GQA and MLA, with consistent downstream improvements; the headline is the 16B MoE model: +7.0 absolute on MMLU-Pro, +6.6 on CMMLU, +6.4 on C3 over its non-grafted baseline. Caveats: abstract-level evidence, all first-party, and effect sizes that large from a sharing topology are unusual enough to want the full tables and training-token counts before treating them as settled; a project page is linked from the paper (GitHub). Paired reading with ID 1804 (Depth Hybrid Attention, shared the same morning): both papers move information across depth inside attention, but in opposite directions - DHA ADDS a per-token depth bank and a learned router so layers can read earlier layers' values at inference, while DepthGraft REMOVES deep layers' own KV (reconstructing it from shallow sources) and argues much of the benefit is a training-time gradient-path effect. Together they bracket the design question for deep stacks: is cross-depth flow worth paying inference-time machinery for, or is it mostly a pretraining regularizer you can have while also shrinking the cache?
- Paper
Scaling Discovery Requires Forgetting
LLM-agent discovery plateaus because agents accumulate history: each agent becomes anchored to its own past attempts, making fewer and smaller edits, so more budget buys little. The paper's fix is forgetting: periodically discard every agent's session (messages, tool calls, errors) and the entire candidate history, keep only the highest-scoring artifact, and restart all agents from it with empty context. On a team of four agents with result-sharing (3 forgets → 4 budget-equal rounds), this Periodic Amnesia Search yields up to 15% over independent parallel agents and 39% over a single agent at matched token cost. Measured mechanism: edit distance between successive code artifacts decays exponentially as context grows and diff token entropy collapses — the model mimics recent turns instead of sampling its prior; before the first reset median edits shrink ~150→30 lines and thinking tokens ~28k→7k, and after forgetting agents resume larger edits and more reasoning tokens per proposal. Evaluated on four discovery tasks (AHC014 heuristic programming, a Frontier-CS optimization problem, Anthropic's kernel challenge on a simulated VLIW SIMD machine, a five-minute nanochat LM training run), all with the Pi agent + DeepSeek V4.1 Flash ($20 budget/replicate), 3 replicates each; Frontier-CS Q171 breaks the plateau pattern (parallel agents keep improving) yet the forgetting team still finishes 15% higher; on AHC014 the forgetting team reached mean best score 1,103K vs 964K parallel vs 795K single (best-replicate trajectories 1,144,695 / 1,007,073 / 961,136 — not the means). Stalled runs that forgot gained 4.5–9.2% over the next 30 proposals vs <2% for continuing runs at up to 2× cost (equal-proposal comparison, not equal-dollar/equal-time; AHC014 team-of-4 panel: 9.2% ± 6.9% at $15.32 vs 1.4% ± 1.3% at $24.67). Caveats: the anchoring explanation isn't isolated (session + candidate history cleared together), "when and what to forget" is left for future work, and generality beyond the four tasks isn't established.
- Paper
xHC: Expanded Hyper-Connections
xHC (Expanded Hyper-Connections) is the first Hyper-Connections-family method to achieve meaningful residual-stream expansion beyond N=4. Hyper-Connections expand the Transformer residual stream into N parallel streams (memory scaling beyond width and depth); mHC stabilized this at scale but stopped at N=4, where scaling mHC further gives diminishing gains at rising cost. xHC combines (1) temporal feature augmentation — MLP write-back enriched with multi-scale local features from causal depthwise convolutions (kernels {4,8,12}) over neighboring tokens — with (2) sparse residual-stream updates: dense read access to all N=16 streams, but residual mixing/write-back routed through only k=4 active streams (2 fixed + 2 routed), cutting residual-mapping generation cost from O(N³C) to O(k³C); mixing is Sinkhorn-normalized over active streams. On an 18B MoE, xHC improves the average downstream score over mHC by 4.0 points across 12 benchmarks (3.1 points at 28B, winning 11/12), with only modest extra training FLOPs; vanilla and mHC need 1.50× and 1.19× xHC's compute to reach the same loss; expanding N=4→16 improves xHC's loss by 0.012 at +4% FLOPs vs 0.006 at +32% for mHC. xHC-Flash (sharing full-state ops across sublayers) cuts per-sublayer memory traffic from 73.5C to 40C (Flash-4sub), near mHC's 34C at N=4, while retaining the gains. Fused Triton forward/backward kernels: mHC adds ~15% training overhead over baseline, xHC-Flash-4sub ~11% on top of mHC; inference prefill +11.4%/+12.9%. Author-open-sourced the training code (Megatron-LM based; xHC-Flash not included): github.com/aHapBean/xHC (Apache 2.0).
- Paper
Multi-Stream Attention Residuals
Attention Residuals (AttnRes) replaces fixed residual accumulation with learned depth-wise softmax retrieval over earlier layer outputs — single-head softmax attention along the depth axis. Multi-Stream Attention Residuals (MSAR) generalizes this to multi-head depth attention. The obstacle: in depth attention the retrieved value is the hidden state itself, so AttnRes's channel-splitting into heads degraded performance, and Hyper-Connection-style write-back candidates are near-identical scalar reweightings with little cross-head diversity. MSAR instead draws diversity from the sequence axis: a small set of multi-scale causal depthwise convolutions applied to each layer output produces m (default 4) full-dimensional streams whose receptive fields encode different local-context scales; each stream performs its own softmax retrieval over depth, and the retrieved states are fused by a lightweight H^pre-style adaptive mixer into the single-stream layer input. Because all streams are deterministically regenerated from the single stored residual source on demand, persistent storage and pipeline communication stay O(Nd) — matching AttnRes — and MSAR remains compatible with AttnRes block mode (~8 blocks by default), cache-based pipeline communication, and two-phase inference. Overhead at 28B MoE: +0.5% training FLOPs, +0.3% activated parameters. Across all 12 downstream benchmarks MSAR beats Vanilla, mHC, and AttnRes at both scales: 18B MoE average 45.7 vs 37.5 Vanilla (+8.2), 41.7 mHC (+4.0), 41.8 AttnRes (+3.9), with final training loss 1.750 vs 1.799/1.776/1.769; 28B MoE average 52.4 vs 44.6 (+7.8), 47.4 (+5.0), 49.4 (+3.0). Scaling-law fits across four scales give an iso-loss compute speedup of 1.58× over the standard residual baseline, vs 1.35× for AttnRes and 1.30× for mHC. Ablations on a 10B MoE (Pile loss): MSAR 1.847 vs AttnRes 1.867, mHC 1.871, and a direct AttnRes+mHC hybrid 1.861; removing the convolutions (identical replicated streams with independent queries) raises loss to 1.862, showing contextual source diversity — not merely multiple retrieval heads — carries the gain; two streams capture most of the improvement and eight add little.
- Paper
Switching Linear Attention
Switching Linear Attention (SwiLA) is a sequence layer from Stanford (Lee, Gonzalez, Zucchet, Buchanan, Fox, Linderman) that tries to close linear attention's expressivity gap while keeping its fixed-size recurrent state (no growing KV cache). Derived in the test-time regression framework, the state is a mixture of J linear regressors (state O(JD²)) fitted online by expectation–maximization: posterior responsibilities computed from each component's prediction error plus a learned gating prior weight a delta-rule update per component. Because each output dimension selects its component independently, the layer realizes J^D piecewise-linear maps and its recurrence is nonlinear in the state — unlike Mixture-of-Memories, whose router is state-independent. Variants add temporal persistence in the assignment prior (Temporal SwiLA) and input-dependent gating (Gated SwiLA). At 374M parameters pretrained on 15B FineWeb-Edu tokens with state size matched across recurrent baselines, Gated SwiLA variants average 45.4 on a commonsense suite vs 45.3 for Transformer++ and 43.7 for DeltaNet (KDA leads the linear family at 46.6); on six recall-intensive tasks Gated Temporal SwiLA's 20.6 is the best pure-recurrent average (DeltaNet 17.3) though softmax models still lead (FoX 33.7), and Hybrid Temporal SwiLA (3:1 recurrent:softmax interleave) reaches 31.8, beating Hybrid GDN (29.5) and Transformer++. Profiled at 1.3B, SwiLA gets 4–5× the Transformer's end-to-end inference throughput (batch-size effect of having no KV cache) but trains ~2× slower than Gated DeltaNet with a sequential Triton kernel; a chunkwise parallel Newton training algorithm is derived but not yet implemented. Ablations (115M): temporal persistence helps consistently, load balancing prevents expert collapse in vanilla SwiLA, and more experts (4→16) slightly hurt at fixed state budget.
- Paper
Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression
Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.
- Paper
HyperThink: Text-to-Parameter Hypernetworks for Efficient Reasoning
HyperThink amortizes long-form reasoning traces into a single query-conditioned parameter update. A lightweight hypernetwork reads the question with a frozen pretrained text encoder; a bias encoder combines the query representation with learnable parameter tokens assigned to selected layers; and a vector-quantized (VQ) decoder maps them through learned discrete codebook prototypes to bias shifts applied to a small selected subset of the base LLM's biases, leaving the rest of the model frozen. This is not per-query gradient optimization: the trained hypernetwork predicts the update in one forward pass. Training uses correctness-filtered thinking-mode responses generated by the base model itself; only the hypernetwork and codebook are trained, teaching the adapted model to reproduce the response tokens without the trace. On Qwen3-0.6B trained on GSM8K with MATH-500 as the out-of-domain test, HyperThink reaches 73.40% Pass@5 versus 61.48% for budget-controlled thinking at similar compute (1150.83G vs 1198.27G FLOPs), with end-to-end latency comparable to native non-thinking on a single H200. A VQ ablation (43.32% Acc / 66.90% Pass@5 without VQ vs 48.76% / 73.40% with VQ on MATH-500, near-tied on GSM8K-train) supports the authors' reading that the discrete bottleneck regularizes the query-to-update mapping and aids transfer. Boundaries: on harder AIME problems high-budget thinking remains substantially stronger, and on executable code native non-thinking can be competitive or stronger; the established contribution is an improved low-latency accuracy trade-off, strongest in the near-non-thinking regime.
- Paper
VERA: Scaling Verifiable Environments for Agentic co-Evolution
VERA (NVIDIA) addresses agent training's environment bottleneck by converting benchmark trajectories into 9,000+ restartable, rubric-scored sandboxes, then co-evolving the LLM and its harness on them. Auto-Rubric turns trajectories into sandboxes: a coding agent writes binary rubric items (scored {0,1} from observable evidence) over action arguments, execution effects, artifacts, and output quality; executable checks and an Agent Judge verify each sandbox, and a failed executable check overrides any judge score. Trajectories are segmented into five stages (plan, setup, verify, execute, submit), each restorable and scored independently. The co-evolution loop alternates two updates with the other component frozen: model rounds run full-parameter GRPO with rubric rewards (a Reward Verifier checks the rollout evidence behind each reward; a checkpoint is accepted if its dev-benchmark score drops no more than 20% relative to the previous accepted checkpoint), and harness rounds add/merge/remove skills (accepted only if a paired frozen-model rerun shows target-stage improvement, no end-to-end regression, safety checks pass, and self-tests pass with at least +5 Overall points on the dev set; at most three edits per round). At 9B (Qwen3.5-9B), the co-evolved agent beats the strongest single-axis baseline by 10.3 points on AutoCoWorkBench and 13.0 on AutoMedBench, leading SWE-Bench Verified and MedXpertQA under their official protocols. At 27B (Qwen3.8-27B), VERA reaches 71.6 on AutoCoWorkBench (above Claude Opus 4.8, 1.0 point below GPT-5.6-Sol) and 80.7 on AutoMedBench (within 1.2 of Claude Opus 4.8, highest Agentic score 94.1), and transfers out of domain to Automation-Bench (43.8%) and AgentClinic (76.4%). Only at 27B are general capabilities retained/improved (AIME 2026 +10.0, ALFWorld +3.8, GPQA-Diamond +7.7, IF-Bench +1.8 for the CoWork agent); 4B/9B agents lose heavily on AIME.
- Paper
LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches
NVIDIA's LoGRA makes RL post-training memory-efficient via low-rank gradient sketches: instead of storing full d×k gradients, it accumulates sketches S=GAᵀ (d×r, r≪min(d,k)) directly during backprop by projecting layer inputs before multiplying by backward derivatives, so full gradients are never formed. A random projection A (random signs /√r, fresh each step) keeps successive updates from being rank-limited; the sketch is optimizer-adjustable (U) and merged into full-size weights as W ← W − αηUA, with predicted-KL step control estimating policy change before the update and scaling α to fit a KL budget. The compact sketch doubles for policy synchronization: the rollout engine regenerates A from a seed and applies αηU, cutting communication. On DAPO-Math-7.5K (128 prompts, 1 response each, 4k context) with an annealed predicted-KL budget vs dense Adam: average training memory falls 21.8% at 1.5B and 45.7% at 7B over 300 updates with no task-performance loss; at 27B on a single 8×H100 node, LoGRA completed 1,100+ steps while dense Adam OOMed during its first Adam-state allocation. Intuition: binary outcome rewards carry little per-token supervision, so a compact update suffices; precedents include GaLore, FLORA, and LoRA-without-regret.
- Paper
Bellman Policy Optimization
BPO is a critic-free RLVR method derived from Policy Mirror Descent (PMD): for autoregressive generation with terminal rewards it uses the Bellman equations to reformulate PMD as a trajectory-level objective, avoiding estimation of state values at intermediate states, and it is proved to have the same unique optimal solution as the original PMD objective on states reachable under the rollout policy. The practical token-level loss approximates this objective with a smoothed mismatch-correction weight — a smoothed ratio of complementary token probabilities — replacing the importance-sampling ratio. On Qwen3-30B-A3B-Base it reaches 50.5% average accuracy across AIME 2024-2026, vs 39.5% GRPO-ClipHigher, 43.5% GSPO, 47.4% CISPO, 46.4% DPPO (strongest baseline gaps 3.1-11.0 points); after 400 training steps 49.4% vs 45.5% for DPPO. Ablations on Qwen3-4B-Base show similar performance across a range of smoothing and truncation settings.
- Paper
Write Back the Δ: Revisiting the Same Tokens with Fresh Representations
Inference-time feedback that recycles endogenously produced computation: feeding a Transformer's full deep state back into shallow layers saturates fast (deep states are collinear copies of early residuals), but routing the depth increment Δ = z_deep − z_shallow isolates the newly accumulated computation and scales cleanly up to 6 edges. ReFlux frames depth feedback as a learnable directed-acyclic graph over layer pairs, with a tiny 2.2M-param router MLP predicting sparse gates and amplitudes over a frozen backbone — beating a 2.9M rank-8 LoRA adapter on C4 perplexity. Post-write norm projection avoids 'norm shock' on Pre-LN models like Qwen 3 (flipped Qwen3-4B from negative to +6.15% gain). Two execution flavors: sync (2 passes, 1.9x latency) and streaming (single pass, injects cached Δ(t−1) into token t — 0 extra backbone FLOPs, same KV cache, 1.02–1.08x decode latency, >80% of sync gains). Streaming serializes prefill (510x slowdown on 1,107-token prompts), so serving needs parallel prefill. Downstream: +2.1–2.3 accuracy points overall, +4.7 on multi-hop reasoning (2WikiMultiHopQA 24.6→29.7, HotpotQA 42.3→47.0); with CoT on GSM8K hits 92.0 while cutting output length 31% (1,002→691 tokens). Gemma3-4B C4 PPL 23.69→21.85 (full state only 22.79). Relevant to the user's LLM training-run and agent-harness work; related cluster: looped/recurrent models (670, 952).
- 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
Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents
Terminal agents act through stochastic model generations, but the ability to generate a useful action doesn't ensure reliable execution — one bad shell command (wrong package install) can poison the environment even when the model could have generated a better alternative. Investigates allocating test-time compute at the model-harness boundary: Mid-Harness samples and verifies candidate actions before forwarding one for execution, leaving generator and harness unchanged. With a TMAX-9B generator, more action sampling helps little under weak verification, while a capable verifier exploits useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% to 68.03% with 8 sampled actions; with TMAX-9B as its own verifier, pairwise verification performs best; distilling the stronger verifier into TMAX-9B improves Pass@1 further without touching the generator. Combining action and trajectory scaling reaches higher success at lower estimated token cost than more trajectories alone. Key design rule: spend more on the verifier than on extra samples. Practitioner takeaway (@thesignalnow): label candidate pairs offline with the strong verifier, fine-tune a small model, deploy it as the always-on checker — avoids paying frontier-model prices per action. Directly relevant to the user's agent-harness work.
- Paper
AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
Trains long-horizon coding agents to proactively decide when to compact their own context — a form of model-harness co-design: the harness provides the compaction mechanism, the model learns when to invoke it, what working state to preserve, and how to continue afterward. Data collection: run the base agent on coding tasks, use a judge to review its compaction decisions, summaries, and post-compaction actions; flawed outputs are replaced with corrected ones before environment execution so trajectories continue from corrected decisions. These trajectories feed supervised fine-tuning, then joint RL optimizes coding and compaction with task-success rewards. Absolute gains: +9.2 points on SWE-bench Verified, +5.0 on SWE-PolyBench Verified. Improvements hold across all inference budgets — including with a 256K context window that never overflows (so learned compaction helps even when context space isn't the limit) and with a 16K window whose overflow triggers fallback compaction. Latest in the AutoHarness → AutoContext → AutoCompact trend of moving harness responsibilities into the model itself; related to Meta's Context Language Models paper. Open questions: scaling, robustness across harnesses, combining rule-based compaction packaged in harnesses with model-invoked proactive compaction.
- Paper
Mixture of Self-Improving Branches For Agent Harness Optimization
Harness optimization is a practical setting for recursive self-improvement: agent-generated modifications inform subsequent changes through execution feedback. Meta-Harness implements this via iterative code generation and evaluation, but a fixed development set and fixed proposal policy channel evolution along a single trajectory, risking local optima — and a harness that solves cases the leaders miss yet ranks lower overall gets little chance for further development. Mixture of Self-Improving Branches organizes the improvement process itself into parallel branches, each with evolving development subsets and proposal policies. Every branch starts identical (same seed harnesses, full problem set, same guidance); no one assigns specialties. After each iteration, branches are compared problem by problem: a branch keeps development cases solved by more of its leading harnesses than by other branches' leaders, drops cases solved by every leading harness across all branches, and revises its own proposal policy (the proposer rewrites its own guidance) using its own search history. The whole loop runs on each branch's own data. The branches grow into different experts, and at test time a router sends each new problem to one branch's best harness before execution. Relative improvements over Meta-Harness: +34.8% on Olympiad-level math (46.0% -> 62.0%), +11.6% on Terminal-Bench 2.0 (44.8% -> 50.0%), +3.8% on SWE-bench Lite (63.6% -> 66.0%), with harness selection and router configuration based solely on development data.
- Paper
Training Large Language Models to Reason in a Continuous Latent Space (Coconut)
Coconut (Chain of Continuous Thought) feeds last hidden state back as next input embedding, enabling latent BFS-like reasoning with fewer tokens; strong on ProsQA/ProntoQA planning tasks. Code: facebookresearch/coconut.
- Paper
PhantomEnvironments: Training LLM Agents in Fictional Worlds
Training LLM agents with RL is bottlenecked by environments, which must provide verifiable rewards, support long-horizon interaction, and scale cheaply. Existing approaches use costly human-curated data or LLM-generated environments that risk hallucinations and benchmark contamination. PhantomEnvironments builds multi-turn RL environments from fictional worlds generated entirely by rules — templated articles and multi-hop questions (e.g., 'Who is the mother of Alice's father?') with no LLM in generation, so zero marginal cost, fully verifiable, free of distillation, and immune to contamination. Despite sharing no facts with the real world, these strikingly simple environments teach the generalizable skill of agentic search (decompose a question, retrieve documents, compose knowledge) that transfers to real-world multi-hop search benchmarks, often outperforming real-world training data on newer benchmarks. Trained agents generalize to unseen fictional universes, and Qwen models learn to scale their search budget roughly linearly with question difficulty, suggesting emergent search scaling from environment interaction alone. Ablating environment complexity shows hop count drives transfer more than constraints or comparisons. The announcement headline: a 7B LLM trained with RL in PhantomEnvs performs like an agent 10x its size.
- Paper
Targeting Pivotal Decisions for Credit Assignment in Agentic Reinforcement Learning
GRPO gives every token in a trajectory the same advantage, so the training signal cannot distinguish decisive steps from the rest. ProVer targets potentially pivotal decisions for fine-grained credit assignment: given a rollout group, an agentic judge contrasts successful and failed trajectories to propose the segment responsible for their divergent outcomes; rather than trusting the judge directly, ProVer verifies the segment by estimating its advantage from the difference in terminal success rates between current-policy continuations sampled before and after the segment, folding positive estimates into the GRPO advantages of policy tokens within the segment. Model judgment is used only to select where to verify, grounding local credit in observed outcomes without exhaustively evaluating every intermediate state. Across ALFWorld, WebShop, and SearchQA, ProVer achieves the strongest average performance at both model scales, with relative improvements over GRPO of 9.91% for Qwen3.5-2B and 7.12% for Qwen3.5-4B; informed segment selection works with modest additional generation overhead even without a frontier-scale judge.
- Paper
Physis-Lang: Self-Evolving Language as a Physical Representation for Video World Model
Language can do more than describe a scene -- it can represent how the physical world evolves. Physis-Lang is an open self-evolving framework that adds physics reasoning to video captions,making causes,interactions,governing principles,and effects explicit in language (e.g. replacing "butter melts as temperature rises" with Cause: rising temperature supplies heat; Physical law: heat drives melting,gravity makes the butter slump; Effect: solid shrinks as a liquid pool expands). The same representation connects data curation,model training,and inference through three stages: (A) Evolve the language -- a physics-aware critic diagnoses missing or unsupported claims while an agent refines shared captioning guidelines with the captioner fixed,selected via PhysCapBench (246 reviewed physical videos,3,794 human-verified assertions); (B) Retrieve missing physics -- model failures become physics-domain queries and language-guided retrieval finds visually diverse videos addressing the deficiencies; (C) Train and generate -- the evolved language re-captions training videos and expands inference prompts […]