Explore the research collection
476 entries · showing 169–192 · Follow this search
- Paper
Distributionally Robust Mixture-of-Experts Training
The hidden reliability problem in sparse MoE is not uneven utilization but uneven expert competence: imperfect routing sends tokens to experts that were never well trained for them. DRMoET (Distributionally Robust MoE Training) treats each layer's routed experts as endogenous robustness groups and optimizes the layer-wise worst expert-attributed loss — a drop-in objective with no auxiliary losses and no routing changes. It maintains a per-layer distribution over experts, updated by an entropy-regularized softmax on EMA-smoothed (β=0.999), activation-weighted (routing-probability × expert-output-norm, stop-gradient) expert losses, strengthening plausible non-top routing paths while the router, architecture, and sparse forward/backward stay unchanged. Under the FLAME-MoE recipe from-scratch pretraining at 746M-total (~33.5B tokens) and 10.3B-total (67B tokens) scales, evaluated 0-shot on ARC-E/ARC-C, HellaSwag, PIQA, WinoGrande, SciQ, ReCoRD: at 1.7B-10.3B the seven-task average rises 0.6625 → 0.6767 (+1.42pp absolute, +2.14% relative) vs standard FLAME-MoE and 0.6431 for auxiliary-loss-free balancing (Wang et al. 2024, DeepSeek's method) — +3.36pp over aux-loss-free. At 290M-746M DRMoET's best setting reaches 0.5523 vs 0.5403 FLAME-MoE and 0.5084/0.5055 aux-loss-free. Mechanistic probes: expert-loss std −8.58% with mean loss nearly unchanged (−0.05%), worst-expert loss −2.05%; forced mid-k misrouting shows 4.3% lower excess loss degradation; domain–expert specialization metrics all improve (competence advantage ΔQ +30.2%, expert–domain MI +12.9%). Training-throughput measurement shows no slowdown: 67.19 vs 64.17 TFLOP/s/GPU (+4.7%), iteration time −4.6%, lower variance — the authors attribute this to reduced straggler variance rather than an algorithmic guarantee. Convergence guarantee (Theorem 4.1): entropic mirror ascent on the entropy-regularized objective reaches stationarity at Õ(T^(−1/2)). Limitations: two model scales and fixed expert configs; no imbalanced or long-tail evaluations; probes are diagnostics on trained checkpoints.
- Paper
Scaling Repeated-Data Pretraining: Batch Size, Regularization, and GPU-Time Tradeoffs
Studies pretraining when compute is abundant but unique data are finite, requiring repeated passes over the same data. Revisits the infinite-compute, finite-data frontier (Kim et al. 2026) and shows it depends critically on choices previously fixed or studied in isolation. Jointly optimizing batch size, learning rate, weight decay, and epoch count reveals a U-shaped relationship between validation loss and batch size: the optimum (B=64 sequences / 0.262M tokens for the 1.5B on a 1B-token DCLM-Baseline pool) is 2.9–4.7× smaller than what single-pass batch laws predict, and substantially smaller than the 512–2,048-sequence batches in public recipes — small-batch gradient noise acts as implicit regularization against repeated-data overfitting (CE 3.124→2.977 for the 1.5B; 3.136→3.093 for 474M; 3.416→3.332 for 153M). Batch tuning extends beneficial repetition from 8→20 epochs (1.5B) and 40→112 (153M). A repetition-aware recipe — repacking documents into fresh sequences every epoch, tying input/output embeddings, and applying positive weight decay to the shared embeddings — further improves the frontier (B=64: 2.971→2.946) and delays the best checkpoint (1.5B 20→32 epochs; 474M 32→80; 153M 112→240); batch warmdown, structured gradient noise, and LocalSGD/DiLoCo were tried and showed no clear consistent gains. Because the infinite-compute optimum can demand prohibitive sequential time (an illustrative 70B-on-10T extrapolation gives 22.6 years), the paper splits compute into GPUs and time: under short deadlines larger batches win, but even under a fixed deadline a smaller batch on 16 GPUs can beat a larger batch on 64 GPUs, and latency-oriented parallelism (microbatch 8→1) trades 8× GPUs for 2.7× shorter training at unchanged loss. The repetition-aware recipe uniformly improves the joint GPU-time frontier. Limitations: 153M–1.5B models, 0.333B–3B-token pools; dense models only; target-scale numbers are illustrative extrapolations.
- Paper
Learning What to Investigate Next: Meta-Reasoning for Long-Horizon Research Agents
Long-horizon research agents must decide both how to investigate and what to investigate next, but allocation decisions are sparse in long traces and their consequences emerge several investigations later. MIRA (Meta-reasoning for Iterative Research Agents) makes those decisions explicit: an outer-loop meta-reasoner curates context from a persistent Git-based research record and writes a work order (objective, proposed approach, success criteria) or ends the episode; a fresh inner-loop executor carries out each work order, so every investigation — however long — is one meta-reasoning transition. The decision boundaries also give natural credit-assignment units: a generative critic forecasts expected remaining return from the curated observation using the LM's native next-token distribution, and MIRA-AC jointly trains actor and critic in one model, propagating a single decision-level advantage to the tokens of the decision response while masking the longer executor trace, using buffered single-rollout async optimization. Without policy training, MIRA raises GPT-5.5's IMOProofBench Advanced score 67.1% → 100% (all 30 problems in each of 3 trials) and achieves the lowest proxy and gold loss in matched 24h/48h neural-architecture hill-climbing campaigns (per-cell residual-write gates on RMT; signed attention + leaky recurrent update on Loop Transformer), revisiting proof directions more often than baselines (strategic inertia 0.772 vs 0.958 direct). The generative decision-level critic beats token-level alternatives by 0.110 RMSE, and cross-environment LOO pretraining improves forecasting and adaptation (−0.053 RMSE after 5 target episodes). Trained on the model's own proxy hill-climbing signals, MIRA-AC improves gold performance across four autoresearch environments (symbolic regression, physics discovery, HillClimbBench-CPU, BNLearn causal discovery), with the cross-environment policy transferring to BNLearn held out from actor training; only 25.8% of output tokens (the decision responses) receive actor loss.
- Paper
AutoEnvScaling: Automating the Data Flywheel with Terminal Agents
Terminal-agent RL is bottlenecked on human-designed environments: the supply of useful training envs grows only as fast as researchers can work. AutoEnvScaling turns environment design into a terminal task — a proposer agent reads the solver's rollouts, decides what to build, then writes and tests complete Harbor tasks (instructions + execution environment + reference solution + tests) inside a sandbox with web access, a coding harness, and child containers. Two admission gates: validation (reference solution scores 1, empty solution <0.5, no 13-gram overlap with held-out tasks, Terminal-Bench rubric review) and calibration (current solver keeps the task only if mean reward ∈ [0.25, 0.75] with variance; up to 2 revisions). The proposer co-evolves via harness optimization (editing its own harness/skills/memory between rounds) or weight training. Across eight frontier proposer models, terminal-based generation raises the valid-environment rate up to 25× over prompt-only generation (DeepSeek-V4-Flash 3.5% → 89.0%) at up to 75% lower cost per valid environment for six of eight models (cost rises for the two strongest proposers since AutoEnvScaling spends more turns). RL on generated environments beats matched static Tmax pools on Terminal-Bench 2.1 (+6.3/+7.4 for Qwen3.5-9B, +4.3/+3.8 for Qwen3.5-35B-A3B), and removing solver feedback costs −3.6/−6.7 points. Recursive self-improvement: Qwen3.6-35B-A3B as both proposer and solver (self-play, one shared policy) improves Terminal-Bench 2.1 from 41.1 to 53.3 (+12.2) and Terminal-Bench 4.0 from 1.6 to 3.2, with 3.1× higher usable-group rate and 42% less rollout-collection time; removing proposer training collapses the loop. On HiL-Bench, tasks generated by Claude Opus 5 let Qwen3.6-35B-A3B reach 33.9% task success / 55.3% Ask-F1 at asking for help — beating Opus 5 itself (7.5%/14.4%). Code (Apache-2.0, private preview), launchers for every experiment, figure data, and generated environments are public; sandboxes run on Modal.
- Paper
Real Long-Term Memory for AI: A 50-Million-Token Window That Is Faster and Cheaper Than Recompute
Corbenic AI's Sietse Schelpe reports a serving-side "long-term memory" layer for frozen LLMs: the public package galahad-kv, loaded into vLLM 0.31.0 via a KV-transfer plug-in, writes each ~16,000-token block's KV state to encrypted local NVMe (MRLNCRY1 format, AES-256-GCM) on first processing and later restores it byte-exact with zero recompute; only one block is ever resident, so GPU memory stays flat. On 50,000,000 tokens of real public text (3,125 blocks; WildChat/code/arXiv/FineWeb-Edu mix, mutated against pretraining contamination) served on a single NVIDIA H100: all 100 probed blocks restored from the encrypted store with no recompute at every depth from 0 to ~49.5M tokens, on both Gemma 4 12B (bf16) and Gemma 4 31B (FP8). A restore is 2.8×/4.3× faster than recomputing the same block (0.266s vs 0.760s; 0.347s vs 1.475s) and uses 8.8×/12.3× less GPU energy, with restore latency depth-independent. On facts planted millions of tokens earlier (with same-format decoys), the 12B model answered 82/100 and the 31B 98/100, with zero hallucinations and zero fabrications on 20 negative controls. Store: 1.86 TB (12B, 36.4 KiB/token) and 6.25 TB (31B FP8, 134 KiB/token) — the small footprint leans partly on Gemma 4's mostly sliding-window attention, which the paper notes it benefits from rather than introduces. The evaluation follows a cheat-resistant protocol (blind ingest, per-block needles, decoys, encrypted-store audit, separate engine-vs-model metrics). Limitations are explicit: this is KV reuse at any depth, not a wider attention window — one block is resident and restored on demand, never attended jointly; there is no learned retrieval; writing is a one-time cost measured at 20,839/10,700 tok/s deposit throughput; the store must be local NVMe.
- Paper
Enabling Token-wise Importance Sampling in Off-Policy RLVR with Proximal KL Regularization
In reinforcement learning with verifiable rewards (RLVR), off-policy data arises from asynchronous generation, rollout/training mismatch, and response reuse across minibatches. Exact sequence-level importance correction multiplies likelihood ratios across long responses (high variance), while token-wise weighting generally biases policy gradients. The paper proves (Theorem 1) that adding full future-KL credit makes the exact proximal optimizer the update's unique stationary policy even under supported stale-behavior-policy mixtures, without full-response weights or a fitted critic: each token is charged the current token's and all future tokens' KL log-ratio costs against a fixed proximal reference, combined with a single current-token importance ratio. At the target, reward minus full unclipped Future-KL is identical across all continuations of a given history (pathwise cancellation), so the token-wise update vanishes; tabular continuous-time updates converge and a finite-sample reward guarantee holds for linear logistic models. The practical algorithm, Proximal KL, records each token's behavior probability, periodically refreshes the proximal reference, and subtracts bounded future KL costs (working default β=0.30, per-token cost bound 0.05) from a group-relative reward advantage before applying the token-wise importance weight — PPO clipping is omitted. On Qwen3-1.7B/4B trained on verifiable math tasks, Proximal KL beats GRPO in all seven matched off-policy comparisons by response-weighted (micro) accuracy over eight math benchmarks (MATH500, OlympiadBench, MinervaMath, Gaokao2023MathEn greedy pass@1; AIME24/25, AMC23/24 mean@16), up to +2.58 pp (30.39→32.97). In periodic-refresh stability tests across 1.7B/4B/8B/32B, PG and CISPO collapse at larger sizes (1.7B CISPO improves then falls sharply; 8B/32B large declines), while Proximal KL sustains gains at all sizes — e.g. 8B reaches 50% EMA training accuracy in ~200 updates vs ~640 for GRPO. Ablations: token-wise correction outperforms sequence-level IS (geometric-mean ratio) and unweighted controls; future-KL feedback is less sensitive than PPO clipping to group-baseline perturbations; bounding each token's KL cost is required to avoid gradient excursions; a finite Future-KL horizon can beat the full tail (variance reduction, bias-variance tradeoff).
- Paper
Hybrid Reasoning Agents
HybridAgent is an LLM agent that dynamically navigates between latent reasoning and text-based interaction within a single unified generation process, combining efficient latent "inner thinking" with text-based tool calls and external inspection. The core mechanism is HybridLink, a lightweight residual adapter mapping last-layer hidden states back into the input embedding space (e_{t+1} = h_t + W2·GELU(W1·h_t), ~10M params at 4B), enabling sequence-wise recurrence in latent mode without representation mismatch. Mode transitions: text mode emits a <latent> anchor token to enter latent mode; latent mode exits when the HybridLink-projected state nearest-matches a </latent> anchor; span lengths emerge adaptively. Latent thoughts remain interpretable: each latent step maps to its nearest token embedding, recovering readable pseudo-text. Multi-turn generation runs over a continuous working memory (KV entries from text, latent thoughts, and tool observations), losslessly preserving hybrid context across turns. Post-training: HybridSFT (format activation, HybridLink activation with cos+MSE regression, then self-conditioned two-pass training with joint CE at text and regression at latent positions, closing the train-inference mismatch) stabilizes tool-integrated hybrid generation; HybridRL scales reasoning via a hybrid policy factorization (policy likelihoods only over sampled text positions, since latents are deterministic given the backbone and fixed HybridLink) with exact rollout replay, rewarding correctness, format, and multi-tool use — learning when to think in latent space vs act through text. Built on Qwen3-Base at 4B/8B/14B and evaluated on 11 benchmarks (math, science, medicine, search, agentic reasoning) against text-based, latent, and frontier-agent baselines: HybridAgent improves performance by 10.4% on average at the RL stage (18.5% at SFT stage; 14B beats the strongest agentic baseline by 17.4%), with 35.5–54.7% token reduction, 1.8–2.6× faster inference, and 2.7–3.7× cost savings. Tool use stays reliable (higher valid call rates than GRPO, 99.7% execution success) and the exposed text trace remains monitorable/debuggable (first-error localization 98–99%), exposing 43–49% fewer text tokens while carrying 26–28% more key reasoning steps per 100 visible tokens. Code, models, and training data are public: github.com/togethercomputer/HybridAgent (MIT) with HybridAgent-8B-Agentic and -14B-Agentic checkpoints plus HybridSFT-v1/v2 and HybridRL datasets on Hugging Face.
- Paper
TeleTune: Evolving Agent Skills From Offline Telemetry
TeleTune learns a readable textual skill library from offline user telemetry — frozen activity logs with no recorded goals, no replayability, and possibly interleaved tasks — with no live-environment access during optimization. The object of learning is a prompt-inserted document of workflows (ordered cross-instance procedures with placeholders) and skills (rules resolving single decisions). The metric is skill-guided progress: teacher-forced next-action prediction accuracy on logged trajectories, conditioned on a goal inferred from the recorded actions. An optimizer reflects on the first prediction error per train-split trajectory, proposes add/replace/remove edits, and keeps the candidate only if skill-guided progress improves on a held-out dev split (two stages: workflows first, then skills). At test time, learned workflows also drive workflow-based retrieval of complementary demonstrations covering the new task's subgoals. On WorkArena with GPT-5.4, TeleTune reaches 77.1% average success (+6.7 over the strongest baseline; L1 80.3%→92.3%) and on Online-Mind2Web 80.6% (+7.7; largest gain on hard tasks). Gains transfer across backbones (Qwen3.6 +11.9 on L1) but shrink to parity on Mistral-3.5. Under controlled task-interleaving perturbation, TeleTune holds 68.5% at the heaviest level (+6.3 over strongest baseline) while AWM collapses to near-no-trajectory performance. Optimizing on fixed logs costs 5–75× fewer tokens than validating the same candidates with live episodes; the live success rate rises 74.1%→92.3% in lockstep with skill-guided progress, making it a usable offline proxy for skill updates. Test-time cost is prompt length: the library is re-sent every step (~201K extra input tokens per L1 episode). Limitations: needs a pool of successful trajectories; only scoreable actions count; test-time token overhead real; Mistral-3.5 shows no gain; L2 compositional tasks benefit less.
- Paper
Efficient Reasoning with Flow Language Models
Flow Language Models (FLMs) are continuous-state diffusion LMs trained by conditional flow matching: they interpolate Gaussian noise to one-hot clean targets, train a clean-token cross-entropy objective, and at inference Euler-integrate the learned ODE over N denoising steps, discretizing to tokens only at the very end. Discrete diffusion baselines pass a single categorical value per position between steps, discarding alternative-token probability mass. The paper's theory: the FLM state is exactly a temporal superposition of candidate-sequence vertices, so historical support for non-top-1 candidates persists; that retained support can change prediction margins even within a fixed hard state (a margin span of Δ implies worst-case reproduction error ≥ |Δ|/2 for hard-state-only readouts); and decoder-risk bounds show the continuous state can strictly lower prediction risk vs the hard projection. Empirically, on Maze10/15/20 at 4 denoising steps with matched model sizes, FLM beats the best discrete baseline by +1.2/+18.0/+21.2 percentage points of exact sequence accuracy (99.5/99.1/91.3), with FLM already at 95.9% on Maze15 in a single step; FLM stays ahead of MDLM across three model sizes and 1–512 steps and reaches the 95% target on Maze15 with 36.5% fewer parameters (88.25M vs 139.00M). On Sudoku-Extreme (86.88M), FLM leads at 1–2 steps (21.0%/36.7% vs 19.2%/36.2%) but enhanced discrete samplers overtake from 16 steps onward; the 1-step edge transfers zero-shot to Standard Sudoku (29.5% vs 27.1%). Mechanism evidence: at t=0.80, 23.8% of cells in the accumulated state retain a second candidate ≥0.05 (vs 4.9% in the instantaneous prediction), and interventions removing non-top-1 information degrade recovery (Natural ≥ Top-2 > Top-1), so the retained alternatives are actually used — this is the error-preemption effect where alternative digits fade across steps and let FLMs correct initial mistakes. Wall-clock: FLM is fastest at N=1 on all tasks (0.151s vs 0.303s MDLM on Maze20), comparable at N=64.
- Paper
Mamba-3: Improved Sequence Modeling using State Space Principles
Mamba-3 is the inference-first redesign of Mamba-2, derived from the continuous-time SSM viewpoint, with three core changes. (1) Exponential-trapezoidal discretization — a second-order scheme replacing the exponential-Euler discretization implicit in Mamba-1/2, giving a more expressive recurrence. (2) Complex-valued state updates — the state transition gains data-dependent rotations (equivalent in effect to data-dependent RoPE), which unlock state-tracking capability that real-valued linear models lack, including solving parity-style tasks Mamba-2 fails. (3) A multi-input multi-output (MIMO) formulation that raises arithmetic intensity during decoding — more model quality at essentially the same decode latency, addressing the hardware inefficiency of SISO decoding. At 1.5B scale, Mamba-3 improves average downstream accuracy by +0.6 points over the next-best sub-quadratic baseline (Gated DeltaNet), with the MIMO variant adding a further +1.2 points (+1.8 total over Gated DeltaNet, +1.9 over Mamba-2 per secondary summaries), and it matches Mamba-2 perplexity at half the state size.
- 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.
- Paper
DiscoLoop: Looping Discrete Embeddings and Continuous Hidden States for Multi-hop Reasoning
Looped Transformers fix the depth-local storage problem that blocks in-weight multi-hop reasoning (facts stored in early layers are unavailable where later retrieval happens), but they still generalize poorly out of distribution. This paper localizes the remaining failure as representational: on a controlled symbolic two-hop task (two entity-disjoint knowledge graphs, 500 entities / 50 relations each, compositions over the OOD graph never seen in training), a vanilla looped Transformer reaches only 71.1% ID and 8.3% OOD accuracy, even though a logit-lens probe shows the first loop already assigns probability ≈1.000 to the correct bridge entity. The problem is geometry: the post-first-loop hidden state has cosine similarity of only 0.327 (ID) / 0.266 (OOD) to the bridge token's embedding, so the second loop consumes a noisy continuous mixture instead of the clean discrete embedding it was trained on. A training-free intervention — mixing the normalized decoded bridge embedding into the hidden state at the bridge position between loops — lifts OOD accuracy from 8.3% to 25.9% at mixing weight α=0.1 and to near 100% (ID and OOD) at α≈0.5. DiscoLoop turns this into an architecture: the recurrence carries both channels, adding a gated, RMSNormed soft decode-then-encode term Φ(h) — the tempered LM-head distribution over the vocabulary re-embedded through the tied embedding matrix — into the residual stream at every position and loop. The learnable gate variant adds only d+1 parameters. On the symbolic task DiscoLoop reaches near-perfect ID and OOD accuracy with a sharp phase transition around epoch 500 (vs ~70% ID / <10% OOD for the vanilla loop and <20% ID / ~0% OOD for a FLOPs-matched non-looped model with K× the parameters); it also generalizes on a three-hop extension where both baselines fail OOD completely, and on a synthetic natural-language version it reaches ~100% ID / ~95% OOD vs the vanilla loop's ~90% ID and OOD failure. In real pretraining (440M model, 24 layers, 4 backbone applications, 20B tokens of 60% FineWeb-Edu + 40% FineMath-4plus), DiscoLoop beats the vanilla loop and PonderLM on a seven-benchmark zero-shot average, 50.5 vs 49.3 and 49.8, best or tied on six of seven benchmarks, overtaking the vanilla loop after ~13B tokens. Authors' stated limits: hop-length generalization (train ≤k hops, test >k) untested, pretraining verified only at 440M scale, and whether the recipe can be grafted onto existing pretrained models via continual pretraining is open.
- Paper
Host-Aware Web Crawling for LLM Pretraining Data
Web crawling is the main source of LLM pretraining data, yet selection pipelines discard most crawled pages — so the crawl policy itself is an upstream data-selection decision. Combining scores from ten fastText quality classifiers (DCLM, FineWeb-Edu, Nemotron-CC, GneissWeb) over 3.01M documents on 532,628 hosts from CC-MAIN-2024-10, Ostendorff shows document quality is substantially a host-level property: the intraclass correlation is 0.43–0.62, i.e. roughly half the variation in classifier scores is between hosts. Common Crawl allocates its crawl by harmonic centrality, but in simulations centrality-based host ordering collects at most 1.8× as many high-quality pages as random ordering (and fewer than random for DCLM), versus 4.0–8.0× for an oracle — the centrality signal is confounded by host language composition (English-trained classifiers score languages differently; within-language, centrality correlates positively). For crawl depth, a ~3-page sample per host already predicts the host's remaining quality (Spearman ρ = 0.53 at k=3, plateauing by k≈15–20), and a sample-then-deepen policy — probe a few pages per host, then fetch deeply from high-scoring hosts — collects up to 7.8× more high-quality pages per fetch than uniform-depth crawling at small budgets and approaches the oracle, while also keeping the classifier out of the crawler's hot path (unlike page-level schedulers such as Craw4LLM). Finally, Common Crawl's actual per-host coverage is uncorrelated with quality under every classifier tested (ρ = −0.08 across 5.65M hosts; stable across six crawls 2021–2024): an estimated 58M high-quality pages (~58B tokens at ~1,000 tokens/page) sit among known-but-uncrawled URLs in a single crawl, with 62% concentrated on 369,534 under-crawled "hidden-gem" hosts (6.5% of hosts), skewing toward national/regional news and scholarly repositories.
- 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
One Model to Loop Them All: Elastic Latent Recurrence for Language Models
Looped language models apply a shared block of layers repeatedly, so one checkpoint can trade inference compute for accuracy by changing the loop count — but existing elastic-depth models (Huginn, Ouro, Parcae) pay a "one-loop tax": at one loop they fall well short of a non-recurrent model of the same size, so a separate non-recurrent model remains the better choice whenever latency matters. Elastic Latent Recurrence (ELR) is NVIDIA's recipe for removing the tax, built on three choices. (1) An adaptive-delta state update: instead of replacing the recurrent state with the block's output, the state takes a gated step along the proposed change with a learned per-token, per-channel step size — the only update rule ablated that matches the baseline at one loop. (2) Loop counts mixed within each optimizer update via one-loop rank overrides (a rotating fraction of data-parallel ranks always runs one loop, keeping p₁≈⅓), which places one-loop and deeper gradients in the same update; uniform or globally reweighted sampling without overrides does not preserve the one-loop endpoint. (3) Loop-conditioned modulation: each pass is conditioned on its progress (i/k) and budget (k/K) through AdaLN/FiLM-style modulation, zero-initialized and grafted when mixed-depth training begins so the model starts as exactly the one-loop checkpoint; it lowers loss at every additional loop. Supporting tricks: delayed mixed-depth training (one loop for the first 75% of pretraining) costs ~1.16× baseline training compute and, with grafted conditioning, beats mixed-depth training from scratch; cross-loop route replay (reusing first-loop MoE expert routes on later loops) cuts mixed-depth update time 11.7% with no measurable accuracy change; last-loop KV caching keeps one attention cache overwritten per loop, holding KV memory at the one-loop level with 0–3-point per-benchmark cost. On Nemotron-3-style hybrid backbones (52 layers: 23 Gated DeltaProduct + 6 attention + 23 feed-forward, middle 24 looped), ELR at one loop scores −0.52 (4B dense, 1T tokens) and +1.04 (30B-A3B MoE, 300B tokens) versus matched non-recurrent baselines on a ten-task average, and four loops add +7.25 and +4.75 points, with the second loop capturing ~80–87% of the gain. Carried through 7T-token pretraining, 256K-context mid-training, SFT, and RLVR, the recipe yields Koi-4B, a single checkpoint scoring an estimated 18 on the Artificial Analysis Intelligence Index at one loop (on par with Qwen3.5-4B) and 29 at four loops, with higher-loop rollouts also producing ~33% fewer output tokens.
- 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
False Frontiers: Diagnosing and Mitigating Co-Cheating in Self-Evolving Search Agents
Self-evolving search agents build their own curricula: a proposer turns source documents into questions and pseudo-labels, a solver trains on admitted pairs, and solver agreement sets the proposer's reward. This paper names and measures the loop's failure mode — co-cheating: proposer and solver increasingly agree on shared errors, so internal reward improves while external correctness stagnates. Auditing the Dr. Zero proposer–solver loop post-hoc against source evidence (LLM judge, never fed into training), false-agreement mass — evaluated pairs matching on the same incorrect answer — grows from ~0.3–0.4% in round 1 to 6.1% (Qwen3.5-4B) and 8.8% (Qwen3.5-9B) by round 3, even as pseudo-label correctness stagnates or declines. Multi-sample verification (MSV) — three source-aware plus three source-blind samples per candidate, compatible majorities admit and relabel, at six extra labeler generations per candidate — only reduces false agreement to 5.7%/7.2% and adds 0.7–0.8 downstream points. CrossFit, the main method, partitions the proposer's source documents into two folds at the document level: questions from fold A are scored by an auxiliary solver trained only on fold B and vice versa, and the cross-fitted agreement determines proposer reward, so a same-source pseudo-label cannot be reproduced through the feedback solver; the main solver's update rule is unchanged and it still trains on all admitted questions. Rerunning the full loop (3 rounds, no human-annotated QA data): CrossFit cuts false agreement to 3.0%/3.7% (2.0%/1.7% combined with MSV) and raises adopted-label truth from 0.747 to 0.819 (4B) and 0.737 to 0.851 (9B). On a fixed 1,325-question suite (Cover-EM averaged over NQ, TriviaQA, PopQA, HotpotQA, 2WikiMultiHopQA, MuSiQue, Bamboogle), CrossFit reaches 48.8% at 4B and 51.2% at 9B — +8.8/+8.4 points over coupled Dr. Zero self-evolution and +8.7/+7.8 over Search-R1, with every benchmark improving and multi-hop gains largest (10.0/10.9 points). Controls isolate the mechanism: replaying identical proposals with source-excluded feedback cuts false agreement to 0.4%/0.1%; same-source or full-data auxiliary solvers stay near coupled levels, a random per-question split only reaches 5.0%/6.2% (the split must follow source ancestry), and a half-budget control rules out extra compute. Limitations (authors'): shared pretraining errors and overlapping or semantically related sources can still correlate mistakes, exclusion across connected sources is untested, the auxiliary solvers' end-to-end cost is unmeasured, and the audit relies on an LLM judge.
- Paper
Harness Evolution Hits a Ceiling: When Weight Training Should Begin
Improving a long-horizon LLM agent means evolving the harness around a frozen model or training its weights. This paper builds a diagnose-then-intervene rule: label failed trajectories by the first failure signal — F1 unbacked assertions, F2 harness friction, F3 execution control (loops, exhausted step budgets), F4 planning capacity (delivered plan scoring below 0.5). A self-evolving harness loop (AHE-style propose-verify with judge) repairs the process classes; the behavior it instills can be trained into the weights; content failures are what weight training is for. On DeepPlanning (travel planning with deterministic programmatic scoring; 48 dev / 72 held-out tasks), the loop lifts Qwen3.5-4B held-out score 0.16→0.30 and Qwen3.5-9B 0.32→0.44: for 4B, held-out delivery rises 55%→90% while loop failures (F3) fall 64%→37% of trajectories; for 9B, loops fall 39%→17%. What the loop leaves behind is the content class: F4 rises 10%→28% (4B) and holds ~25% (9B). LoRA adapters trained on evolved-harness trajectories internalize the gain: under the original harness they add +0.13 on held-out tasks for both sizes; on 4B they stack with the harness to more than double the held-out score, and on 9B the adapter alone matches the full evolution line, cutting content failures from roughly a quarter of trajectories to one in twenty. A placebo adapter trained on answer-shuffled trajectories falls below the base model (gain is in trajectory content); full fine-tuning adds +0.04 over LoRA. Why the loop stops at F4: component ablations show compliance-enforcing components (exit gate, checkpoint, hard blocks) are mostly within noise, while capability-granting components (state ledger, distilled lessons file, invented tools) carry the gain — the loop's evidence package shows the proposer gate/checkpoint metrics and never aggregates failure composition, so it optimizes what it can see. The loop transfers to WebArena-Lite (+0.09 on 117 unseen tasks), where the gain lives in what the model sees (two pages of history instead of one) and adapters add nothing. Generality: nine evolution lines on eight models from six families; seed measurements separate the five lines where the harness lever paid (+0.05 to +0.14) from the three where it paid nothing. Measurement: four-rollout means, differences below 0.035 are noise.
- Paper
Fold2Reason: Does Learning Protein Folding Generalize to Broader Reasoning?
Fold2Reason asks whether solved protein structures can serve as a non-linguistic reasoning teacher. It builds FoldingCorpus — 1,200 proteins, 14,400 QA records via 12 deterministic structural operators (contact, distance comparison, segment orientation, center proximity, local direction, chirality, multi-constraint, 32-way global summary) applied to the OpenFold monomer short-protein collection, with 1,000/100/100 train/dev/test proteins in cluster-disjoint partitions and independently recomputed, auditable answers. Fold2Reason post-trains Qwen3.5-9B with LoRA through a shared training-time workspace using two complementary signals: discrete structural answers predicted via the native language head (L_qa) and continuous 3D geometry decoded by a frozen coordinate/distogram decoder (L_geo = coordinate + pair-distance + contact + distogram + local-frame + torsion + radius-of-gyration losses). At inference, protein inputs, workspace, and geometry decoder are all detached — only the adapted LM is evaluated. On FoldBench, structure prediction scores are 2.7–3.5× the base Qwen3.5-9B. On the "General-10" set of 10 benchmarks spanning spatial, graph, scientific, and general reasoning (text, image, and video tasks), macro-average accuracy rises 45.09% → 48.33% (+3.23 pp) across three seeds, positive on all 10 — while matched controls built from random, synthetic, and shuffled structures yield substantially smaller or negative gains. Ablations: FoldingCorpus supervision alone gives +2.93 pp; geometry adds +0.30 pp concentrated in spatial evaluations; gains extend to three Qwen3.5 scales and InternVL3.5-8B (Gemma-4-12B-IT neutral); a 50–4,000-protein study peaks at +3.70 pp with 2,000 proteins.
- 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
Looped Diffusion Transformer
Looped-DiT: instead of scaling text-to-image models by size or denoising steps, it repeatedly runs shared Transformer blocks within each denoising step, increasing computational depth with fixed parameters (17 unique MMDiT blocks split 6/5/6; the 5 middle blocks shared over 4 loops = 32 effective block applications per step at ~260M params). Naive looping fails (weak supervision across intermediate loops, unregulated attention updates erode local information); two fixes: deep supervision across intermediate loops + self-modulating attention to stabilize looped feature updates. A 260M-parameter looped model beats a 6.5x larger model across text-to-image benchmarks at 4.9x lower inference compute. Increasing loop depth yields larger gains than adding denoising steps under a fixed inference budget, and deeper loops progressively correct mistakes from earlier loops — behavior suggestive of latent reasoning. Related catalog entry: 523 'Looped Diffusion Language Models' (LoopMDM, a different paper — that one is masked-diffusion LMs; Looped-DiT is text-to-image generation).
- Paper
Universal interpolation for deep residual self-attention networks
Theoretical result in the dual-of-infinite-width regime: approximation power from depth alone, with strong parameter sharing across layers. Two frozen, randomly initialized single-head attention blocks (never trained — only layer order, signs, and scalar gains are chosen per task) suffice to interpolate (perfectly memorize) any batch of N sequences of n tokens. The proof frames deep residual attention as the forward-Euler discretization of an ODE and uses geometric control theory (Chow–Rashevskii: alternating vector fields generate motion along Lie brackets; if commutators span the tangent space, reachability holds) plus the Ax–Schanuel theorem from transcendence theory to prove the softmax-induced singular locus has codimension ≥ 2, preserving connectedness. Caveats: causal masking breaks universality — the first token attends only to itself and evolves linearly, so when batch size N exceeds dimension d, linear relations are conserved forever and commutators can't escape; and the proof is purely existential (no bound on required depth L or scalar magnitudes), and memorization is not generalization. For looped models (Hyperloop, Mixture-of-Recursions), it confirms parameter tying carries zero theoretical expressivity penalty. For sub-dimension heads (r < d), m = ceil(d/r) frozen blocks are conjectured necessary — 576 Lie-rank tests: m = ceil(d/r) reached full rank 94/96 and 96/96 at 1e-8 tolerance; m−1 reached 0/96. Code: github.com/sibyllema/attention_universality.
- Paper
Closing the Loop: Practical Training Recipes for Looped Language Models
Practical training recipes that make looped LMs cheap. Three results: (1) a compute-efficient from-scratch pipeline cuts the training budget from 7.7T tokens (Ouro) to 310B tokens while retaining strong reasoning — pretraining followed by high-quality mid-training, plus strong LR warmup and exit-gate regularization, enables stable recurrent training without prior multi-stage schedules; (2) under controlled comparisons, the 1.4B LoopLM beats a parameter-matched dense model trained on the same data and token budget on all 12 benchmarks (+14 GSM8K, +10 MATH, +22 DROP), and at matched inference compute approaches a 3.9B dense model on math/reasoning with only 36% of the parameters; (3) a minimal recipe converts pretrained dense models into looped ones — a single learned input-mixing scalar plus a smoothed exit loss, no step-specific parameters — applied to Qwen3-1.7B-Base, Looped Qwen improves over an identically continued dense baseline on every benchmark, with clear gains on GSM8K, MATH, MMLU-Pro. Relevant to the user's LLM training-run work and the looped-models cluster (670, 952, 1545).