Explore the research collection
410 entries · showing 49–72 · Follow this search
- Paper
Multi-Token Prediction Done Right (Soft Multi-Token Prediction / Soft-MTP)
Standard multi-token prediction (MTP) trains each future-token head with cross-entropy against the data. This paper shows that gradient decomposes EXACTLY into two parts: a KL self-distillation term that pulls each MTP head toward the model's own position-aligned next-token (NTP) distribution — the distribution that will later verify its drafts in speculative decoding — and a residual term equal to the NTP cross-entropy gradient against the one-hot target. The residual is the problem: it carries ~4x lower signal-to-noise ratio than the KL term (4.1x at 167M, widening to 4.6x at 1.2B, because its signal is the shrinking NTP error while its one-hot sampling noise is irreducible), yet it accounts for ~80% of the MTP gradient reaching the shared trunk, and a unit step along it consistently INCREASES NTP loss — it is anti-aligned with the NTP update, increasingly so with scale. The fix is the KL gradient-recovery trick: when two distributions share a linear output head, the KL gradient can be recovered exactly by combining the two cross-entropy gradients through straight-through routing — in code, one line added to the NTP hidden state (h0[:, k:] += hk.detach() - hk, with a rescaling factor in the real implementation) leaves the forward numerics untouched while routing the negative NTP-CE gradient into each MTP head, exactly cancelling the residual. No KL is ever computed, no vocabulary-sized logit matrices are materialized, and it stays compatible with fused cross-entropy kernels — unlike explicit KL self-distillation or its top-k / argmax approximations. The result, Soft-MTP, works for both DeepSeek-style sequential and Meta-style parallel MTP, adds no parameters, and has no measurable overhead. Experiments: LLaMA-style models 167M–1.2B, DeepSeek-style MTP with K=3 heads (each head 3.2% of trunk non-embedding params, lambda_MTP = 1.0), FineWeb-Edu ~31.5B tokens (60k steps, batch 0.5M tokens, seq 2048, ~1.3x Chinchilla for the largest size), trained with the Muon optimizer (update-RMS rescaling). Findings: Soft-MTP lowers NTP loss vs standard MTP at every scale with the gap widening with scale, and lowers MTP loss from 689M onward; self-speculative decoding improves in all five domains tested (FineWeb-Edu, Wikipedia, Books, Science, Math) at every scale — acceptance length +1.8–2.2% and speedup +1.4–1.5% on average, with MTP distributions measurably closer to the NTP verifier (lower KL and TV); zero-shot average accuracy improves over standard MTP at every scale (~+0.1 pt at 167M/332M, ~+0.5 pt at 689M/1.2B, where Soft-MTP also overtakes the NTP-only baseline); math and code fine-tuning at 1.2B is stronger. Against the expensive alternative, Soft-MTP matches or exceeds direct KL-divergence minimization on most metrics — keeping hard CE supervision at the LM head and routing recovered KL gradients only through the MTP heads and trunk is sufficient. The repo ships a test verifying the recovered gradient equals the explicit KL(q||p) gradient to machine precision in float64, plus toggles for hard_mtp / soft_mtp / direct_kl / ntp under one loss function.
- Post
Training Reve 2.0 at scale
Reve's training platform for its multimodal image models (Reve 2.0/2.1), built by a small team under tight engineering-time and compute constraints and validated at ten-thousand-GPU scale. Stack: Kubernetes + Ray on Google Cloud, with an in-house workload client GKR (Google Kubernetes Engine Runner) as a single cluster-aware CLI for submission, inspection, logs, and file transfer; KubeRay manages Ray job lifecycle; PyTorch + Ray Train for distributed compute; GitOps via ArgoCD/Terraform/Kustomize; Hydra YAML training-driver configs separating application config from launch templates. Job submission: GKR renders Jinja Kubernetes manifests, with RayJob (temporary RayCluster), persistent RayCluster, and plain Job types; extensive preflight checks before GPU time is spent (manifest validation, kernel-log/hardware/driver checks, compute and collective tests, mounts/libraries/transport) with an offer to tear down on failure. Platform: GCP future reservations for collocated long-term capacity; node families a3-megagpu-8g (8x H100 80GB, 1,800 Gbps GPUDirect-TCPXO) and a3-ultragpu-8g (8x H200 141GB, 3,600 Gbps RoCE); whole-node 8-GPU allocation preserving intra-node locality; rack affinity found minimal impact in-region (expected to matter more on Vera Rubin A5X 72-GPU NVLink domains); no capacity-based queueing by design — conflicts resolved by manual coordination, Kueue admits all jobs. Distributed execution: RayCluster with one head + many workers, auxiliary workers (inference/encoding/evaluation) as persistent Ray actors in separate resource pools behind per-node proxies, communicating via ZeroMQ (not Ray RPC) with weighted round-robin and per-rank bounded queues; driver capacity planning reserves auxiliary capacity first via a proportional GPU/CPU formula, then rounds by parallelism layout; data loaders decoupled from Ray into multiprocessing backends with deterministic sampling schedules resumable from checkpoints. Cross-region: clusters per GCP region, with a custom DiLoCo variant — independent local learners per RayCluster, central synchronizer merging weight snapshots with a separate outer optimizer, in barrier and decoupled modes (decoupled learners keep training and merge later, needing merge/replace rules). Failure containment: PyTorch Distributed Checkpoint (snapshot to CPU memory, background write to GCS, lowest-index rank triggers auxiliary checkpointing); optional torchft integration for live fault tolerance — RayCluster auto-shrink keeping surviving FSDP replica groups running past a trainer-process loss, with a Lighthouse quorum, manager heartbeats, and all-or-nothing optimizer updates per replica group; at a hypothetical 20,000 GPUs the authors estimate MTBF would fall below the checkpoint interval, making live fault tolerance non-negotiable. Warden, the fleet health manager: periodic Temporal workflows per node (one worker per node, state in Temporal DB), detection via GPU telemetry + Kubernetes state (definite fault → cordon; ambiguous → gkr check preflight suite), recovery sweeps rebooting idle cordoned nodes, stress-test then uncordons, repeated cordons escalating to GKE auto-repair; shrinking a RayCluster on replica-group loss without interrupting training. Observability: OTel/Prometheus/Grafana + self-hosted ClickHouse for high-cardinality metrics/logs (SQL access for LLM-assisted investigation); FleetMonitor Ray actor for auxiliary-worker queue/throughput/health; NCCL Inspector diagnosing stragglers by decomposing collective duration into waiting + transfer time (transfer ≈ min rank duration, waiting ≈ rank duration − min, arrival skew ≈ max − min, averaged ~30s), complemented by the PyTorch flight recorder. Failure analysis: after a crash, an LLM agent (given crash log, configs, code checkout, isolated workspace, debug/tracing skills, telemetry access) proposes a root cause, evidence, and fix, then waits for human approval before applying it and relaunching.
- Paper
Nested Sparsity for Scalable Pretraining and Continual Learning (Nestor)
Nestor generalizes MoE conditional computation from the MLP to attention. Each block contains several attention operators called columns; a column router sends each token to a few columns, and each column has its own experts selected by a second router, so the two sparsities nest hierarchically. Each token attends only among tokens routed to the same column. With a single column Nestor is exactly an MoE transformer; with a single expert, a dense transformer. In the experiments each block has 8 columns, and the number of columns a token uses grows with depth (3 in the first block to all 8 in the last). Pretraining (dense, MoE, Nestor at 100M/200M/500M/1B active parameters, DCLM): Nestor achieves the lowest held-out loss at every scale at equal or less compute and comparable total parameters; fitted scaling laws estimate MoE needs 1.13–1.29x Nestor's compute to match its loss, dense 3.1–4.1x, with neither factor shrinking as scale grows. Domain adaptation (books, math, code, German): all three models gain about equally on the new domain, but Nestor forgets 3% less than MoE on average while dense forgets 21% more (website's relative figures). Long-context extension 4k→64k: each column attends only within its routed subset, so per-token cost grows more slowly with length; at equal tokens Nestor preserves its pretraining advantage, at equal compute its advantage grows with context length, with saved attention FLOPs funding more continued-pretraining tokens. Theory (stylized one-layer linear-attention model with hierarchical coarse/fine labels): the nested predictor fits one pattern and row space per column from all that column's experts, while the flat MoE predictor fits one row space per expert plus C^2 pattern blocks (C(C-1) of them zero at the target but still fit from data); compute advantage grows with context length, and in the forgetting analysis non-target columns never change while the flat predictor's shared value map moves, producing forgetting that grows with row-space overlap.
- Thread
Hand-crafted pretokenizer regexes are part of every frontier LLM and doing heavy lifting (Albert Gu, X thread)
A short illustrated explainer — framed as preparation for an unnamed, undated Cartesia "upcoming release" (pure teaser; nothing about it is verifiable from the thread) — arguing that the regex PRETOKENIZER is the one part of a modern LLM stack still hand-designed rather than learned, and that it does "pretty heavy lifting." Content is a lineage tour of the pretokenizer patterns shipped in well-known public BPE tokenizers, each shown as a screenshot and verified for this entry against the public tokenizer configs (NO errors found): (1) GPT-2's original pattern — contractions case-SENSITIVE and listed individually ('s|'t|'re|'ve|'m|'ll|'d), digits UNGROUPED (\p{N}+). (2) GPT-4 / cl100k_base — contractions become case-insensitive ((?i:…)) and digits are chunked in groups of 1–3 (\p{N}{1,3}) — a deliberate choice with arithmetic consequences (fixed-width digit chunking; a reply in-thread notes left-to-right chunking turns 12345 into 123|45). (3) GPT-4o / o200k_base — the letter branch forks by case (separate uppercase/titlecase-initial and lowercase-initial word patterns), roughly doubling the pattern's complexity; Gu's caption is candid ("honestly i have no idea, something about additional rules around upper/lower case") and the case-handling reading is correct. (4) DeepSeek — the pattern balloons into many script- and punctuation-specific branches, including a dedicated CJK range branch; the screenshot is EXCERPTED (presented without saying so — the full DeepSeek pattern is far longer). Claim hygiene: "part of every frontier LLM" overstates as written — regex pretokenizers are near-universal in the dominant BPE lineage (OpenAI, DeepSeek, Llama-3-style, Qwen, Mistral tiktoken-style), but SentencePiece/Unigram tokenizers and tokenizer-free/byte-level approaches don't use a hand-written regex pretokenizer; read as "every frontier BPE LLM." Post 1's meme regex is an implementation variant (possessive quantifiers, apostrophe-less contraction branch) of the GPT-4-family pattern rather than literally the cl100k pattern shown two posts later — cosmetic, not an error in any captioned claim. A notable unanswered reply asks what regression test catches a silent pretokenizer change that shifts model quality.
- 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).
- Paper
A Fix for Softmax and Cross-Entropy
Shows that the standard softmax + cross-entropy implementation (JAX, PyTorch, TensorFlow — all named) silently computes WRONG gradients in finite precision, via two distinct failures, and fixes both by pure reformulation (no higher-precision casting). BUG 1 — SOFTMAX COLLAPSE (hard targets): implementations shift logits by their max, then form the denominator as 1 + e^(−m) where m is the target logit margin; values added to 1.0 are lost to rounding, so once the margin exceeds the PRECISION CLIFF (c ≈ 5.5 in bf16, 16.6 in fp32, 36.7 in fp64) the denominator rounds to exactly 1.0 — the target logit's loss and gradient round to exactly 0, but the NON-target gradients do not (they never add 1.0, staying accurate down to underflow at m ≈ 88), so the gradient silently loses one entry and no longer sums to zero. BUG 2 — SOFTMAX CANCELLATION (soft targets / distillation / KL): standard soft-target CE softmaxes student and teacher separately and subtracts probabilities; rounding destroys the logit difference δ as z_S → z_T, and the forward/backward operation sequences differ so q ≠ p to machine precision EVEN WHEN z_S = z_T exactly — a nonzero gradient noise floor where the true gradient is 0. THE FIX: for hard targets, exclude the argmax/target from the log-sum-exp, compute the margin, combine via softplus(−m), and let autodiff produce the target gradient as the negated sum of the non-target gradients (Σg = 0 by construction, accurate down to underflow); for soft targets, pass teacher logits into the loss and compute q − p IN LOG SPACE from δ using expm1/log1p with a final Σg = 0 correction — gradient exactly 0 when z_S = z_T (implemented via a custom-gradient stop_gradient trick, ~15 lines). SLINGSHOT EXPLANATION: after memorization, margins grow; once a batch sits entirely above the cliff, parameter gradients nearly vanish, Adam's v̂ decays toward zero while weight decay shrinks the weights — until a few examples drop back below the cliff, their gradients abruptly switch back ON and get divided by the decayed √(v̂)+ε, producing a huge step → loss spike → repeat. This gives the Slingshot phenomenon (Thilak et al. 2022) a complete causal mechanism. MARGIN EQUILIBRIA (§5, standalone result): at an AdamW stationary point |g_i| ≈ ε·λ·|θ_i| and |g| ∝ e^(−m) after memorization, so margins saturate at m*(ε) ≈ log(1/ε) — independent of η, β1, β2 (RMSProp and LaProp share it). Default ε=1e-8 is pathological in fp32: its equilibrium log(1/ε) ≈ 18.4 sits JUST ABOVE the fp32 cliff 16.6, so standard CE hits the cliff right before equilibrium; for ε ≥ 1e-7 the equilibrium (≤16.1) sits below the cliff and training settles without spiking. RESULTS (ALL first-party toy experiments — grokking testbeds, 1-layer width-64 ReLU Transformers and 2-layer MLPs on modular arithmetic, full-batch AdamW; NO LLM-scale experiment anywhere): slingshot setting (a+b mod 31, λ=1, ε=1e-8, 5 seeds) — standard CE repeatedly spikes and degrades grokking, 94 ± 5% vs fixed CE 100 ± 0%; no-weight-decay setting — standard CE tracks fixed CE to 61% accuracy until m hits c₃₂ at ~step 1250, where one spike drops accuracy 61% → 23%; fixed CE continues smoothly to 85%. Precision × ε grid: fixed CE reaches 99–100% in bf16, fp32 AND fp64 at every ε, with final margins matching log(1/ε) predictions; standard CE stalls at its format's cliff (bf16 accuracy ~93–95%, fp32 ~94–97%), and even fp64 breaks at ε=1e-16. Prior-work baselines on the same grid: Zero-sum Projection (Liu et al. 2026) collapses to ~49% at ε ≤ 1e-12; StableMax (Prieto et al. 2025) trails fixed CE at every ε with margins blowing up to 10³–10⁴. Four literature grokking benchmarks: fp32 fixed CE matches fp64 standard CE and reaches 100% on all four. DISTILLATION DRIFT (§7): student initialized EXACTLY at teacher weights should not move; with standard soft-target CE the residual gradient is ~1e-17 in fp64 (student stays), ~1e-8 in fp32 (brief KL spike), and ~1e-3 in bf16 — Adam normalizes it into full-size steps, driving the student AWAY from the teacher and degrading accuracy; fixed CE returns g = 0 exactly at all precisions. Caveats: TOY SCALE ONLY — the authors concede (§8) the extreme margins and near-zero student–teacher gaps probed are uncommon in standard large-scale training; whether LLM training actually sits above the cliff in practice is asserted plausible, not demonstrated (mitigating: most LLM stacks compute the loss in fp32, cliff 16.6; the bf16 cliff at 5.5 is low enough that very confident tokens could plausibly cross it — extrapolation, not a result). The distillation experiment is the degenerate identical-initialization case; real student–teacher gaps are larger, where the cancellation error is proportionally smaller — practical drift magnitude unmeasured. "Bug" is a framing choice: the formulas are correct in exact arithmetic; the failure is evaluation order (though the computed gradient is genuinely wrong — sign flips, deleted entries, Σg ≠ 0 — and prior mitigations existed: fp64 casting, StableMax, zero-sum projection; the contribution is the direct fix + the Slingshot/equilibrium explanation). The equilibrium derivation is idealized (stationary point); the Slingshot is not always harmful on the paper's own account (with pre-LN and no weight decay, spikes act as accidental LR decay); "no meaningful slowdown" is claimed without timing benchmarks. Paper is one day old, no independent replication.
- Paper
Towards Continual Learning: Mitigating Forgetting With Subspace Tuning
Imports the update GEOMETRY of on-policy training into offline fine-tuning to stop catastrophic forgetting. Premise (from cited prior work): RLVR and on-policy distillation barely move the principal singular directions of weight matrices and forget little, while SFT concentrates updates along exactly those directions and forgets heavily. METHOD (SST): for each weight matrix W with top-k singular vectors U_k, V_k, project the APPLIED update — Π(ΔW) = (I − U_kU_kᵀ) ΔW (I − V_kV_kᵀ) — so the protected singular triplets are preserved exactly and learning happens densely in the spectral tail. Default protection is extreme: rank fraction r = 0.99, i.e. the top 99% of singular directions are frozen and updates live in the 1% tail (the inverted regime from LoRA-style methods). Three load-bearing design decisions: (1) project the applied update, NOT the gradient — Adam's diagonal preconditioning does not commute with projection, and a toy study (Qwen2.5-0.5B, 60 Adam steps) shows gradient projection still leaks 69% of the final weight change into protected directions (held-out NLL rise 0.72) vs update projection's ZERO leakage and NLL rise 0.13 (unconstrained FT: NLL +13.0, 98% of change in protected directions); (2) dense gradient estimation — gradients computed in full, only the step is confined (the paper maps OPLoRA onto the mis-scaling variant and Sculpting onto a partial gradient projection); (3) basis REFRESH — recompute the SVD basis from current weights every K steps (R100/R10) so a fixed complement doesn't strangle long runs; refresh re-opens directions at a mild retention cost (~3–5 points) and is the explicit adaptation–retention knob — note the strict "preserved exactly" guarantee holds only between refreshes / for the no-refresh variant. Optimizer-agnostic (demonstrated with Adam AND Muon), composes with SFT and SDFT (self-distillation fine-tuning), no extra trainable parameters, no inference cost; overhead +1.5% per step for projection alone (Qwen3-8B full FT), 5.1% (R100) / 37.6% (R10) total, dropping to 0.6% / 4.7% when SVD work is split across GPUs. RESULTS (all first-party; Qwen3-8B thinking-mode fine-tuned on <think>-trace data in Science / Finance / Pathology & Medicine; prior capability = avg of GPQA-Diamond, MMLU-Pro, GSM8K, HumanEval, IFEval; base LM avg 81.0): Science — SFT Δ −25.5 (LM avg 55.5) vs SFT+SST Δ −1.0 (80.0) with HIGHER in-domain accuracy (80.1 vs 77.6; R10: 84.0, Δ −0.8); SDFT alone Δ −24.0 → SDFT+SST+R100 Δ −0.3; Muon arm: SFT+Muon Δ −21.5 → +SST Δ −1.3; post-hoc KL repair (ReInvoke) only recovers to Δ −10.7 and loses in-domain accuracy. FinQA is the catastrophic cell: SFT Δ −57.3 (LM avg 23.7; GPQA 60.1 → 10.1) vs SFT+SST Δ +1.3 (82.3, ABOVE base) at equal-or-better in-domain accuracy. Subspace-protecting baselines at their official settings (Sculpting, OPLoRA) lose 18–26 points of prior capability on average where no-refresh SST loses ~1; handing OPLoRA SST's protection level closes much of the gap but still trails on 3 of 4 domains. Scaling: unconstrained SFT loses 30–40 points at EVERY size (Qwen3 1.7B→14B); SST's forgetting SHRINKS with scale, within ~1% of base from 8B onward, with higher target accuracy at every size. KL(π_base‖π_θ) on WikiText-2 is 2–4× lower than unconstrained recipes; a reverse-KL penalty on SFT does NOT reproduce the trade-off (weak = no retention help; strong = suppresses learning without preserving capability). Sequential chains: under plain SFT, FinQA → Pathology → Science dormancy drops dormant domains 28 and 18 points; under SST each domain rises in its stage and holds (SDFT+R10 loses 20 points on FinQA→Science; SST+R10 loses none). Rank ablation: stronger protection improves BOTH retention and in-domain accuracy in their sweep. Caveats: hyperparameters were SHARED across methods, not tuned per method (authors concede SST's optimal LR need not equal SFT's — the headline gaps are large enough that the conclusion likely holds, but the exact frontier is unmeasured); closest-prior-art coverage is incomplete — SVFT (NeurIPS '24; ΔW = U M Vᵀ with M restricted to the tail block is structurally very close) is NOT compared, a gap flagged in a thread reply by Vijay Lingam; scale ceiling 8B main / 14B–32B sweeps, hundreds-of-billions untested; retention measured on five benchmarks + WikiText-2 KL only (nothing on long-context or multilingual retention); two of four domains train on Claude Sonnet 4.6-generated traces and the Olmo qualitative study is judged by Sonnet 4.6 (fabrication rate is a phrase-based lower bound). Paper ~1 week old, no independent replication.
- Paper
Simulating Training Spikes of Deep Neural Networks by Layer-wise Random Feature Models
A mechanism paper for training spikes — the sharp temporary train+validation loss surges in LLM pretraining. Diagnostic starting point: ordinary loss fluctuations are driven by data shuffling and reproduce identically across seeds, but spikes occur at DIFFERENT steps for runs differing only in initialization, so spikes are not caused by a single bad data point and outlier removal cannot fully fix them. TOY MODEL (PLRF): a Power-Law Random Feature model — fixed random Gaussian features feeding linear regression, inputs power-law scaled with exponent α. Two necessary conditions for spikes in PLRF: (1) heavy-tailed data (large α) and (2) learning rate near the divergence threshold. At α=0.3 raising the LR just diverges cleanly; at α=0.9 BOTH SGD and Adam produce genuine spikes before divergence (claimed as the first explicit link between training spikes and heavy-tailed data). MECHANISM: decompose the iterate into deterministic full-batch descent plus a random walk accumulating stochastic gradient noise. Concentration of measure makes the loss concentrate on its expectation IFF α ≤ 0.5 (equivalently Σλ_i diverges for eigenvalues λ_i ∝ i^(−2α)); for α > 0.5 a few very large eigenvalues dominate, and when the noise random-walks into alignment with a large-eigenvalue direction, the loss surges. The EXPECTED loss stays smooth — average-case scaling-law analyses remain valid but stop describing individual runs. Side result: spikes occur in convex quadratic models under stochastic optimization — the 3rd-order terms needed for Edge-of-Stability spikes under full-batch GD are NOT necessary once gradient noise exists; and the SGD divergence threshold is not 2/λ_max but solves (1/B)·Σ γλ_i/(2−γλ_i) = 1 — sharpness (λ_max) is only distantly relevant; the whole eigenvalue distribution is what matters. LAYER-WISE SIMULATOR (Algorithm 1): each layer gets a 2nd-order Taylor expansion of validation loss around a checkpoint (per-example gradient second moments factorize through the activation-correlation spectrum — Prediction 5, verified with relative error <0.1, mostly within 5%, across layer types and steps); from ONE checkpoint + one validation pass (activation-correlation eigendecomposition, mean gradient, mean squared per-batch gradient norm, Hessian trace via Hutchinson probing), synthesize Gaussian per-batch gradients and roll the real optimizer map forward — ~5 seconds on CPU for 1,500 steps for one layer, vs 8 min–1.7 hrs of measurement on TPUv4×32 and 40 hrs to train the case-study model. CASE STUDY: vanilla 1.3B decoder-only Transformer (24 blocks, d=2048, C4, ~25.5B tokens, AdamW β2=0.95, peak LR 8.2e-4, NO gradient clipping); changing only β2 0.95 → 0.999 induces spikes (two seeds). Simulating from the step-21k checkpoint, the normal configuration stays comparatively smooth while both spiky configurations show clear bumps — matching the qualitative fact of spikiness, NOT the step (spike timing is random by construction). Activation-correlation eigenvalues are power-law distributed and MORE heavy-tailed for the spiky configuration, especially in lower layers. EQUIVALENT BATCH FACTOR: despite ~524K tokens per batch, the measured equivalent batch factor 𝔅 ≈ 1 — for gradient-noise purposes Transformer LM training sits in the SMALL-BATCH stochastic regime, because per-token gradients vary wildly; token-count batch size does not buy the gradient-noise suppression sequence-count reasoning suggests. β2 RECIPE: make Adam's second-moment decorrelation time ~1/√(η_t·H) instead of ~1/(η_t·H), giving β2 ≈ 1 − √(η_t·𝔗/√𝔑) from measured Hessian trace 𝔗 and per-batch gradient norm 𝔑 — generically an INCREASING β2 schedule as LR decays; fitted schedule β2 0.982 → 0.992 gave final val loss 2.4404 vs 2.4421 for constant 0.95 and 2.4502 (visibly spiky) for constant 0.992 — real but TINY margins (0.0017 over the original; 0.0001 over the best constant), single runs, no seed variance; the sharper finding is the sensitivity — a 0.01 change in constant β2 flips training between smooth and spiky. Caveats (authors' own, unusually candid): the simulator explains spikes only PARTIALLY — measured 2nd-order terms show level "jumps" rather than spike-and-recovery, 1st-order terms are ~20× larger than the quadratic model predicts; cross-layer correlations and >2nd-order terms are needed and absent; the honest claim is "quadratic models at least partially reveal the mechanism," weaker than the abstract's "successfully predicts." "Prediction" is qualitative — a spike-RISK screen from a checkpoint, not a forecast of when. The layer framework rests on imposed assumptions (Gaussian latents with negligible drift; isotropic output-gradient covariance) and EXCLUDES tied embedding/LM-head weights entirely. The β2 mechanism is admittedly unexplained ("a curious mystery"); the recipe is offered as proof of concept. Simulator accuracy degrades badly with batch size in the PLRF check (severe overestimation at B=64) — the DNN case is argued safe only because 𝔅 happens to be ≈1 for this recipe. Single case study: one size (1.3B), one dataset, one recipe, spikiness constructed by pushing β2, no gradient clipping (atypical for production pretraining); Muon is mentioned only as neighboring spectrum work, NOT simulated. All results first-party, no independent replication, paper ~2 weeks old.
- Paper
Why is AI-generated language so hard to understand?
Applies psycholinguistics to the question of why frontier-model writing feels like a distinct, hard-to-parse dialect. EXPERIMENT 1 — feature census: a newly collected corpus from 14 models (Claude Sonnet 5 / Opus 5 / Opus 5.5 / Fable 5, GPT-5.6 Luna/Terra/Sol, GLM-5, Kimi K2.5, Llama 3.1 8B Base+Instruct, Olmo 3 7B Base/Instruct/Think) in three settings — multi-turn chat (1,428 replies; the user in every conversation is a SIMULATED user played by Claude Sonnet 4.6), agentic coding (9 models × 5 public GitHub repos under one harness, Pi v0.84.4, identical scaffold for all vendors), and single-prompt essays (980 model essays, PERSUADE 2.0 assignments). Six pre-registered features tied in the psycholinguistics literature to processing difficulty: unattested-bigram rate + trigram perplexity, (sentence-length-standardized) dependency length, object relative clauses split by overt vs REDUCED relativizer, stacked noun compounds (≥3), denominal verbs, and inanimate subjects with animate verbs (the last two filtered by the proprietary Jev 1.13.0 classifier from typesafe.ai at p>0.5 — same Jev/Jeva family as live ID 1546 and queue #50; no validation accuracy for that classifier on this task is reported). Two baselines: genre-matched human text, and a round-trip-translation (RTT) paraphrase control — every model sentence round-tripped English→Japanese→English via NLLB-200, holding semantics fixed while normalizing wording, so a feature that drops after RTT is one the model CHOSE over an available alternative. Findings: across all settings, AI text has more unattested bigrams and higher n-gram perplexity than its RTT paraphrases, and the same direction holds for denominal verbs, inanimate subjects, and reduced ORCs — while models UNDER-use ORCs with the relativizer, a consistent preference for skipping the optional word. Vs humans specifically: all nine frontier/near-frontier models use more inanimate subjects and low-frequency n-grams; most also use longer dependencies, more stacked nouns, and more reduced ORCs in conversation. Effects are smaller in single-prompt essays than in iterated chat/coding (the authors hypothesize the drift emerges under iteration). Within-family gradient is the cleanest post-training evidence: effects grow Olmo Base → Instruct → Think, with Olmo Think patterning with the frontier models. Version movement: Opus 5.5 is LOWER than Opus 5 on nearly every difficulty measure in every setting (19 of 21 comparisons) — the drift is measurable and partially reversed by the lab. EXPERIMENT 2 — mechanism proof of concept: GRPO (TRL, Dr. GRPO loss, LoRA) on Qwen2.5-1.5B-Instruct with reward = correctness × format − λ·|output| on a structured-description-to-sentence task; short-variant preference in linguistic alternations rises monotonically with λ, and without KL regularization ANY λ>0 drove all seeds to a categorical (>98%) preference for the short variant (λ=0 runs were seed-unstable, 0–100%), spilling over to untrained alternations — strongly for near transfer (other that-constructions), weakly for far transfer (genitive only, 1 of 4, and only without KL). The model was never told about alternations; the preference is emergent from a pure token-count penalty while task solutions stay valid. Authors' causal story (labeled hypothesis + toy proof of concept, NOT demonstrated on frontier models): human language is optimized for communicative success under human processing constraints; RLVR-style post-training (correctness rewarded, clarity not, humans out of the loop) plus finite context creates a pressure for information density that competes with intelligibility; RLHF likely pushed the other way. Caveats: the title's premise is never directly measured — no human comprehension experiment exists in the paper; "hard to understand" is inferred from features correlated with processing difficulty, one inferential step removed. The RTT baseline is normalized by construction (translationese strips style), so the human-baseline comparisons support the narrower claim. Chat/coding findings are about model↔model dynamics (simulated LLM user), not model↔human. Figure 6 significance stars are paired jackknife t-tests NOT adjusted for multiple comparisons (authors disclose). Comparability wrinkles: local open models ran 8-bit quantized on a laptop at temp 0.6 vs frontier models at provider defaults with medium reasoning; the essay human baseline is top-scored grade 6–12 student essays. Authors' limitations: English only, subset of models, limited seeds, and the frontier causal claim rests on proxies — Experiment 2 proves a mechanism CAN work, not that it IS the frontier mechanism.
- Paper
Binary Discrete Diffusion: Candidate-Set Diffusion for Logic and Planning Tasks
A new family of discrete diffusion processes whose intermediate state is a SET of candidate tokens per position — the Sudoku intuition: keep a few candidates per cell and iteratively narrow them down, with candidates both eliminable and restorable. State: per position a candidate set z ⊆ [V] as a binary membership vector in {0,1}^V (clean token = singleton/one-hot; nominal state space 2^V). Two forward processes, both continuous-time Markov chains flipping single bits: BINARY SYMMETRIC (main proposal) — each bit keeps its clean value w.p. 1−t, else resamples uniformly, so at time t the state holds the clean token w.p. 1−t/2 and each other token independently w.p. t/2, approaching a uniform random subset; the reverse can eliminate AND restore candidates (a cell can narrow {2,7,9}→{7,9}, reopen 2, then settle on 7). BINARY ABSORBING (monotone counterpart) — corruption only adds candidates (clean token always retained), reverse only prunes. Why it doesn't explode: the clean-token (cavity) parameterization — the network outputs one ordinary V-way distribution over clean tokens per position, all V single-bit reverse rates are closed-form functions of it, and training (continuous-time NELBO, path-KL form from the group's earlier arXiv 2607.05381) sums over only the V single-bit moves — training and sampling are O(V) per position, no 2^V enumeration anywhere (the author's in-thread answer to the scalability challenge, verbatim in substance). Set input embedding: e(z) = normalized sum of member token embeddings — the only architectural change. Information-rate point: binary kernels destroy information roughly logarithmically in t (the first false candidate doubles the candidate count) vs roughly linearly for masked/uniform, so they use a logarithmic time reparameterization (NELBO-invariant; substantially improved optimization at V≥1024, no effect at V≤9). Sampling: exact ancestral steps via a bit-factorized bridge (a step can flip many bits), re-corruption (re-noise the clean proposal afresh — alone it markedly improves logic solve rates), and a confidence-guided Ψ-sampler with two new mechanisms — position confidence (concentrate revision on uncertain positions) and candidate confidence (preferentially reopen candidates the denoiser previously rated plausible). RESULTS — all first-party, no independent replication; controlled design worth crediting (matched architectures/budgets, equal sampler-tuning budgets per kernel, sampler selected on validation, direct single-attempt samples, no verifier/reranking/search; a sample solves only if it satisfies EVERY constraint). Logic/planning (43M diffusion transformers; 5 seeds; Sudoku / Boxoban / graph coloring): binary symmetric leads everywhere — Sudoku all 96.27 / hard 92.66, Boxoban 94.29 / 84.65, graph coloring 99.35 / hard 64.13 — ahead of uniform (95.47/89.81, 92.38/78.73, 99.01/61.41), binary absorbing, and masked (headline cell: large-graph coloring hard subset, masked collapses to 4.85% vs binary symmetric 64.13%); margins widen with difficulty. Language modeling (92M–214M models, 131B tokens; Text8 V=27 chars, TinyStories/OpenWebText V=1024 BPE): NO kernel wins all three corpora on MAUVE (binary symmetric best on Text8 0.913, uniform best on TinyStories 0.904, masked best on OpenWebText 0.871) — the text claim is "competitive," not dominant. The result the headline hides (authors state it themselves): test NELBO does NOT rank the kernels the way solve rate does — on graph coloring masked has the best NELBO while nearly failing the hard task; likelihood is not a proxy for reasoning quality here. Caveats: scale is small and vocabularies tiny where it wins (logic V≤9; text ≤1024) — the O(V) tractability is proven but demonstrated only to V=1024, nothing at real LLM vocabularies (32K–256K), and the author concedes in-thread that scaling to coding/math benchmarks is "the next step," i.e. not done — the thread's "LLMs" framing overstates the evidence (these are not LLMs); NO comparison against the recurrent-reasoner family (HRM/TRM/looped models — the Sudoku state of the art) — the authors explicitly scope those as "a separate axis," so "strong baselines" means strong diffusion-kernel baselines only; novelty is narrower than the thread implies (the ShortListing Model, Song et al. 2025, also grows candidate sets and is a discrete-time formulation of the binary absorbing variant — the genuine contributions are the non-absorbing symmetric process and the logic/planning evaluation); headline numbers are kernel+tuned-sampler pairs (tuning budgets matched, but re-corruption alone accounts for a marked share of the gains); no dedicated limitations section; authors' AI-use statement: LLMs used for writing polish, retrieval, and research ideation/execution, with all claims author-reviewed.
- Paper
Don't Stop Long-Context Continual Pre-Training Too Early: An Empirical Scaling Law
Asks how the benefits of long-context continual pre-training (LCCP — the stage after short-context pre-training that extends the window) scale with its token budget, and whether they can be predicted. Setup: five dense full-attention scales S1–S5 (non-embedding N = 31M–821M; total 165M–1.22B; S5 = 36 layers, hidden 1,536, GQA 24Q/2KV heads, vocab 130,560, attention sink enabled), all trained with Muon in bf16 on 16×H800. Short stage: 4K sequences, WSD schedule. LCCP stage: 32K sequences, RoPE base 10,000 → 500,000, LR starting at the 4K stage's terminal value, on a fixed 32K mixture of public + internally curated data (not fully released — exact replication impossible). Metric: LongPPL (Fang et al. 2025) — perplexity only on tokens a reference model (Llama-3.1-8B) predicts well with full context but badly with a 4K chunk (only 1.42% of tokens on 10K GovReport 32K documents); ShortPPL is the matched local-token control. (1) THE LAW: an additive Chinchilla-style power law with short-context tokens D_s and LCCP tokens D_l as SEPARATE predictors — log(LongPPL) = A/N^α + B_s/D_s^β_s + B_l/D_l^β_l + C — fit on 109 Linear-Decay configurations. Held-out-scale extrapolation: fit S1–S4 → S5 R² 0.9516 / MAPE 1.71% (Linear-Decay) and 0.9718 / 0.66% (Constant-Last4), despite S5's ~100B LCCP tokens being >8× the largest D_l in the fitting set; collapsing D_s+D_l into one budget wrecks extrapolation (R² 0.849), and no-offset variants collapse entirely (R² −0.10 / −4.09 on S5) — separating the two budgets is doing real work. (2) CONSTANT-LAST4 PROTOCOL: linear decay needs a pre-committed endpoint, blocking open-ended scaling; their alternative trains LCCP at constant LR (extensible trajectory) but OBSERVES it through the uniform average of the 4 most recent checkpoints — merging is an observation mechanism only, training always continues from the latest raw checkpoint. It tracks budget-matched Linear-Decay endpoints closely (32K LongPPL 2.241 vs raw-constant 2.312; RULER-32K 45.48 vs 44.29), but its small edge shrinks and slightly reverses after the larger SFT budget (−0.16) — the authors explicitly decline to claim merging improves downstream training. (3) DOWNSTREAM: RULER-32K rises across the whole 5N→120N LCCP trajectory with no clear saturation, driven by intermediate-difficulty retrieval (niah_multikey_2 51.2 → 71.2, niah_multivalue 10.2 → 28.75, niah_multiquery 18.75 → 45.0); gains transfer to 128K after a fixed 2.10B-token extension and persist through identical long-context and agentic SFT stages (the agentic arm — GAIA / BFCL-WebSearch / τ²-telecom — improves with upstream 32K LCCP budget). Proxy sanity checks: LongPPL improves much faster than ShortPPL (elasticity ratio 3.35 → 2.22, always >2 — gains are not just general LM improvement), while retrieval-head probes plateau after ~30N even as behavior improves to 120N — mechanistic probes saturate before behavior does. Caveats: everything ≤1.22B params, 32K LCCP (128K only as fixed extension), one data mixture — frontier transfer asserted, not shown; the law is explicitly finite-range (fitted offset C is negative, so it eventually predicts LongPPL < 1 — authors compute the zero crossing and disown asymptotic interpretation); downstream evidence is mostly figure trends at modest absolute levels with non-monotonic per-subtask movement; "no saturation" ≠ no diminishing returns (their own elasticity ratio shrinks); the HF weights release was mid-upload at check time (several checkpoint repos incomplete/"coming soon").
- Post
Carbon-X: When Natural Language Meets DNA
A 14B open model mid- and post-trained from Qwen3-14B (POST ERROR, flag: the announcement post says "Qwen3.5 14B" — every primary source says Qwen3-14B, HF metadata base_model: Qwen/Qwen3-14B) to reason over DNA sequences in the same token stream as natural language — "chat to your DNA." Architecture is the unchanged Qwen3-14B backbone (14.82B BF16 params, 40 layers, hidden 5120, GQA 40Q/8KV heads, head dim 128, SwiGLU, RMSNorm + QK-norm, RoPE θ=1e6, 40,960-token window). The one architectural idea is a hybrid tokenizer in a single stream (explicit contrast with BioReason's separate DNA encoder): text uses Qwen3 BPE; DNA is encoded as non-overlapping 6-mers (4,096 6-mer tokens + 1,364 tail tokens + <dna>/</dna>/<oov> markers = 5,515 DNA tokens, vocab 157,184 total), ~1/3 the tokens of BPE on DNA; the tokenizer auto-detects runs of ≥6 ACGT bases, and any 6-mer containing a non-ACGT character collapses to a single <oov> token (resolution loss by construction); custom tokenizer code requires trust_remote_code=True. RECIPE (all numbers model card): (1) vocab-extension warmup — DNA tokens random-init, ~10B tokens with the transformer body frozen (embeddings only), then unfreeze; (2) mid-training — 302B tokens, seq 8,192, global batch 512 seqs (~4.2M tokens/step, 72K steps), cosine LR 5e-5 → 5e-6; mixture Raw DNA 55% (eukaryotic genomes 38.5%, mRNA/OpenGenome2 8.8%, prokaryotic 5.5%, mRNA w/ splice+promoters 2.2%), English 20% (FineWeb-Edu 8%, DCLM 8%, FinePDFs-Edu 4%), biology text 15%, instruction 10%. Blog ablation story (4B-scale sweeps): LR was the dominant forgetting knob — higher LR learns DNA fast but catastrophically forgets English, lower LR preserves English with DNA at chance; separate embedding/body LRs, gradient-conflict layer protection, specialist merging, more replay, and embedding-init schemes all FAILED; what worked was lower LR + larger model (14B preserved English where 4B at the same LR did not) + longer run; cosine beat WSD (WSD worsened forgetting in their experiments). (3) SFT — 3 epochs, cosine 1e-5 → 1e-6, loss on assistant tokens only; variant-effect reasoning (~30%), sequence classification, procedurally generated DNA skills, sequence recovery, bio Q&A, general chat. Supervision provenance (blog): distillation was tried and ABANDONED — frontier teachers refused/hallucinated, open models too weak, self-distillation from the mid-trained model's own RL rollouts imported unsupported claims; instead they built deterministic verifiers that check claims against the supplied DNA with domain experts, and the grounded SFT checkpoint beat the self-distilled one on FrontierVEP. (4) RLVR — asynchronous GRPO (TRL + vLLM), thinking disabled, two rounds with pass-rate-based prompt selection from the model's own rollouts (98,433 prompts round 1, 58,249 re-selected round 2), 16 samples/prompt, completions ≤4,096, LR 1e-6, asymmetric clipping ε=0.2/0.28, max grad norm 0.2; rewards are code-checked verifiers per task, INCLUDING a penalty for ungrounded rationales in variant-effect prediction. RESULTS — ALL first-party HF, no independent replication, released same day: five DNA benchmarks (thinking disabled, 1 sample/problem; each rival shown at the reasoning effort with its highest AVERAGE — their selection rule): BioReason Coding 74.9 (best; GPT-6.1 Sol Max 71.0, Opus 5.5 Max 70.3), BioReason Non-SNV 85.1 (Opus 94.8, GPT 91.7), GenomeQA 63.6 (GPT 67.2), NextBase 39.4 (best; GPT 32.9), FrontierVEP 70.4 (Opus 76.2, GPT 74.9) — average 66.7 vs GPT-6.1 Sol 67.5 and Opus 5.5 60.9, claimed +27 points over the Qwen3-14B base (base row not tabulated) at ~1/1,800 the inference cost per problem by their cost model (blog subtitle says 1,000× — internal inconsistency, flagged). GenomeQA hides two weak tasks (histone marks 34.6, splice sites 29.8). General ability retained: IFEval 79.3% prompt-level strict. KEY CONTROL: RL applied directly to Qwen3-14B with no mid-training never rose above the 50% chance baseline on FrontierVEP — the capability had to be installed by mid-training first. Sub-agent result (first-party): Kimi K3 with required Carbon-X consultation rose 49.4% → 60.5% (+11.1pp) on their DNA index. Authors' limitations: not clinically validated; exact sequence operations unreliable (pair with deterministic tools); hallucinates without context; long DNA generation degrades (a reader/explainer, not a designer); inputs beyond training lengths untested; eukaryote-infecting viral genomes excluded from training data. Two of the five benchmarks (FrontierVEP, NextBase) were built by the authors themselves, and several frontier-model scores are refusal-driven rather than capability-driven (authors transparent: e.g. Opus NextBase falls to 1.1% at max effort as refusals rise) — the "matches frontier" framing partly prices in rivals' safety refusals. Also unresolved between primaries: blog says Carbon-X "works with llama.cpp," model card says llama.cpp/GGUF are NOT supported because the custom DNA tokenizer cannot load there — flagged.
- Paper
Truncate or Not? A Scaling Study of Looped Transformers with Truncated Backpropagation
Asks whether truncating backpropagation through the loops of a looped transformer is worth it, answered as a compute-allocation problem rather than a recipe comparison. Setup: a loop setting (T,B) runs T forward loops of a shared recurrent block and backpropagates only through the last B — the state s_{T−B} is detached, so the first T−B loops run gradient-free and store no activations (a backward loop costs 2× a forward loop). Only suffix truncation is studied; no random-window variant. Architecture is the Huginn-style prelude–recurrent–coda of Iso-Depth (Schwethelm et al. 2026), whose recipe the study adopts wholesale — input injection of s₀ at every loop, per-loop RMSNorm, and the cross-entropy loss applied ONLY to the final state s_T (final-only supervision throughout; per-loop/deep supervision is never varied). 592 training runs on FineWeb-Edu (Llama-2 tokenizer, 2,048-token sequences): a 347-configuration scaling suite over five sizes (58M–919M non-embedding parameters; recurrent block ≈51% of N), fifteen (T,B) settings with T ∈ {1,2,4,8,16} and B/T from 1/4 to 1, and 1.1–1,291 tokens per parameter; MuonH for block/injection matrices, AdamW elsewhere; metric is held-out validation loss (nats/token). The unified law writes N_eff = N_once + g(T,B)·N_rec with looping coefficient g(T,B) = exp[c(1 − T^{−p}B^{−q})], fitted c = 1.112, p = 0.237, q = 1.022 (R² = 0.9992; leave-one-(T,B)-out RMSE 8.7×10⁻³ nats). Consequences: the loop gain saturates at a ceiling of e^c ≈ 3.04× on the recurrent block; g(2,2) ≈ 1.91, i.e. two fully trained loops are worth nearly two untied copies; and because q ≫ p, effective size is set mainly by B — at fixed B, extra forward loops add almost nothing (under the law, a (4,1) model has the effective size of a non-looped model only 1.19× its parameter count, vs 1.76× for (4,4)). The truncation discount for dropping the same fraction of loops shrinks with T (~18% of the loop gain at T=4, B=2; ~3% at T=16, B=8). WHEN T IS PRESCRIBED, truncation pays — this recovers Iso-Depth's fixed-depth result and explains it: the freed backward compute buys a larger model and more tokens, and the law's optimal B* is just 2 for every T ≥ 4 (at T=8: 33–35% less compute at equal loss in separately fitted frontiers, reinvested as a 1.51× larger model and 1.20× more tokens; at T=16: 1.70× and 1.31×). WHEN BOTH COUNTS ARE FREE, full BPTT is optimal: because q > 2p, the law's continuous optimum at fixed loop-compute S = T+2B is exactly T = B = S/3 at every compute level, and matched-compute runs confirm it — at 17.2B tokens, (4,4) beats (8,2) at identical size, tokens, and compute at all five sizes, by 0.028 nats at 60M shrinking to 0.009 nats at 1B; separately fitted frontiers give (4,4) an 8–14% compute advantage at equal loss. Hence the prescription: run fewer loops and train them all. Near-tie honesty from the paper: half-truncated settings like (8,4) and (16,8) sit just below the full-BPTT frontier (≤2.2% more compute per effective parameter), and (4,3) edges fully trained neighbors by ≤0.002 nats in a narrow band. Allocation rules under full BPTT: at fixed model size, T* ∝ C^0.24 and D* ∝ C^0.76 (a 10× compute increase ⇒ ~1.7× the loops, ~5.8× the tokens — most new compute goes to data); with size also free, no looping at all is compute-optimal (untied copies beat g(T,T) < T), and the best looped setting is (2,2): experimentally within 0.008 nats of the compute-optimal non-looped model at equal compute across three budgets with 27–32% fewer non-embedding parameters (344M vs 471M at 2.1×10¹⁹ FLOPs, loss 2.36 vs 2.37), and with 8% more compute it beats the non-looped model outright with 27% fewer parameters. Why the usual defense of truncation fails here (paper's Appendix B.2): the fixed-point/Neumann-series argument makes dropped gradient terms shrink geometrically only if the loops nearly converge, but production looped LMs run few loops, states stay far from a fixed point, and the bias compounds across every update. Authors' limitations: dense models only (looped MoE untested); validation loss only — downstream/reasoning transfer not established; T capped at 16, so the gain ceiling is extrapolated; prelude/coda-to-recurrent parameter ratio held fixed.
- Tool
Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels
A library of fused communication-and-compute kernels for expert-parallel (EP) MoE on NVIDIA SM100+ (Blackwell) GPUs. The caller supplies top-k expert IDs and scores (routing itself is out of scope); a reusable context owns symmetric, peer-addressable HBM dispatch/combine buffers (NVLink) and executes dispatch → grouped expert GEMM (W13 → SwiGLU → W2) → combine as one ordered operation, with forward and backward (FPROP/DGRAD/WGRAD) kernels throughout. Precision/pipeline matrix: BF16 "standard" (training + inference); MXFP8 E4M3 in Staged (separate W13 and SwiGLU/W2 kernels) or Mega (both projections fused into one chunk-pipelined kernel with chunk-local readiness) pipelines (training + inference); NVFP4 in Staged or Mega, inference only, prepared weights. Kernels are CuTe/CUTLASS-DSL; validated stack is Linux ARM64, PyTorch 2.14 + CUDA 13.0, NCCL 2.30.7; no CPU fallback. Two mechanisms distinguish it from DeepEP (dispatch/combine comms only, no fused expert compute), MegaBlocks, DeepSeek's Mega MoE/DeepGEMM (fused forward only, no fused training backward), ByteDance Comet/Flux (no CUDA graphs on the dynamic-routing path, no packing policy), and Cursor's Mixture-of-Kittens (MoK): (1) dynamic activation packing — a planner packs saved forward state from all layers sharing an activation slot into one bounded buffer instead of reserving a per-layer budget, and it works during CUDA-graph replay; (2) dynamic, capacity-driven recompute — when the slot budget is exhausted the planner keeps mandatory layer inputs and rebuilds the remaining intermediates in backward, decided by device predicates so the host launches one fixed, graph-stable sequence (soft limit; scratch overflow without VMM host-backed overflow is a hard error). Also: full CUDA-graph support and non-strict make_fx (full torch.compile/strict export explicitly NOT supported), fused post-expert RMSNorm + score weighting + top-k reduction, clamped SwiGLU, in-place WGRAD accumulation into standard parameter.grad, and no shared-expert branch required — routed-only execution, -1 expert ID disables a route (MoK's reviewed API, by contrast, requires shared-expert weights). TorchTitan integration: a DistMoeTransform swaps stock RoutedExperts for the Dist-MoE backend in place (same GroupedLinear parameter layout, so FSDP/optimizer/checkpoint ownership is unchanged; requires mixed_precision_param="bfloat16"), plus a rank-wide DistMoeRuntime.Config (scratch/activation-slot capacity factors, VMM factor, pipeline-parallel slot policy); verified 671B DeepSeek-V3 recipes ship in torchtitan_recipes, MXFP8 Mega fused inference is wired for RL generators, and NVFP4 inference is in the library but not yet exposed by TorchTitan. Benchmarks — ALL Meta-reported, GB300 NVL72, no independent replication: "useful" throughput counts only real GEMM FLOPs (fwd = 6·T·K·D·F per GPU; bwd = 2× fwd), excluding padding and replay work, divided by whole-layer iteration time (median of five 30-iteration CUDA-graph windows, slowest rank; comm/quantization/padding time stays in the denominator). Headline MoK comparison (both implementations given one BF16 shared expert, D=7,168, 384 experts, top-6, 2,048 tokens/GPU, CUDA graphs on): up to 1.40× over MoK — specifically the synthetic ten-layer packing training workload under per-layer routing imbalance (MXFP8, EP64), where Dist-MoE packed all ten layers' saved state at capacity factor 2.5 with zero capacity-induced recompute (peak allocation 49.73 GiB vs MoK 48.37 GiB); Meta notes the experiment does not isolate how much of the gain is avoided recompute alone. MoK was chosen as baseline because Cursor's published single-layer NVL72 results lead the other OSS stacks (DeepEP+PyTorch, DeepEP+TransformerEngine, HybridEP+Megatron). Separate standalone suite (zero shared experts, one routed layer): 3.09 useful PFLOP/s per GPU NVFP4 Mega inference (EP16), 1.86 MXFP8 Staged training (EP64), 1.27 BF16 training (EP64) — vs dense datasheet peaks of 15/5/2.5 PFLOP/s respectively. Imbalance scaling is sub-linear: NVFP4 inference EP16, 8× received rows on the busiest GPU → 4.82× iteration time (~40% lower time per received row). Stated limitations: SM100+ only; no NVFP4 training, MXFP8 E5M2, MXFP4, A8W4, communication quantization, or expert borrowing in this release; the explainer itself discloses that EP32/EP64 training ran at different sites, some allocations shared an NVLink fabric with unconfirmed timing overlap (not uncontended-peak evidence), and HBM byte rates are modeled, not measured.
- Paper
TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
Problem: a transformer processes every input token through every layer, so long-context prefill (quadratic attention, linear MLP + KV growth) dominates serving cost. Prior work splits into training-free token-pruning heuristics (attention-score based; limited speedup before accuracy degrades) and architectural conditional compute (needs pretraining from scratch). TokenGate instead retrofits a trained model. Mechanism: a gate module sits inside one layer L (L=1 in the main experiments; multiple gates generalize). A small scoring MLP reads each prunable token's normalized post-attention residual at layer L and emits a scalar, RMS-normalized across the sequence into an importance score b_j; a top-K selector forwards S = top-K prunable tokens ∪ the non-prunable set (instructions, the question, answer/decoded tokens — in the code API, everything outside a marked {state} document span). Pruned tokens' residual streams stop at L: layers above L never process them and never generate KV entries for them, so the method is both prefill-compute skipping and upper-layer KV-cache reduction (layers ≤ L keep full KV by default; pruning those too is optional). The trainability trick is token-gated attention: in layers above the gate, each kept key's attention logit gets an additive bias softplus(γ^{ℓh})·b_j (head-wise learnable gains), under a temperature τ scaled by log(kept rank)/log(original position) (SSMax-inspired) that recalibrates softmax sharpness after pruning and generalizes across budgets — this gives gradients through the non-differentiable top-K, the same way MoE routers learn. Implemented as a FlashAttention-based kernel (custom FA2 key-bias kernel in the repo; FlexAttention fallback). Training: NOT from scratch and no sparsity/auxiliary loss — LoRA co-adaptation (r=16, α=32 on Q/V projections; backbone otherwise frozen; Muon for the gate matrices) plus gate parameters, plain next-token CE. Each step averages a full-context loss (K = all prunable tokens; anchors full-context accuracy and gives pruned tokens gradient) with a pruned loss at K ~ LogUniform(1, |𝒫|/2), so one trained gate serves every budget K at inference; the scoring MLP is zero-initialized. Training contexts 2k–16k tokens; a step costs 1.3× standard SFT but converges in fewer steps on 4 of 5 tasks, so total training time is comparable to or below LoRA SFT (mean 0.8× A100-hours at 1.7B). Results (Qwen3-1.7B, five tasks — NIAH 16k, RepoBench-P mean 11k/max 39k, 2WikiMultihopQA mean 7.5k, MultiNews, BioDEX): Pareto-dominant on all five; TTFT 1.4–11.3× faster and peak prefill memory 1.5–3.4× lower at no accuracy degradation vs the LoRA-fine-tuned full-context model, and up to 6.4× faster / ~2× lower memory than the best prior pruning baseline at matched accuracy (baselines: FastKV, SlimInfer, DASH, GemFilter; sparse-attention FlexPrefill, MInference). Launch-figure numbers at matched accuracy: NIAH TTFT 425→37 ms (11.3×; best prior 235 ms), peak memory 2.4→0.7 GB (3.4×); RepoBench TTFT 286→72 ms (3.9×; best prior 201 ms), memory 1.6→0.6 GB (2.8×). A more typical operating point: 2WikiMultihopQA at 95% of full-context accuracy = 3.0× faster, 2.7× less memory. Extrapolation: a gate trained at 16k holds accuracy at 32k/64k/128k with TTFT speedup rising to ~13× (memory reduction flat ~3.43×, since peak memory is dominated by the below-gate full forward). Ablations: the learned selector beats random-K and FastKV's attention-score selector at the same layer by wide margins; co-adaptation independently helps (random-K on the TokenGate-trained model beats random-K on the plain fine-tuned model — training redistributes information into kept tokens); learned keep-patterns are task-dependent (answer keywords for QA, phrase-final stopwords for summarization). Repo's held-out test table (batch 1, one H100): NIAH-16k @K=2000 accuracy 1.000 vs raw base 0.993 at 6.3× TTFT, still 1.000 at K=100 (8.1×); a 32k haystack demo answers the needle with 144 of 32,191 tokens retained above the gate. Hybrid architectures: on Qwen3.5-2B (24 layers; full attention at layers 3,7,11,…,23, Gated DeltaNet elsewhere) TokenGate can sit inside DeltaNet layers 1–2 — where attention-heuristic pruners cannot operate at all (FastKV can only prune at full-attention layers) — reaching up to 7.8× faster prefill within 6% of standard accuracy; at layer 3 it gives 3.8× lower TTFT at no accuracy loss, 2.1× better than the best FastKV run; token-gated attention applies only in full-attention layers above the gate, and DeltaNet layers above run on kept tokens only, their recurrent state built from kept tokens. Decoding (appendix): generated tokens attend to kept + generated tokens in layers above the gate, full context at/below it, with the gate bias precomputed once at prefill as a constant per-key bias — all headline claims are prefill/TTFT claims, no decode-speed claim. NOT GateSkip: the OpenReview/ICLR-2026 GateSkip paper ("What Layers When," Laitenberger et al., HU Berlin/UvA/UT Nuremberg, arXiv 2510.13876) is a different work by different authors — residual gates for token-wise layer skipping (15–50% FLOP savings), uncited here.
- Model
Mirendil-Base — Pretraining at Scale Without a Pretraining Team (Mirendil)
Mirendil — formally launched late June 2026 with a $200M seed at a $1B valuation (a16z + Kleiner Perkins co-led, NVIDIA participating), mission "solve Recursive Self-Improvement (RSI) and use it to democratize frontier AI development" — reports a controlled experiment: starting fully from scratch, can one researcher with AI agents pretrain a strong coding model at scale, with radically less time, headcount, and compute? Claimed result (ALL company-reported, unreplicated): Mirendil-Base, a code-specialized base model, was built by ONE researcher in 3.5 months for < $10M compute, all-in — research, small-scale experiments, agent token spend, data processing, and the final training run. Per the blog: AI agents wrote over 99% of the code, ran experiments, and diagnosed failures; the researcher chose what to try and what to trust. All code was written from scratch from an empty repository on standard libraries (PyTorch, JAX), using open-source projects as references. Training data was organic public data only (GitHub and other public code, web pages, public datasets) — no distillation, no synthetic data, nothing purchased or licensed. Efficiency gains are attributed, without specifics, to an improved architecture, data-mixture tuning, and kernel optimization. Sizes are disclosed ONLY as ranges: Mirendil-Base 100B–500B params; Base-Large 500B–2T (80% through training at announcement); Base-XL 2T–10T (19% through). No exact parameter count, architecture details, training-token count, or hardware is given. Evidence offered is BPB (cross-entropy in bits per byte — loss per byte of text, so models with different tokenizers compare fairly) on code. Fig. 1, BPB on held-out code from Mirendil's OWN repositories (home-turf eval set): Mirendil-Base-Large 0.2177 (still training), Mirendil-Base-XL 0.2181 (still training), Kimi-K3 0.2387, Mirendil-Base 0.2803, Nemotron-550B-Base 0.2918, GLM-5.3 0.2926, DeepSeek-V4-Pro-Base 0.3013, Inkling 0.3467. Fig. 2, BPB on SEVEN EXTERNAL repositories published AFTER the models were trained (post-cutoff, so contamination-resistant by construction) — averages: Kimi-K3 0.193, Mirendil-Base 0.222, GLM-5.3 0.242, DeepSeek-V4-Pro-Base 0.243, Nemotron-550B-Base 0.247; per-repo (codex-sec, grok-build, openworker, json-render, native, scriptc, anydoc), Mirendil-Base finishes second overall, ties Kimi-K3 on json-render (0.127) and GLM-5.3 on native (0.257), and beats Nemotron-550B-Base, GLM-5.3, and DeepSeek-V4-Pro-Base on the remaining rows. Comparison models are all MoE (total/active params: Kimi-K3 2.8T/104B, Nemotron-550B-Base 550B/55B, GLM-5.3 753B/40B, DeepSeek-V4-Pro-Base 1.6T/49B, Inkling 975B/41B). Baseline caveat stated by Mirendil itself: Kimi-K3, GLM-5.3, and Inkling are post-trained models, which generally score slightly worse on BPB than their base versions. Post-training of Mirendil-Base has started; independent evaluations, post-training benchmarks, and API access are promised but NOT yet delivered — no weights, no API, no third-party numbers exist as of the check. Bakouch's comment (the shared post): the external-repo BPB results make it stronger; it appears to be a code-only model; the team "rewrote the full codebase from scratch with agents"; aligns with his Prime Intellect autoresearch work and his view that frontier pretraining doesn't need large teams.
- Paper
Rewards for Budget-Aware Multi-Turn Agents That Adapt to Arbitrary Test-Time Constraints
Asks whether a multi-turn LLM agent can learn to allocate an inference budget itself — across turns and resource types — instead of leaving enforcement to an external harness, and which reward teaches it best. Framework (budget-augmented POMDP): total budget B0 and remaining budget bt are written in natural language into the observation at every turn (bt decremented by each action's realised cost — step = 1, token cost = emitted length incl. reasoning, API cost = executed calls), so the policy conditions directly on allowance left; budgets are sampled uniformly per episode from a six-value training grid, and overspending is permitted during training so the policy learns from it. Two metrics at each stated budget b: budget utility U(b) = probability of solving the task with the rollout finishing within budget (the practical cutoff setting), and natural compliance Comp(b) = probability the rollout terminates within budget on its own, regardless of success, with no external cutoff. Training: Dr. GRPO from post-trained Qwen3.5-4B and 9B checkpoints, one separate policy per environment × resource type, each trained across budget values. Eleven objectives compared in the shared pipeline, organised in four families — hard boundary (Trunc: rollouts halted at B0, reward = task success within it, the only method with an enforced cutoff; Gate: overspend ⇒ return 0; Gate-Neg: overspend ⇒ fixed −1, adapted from Kimi K3's step-function shaping), within-budget cost pressure (Sigmoid: return R − σ(2(C̄−1)), penalising before the boundary; Linear-Cost: linear cost penalty from the first action), gradual post-budget magnitude shaping (Sigmoid-Gate: sigmoid penalty on overspend only, in-budget return untouched; Linear-Mag: DAPO's soft-overlong penalty generalised to normalised cost; Exp-Mag: success reward decays exponentially in overspend), and learned per-budget violation prices (Rate: Lagrangian step price per budget tracking the overspend frequency, price capped at 1; Dual: learned frequency price + DAPO linear magnitude price, each capped at 0.5). Baselines: Base (untrained, same budget feedback) and GRPO-Std (binary task reward only). Results (AppWorld test-normal under step/token/API-call budgets; BabyAI gridworld under turn budgets): prompting alone fails — at step budget B=36, Base budget utility is 37% (9B) and 19% (4B), and 9B Base complies on fewer than half of episodes across the token range; GRPO-Std improves task success but keeps weak compliance. The stronger budget-shaped objectives beat both baselines on both metrics, and behaviour is genuinely budget-responsive: spend rises with the stated allowance and with task difficulty, and under step budgets budget-aware policies learn to batch API calls (≈1.9 calls/turn at B=10 vs ≈1.5–1.6 at B=32; GRPO-Std stays ≈1.0) — batching is an emergent allocation strategy. Objective trade-offs (Table 2, pooled over the eight experiments): Sigmoid-Gate most often has the highest utility at an individual budget (20.1% win rate); Dual has the smallest mean regret to the per-budget best (2.92pp; Gate 3.33pp despite having no explicit overspend penalty); Gate-Neg generally attains the highest natural compliance but pays for it in utility (6.00pp regret — the strong penalty makes the policy hesitant near the boundary); Linear-Mag is worst (14.01pp). Two design lessons: Gate beats Trunc on all pooled metrics — retaining overspending rollouts in training (they earn negative advantage against in-group successes) teaches more than cutting them off; and magnitude penalties are not required for small overruns (Gate/Gate-Neg have comparatively small conditional overspend without one). Generalisation: gains hold at interpolated and extrapolated unseen budgets (9B utility keeps rising past the largest training step budget of 29 on shifted tasks), persist zero-shot on the distribution-shifted AppWorld test-challenge split, and transfer zero-shot to the new benchmark ASTRA (Xiu et al. 2026; personal-assistant tasks, same Python-REPL interface, step budgets only). Limitations/failure modes (authors'): one resource type at a time (no joint token+call+step budgets); budgets fixed at episode start; natural compliance is imperfect — a strict deployment budget still requires an external cutoff; most comparisons use one training seed (extra seeds cover two objectives in one setting), so ordering among the leading methods is not reliable; prompts bundle budget feedback with resource-specific advice (incl. batching hints) with no ablation, so gains are attributable to the combined prompt+training procedure; evidence is two scales of one model family in simulated environments.
- Paper
Asymptotic Risk of Learning-Rate Schedules for Least-Squares Regression with Discretely Distributed Features
Exact last-iterate theory for SGD on streaming least squares under Slock's model (Slock 1993): each sample activates a single eigendirection of the covariance H (drawn with probability ∝ its eigenvalue λ_i), which decouples the dynamics across eigendirections and makes the risk computable in closed form — one-hot features are a special case. Under power-law capacity and source conditions (Assumption 3.2: λ_i = L·i^(−α), α>1; squared initial error per eigendirection m_{0,i} = Δ·i^(−β); write ω = (α+β−1)/α), the authors derive the exact finite-time risk (Theorem 3.1, an explicit bias+variance decomposition) and asymptotic equivalents for the constant schedule and the WSD family η_j = min{1, (T−j)/(cT)} — stable phase then LINEAR decay over the last fraction c of the horizon; warmup is explicitly excluded from the analysis, and the strict constant schedule is the excluded limit c=0. Mechanism: at fixed base LR γ, the constant schedule's variance does not vanish (V_T → (ζ(α)/2)·σ²Lγ/(2−γ·Tr Λ)), while WSD's variance decays — as γ^(1/α)·T^(1/α−1) for 1<α<2 and γ^(1/2)·T^(−1/2) for α>2 (the critical case α=2, with log corrections, is omitted). With each schedule run at its own tuned base LR γ̃*_T (which vanishes as a power of T), the optimal risk is Θ(T^(−q)) with q = ω/(v+ω), where the schedules differ only through the variance's γ-exponent v: v=1 for constant → q = (α+β−1)/(2α+β−1); v=1/α for WSD with 1<α<2 → q = (α+β−1)/(α+β); v=1/2 for WSD with α>2 → q = ω/(ω+1/2). Since v_WSD < 1 always, ANY cooldown of fixed relative length c>0, however short, strictly improves the exponent over the constant schedule — a polynomial-factor gain in T (exponents agree with Li et al. 2025, derived there up to constants; this paper resolves the constants). The cooldown length c enters only the prefactor, and the prefactor is minimized at c* = 1 in both regimes (Corollary 5.2: for α>2 the c-dependent factor is (c(2−c))^(−1/2); for α<2 the objective W(α,c)/(2−c)^(1/α) is strictly decreasing in c) — pure linear decay is optimal within the WSD family when γ is tuned. Learning-rate transfer is explicit: log(γ̃*_T(1)/γ̃*_T(c)) has a closed form independent of T (Eq. 19), matching co-author Schaipp et al. (2025)'s convex-bound numerics and their Llama-style measurements (20% cooldown → γ*(1) ≈ e^0.7·γ*(0.2)). Averaging comparison: when α<2 and β<α+1, WSD's optimal last-iterate rate coincides with that of averaged constant-step SGD (up to a constant) — a cooldown recovers, for the last iterate, the (unimprovable) rate of averaging; averaging itself saturates at ω=2. Caveat within the theory: for α>2, polynomial cooldowns η=(1−t/T)^δ beat linear WSD across all schedules (Bordelon & Mori 2026; δ=2α−1 optimal per Li et al. 2026) — linear is optimal only inside the WSD family, and this family is not analyzed. Batch size (Section 6 / Appendix B): a minibatch b rescales the noise σ²→σ²/b and trace Tr(Λ)→Tr(Λ)/b; the optimal base LR rescales as γ̃*_{T,b} = b^p·γ̃*_T (p+ϑ=1), so at fixed sample budget N=bT the optimal risk depends on b and T only through bT — batching is statistically free — but only up to a critical batch size: the stability bound γ < 2b/(Tr(Λ)+L(b−1)) saturates at 2/L as b grows, forcing b ≤ b̃_max(T), and b̃_crit(N) is the maximal b with b ≤ b̃_max(N/b) (computed numerically, Table 4, for N=2×10^5). The authors flag b̃_crit as a heuristic extrapolation: the theorem is stated for fixed b, and near the threshold the optimal LR is no longer small, so the equivalents need not apply. Validation is entirely within-model numerics (no real-data experiments): Monte-Carlo SGD simulations match the exact risk formula (Fig. 1; 50 runs, d=100, γ=0.1, α=1.5, β=2, σ=0.1); risk-vs-γ curves at T=10^5 confirm γ̃*_T is near the exact finite-time minimizer (Fig. 2); equivalents-vs-exact ratio checks (Figs. 7–8); and Slock-vs-Gaussian bias/variance ratios → 1 along the optimal vanishing-LR sequence (Appendix D). Limitations (authors', §7): least squares is smooth and convex, deep-learning objectives are not; plain SGD, not the adaptive methods used in practice; Slock's model is chosen to decouple coordinates, not to describe real data; exact power laws are assumed; the asymptotics can require very large horizons (T > 10^5 steps, worse as α→1 or α→2); only linear cooldowns are studied; no warmup analysis.
- Paper
Comparing Sparsified MLPs and Transcoders: Many Transcoder Features Are Neurons in Disguise
Asks what transcoders — sparse learned approximations of MLP layers, the substrate of attribution-graph circuit analysis — actually contribute over raw MLP neurons, prompted by Arora et al. 2026 and Ye et al. 2025 showing neuron-basis circuits can match transcoder circuits. Construction: a gated-MLP neuron at high activation magnitude is approximately bilinear, with effective encoders W_up ± W_gate and decoders ±W_down, so each neuron is treated as two sign-split features; the "sparsified MLP" is the MLP itself under layer-wise top-k thresholding (k≈50–64) on sign-split activations — a narrow transcoder with no learned weights. A transcoder feature is a NEURON FEATURE iff both its encoder and its decoder exceed a cosine threshold to the SAME neuron's effective encoder and decoder (the per-feature similarity distribution is bimodal; the separating threshold varies 0.6–0.9 across transcoders, headline claims at 0.6/0.7). Evaluated across 13 open-source per-layer transcoders (TopK and JumpReLU, two codebases) on dense base models 1B–27B (Gemma 2/3, Qwen 3, Llama 3.1/3.2; detailed testbed Gemma 3 4B). Prevalence: neuron features are a small share of the dictionary (late layers 5.9% → 8.9% → 15.6% → 37.1% from 1B to 27B) but fire >10× more often than other features, so they dominate activations — 57.9% → 82.8% of late-layer activations over the same range, near zero in early layers and >50% by mid-model; in attribution graphs they are ≥40% of nodes in the late third of layers for every transcoder tested (one exception ~38%). Faithfulness (§3.4): the full transcoder's Jacobian alignment with the MLP is ≈0.3; the neuron-aligned subset alone reproduces ≈0.3 while the non-neuron subset reaches only ≈0.05 — essentially all of the transcoder's first-order faithfulness is its neuron features; top-k-pruned neurons alone match or exceed the full transcoder's Jacobian alignment in late layers. Stability (§3.5): features that recur across training seeds are >50% likely to be neuron features in most configurations, and stable-feature count grows sublinearly with dictionary width — a 1M-feature dictionary discovers only ~22k stable features, comparable to the model's 20,480 sign-split neurons. Distance from init (§3.6): in TopK training, neuron features rotate to near-orthogonal to their random initialization (median encoder cos ≈ 0) while non-neuron features stay close (median cos +0.48, many >0.8) — the non-neuron remainder is partly an initialization artifact; JumpReLU pipelines behave differently. Their constructive fix, neuron initialization (§3.7): initialize encoder rows at neuron directions and alignment survives training — features with encoder similarity >0.5 to a neuron rise 11% → 92%, and aligned features carry 95% of activation mass (vs 65%). Replacement-model comparison (§2): sparsified neurons plus a trained linear reconstruction map beat transcoders on KL (replacement faithfulness) while losing on FVU (reconstruction) — part of what transcoders learn improves reconstruction only, not behavior; neurons match or exceed transcoders on sparse probing across 8 transcoders, and top neuron activations are as monosemantic as transcoder features on sort evals. Where transcoders still win: reconstruction, fine-grained concept detection (dictionary bigram features fire on their target bigram 75.6% of the time vs ~0% for neurons — though neurons still score 0.988 mean AUC on the probing task), and early layers; non-neuron features do encode extra interpretable concepts (bigrams, color), though the authors are uncertain how truly the model represents them. Recommendations: avoid transcoders with <4× width expansion (for MoEs, practically don't use transcoders); use TopK≈64 sign-split neurons as the baseline in dictionary-learning comparisons; consider neuron initialization. Limitations (authors'): base models only, mostly English, all dense, per-layer transcoders only; only sparse high-magnitude activations characterized — the low-activation regime is explicitly out of scope; neuron-feature fraction depends on architecture and threshold with no complete explanation; faithfulness measured is first-order Jacobian only, not interventional; cross-layer transcoder evidence preliminary (2 narrow models); no human evaluation (automated interpretability metrics only).
- Thread
Weak Neuron Activations Store Memorized Text (flattening ablation experiment)
An in-thread experiment testing Neel Nanda's conjecture (long-form post, 2026-10-15) about weak neuron activations. Nanda, commenting on recent neuron-based interpretability work (neuron-basis attribution graphs; Nick Cammarata's updated vision results; Transluce precedent), argued that LMs hold far more facts and memorized content than they have neurons, packed in superposition as linear combinations, so weak neuron activations should contain substantial memorized/semantic info that pruned attribution graphs miss and whose ablation would meaningfully damage performance. Brauer's test: for each neuron, take its weakest X% of activations in its ordinary regime (gate > 0, up > 0) and FLATTEN them — replace them with their mean, deliberately not zeroing (flattening all regimes gives the same trends). Models: Qwen3-32B, Qwen3-8B-Base, Llama-3.1-8B. General loss barely moves at first — weakest 50% flattened: +0.1–0.3%; 75%: +0.8%; 90%: +2.6–3.4%; 95%: +5.7–6.6%; 99%: +16–18% — but the damage is task-selective: MMLU exam questions hold ~100→92% while PopQA fact recall falls to ~65% and verbatim recitation of memorized text collapses to ~20%. Weaker activations correspond to less generalizable content; memorization lives disproportionately in the weak tail. (A refinement of Nanda, not a simple confirmation: general performance survives, so the "meaningfully damage" prediction holds for memorized content specifically, not overall loss.) Second result — an ablation-methodology correction: zero-ablation badly distorts, worst where a neuron's outputs share a sign, because zeroing shifts its mean output off-center. At the weakest-75% level, zeroing vs mean replacement costs 3×/3×/12×/30× more held-out loss across the gate/up sign regimes on Llama-3.1-8B (gate<0/up<0, the SwiGLU "double negative": +34.3% loss increase), and 5×/5×/10×/9× on Qwen3-8B-Base. Repro note: Kong et al. (arXiv 2509.24198) used zeroing of gate<0 values; Brauer rebuilt their setup and their measured effects largely evaporate under mean replacement — perplexity +26% → +1%, grammar −4.1 → −1.2 points (Llama-3.1-8B). Rule: ablate neurons by mean replacement, not zeroing.
- Paper
Beyond Parameters: Exploring Virtual Logic Depth for Scaling Laws
Proposes virtual logical depth (VLD) as a fourth scaling dimension alongside depth, width, and parameter count: VLD = effective algorithmic depth minus base layer count, increased by repeating whole transformer layers with tied weights inside the computation graph, during training and/or inference — not token-wise test-time scaling. Three reuse patterns (after Takase & Kiyono 2021): sequence (adjacent layers share parameters in uniform blocks), cycle (a block of layers repeated), and inverse cycle (the block repeated in reverse order, motivated by larger gradient norms in higher layers). Repetition factors ×1–×3, cycle up to ×5. Two controlled measurements. (1) Knowledge capacity, operationalized Allen-Zhu & Li-style as absorbed entropy ΔH: train a model to memorize a 640k-token IID random sequence over a 50,257-token vocabulary (~15.6 bits/token, sized to the ~2 bits/parameter estimate) and measure the entropy reduction of its softmax outputs on the training sequence. Across 4-layer GPT-2 models of 5M/10M/15M/20M parameters, capacity grows with parameter count; at fixed parameters (5M and 20M tested), absorbed entropy stays nearly unchanged across all three patterns and factors ×1–×3 (reported in Fig. 4, graphically). (2) Reasoning, measured on synthetic iGSM (500K problems, trained at ≤15 operations, exact-answer accuracy, greedy decoding): GPT-2 models of 4/8/12/16 layers (≈50M/100M/150M/200M) trained from scratch. Cycle is the strongest pattern: the 4-layer model's op15 accuracy rises 46.3% (base) → 62.1% (×2) → 70.7% (×5), and the gains grow under depth distribution shift (op20: 21.8→43.8; op21: 21.2→40.2). A 50M cycle ×2 model (effective depth 12) scores 62.05%, beating the native 12-layer 150M model (61.15%) — reasoning decoupled from parameter count. Real-world check: LLaMA-3.2-3B-Instruct with Cycle VLD inserted before LoRA fine-tuning (both arms from identical pretrained weights, same 2.3B-token multi-domain SFT corpus) improves over base on Math500 30.40→35.40, GPQA 29.80→32.32, AIME 3.33→6.67, HumanEval 37.79→39.52, MBPP 38.36→40.22. "Properly implemented" is load-bearing: pattern and placement matter — inverse cycle at ×1 underperforms the base model (4-layer op15 43.9 vs 46.3; 8-layer 53.3 vs 60.5), and in an 8-layer placement ablation, cycle reuse on later layers only (5–8) scores 64.2 vs 62.0 for all layers and 54.2 for early layers only (below the 60.5 no-VLD baseline). Scaling is also non-monotonic: cycle ×3 dips below ×2 on the 4-layer model (61.6 vs 62.1), and effective depth 32 underperforms depth 16 — the authors flag possible fixed points. No fitted scaling-law functional forms or exponents are given; the laws are qualitative (knowledge ∝ parameters; reasoning ↑ with VLD). Caveats: synthetic experiments cap at 200M from-scratch GPT-2 models; the real-world evidence is a single 3B model with LoRA-only fine-tuning and small absolute gains (AIME 3.33→6.67 is one additional problem in 30); knowledge capacity is a synthetic memorization probe, not natural knowledge; all reuse experiments train (or fine-tune) with the reuse graph in place — inference-only looping of a conventionally trained model is not tested; multi-seed statistics deferred to future work (authors' Appendix I).
- Paper
Depth Memory
Reframes depth mixing as memory management. The Depth Memory framework describes PreLN (one additive residual stream), Attention Residuals (a growing key–value cache of every earlier layer output — explicit depth memory), and mHC (an expanded residual stream — implicit depth memory) as streams with Read/Write operators, then proposes Linear Depth Memory (LDM): three streams per token — the standard residual stream, a fixed-size matrix-valued associative memory M, and an inverse-covariance stream P. M is maintained as the EXACT solution of a "depth regression" — least squares over past layers, fitting a linear map that reconstructs earlier layer outputs v_i from their keys k_i — solved online by recursive least squares (Sherman–Morrison) with learnable per-layer forgetting factors, dynamic importance weights, and a ridge penalty. Each write is an error-correcting rank-1 update M ← M + u·κᵀ (u = current prediction error, κ = RLS gain from P); reads add a gated memory retrieval to the residual stream, x + γ⊙M(g⊙q). Depth can afford the exact solve that sequence mixing cannot, because layers are already evaluated sequentially — this is test-time regression (delta rule / MesaNet lineage) transplanted from the sequence axis to the depth axis, and the fixed-size RLS state replaces AttnRes's depth-growing cache. Memory is split into G=16 groups with per-group covariance; main config D_k=8 (memory matrix 8D entries/token, 2× mHC's 4D). Hardware-aware implementation: the RLS recurrence is reversible, so the backward pass unwinds states from the final M instead of storing one per layer, and windowed writes (E=4) defer updates within a window — CuTe DSL kernels for Hopper/Blackwell. Results on FineWeb-Edu with per-method LR sweeps and ~1% extra parameters over PreLN: 400M (Llama-like, 50B tokens) validation PPL 12.08 vs Block AttnRes 12.12, mHC 12.23, Full AttnRes 12.35, PreLN 12.73 — lowest also on WikiText-2 (20.70) and LAMBADA (19.10); zero-shot average 50.46, second to Block AttnRes (50.61). 1.5B (Qwen-like, 100B tokens): validation PPL 9.15 vs mHC 9.25, Block AttnRes 9.26, PreLN 9.48; WikiText-2 14.21 and LAMBADA 8.42, both lowest; highest zero-shot average (59.71). A D_k=4 variant whose memory matrix matches mHC's state size still beats mHC on all three perplexities. Throughput (B200, 1.7B–14B): exceeds Full AttnRes in every setting and mHC in all training and most inference settings; competitive with Block AttnRes, especially in decode. Ablations (400M, 15B tokens): the separate residual stream is load-bearing — memory-only layer input (+1.88 PPL) or replacing the stream with the layer output (+0.87) both fall below PreLN (+0.78); replacing RLS with a delta rule (+0.06) or plain outer-product update (+0.07) still beats PreLN but not RLS; storing the residual stream instead of layer outputs hurts most among addressing choices (+0.33); disabling forgetting is a wash (−0.01). On the DepthBench aspect-ratio protocol, LDM beats PreLN at every width/depth ratio at 400M and 1.6B and is lowest at every 1.6B ratio; the deepest 400M shape is the lone exception (HC slightly better). Caveats: quality evidence stops at 1.5B / 100B tokens (larger scales appear only in throughput tests); LDM can add peak training memory; all results first-party, no independent reproduction.
- Post
INTELLECT Policy Optimization (IPO)
Prime Intellect's new default RL loss in prime-rl 0.10.0, built for async/off-policy RL stability. The problem: in async RL the trainer policy π and the rollout-generating inference policy μ never agree exactly on a token's probability, and drift between them can collapse training. The old fix, IcePop (ratio-band masking from "Every Step Evolves," also used in INTELLECT-3), keeps a token iff π(y_t)/μ(y_t) ∈ [0.2, 5]. IPO keeps a token iff the absolute probability change |π(y_t) − μ(y_t)| ≤ ε (default 0.3), retaining the importance-weighted policy-gradient term τ_A Â_t · π/μ on kept tokens. Why the ratio misjudges both tails: a rare token 0.01→0.06 has ratio 6× → masked despite moving 0.05 of probability mass; a likely token 0.90→0.20 has ratio 0.22 → kept despite moving 0.70. Treating the vocab as {this token, everything else}, |π−μ| is the total-variation distance between the two engines on that split. The criterion comes from DPPO (Qi et al., 2026), which used probability-difference for the PPO trust region between policy updates; IPO applies it to the trainer–inference mismatch, with a sign-independent mask (unlike DPPO). Ablation on agentic SWE RL with GLM-4.5-Air (100B MoE, bf16) in a deliberately extreme setting — up to 64 steps off-policy, no routing replay, no router replay ("in most runs IcePop is stable"): arms indistinguishable for ~1k steps, then IcePop's trainer→inference KL explodes >20× around step 1.2k and SWE solve rate falls ~0.8→~0.3, while both IPO arms (ε=0.2, 0.3) train straight through. At ε=0.3 IPO masks ~0.25% of tokens (vs ~2% at the old ε=0.1 default, which collapsed entropy). Open caveat from the thread (Yusuf Sadek): at ε=0.3, a token at 0.25 trainer / 0.001 inference (difference 0.249, ratio 250×) is never masked, and IPO doesn't clip the importance weight on kept tokens — the mask gates inclusion only. All figures first-party; no independent repro. Same release also: top-p/top-k replayed exactly in the trainer, constant trainer batch size, MoE router frozen by default.
- Paper
Mass-Editing Memory in a Transformer
The canonical mass-insertion method and the direct answer to the "insert knowledge with no training" ask: scales ROME's locate-then-edit to many edits at once via batch closed-form updates spread across multiple MLP layers. Causal tracing identifies the decisive mid-layer FFN activations; a rank-one update per layer writes new factual associations with zero gradient training per edit (key vectors estimated from activation samples). Authors' result: thousands of associations inserted into GPT-J (6B) and GPT-NeoX (20B), "exceeding prior work by orders of magnitude." Everything downstream in the closed-form line (PMET, AlphaEdit) builds on it. Limitations to label: edit-benchmark success (reliability/generalization/locality) is not the same as pretraining-quality knowledge; sequential-editing degradation is evidenced by later work (AlphaEdit's null-space protection is bounded at high edit counts per a reproducibility study).