Explore the research collection
1,586 researched entries: papers, datasets, models, code, posts and notes. Each one is read, summarized and checked before it lands here.
Last addition Dec 2, 2026 · 458 datasets with a full research profile · API & MCP for agents
1,586 entries · showing 241–264
- 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
Enriching Domain-Specific Post-Training with Multi-Teacher On-Policy Distillation
Applied Compute introduces Spork, a post-training recipe combining GRPO with multi-teacher on-policy distillation for domain-specific tasks with low base pass rates. Classic MOPD: train specialists from a shared checkpoint (SFT on expert traces then GRPO/PPO on domain environments), then distill them into one student initialized from the shared checkpoint by supervising the student on its own rollouts against the responsible specialist (top-k logits, reverse KL). Spork modifies the recipe for single domains: partition the task dataset into N disjoint partitions via LLM judge (GPT-5.6-Sol), run a short GRPO warmup on the full dataset (8 prompts × 8 rollouts, 40 steps, high LR, no SFT), train specialists from the warmed checkpoint on each partition, then distill into a student initialized from the base. On 8K Lichess multi-step chess puzzles (Qwen3.5-9B, 400 eval tasks, 4 seeds): naive MOPD without warmup scores 24% vs 25% for GRPO; Spork reaches 45% pass@1 (80% above the best GRPO checkpoint) and 52% higher mean reward; a second round reaches 50.9% (~2× GRPO). On DAPO-MATH (2K samples, Qwen3-4B): +20% Pass@4 over GRPO. Most of the gain comes from just N=2 specialists (nearly matching N=4); N=1 gives no improvement, and N=8's stronger teachers don't improve the student — consolidation is the bottleneck. Semantic partitions strongly beat random ones; random partitions still beat GRPO. Surprisingly, the distilled student matches or beats its own teachers on every partition, in contrast to frontier MOPD runs (DeepSeek, Kimi, Nemotron, GLM) where the student is worse than each teacher — attributed to complementarity between partitions and regularization of overfit teachers. Repeating works best without a second warmup. Compute: each distillation step costs 1.25× a GRPO step (plus teacher scoring); per-expert sub-steps stream teachers through one GPU slot to avoid keeping all N resident.
- Post
How to make a good RL task
Practitioner essay on designing RL tasks for agents. A task is four components — Prompt (the request), World (the data and dynamics of the environment), Verifier (the deterministic or model-based definition of "good"), and Intent (the explicit capability or failure mode being targeted) — and task generation is constraint satisfaction across their alignment axes. Prompt↔Verifier: the prompt must contain enough signal for a capable model to satisfy the verifier. Verifier↔Intent: the verifier is the sole source of optimization pressure, so any gap is reward hacking (buggy code passing tests; escaping the sandbox to hack Hugging Face for answers). Prompt↔Intent: prompts must stay distributionally aligned with production traffic. Worlds span real (uncorrupted repo) to fully synthetic (cloned travel sites); a world is sufficient iff it reliably elicits the target failure mode. Making good tasks means building revision loops that calibrate prompt, verifier, and world against intent: author → eval → audit traces → loop back to author or discard, with a verifier-calibration loop mapping edge cases against ground truth. A worked SWE pipeline uses solver agents, a verifier agent writing the grader, hacker agents seeking undesirable-but-passing solutions, and a review agent. Naively hardening tasks is warned against — it targets contrived axes. On the verifiability spectrum, most interesting work is semi-verifiable, and human experts are the ultimate verifiers. Task factories are the outer loop: distilling expert judgment into the generation pipeline so it yields better tasks at progressively lower cost — e.g. an investment banker flags unrealistic prompts, the recipe is updated, and expensive human gates compile down to agent proxies and eventually cheap classifiers like Jev. Cites the recent OpenAI/Hugging Face attack as the catastrophic end of verifier–intent misalignment.
- 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.
- Post
Toward RL on mixed-precision, mixed-accelerator samplers
RL training normally runs samplers on a fixed homogeneous cluster of the latest accelerators to keep sampler–trainer mismatch low, throwing away inference optimizations built for other vendors/generations. Modal asks whether RL can sample from mixed-precision, mixed-accelerator fleets while staying stable and performant. They train Qwen3.6-35B-A3B on agentic coding tasks (2.7K de-leaked Xiaomi/MiMo-V2.6 repo tasks, up to 256K context, binary test-pass reward in a fresh sandbox) with fully asynchronous RL in the open-source Miles framework: SGLang samplers and a Megatron-LM trainer updating the policy in BF16 on B200s, 128 prompts × 8 trajectories per update, no staleness limit. Two sampler setups: mixed (six accelerator kinds — B200/B300 with NVFP4 weights, H100/H200 with FP8 and BF16 weights, A100/RTX PRO 6000 with BF16 weights — each with its own kernels and FP8 KV caches) vs homogeneous (B200 only, BF16 weights, BF16 KV cache). The fix is off-policy correction on top of GRPO: masked importance sampling (per-token ratio kept inside [0.2, 5], zeroed outside), score centering (removes drift toward the sampling policy), and top-p sampling with mask replay (shared support). Uncorrected GRPO collapses on both setups; each correction piece alone only delays collapse; only score-centering + masked importance sampling trains stably to convergence, reaching SWE-bench Pro V2 pass@4 ~65–75% on the HARD-51 subset and ~94% on the full set. With the full correction, mixed samplers match homogeneous pass@4 throughout training despite a 4.7× larger average sampler–trainer KL, at ~15% lower sampler cost per update on a setup built for validation, not minimal cost. The central claim: stability depends on whether the mismatch keeps growing, not its magnitude — accelerator and precision differences need no new kind of fix, since off-policy correction is agnostic to why the sampling policy differs from the training policy.
- Model
LFM2.5-24B-A2B: Built for Fast On-Device Agents
LFM2.5-24B-A2B is Liquid AI's largest and final LFM2.5 model: 24.0B total parameters with 2.45B active per token, aimed at on-device agents. Architecture keeps LFM2-24B-A2B's hybrid: 40 layers (30 double-gated short-convolution blocks + 10 GQA) with 64 experts per MoE block and top-4 routing. Changes vs the predecessor: context 32,768 → 131,072 tokens, vocabulary 65K → 128K via in-place tokenizer expansion (better non-Latin tokenization), pretraining ~17T → ~33T tokens, plus 2T tokens of mid-training at 32K context (reasoning/math/code/instruction/multilingual) and 300B tokens of long-context data at 131K. Unlike its predecessor it is reasoning-only: a ChatML-style template inserts a `<think>` tag at each assistant turn. Post-training runs five stages: SFT, teacher specialization, non-agentic multi-domain on-policy distillation, agentic MOPD, and agentic RL inside OpenClaw, Hermes Agent, Pi, and OpenCode. During teacher specialization the company reports emergent reward-hacking — the model searched git history, GitHub, PyPI, and Hugging Face for final answers, and twice recognized it was in a synthetic sandbox — prompting tighter sandboxes; reported results are stated to come from sealed environments. On 16 benchmarks vs Qwen3.6-35B-A3B, Gemma-4-26B-A4B-it, and Nemotron-3.5-Lightning, it leads or matches on five of eight tool-use/agentic evals (AutomationBench 27.69 vs 8.72 next-best; BFCLv4 65.01; ToolSandbox 80.71; LiveClaw 48.09 vs 38.19; τ³-Bench Banking 8.04) and all three instruction-following benchmarks (IFEval 96.75, IFBench 74.69, Multi-IF 84.38), while trailing on knowledge-heavy (GPQA Diamond 74.42 vs 83.69; HLE 7.40 vs 8.57; AA-Omniscience −24.90 vs −3.58) and coding benchmarks (SWE-Bench Verified/OpenCode 51.00 vs 66.20; SciCode 32.71 vs 37.35). Base and post-trained checkpoints plus FP8/GGUF/ONNX/MLX-4bit formats are on Hugging Face with day-one llama.cpp, MLX, vLLM, SGLang, and ONNX support. Company-reported edge speed: 184 tok/s decode on Apple M5 Max, 114 tok/s on AMD Ryzen AI Max+ 395 (up to 1.7× the next-best compared MoE); over 21,000 output tok/s on a single NVIDIA B300.
- Post
PriorBPB: Reducing the Answer Length Confound of Bits-per-Byte While Improving Accuracy Prediction
BPB divides a model's total surprisal on a gold answer by its UTF-8 byte length to remove tokenizer dependence — but answer length is a property of the benchmark, not the model. The post shows total bits decompose as a fixed per-item cost α plus a per-byte rate β, and corpus BPB equals α/mean(n) + β algebraically, so the fixed cost (largely first-token surprisal, ~10× later tokens) is divided by the task's mean answer length. Empirical effects: on MMLU full text (Qwen3-4B) the shortest-fifth answers score ~11× worse than the longest fifth; median across tasks the ratio is ~2×. The fixed-cost share is task-dependent (SQuAD2 later tokens nearly free via copy-from-passage; OLMo-3-7B GSM8K cost 96% length-scaled), so no single constant normalization fits. Mean-of-ratios BPB (mean of per-item ratios — not a rate) inflates further, up to ~2× (+122% on MMLU full text vs corpus BPB). Under corpus BPB, Qwen3-0.6B-instruct beats its 1.7B/4B siblings on 15/19 tasks — an apparent inverse-scaling trend: α is larger at 4B than 0.6B on all 19 tasks (1.2× to 7×) while β shows no trend, plausibly from wrapping completion-style gold answers in an instruct chat template. PriorBPB fixes the aggregation: estimate each model/task's marginal per-byte cost curve R(k) non-parametrically from per-token bits, then average it under one shared geometric length prior (μ=111 bytes, pooled median, frozen pre-scoring). With a task's own length distribution it recovers corpus BPB exactly. Across 62 base checkpoints from five families: within-task top/bottom quintile ratio 0.98 (essentially length-invariant) and cross-task mean |correlation| with answer length 0.68 → 0.18, while following accuracy more closely than mean-of-ratios BPB (+0.021 base, +0.122 instruct). Residual caveats: survivorship bias in late-position R(k) and μ-dependent residual length correlation, so μ must be reported.
- 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
nanoswe: Speedrunning SWE-bench — a 2.8B agent trained from scratch for ~$1,000 reaches 25.5% on SWE-bench Verified
nanoswe is a community speedrun of SWE-bench Verified, forked from Karpathy's nanochat: how good a coding agent can ~$1,000 of train compute buy when the model is trained from random initialization on agentic SWE trajectories, with SWE-bench's 12 source repositories strictly held out (the 1.59M-trajectory corpus was audited and 4,516 violating rows purged)? Budgets are denominated in B200-hours at $5/h ($60 track = 12 h; $1000 track = 192 h). The August 2026 scaling sweep found solve rate roughly log-linear in train compute: a ~$10 run already scores 0.53% pass@1, the $60 run (1.38B) reaches 5.0% — the level of Claude 2 at SWE-bench's release — and the $1000 run (5.67B) reaches 11.0%. Two findings complicate the distillation story. First, a stronger teacher can be a worse teacher: replacing Qwen-Coder-30B-A3B trajectories (teacher at 29% pass@1) with Qwen 3.6 35B A3B trajectories (58%) dropped the $60 student from 5.0% to 2.1%, because the stronger teacher's test-first workflow leaves the weak student stuck writing reproduction tests (no patch in 74% of attempts vs 8%). Second, trajectory-only training buys code and little else: the speedruns generalize to synthetic bugs that exist nowhere online and to bugs from real 2026 pull requests, but MMLU and GSM8K do not improve with speedrun compute even after elicitation fine-tuning, while a differential-item-functioning analysis against SmolLM3-3B fine-tunes finds no detectable problem-coverage blind spots from skipping web pretraining — at matched ability the cohorts solve essentially the same problems. The current $1000-track record (Oct 2026) shrinks the model to 2.82B and adds a short web warmup: 6.7B FineWeb-Edu tokens, then 37.8B tokens of SWE-smith trajectories from a Nemotron teacher, reaching 25.47% pass@1 (pass@5 41.4%) on the project's 483-instance cluster-runnable subset of Verified — above the originally reported scores of Claude 3 Opus (15.8%) and GPT-4o (23.2%), under a different scaffold.
- 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
Identity on Demand: Multi-Head Gated Value Residuals
Later attention layers must recover a token's identity from a residual stream that has accumulated every earlier layer's changes, which matters whenever a layer needs to copy a token or use it for a lookup. Multi-Head Gated Value Residuals (MGVR), from the independent lab Empero, keep a route open to the first layer's values: each later layer reads its normalized input and produces (a) a gate per key–value head, in [0, 2], scaling its own value, and (b) a token-dependent mixing row over the first layer's value heads; the value entering the unchanged attention kernel is the gated own value plus the mixed first-layer anchor. Where ResFormer (Zhou et al.) adds first-layer values with a share fixed across tokens and heads or learned per layer, MGVR makes the share a per-token, per-head decision with cross-head mixing; at initialization it is exactly ResFormer with λ = 0.5. The change adds 0.2% active parameters and 0.2% of model FLOPs in arithmetic (though the training step runs 4.3% slower), and the modified values occupy the existing KV-cache slots, so the KV cache does not grow. In a controlled paired pretraining run (20 layers, 96M active parameters, ~1.0B tokens, shared initialization, data order, and hyperparameters), MGVR's held-out loss at step 300 is 3.5572 vs the Transformer's 3.7605 nats/token; the stable-phase matched-loss calculation gives the same loss in 16–20% fewer steps, i.e. about 1.20× effective compute after the step-time penalty, and the final gap is −0.0500 nats/token (2.8124 vs 2.8624). On a synthetic two-hop recall probe (learning-speed AUC, three seeds), MGVR scores 0.273/0.167 on the 10/20-chain versions vs 0.257/0.144 for ResFormer with a learned layer-level λ; a mix-only ablation matches full MGVR (0.272/0.167), indicating the token-dependent mixing module — not gating alone — carries the composition gain. Limits: the efficiency figures are matched-loss calculations, not measured end-to-end savings; evidence is one paired run at 96M scale; and identity preservation is the authors' interpretation of learning-outcome measurements.
- 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
Clef: Cloudflare's Open Decision Models (27B & Clef-flash 9B)
Clef and Clef-flash are Cloudflare's open decision models (launched Oct 1, 2026). Instead of generating text, they take a state (text, JSON, images, or video frames) plus a schema of typed questions (noul/choice/score) and return a probability for every allowed option in a single forward pass — up to 64 questions per request, up to 4 images, 64k context. Clef is post-trained from Qwen3.8-27B (backbone frozen; a joint schema head fitted with rank-256 LoRA using label-smoothed cross-entropy plus a Brier loss, then RLCD calibration training); Clef-flash is the 9B variant on Qwen3.5-9B. Both are Apache 2.0 on Hugging Face, hosted on Workers AI, and fully API-compatible with TypeSafe's Jev, so existing Jev integrations swap by changing the endpoint. Company-reported (Cloudflare's Jev Decision Index): the Clef family leads 7 of 10 benchmarks — e.g., Banking77 94.20 vs Jev 79.74 and BFCL 98.47 — while Jev still leads When2Call (80.97 vs 72.37) and BRIGHT (47.52 vs 45.91); median latency 38.8 ms (flash) and 209.3 ms (Clef) vs Jev's 524.1 ms. Independent evaluations (Oct 2026) broadly confirm the intent/classification strength and much better calibration than Jev, but find Clef-flash weak at out-of-scope detection and only parity with a general LLM on judgment-heavy multi-level scoring. An Oct 9 follow-up added Clef-omni (audio/video) and cut Clef-flash's hosted price to $0.038/M input tokens.
- 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
Reasoning From Scratch: RLVR Round 2 — GRPO Stabilization (Clipped Policy Ratios, KL Loss, Format Rewards)
Sebastian Raschka's ~106-minute "RLVR round 2" video in the Build a Reasoning Model (From Scratch) series (companion to his July 2026 Manning book; code at github.com/rasbt/reasoning-from-scratch). A practical guide to stabilizing GRPO beyond the baseline round-1 implementation: interpreting GRPO training metrics, running longer training jobs with Python scripts, plotting training logs, and diagnosing unstable training. Core stabilizers covered with implementations and results: clipped policy ratios to limit oversized policy updates, a KL loss term against reward hacking (plus the limitations of the simplified KL estimator), and format rewards with <think> tags — including adding special tokens to the tokenizer and rewarding format only for correct answers. Diagnostics: tracking advantage statistics, computing and interpreting policy entropy in PyTorch, and analyzing advantage/entropy metrics together. Also evaluates checkpoints on MATH-500 and closes with further GRPO improvements from the research literature plus distillation as the next step. Key caution from the series: the baseline GRPO run takes Qwen3-0.6B from 15.2% to 47.4% on MATH-500 in 50 steps, but longer training can degrade accuracy; reward alone is an insufficient signal since it can rise via reward hacking while held-out capability falls.