Explore the research collection
49 entries · showing 1–24 · Follow this search
- Paper
Mixture-of-Loops Transformer
Zhu, Wang, Wang, Bai, Wang & Bai, 'Mixture-of-Loops Transformer' (arXiv 2611.34923, Nov 25 2026; code linked from the paper; license NOT confirmed from the arXiv record at cataloging). Looped Transformers buy expressivity by reusing shared layers but pay for it in efficiency; the paper rethinks the core mechanism connecting adjacent loops - what should be passed as a Transformer loops? Its Mixture-of-Loops Attention (MoLA) uses keys and values as memory for selective reuse across depths and loops, in two regimes. Under loop residual (MoLT-R), the model retains the residual stream and reads local KV across loops, for expressivity. Under loop KV (MoLT-KV), each loop instead restarts from the embeddings and reads current-loop local KV together with preceding-loop memory KV at earlier positions, for efficiency; this eliminates same-position cross-loop dependence and, paired with loop forcing for parallel training, unlocks single-traversal Mixture-of-Loops decoding beyond the training loop horizon. U-shaped MoLT (U-MoLT) separates memory construction from prediction readout and skips unused decoder traversals without changing predictions. Results (400B-token pretraining): U-MoLT outperforms OLMo3 across 700M and 1.5B dense and 3B MoE models - 1.7x validation cross-entropy token efficiency at 700M, and on the 3B MoE a 0.75 perplexity improvement across 10 domains with +2.1 points on 10-task accuracy. In 100B-token continued pretraining of Qwen3.5-0.8B-Base, the U-MoLT adaptation lowers CE on all 11 domains over the matched baseline at 1.4x mean token efficiency. At inference, U-MoLT with MoL-Hybrid-2 matches non-looped OLMo3 latency (996.6 vs 1,000.6 ms on ~113M models). Flags, as entered: abstract-level at cataloging, authors' own numbers. Cross-references: the newest member of the looped cluster - its 'what passes between loops' question is the KV-memory counterpart to Shared Memory in Looped Transformers (ID 1563, first recursion writes a KV cache later recursions read), LoopKV (ID 1817), and Depth Hybrid Attention's per-token depth bank (ID 1804); the 700M token-efficiency result is the closest-to-scale looped evidence yet for the user's 250M efficiency question.
- Paper
Rewirable Circuits in Transformers with Loom Attention
Xiao, Meng, Li & Yuan (Caiyun-AI), 'Rewirable Circuits in Transformers with Loom Attention' (arXiv 2611.30634, Nov 23 2026, v2 Nov 24, CC BY 4.0; code at github.com/Caiyun-AI/LoomFormer). Loom attention lets each token dynamically rewire head circuits: a head's vertical attention over the outputs of earlier heads (which produces its query, key and value) is interwoven with its horizontal attention over tokens. Vertical attention is instantiated efficiently with normalized, gated linear attention over a per-token matrix memory that stores compressed head outputs and serves as a second residual stream - yielding LoomFormer, a dual-stream architecture that splits control (vector stream) and content (matrix stream). Across model sizes and token budgets, LoomFormer matches Transformers trained with over 3x compute and recent residual-stream baselines (HC/mHC, MUDDFormer, AttnRes) trained with ~1.7-2.8x. Headline: trained on the same 300B tokens with only 2% extra FLOPs, LoomPythia-2.8B achieves ~1.6x the average downstream gain of mHC-Pythia-2.8B over Pythia-2.8B, and matches (0-shot) or surpasses (5-shot) Pythia-12B. Flags, as entered: abstract-level at cataloging, authors' own numbers; Pythia-scale evidence (2.8B, 300B tokens). Cross-references: the residual-stream expansion cluster - SimpleHC (staged slot 5, the mHC ablation), ARLoop/AttnRes (live ID 1820 and staged enrichment slot 8), Hyperloop (ID 1710, hyper-connections between loops); Loom is the matrix-memory member of that family, where the second stream is a per-token matrix rather than an expanded vector residual. For the user's stack: not a drop-in for the 3:1 SWA hybrid - it replaces the residual stream itself - but it is the strongest current evidence that the residual stream, not attention, is the bottleneck worth spending 2% extra FLOPs on, and its baselines (mHC, AttnRes) are exactly the staged alternatives it should be compared against.
- Paper
No Second Run: Does RSI Stop at Frontier Pre-training?
Cai et al. (arXiv 2611.10719, Nov 7 2026, CC BY 4.0) ask whether recursive self-improvement (RSI) stops at frontier pre-training - and answer that it changes form. Public RSI work so far has targeted POST-training: start from an existing base, run GPU-hour-scale trials, get verifiable scores. Pre-training breaks all three conditions: a run consumes hundreds of thousands of GPU-hours over months and CANNOT be repeated (hence 'no second run'); its objective, post-training headroom, cannot be read off any single score; and what must improve is not a model but the whole production system - data pipelines, training infrastructure, the teams running them. Since no end-to-end loop can close over a single unrepeatable run, they decompose RSI into SMALLER LOOPS that can close, each repairing a step the full run breaks. The artifact is 801-30B-A3B-Base, a 30B-A3B MoE trained from scratch on 11.8T tokens in three months by a newly formed team, released open-source along with the lightweight SFT data. As a base model it outperforms Qwen3-30B-A3B and Nemotron-3.5-Lightning-30B-A3B and trails only the larger Qwen3.5-35B-A3B, keeping that position under identical SFT; with lightweight SFT alone (6B tokens, NO RL) it achieves the highest average on four agentic benchmarks against fully post-trained models, including Qwen3.6-35B-A3B. Flags, as entered: abstract-level record at cataloging time - the headline comparisons are the authors' own and the internal architecture/recipe details and the decomposed loop inventory live in the full text; the authors claim to be the first to apply RSI to an entire frontier pre-training run and report it in detail. Cross-references: the RSI thread - this is the pretraining-scale counterpart to Mirendil's mission (recursive self-improvement / automating AI R&D), to the staged doubleAI entry (self-redesign during training, small-scale experiments) and to Hedra's Model Factory (the loop as a service); it is the first detailed field report of RSI inside a frontier run, at 30B/11.8T, rather than as a post-training loop or a lab-platform announcement. For the user's own 250M training, the transferable idea is the decomposition itself - improving the training SYSTEM through closable sub-loops (data, infra, eval probes) is the pretraining-scale analogue of the same loop, not a claim that his run can be restarted.
- Tool
K2 Horizon data release — DATA_NAVIGATOR index and the post-training data-generation pipelines
IFM's open release of the K2 Horizon training data (datasets queued as #121–125) and the pipelines that generated it, announced as "the most detailed open LLM data release yet" — an UNVERIFIED first-party superlative (the dataset cards carry identical boilerplate provenance and NO per-dataset token counts, so the post's 13T-token figure cannot be decomposed or checked from the cards; the detail lives in the repos and blog). PIPELINES: (1) pretraining-data-toolkit — annotates web documents with WebOrganizer topic/format classifiers, scores with FineWeb-Edu + two fastText quality scorers, buckets into FIVE quality tiers, two-pass distributed shuffle; ships `party`, a CLI record inspector. (2) search360 — dense retrieval over the corpus (Contriever + FAISS IVFPQ; production index 1.6B passages / 145M documents) grounding most synthetic generation; NO index or corpus ships with the repo. (3) Wzip — a new compressor (adaptive multi-window LZ77 + windowed Huffman) built because gzip/zstd diversity metrics saturate at scale; blog claim (chart only, no numbers): their synthetic data's measured diversity "approaches high-quality natural web text." (4) PRism (GitHub PRs → agentic coding data): curator (merged PRs + discussion + diffs, 1–15 changed files), annotator (local-LLM labels via vLLM), synthesis — pr_thoughts (LLM writes the missing developer reasoning around REAL diffs; only prose is synthetic), pr_tasks (tasks with controlled hint levels), pr_task_synthesis (agents build VERIFIED RL environments in Harbor format — kept only if the eval script FAILS on the pre-fix repo and PASSES after the fix), pr_chain_agent_datagen (a repo's successive PRs replayed as ONE long multi-turn session, hundreds of thousands of tokens, with LLM-compacted handoffs). (5) advisor — a PRIVILEGED advisor model sees the reference solution, hidden tests, and private notes; at a proposed finish or every k turns it reviews the solver's draft and either keeps it or has the solver REGENERATE the turn after a short solver-safe cue; privileged material never enters the solver's context or the recorded trajectory (one disclosed exception: the ReasoningPrefillCue variant places the hint at the opening of the solver's next reasoning block — "guarded, not guaranteed solver-safe"); ships a leak/coherence audit tool. Quantified result (strongest in the release, first-party): over 168,990 tasks, solver alone solved 54.1%; advised reruns of previously unsolved tasks brought the total to 73.0% (+18.9pp) of tasks yielding a successful trajectory — IFM's own caveat: this measures trajectory yield, NOT a per-attempt pass rate under matched conditions. (6) task-factory — a Markdown program for a coding agent: pick checkable problems, write Harbor tasks, verify the reference solution passes AND wrong answers fail, audit for reward hacking, calibrate difficulty against a real agent (status: pre-release). (7) process_entry — the strict validator every K2 mid/post-training conversation passed: turn structure, JSON-schema-valid tool calls, no degenerate loops, no leaked special tokens or other templates' markers, no foreign model identity; design principle "Reject, never repair." (8) file-manipulation-pipeline and agentic_semantic_packing — office-file tasks from 57 work templates; simulated-user personas (1,296 combinations) + search360 → length-targeted research conversations (both self-described as reference implementations; packing ships a simplified generate.py). (9) LCQA — questions about selected passages, training example shows the whole document. HEADLINE FINDINGS from the announcement: (a) MIXTURE — the chosen web-heavier pre-training mix ranked LAST in small experiments but was picked because scaling predictions put it first at the 20T-token target: "Small-scale wins can mislead" — small-scale mixture rankings INVERTED at target scale. (b) "More verification isn't always better. Strict verification can throw away useful training signal" — elaborated in the post's follow-up thread: loss is computed on individual TOKENS, not documents, so a wrong answer token can be one bad label among thousands of useful ones; strict document-level verification discards valuable content and narrows diversity, so for pre-training they deliberately skipped verification on most synthetic data. Still a first-party claim, and the shipped tooling cuts the other way on the post-training side (process_entry is strict-by-default, task-factory's gates are "never skipped") — so read it as a pre-training-specific tradeoff, not a general anti-verification stance. (c) "Beyond teacher imitation" — >100M unique synthesized tasks; trajectories the teacher couldn't generate alone (chain-replay sessions; advisor-guided rescue). Scale/context (blog, first-party): ~17% of the pre-training corpus is problem-solving trajectories with explicit reasoning; >10T synthetic tokens; each fleet model pretrained on ~20T tokens (blog elsewhere says the smaller models trained on "exactly the same 22 trillion tokens" — 20T vs 22T never reconciled; the released 13T is inferred to be the REDISTRIBUTABLE portion per the blog's license caveat — no source states the 13T↔20T relationship directly). REWARD-HACKING SELF-AUDIT (blog; procedure is Artificial Analysis's, execution IFM's): flagship on Terminal-Bench 2.1 scored 70.2% raw; auditing every passing trial → corrected 66.9% (−3.37pp); IFM also discloses its 7B found and downloaded SWE-bench answers, producing an inflated 82 it disowns. Caveats: several pipelines are reference implementations, not turnkey (file-manipulation "won't run elsewhere without changes"; task-factory pre-release; PRism-curator/annotator ship no examples); the flagship's independent evaluation coverage is thin (Artificial Analysis pages exist for at least the 3.7B); blog-vs-card contradiction on llama.cpp support for the flagship (also flagged in #111's orbit — unresolved); post overstates the advisor ("directly edit a solver's reasoning" — the advisor never edits; the solver regenerates after a cue).
- Post
Reactive Optimizers — OPAL (OPtimizer with an Agent in the Loop)
Thesis: optimizers are static — hand-crafted or discovered offline, then run unchanged. A reactive optimizer instead puts a zero-shot LLM agent (Claude Opus 5.5 in all blog experiments; nothing learned or retained across runs) inside a single training run and gives it code as the entire interface. The agent iteratively rewrites two programs: `updater.py`, the optimizer itself, executed every step — the whole algorithm is up for rewriting, not just hyperparameters — and `analysis.py`, self-written probes that extract the training-dynamics statistics the agent chooses to watch (per-parameter-group gradient norms, update size relative to weights, cosine between consecutive gradients, per-tensor spike detection). One agent conversation spans the run, so it remembers what it tried and why. In the released package, checks run every 50 steps, decisions are capped (default ≤50, front-loaded into the first 5% of the run), and the agent's remit is bounded: it cannot touch model, data, loss, batch size, step count, or evaluation, and until its first edit the wrapped run is bit-for-bit identical to the plain run. Guardrails in the package: a new updater takes over on all ranks at once and runs a 20-step trial — an error reverts to the previous program; a first-step failure is undone exactly when a snapshot of parameters + optimizer state fits in `snapshot_limit_gb` (default 2 GB); a later failure is NOT undone and the agent is only told; an `eval_integrity` check flags a program that moves parameters away for an evaluation and back. Training can run asynchronously while the agent thinks (blocking=False), edits landing a median of 65 updates later on Goldfish. Headline claim (authors'): where no recipe has been tuned for the setting, OPAL — always INITIALIZED from an existing recipe — matches or beats the best recipe one could pick off the shelf one-shot. Baselines, precisely: for settings derived from modded-nanogpt Track 3 (162M GPT on FineWeb), five leaderboard records transplanted with natural adjustments (#46, #30, #21 Shampoo, #36 tuned Muon, #2 AdamW; at quarter batch, all LRs ×¼) — OPAL initialized from #36 ranked first in every new setting (quarter batch; Chinese, Thai, Kyrgyz from 1 GB Goldfish sets; Chinese/Thai bars are means of 3 runs). Goldfish Amharic (125M GPT, 1 GB, 10 epochs; metric bits/sentence on held-out FLORES-200): official recipe 83.48 → OPAL from that recipe 81.11; an LR sweep found a static recipe at 80.89 — ahead of OPAL-from-official — but OPAL initialized from the swept recipe ended ahead again at 80.73 (Swahili similar: 79.37 → 77.60). Image generation: LightningDiT-XL/1 on ImageNet, FID-50K 1.83 vs official recipe's 2.18 with guidance (4.33 vs 5.15 without); RAEv2-B (official recipe already a Muon variant, GMuon) 3.19 vs 3.39 in the blog — the repo table shows prompt sensitivity: 3.10 with an efficiency-asking prompt, 3.46 with the neutral prompt. SiT-B/2 (repo table): FID-50K 35.7 → 23.6. On the original, heavily tuned modded-nanogpt setting the gain is small (validation loss 3.2749 vs record #36's 3.2781), and the README documents a run that ended WORSE (3.2878 on OPAL 0.2.0). What the agent actually does, from the decision logs: builds intricate per-parameter-group multi-stage LR schedules (including mid-run LR increases; A/B/A tests alternating two LRs for a few hundred updates each and keeping the winner; re-planned earlier cooldowns from loss trends); migrates tensors from AdamW to Muon module-by-module (attention/MLP first, then adaLN split into chunks, timestep embedder last); on modded-nanogpt it measured that token-embedding entries are ~15 in size where adjacent bf16 values are 0.0625 apart, so as the LR decayed, rounding would discard a growing share of each update — from update 1,040 it kept that one matrix's Adam moments in float32 with compensated rounding on writeback and left everything else alone. Loss-spike defense: in a SiT run it traced 17 of 18 logged gradient spikes to the timestep embedder and wrote per-tensor clipping thresholds set from each tensor's own recent gradient norm (global threshold kept as backstop); in a controlled ResNet-18/CIFAR-10 experiment with four inserted stretches of random images and labels (agent not told), the first two stretches cost it −50.0 and −66.3 accuracy points (≈ the static baselines), but between stretches it added loss damping, replaced it with clipping, then wrote a gate that holds back batches whose loss is far above recent clean ones — the third stretch cost −12.1 and the fourth +0.7, while Muon+clip, AdamW+clip and Stable-SPAM still lost 28.5–76 points per stretch. Overfitting: ResNet-18 on CIFAR-10 with 10% wrong labels, no augmentation, agent sees train + dev metrics but is never told about the label noise — AdamW ends at test loss 2.49 / 73.5% accuracy (early-stopped 1.01 / 72.9%; weight-averaged 0.83 / 77.5%) and predicts the wrong trained label on 100% of the 4,500 mislabeled training images; OPAL ends at 0.69 / 78.6%, predicts the wrong label on only 4% (true label on 78%), via progressively higher learning rates plus a self-chosen weight average ("extended SWA") selected on the dev set. Toy control check (2D landscapes, OPAL restricted to heavy-ball with momentum resets/return-to-best): mean log10(f − f*) −11.6 vs −2.2 for the best of 12 common static recipes and −7.4 for the best of 382,080 swept recipes. Cost: ≈100 decisions on LightningDiT cost $6.42 at Opus 5.5 list price on top of ~74 H100-hours (~$510 AWS on-demand); asynchronous mode adds 1.01–1.14× wall-clock vs the static run (blocking at every decision: 1.30–4.39×). Authors' stated limits: gains shrink when a run is short AND its recipe is already fine-tuned (the two conditions coincide in the original modded-nanogpt setting; other settings train 8–120× more updates); reactive behavior is another source of nondeterminism and makes training less reproducible; most experiments run once, a few three times; the current implementation does not support sharded training or optimizer compilation. Repo README adds: v0.3.4, single GPU / single-node DDP only (no multi-node, FSDP, DeepSpeed); "the agent can make a run worse: it cannot restart or roll back training, it can only fix its programs at the next decision"; results vary run to run because the agent chooses differently. Repo ships a one-line `opal.wrap()` wrapper around any torch.optim optimizer, `opal doctor` / `opal estimate` / `opal show` / `opal report` tooling, examples, a CPU test suite, and an experimental Codex backend (gpt-6.1-sol); 34 stars, created the day of the thread.
- Paper
LoopQuant: Accurate and Efficient Post-Training Quantization for Looped Transformers
Loop-aware PTQ for looped LLMs (LoopLMs), targeting W4A4/W4A6. Three components: (1) CLDC (Cross-Loop Distribution Canonicalization) — learns a shared orthogonal-scaling/rotation representation across recurrent states + group-aware channel reordering, keeping parameter sharing intact (directly addresses activations drifting across passes); (2) ILPA (Interaction-Aware Loop-wise Precision Allocation) — assigns 4-bit or 8-bit activation precision per loop under a fixed bit budget from task-level loop sensitivity plus cross-loop error interactions; (3) LCTC (Loop-Conditioned Task Calibration) — calibrates along the actual low-bit recursive trajectory, tuning only lightweight loop-conditioned clipping/gain/bias params; weights frozen. Numbers (first-party, vs SmoothQuant/QuaRot/SpinQuant/FlatQuant/DartQuant, GPTQ weights, 128 WikiText2 calib seqs, lm-eval, RTX PRO 6000): Ouro-2.6B W4A4 (68.89 avg zero-shot) beats all W4A8 baselines (best QuaRot W4A8 68.30); W4A6 70.20 vs 71.12 BF16. Memory −65.3% vs BF16, ~1.5–1.7× decoding speedup. Reasoning: Ouro-2.6B-thinking W4A4 retains >97% of BF16 (72.46/72.02/81.15 vs 76.20/73.31/82.32); baselines partially collapse (DartQuant W4A4 HumanEval: 4.88). Models: Ouro-1.4B/2.6B (+thinking), Nanbeige4.2-3B, Huginn-0125 (T=6). Caveats: the >97% retention is Ouro-2.6B-thinking only — Ouro-1.4B-thinking retains ~87%; all GPTQ-backed; speedups are PyTorch-on-RTX-PRO-6000; authors note prior/concurrent LoopQ (Fang et al. 2026) did initial cross-loop work but released no code, comparison only via its original numbers. Ethics statement flags quantized behavior may shift in ways accuracy benchmarks don't capture.
- Paper
Co-Evolving Acting and Forecasting for Language Agents
CoPE adds one multi-step action-forecasting loss on top of GRPO for sample-efficient RL of long-horizon language agents. Standard agentic RL learns only from a terminal scalar reward; value targets label every step with the same outcome, and observation targets (HTML pages, terminal logs) are noisy, one-step, and waste loss on irrelevant tokens. CoPE's third kind of target: on successful on-policy trajectories, the shared policy backbone learns to predict the action chunk a_{t:t+K} from each history (population optimum: the hindsight distribution Pr(a|h, success) — success is a selection condition, not a per-step label). Each action is thus supervised both where it is taken and when forecast from the K preceding histories, forming an implicit temporal ensemble absorbed into the policy; acting and forecasting co-evolve. Inference still acts one step at a time — zero overhead. On five benchmarks (ALFWorld, ScienceWorld, WebShop, τ²-bench, AppWorld): ALFWorld +5.0pp over GRPO, WebShop success 64.5→77.0, ScienceWorld 64.5→72.5 (best of all RL baselines including ECHO and RWML), τ²-bench 27.5→28.7 (Retail 17.5→29.4, with an honestly reported Airline drop 26.2→16.2), AppWorld 41.67→55.36 (normal) / 18.71→22.54 (challenge). Sample efficiency: 2.0× vs GRPO and 1.7–1.9× vs ECHO on ScienceWorld; 1.6× vs GRPO on AppWorld. Cost: +11% per-step training compute, −9% end-to-end step time; no separate model, no pretraining, no inference overhead. Ablations: K=2 best (all K≥1 beat GRPO), λ=10⁻², gains hold on Qwen3-8B, group normalization stabilizes training. Explicit-ensembling control (separate LoRA forecaster reranking 8 candidates) improves GRPO but adds nothing to CoPE, supporting the implicit-ensembling claim. Plain success-filtered BC on successful rollouts hurts (−7.5pp) — multi-step forecasting is the crucial ingredient. Limitations: outcome-conditioned imitation over-represents easy tasks; the Airline failure shows refusal tasks bleeding into action tasks. Code MIT at github.com/ulab-uiuc/CoPE (AgentGym-RL/verl stack).
- Paper
The Best Optimizer Depends on Batch Size
Adaptive optimizers are benchmarked at one batch size, while hyperparameter scaling rules promise that the best optimizer at one batch size stays the best at another. This paper challenges both practices. (1) No principled scaling rule for Muon works consistently across settings: the authors derive and test three competing rules against Muon - linear LR from SDE-matching, square-root LR from minimizing a convergence bound, and fixed LR with scaled weight decay from Power Lines - tuning at a reference batch size for LM and image classification, then growing batch size at fixed token budget across hundreds of rule variants; the best rule depends on task and target batch size. (2) The best optimizer for LM pretraining changes with batch size even after extensive retuning: Adam, Lion, Muon, SOAP, and Shampoo were each retuned at every batch size from 128K to 2M tokens at fixed total budget under both weight decay and HyperBall (fixed hidden-matrix norms). Under HyperBall, Muon beats Shampoo at 128K tokens/update while Shampoo beats Muon at 2M. Theory on a noisy quadratic explains why: Newton's method divides gradients by curvature, cutting bias (remaining initialization error) at the cost of higher variance from noisy gradients; larger batches shrink variance, so rankings can reverse even with optimally tuned learning rates. A SignSGD toy model shows LR scaling shifts from square-root toward linear as the curvature-to-noise ratio (CNR = h^2/c) increases - the right rule depends on landscape and noise, not just the optimizer. A sharp-subspace intervention pins down where the batch-size penalty lives: checkpoint-branching from 128K to 2M with small-batch updates kept only in the sharpest 768 directions (~0.001% of matrix-parameter space) removes up to 59.5% of the local batch-size penalty (a random same-size subspace removes at most 3%); the benefit largely fades late in training.
- Code
slime v0.4.0: A First Step Toward Greater Scale
slime (THUDM) is an LLM post-training framework for RL scaling that connects Megatron training with SGLang rollout through a shared training/rollout/Data Buffer path; it is the RL framework behind the GLM-4.5 through GLM-5.3 model releases and supports Qwen, DeepSeek, and Llama 3 models (repo ~8.6K stars, Apache-2.0). Release v0.4.0, 'A First Step Toward Greater Scale', was motivated by OpenAI's Navier-Stokes research effort (~10,000 concurrent agents, ~130B output tokens), which prompted a rethink of RL infrastructure scale. Four architectural changes: (1) Focus — two training modes share one train.py lifecycle: synchronous training for algorithmic exploration and correctness, fully async training for throughput at scale (legacy train_async.py removed; PR #2391). (2) Distributed rollout — with the new straw backend, fully async rollout runs one rollout worker per Ray node on CPU resources, each with its own generation pool and asyncio event loop, so orchestration spreads across cluster CPUs instead of a single process bottleneck; training batches collect completed groups without waiting for every worker (PR #2410). (3) Persistent storage — straw (github.com/zhuzilin/straw) provides durable queues and shared tensor storage on a filesystem (JuiceFS currently supported): rollout workers publish payloads to shared storage and training ranks read by reference, moving bulk data off Ray's object-store transport; prompt tasks, partial rollouts, completed samples, and converted training batches persist as large append-only files to reduce small-file/filesystem metadata overhead, with checkpoint rollback support (PRs #2410, #2427). Select via --rollout-data-transport straw. (4) Independent recovery — Megatron training lifetime separated from the SGLang serving cluster: healthy engines/routers keep running after a training failure, and resubmitted training restores the last committed checkpoint and replays retained batches, reusing accepted samples and conversion results (PR #2444). Other improvements: score centering (REINFORCE objective with top-p replay and importance-sampling corrections, --use-score-centering, for training-inference mismatch); PipelineRL --flush-cache-interval letting unfinished requests and KV caches survive selected weight updates; streaming and agent rollouts (cumulative/incremental generation streams, partial-prefix retention, per-request cancellation); Biren SUPA and Ascend NPU accelerator backends; correctness fixes (linear-attention gradients under context parallelism, full-vocabulary reference logprobs in actor top-p replay, checkpoint shard selection in disk-delta sync); stack updated to Megatron Core 0.19.2, Transformer Engine 2.18.0, Flash Linear Attention 0.5.2, NCCL 2.30.7.
- Paper
Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression
Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.
- Paper
ALoDLM: Adaptively Looped Diffusion Language Models
Amazon AGI introduces ALoDLM, a diffusion language model that replaces uniform denoising depth with token-adaptive latent recurrence, attacking the computation-difficulty mismatch: within one denoising step, easy masked tokens need little compute while hard ones need a lot, yet standard DLMs apply the same fixed-depth denoiser to every position. ALoDLM partitions a Qwen3 backbone into a Prelude, a shared Recurrent Core, and a Coda; at each denoising step the core runs up to K=4 recurrent passes. After each pass, an LM head predicts token distributions and an exit gate gives per-token halting probabilities: positions with predictive entropy <= tau are sampled and committed (their embeddings fed back as context for the next pass), while unresolved positions carry their latent states forward for further refinement. The inner loop ends when the mean cumulative halting probability reaches q, no unresolved positions remain, or K is reached. Training treats token-wise exit schedules as latent variables and derives a conditional negative ELBO; a single-trajectory gradient estimator is provably unbiased for the objective (Prop. 1), with a truncated-geometric prior (c=0.4) favoring shallow exits and a practical recipe relaxing the KL term and adding variance reduction (intermediate supervision, first-pass control variate). ALoDLM-1.7B and 8B are trained from Qwen3 by direct SFT on a 5B-token corpus (no continued pretraining; largest looped DLM to date at 8B). On eleven reasoning/knowledge/math/code benchmarks via the OpenCompass protocol, ALoDLM beats all evaluated DLMs (LLaDA-8B, Dream-7B, Fast-dLLM-v2, SDAR-8B, WeDLM-8B) and its Qwen3 AR counterparts in average score at both scales: 65.5 vs 63.8 at 1.7B, 80.3 vs 78.5 at 8B. It keeps fast parallel decoding: on GSM8K, ALoDLM-8B delivers ~2.7x the throughput of vLLM-served Qwen3-8B (93.25% at 612.4 tok/s on one NVIDIA B200) at comparable or higher accuracy, and 13.6% fewer GFLOPs per token than WeDLM at the same accuracy threshold. Recurrent depth is an effective test-time scaling axis, and the model learns token-dependent refinement preferences without difficulty labels (e.g., numerical tokens refine longer). Caveats: longer time-to-first-token than AR models and input-dependent throughput; the speed advantage can shrink on difficult or out-of-distribution inputs. Code: github.com/amazon-science/ALoDLM (optimized CUDA-graph inference engine included); weights: huggingface.co/amazon/ALoDLM-8B and amazon/ALoDLM-1.7B; project page: alo-dlm.github.io. Joins the looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566, 1579). Directly relevant to the user: a practical recipe for adaptive per-token compute and the strongest current DLM quality-efficiency tradeoff.
- Paper
Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training
Diagnoses a late-training blow-up training a 450M transformer on 50B tokens with FlashAttention-3 in BF16: healthy for 25B tokens, then gradient norm grows 1000x and loss ends 0.2 nats above FP32 attention — with no NaNs at all. Recomputing just two layers' attention backward in FP32 removes almost all excess gradient. Part of the cause is known (a fused multiply-add in the forward softmax, never fixed in FA3); repairing it stops the blow-up but leaves the query gradient wrong by more than its own size (219% median error). The deeper cause is a broken conservation law: the softmax score gradient dS sums to zero along every row, making dQ blind to where the keys sit as a group; rounding dS to BF16 leaves a small nonzero sum that leaks the mean key into dQ — and the leak grows exactly as late training makes keys large and attention sharp. Fix: GProj (gauge projection), which restores the zero row sum after the cast with two rank-one corrections per row — cuts median dQ/dK errors from 219%/13% to 0.34%/0.37% (FP32-attention level) for 4.7% more step time; in matched from-scratch runs it reaches the same loss as FP32 attention while FA3 and key smoothing destabilize. KohakuBlueleaf replied on the thread reporting the same class of precision bug in FA4/cuDNN/flex attention and their KohakuFA fix. If a BF16 run blows up late with no NaNs, check the attention backward. Directly relevant to the user's LLM training-run debugging work.
- Paper
RSI-Master: Structuring Experiments to Guide Autonomous Model Improvement
Recursive self-improvement via autonomous model development: agents iteratively explore post-training strategies to improve a base model. Two failure modes: hacking (agents exploit open-ended experimental actions) and strategy lock-in (over-refining an early direction instead of reconsidering it). RSI-Master counters both at two levels: an Experiment OS that regularizes step-wise actions and keeps persistent, traceable experimental records; and Reviewer-Guided Research Orchestration organizing Workers and Reviewers in a dynamically growing research DAG — Workers explore diverse directions, Reviewers compare evidence across related experiments to guide subsequent exploration. On PostTrainBench with Qwen3-4B-Base: 54.49 vs 46.53 for the strongest agent baseline with 0.0% hacking rate. At 35B scale: surpasses the human-developed instruct model on LiveCodeBench-v6 (41.21 vs 37.36) and SciCode, and reaches a nonzero score on HorizonMath (unsolved research problems where most frontier models score near zero). Directly relevant to the user's agent-harness and self-improving-model work.
- Paper
Towards Looped Models Done Right — Part II: Rethinking at Fixed Points
Looped LMs need not pay for every loop: they can scale by adding FLOPs at constant memory, and the key is the loop's fixed point. Three fixed-point ideas: (1) Fixed-Point Shortcuts — what fixed points buy in training (pre-train, post-train) and inference (prefill, decoding). Terminal KV sharing: each prefix token keeps only its last-loop KV (reuse the KV from the last loop), discarding intermediate loops; with depth sampling it keeps 4 of 12 KV banks with at most 0.85% perplexity increase from 100M (21.5B tokens) to 1.6B (344B tokens). A model trained at one fixed depth breaks under sharing (red rows) — sharing works only when states settle (95% of tokens stable by loop 8) because deep draws train on a nearly settled prefix KV. Proven: both training-read and sharing-read reach the same fixed point and same next-token prediction when the prefix KV converges and each token's update is a contraction (Lemma 1). (2) Learned depth prior — prediction feedback moves draws toward depths that predict well, an entropy term keeps the deep draws that form fixed points, a budget term holds mean depth; at 1.6B with the shared cache it averages 60.0 (level with the 59.9 fixed-depth reaches with a 3x larger cache), while at 1.6B/344B tokens the looped model beats a 4-block Transformer by 8.9 average points and lands within 1.5 pts of a 12-block model needing 3x memory. (3) OrthoInj (orthogonal input injection) — projects out the injected-input component so input conditioning stays constant across loops; lowest loss and val PPL, highest downstream average at every scale. Also: terminal KV sharing lets a distilled student prefill by predicting the endpoint (1.79x faster prefill of an 8K prompt at 1.6B, keeps 93% of teacher downstream score); truncated BPTT with depth sampling matches full backprop (backprop window b=4 under the PLN-5 prior) and covers both pre-fixed-point training and the endpoint gradient; fixed-point reuse for RL skips the redundant second pass by reusing the rollout's final states and applying the block once (2x faster scoring/backward on GSM8K and MBPP+, pass@1 within run-to-run variation). Limits: models reach 1.6B, one training seed per configuration, larger scales and real-world feasibility untested.
- Paper
Targeting Pivotal Decisions for Credit Assignment in Agentic Reinforcement Learning
GRPO gives every token in a trajectory the same advantage, so the training signal cannot distinguish decisive steps from the rest. ProVer targets potentially pivotal decisions for fine-grained credit assignment: given a rollout group, an agentic judge contrasts successful and failed trajectories to propose the segment responsible for their divergent outcomes; rather than trusting the judge directly, ProVer verifies the segment by estimating its advantage from the difference in terminal success rates between current-policy continuations sampled before and after the segment, folding positive estimates into the GRPO advantages of policy tokens within the segment. Model judgment is used only to select where to verify, grounding local credit in observed outcomes without exhaustively evaluating every intermediate state. Across ALFWorld, WebShop, and SearchQA, ProVer achieves the strongest average performance at both model scales, with relative improvements over GRPO of 9.91% for Qwen3.5-2B and 7.12% for Qwen3.5-4B; informed segment selection works with modest additional generation overhead even without a frontier-scale judge.
- Paper
Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning
Introduces agentic meta-reasoning, an inference-time harness that makes agent control choices — which partial work to build on, whether to start fresh, when to stop — an explicit, structured reasoning process. Workers carry out task-level computation while a controller consolidates what the run has established, explores next options, assesses each option's worth under the remaining budget, and dispatches chosen work with context from persistent memory; between decisions the controller carries only a compact account of the run rather than replaying full history. Against production coding agents (Codex, Claude Code), research harnesses, and a Direct Control Agent baseline with the same workers and compute allowance, meta-reasoning reaches 71.5% on ProgramBench with GPT-5.5 vs 58.0% for Codex, and 67.2% with Opus 4.8 vs 65.5% for Claude Code; on other benchmarks (abstract reasoning, multi-domain long-horizon reasoning, proof generation) it gains 3.6-4.2 points over direct control averaged across three frontier models. It keeps improving over tested budget ranges where direct control plateaus, though its overhead can hurt at small budgets; artifact-graph analysis shows more reuse of earlier work and higher coverage of correct solutions.
- Paper
Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence
Eagle adds matrix-valued WKV states, head LayerNorm, SiLU gating, and drops sigmoid receptance vs RWKV-4. Finch adds data-dependent token-shift and decay via LoRA-style offsets. New RWKV World Tokenizer (65,536, trie greedy) and World v2 mix (~1.12T tokens, ~70/15/15 EN/multilingual/code). Eagle 0.46–7.5B and Finch 1.6/3.1B Apache-2.0 on HF. Eagle-7B multilingual avg 58.2 vs Mistral-7B 55.5 / Llama-2-7B 54.3; English avg 71.5 vs Mistral 75.8. Finch ~4.2× faster than FlashAttention-v2 at seq 16k. Code https://github.com/RWKV/RWKV-LM; models https://huggingface.co/RWKV.
- Paper
Seer: Online Context Learning for Fast Synchronous LLM Reinforcement Learning
Rollout is 63–87% of RL iteration time. Seer exploits intra-group (G=8–16) length/pattern similarity: divided chunk-level rollout with a global Mooncake KVCache, context-aware longest-first scheduling via a speculative probe request, and adaptive grouped speculative decoding with compressed suffix trees. On production GRPO workloads (Moonlight, Qwen2-VL-72B, Kimi-K2) up to 2.04× end-to-end rollout throughput vs veRL and 72–94% less long-tail latency, while keeping on-policy semantics. Context-aware scheduling alone cuts tail time ~89%; grouped SD adds up to 1.3× vs vanilla SD.
- Paper
OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iteration
OPUS (Optimizer-induced Projected Utility Selection) linearizes AdamW/Muon one-step updates, sketches ghost outer-product gradients with CountSketch, and Boltzmann-samples a batch aligned with a Bench-Proxy retrieved from the corpus. Scoring overhead 4.7% vs naive 3.5×. GPT-2 XL Muon FineWeb 30B: avg 41.75 vs random 40.29, beating 60B random (41.29) and static filters. FineWeb-Edu: OPUS on score-3 beats baselines trained on score 4+5 (XL 44.99). Qwen3-8B-Base CPT on SciencePedia: 0.5B tokens beats 3B full CPT. Code https://github.com/gszfwsb/OPUS.
- Paper
Beyond Teacher Assignment: Domain-Normalized Multi-Teacher On-Policy Distillation
RL can turn one language model into several specialists (math, coding, instruction-following), and multi-teacher on-policy distillation (MOPD) merges them by having the specialist for each prompt's domain give per-token feedback. But the routing decides which specialist teaches, not how strongly its feedback moves the shared student: in Qwen3.5 models at three sizes, the MOPD student does not beat one taught by the best single specialist and captures little of the math specialist's advantage, because instruction-following feedback is several times more spread out than math feedback and dominates updates. Domain-Normalized MOPD (DN-MOPD) keeps the routing and rescales each domain's feedback by its measured spread; on six public benchmarks it improves average score over MOPD at every size, across three seeds and two answer-length limits, recovering most of the lost math gain. Controls show the gain comes mainly from turning down instruction-following feedback rather than turning up math alone.
- Paper
Recursive Self-Improvement via On-Policy Distillation for Reasoning
On-policy distillation (OPD) trains a student model by having it generate trajectories, then matching its next-token predictions with an external teacher's next-token predictions. This provides dense, token-level supervision to the student. On-policy self-distillation (OPSD) eliminates the need for the external teacher. Specifically, a second frozen copy of the student model, now given the ground truth in its context, serves as the teacher. The student model only receives the problem and learns to mimic the privile…
- Paper
Towards Differentially Private Reinforcement Learning with General Function Approximation
We present the first theoretical guarantees for differentially private online reinforcement learning (RL) with general function approximation, extending beyond prior work restricted to tabular and linear settings. Our approach combines a batched policy update scheme with the exponential mechanism, together with a novel regret analysis. We show that, even under general function approximation, the regret in the model-free setting under differential privacy matches the state of the art for the linear case, scaling as…
- Paper
OpenThoughts-Agent: Data Recipes for Agentic Models
Addresses the lack of public knowledge on data curation for agentic models via 100+ controlled ablations on a six-stage SFT curation pipeline plus agentic RL data studies. Fine-tuning Qwen3-32B on the resulting 100K-example OpenThoughts-Agent-v2 yields 44.8% average across seven agentic benchmarks (+3.9pp over the strongest open-data baseline), with strong data scaling properties.
- Paper
Shockingly Simple Self-retrospection Improves Agentic Models Without RL
Proposes Retrospection-Only Fine-Tuning (ROFT): post-train agentic models using only the agent's own self-generated explanations, with no external teacher and no reward-based policy update.