Explore the research collection
414 entries · showing 49–72 · Follow this search
- Paper
Rethinking Activation Functions: Reducing Bias Can Improve Learning
ReLU, GELU, Swish, and Sigmoid all produce predominantly positive outputs, so their post-activation mean is nonzero — the paper names this the activation bias, b = E[phi(z)], and asks what it does to learning over the full course of training, not just at initialization. Intervention: subtract a fixed scalar b from the activation output (estimated at initialization: ReLU 0.230, GELU 0.115, Swish 0.077, Sigmoid 0.500), or, at scale, layerwise adaptive shifting (subtracting the running post-activation mean). Controlled evidence (deep residual teacher–student model with pre-norm MLP blocks, identical init/data/optimizer, only the shift differs): the unshifted student learns faster early but its residual-stream hidden state overshoots (~step 100), its parameter trajectory turns sharply within the initial-gradient plane, and its loss landscape is steeper (larger leading Hessian eigenvalues); the shifted student starts slower, moves in nearly orthogonal parameter directions, and ends at a lower final loss — despite the teacher itself using the unshifted activation. The bias component is not inert: in a VGG-style reconstruction task, decoding the bias component alone early in training recovers recognizable coarse image structure, color, and texture — the model transiently exploits information carried in the mean component, then relies on it less; shifting largely suppresses this. Theory: in the simplified settings studied, shifting by the activation mean minimizes or nearly minimizes Hessian / Gauss–Newton sharpness. Scale-up (adaptive shifting, everything else fixed): ViT-Base on ImageNet-1K (300 epochs) — shifted model trails early, finishes with HIGHER training loss but lower test loss and higher top-1 accuracy; DiT-B/2 on ImageNet-256 (400k steps) — comparable or lower training loss throughout and lower FID at every evaluated checkpoint; GPT-2 Small on OpenWebText (300k steps, nanoGPT setup) — consistent but small gain, ~0.01 absolute loss and ~1% relative perplexity. Appendix results extend to ViT-L and OLMo/HyenaDNA-style models, and document hidden-state overshoot in released Pythia-410M, OLMo-2-1B, and Amber-7B checkpoints.
- Paper
Preventing Learning Stagnation in PPO by Scaling to 1 Million Parallel Environments
Why do on-policy RL agents plateau far below optimal return even with unlimited experience? The paper argues that in an important regime the cause is neither exploration, capacity, nor plasticity loss: PPO's sample-based loss estimates become poor proxies for the true objective, so updates stop being informative. It models PPO as two loops — an outer loop (collect rollouts from N parallel environments under the current policy) and an inner loop (minibatch SGD on that batch) — and abstracts the outer loop as plain stochastic optimisation. In that model the outer "step size" is set by the regularisation strength toward the previous policy (clip threshold epsilon, epochs per batch, and implicitly the behaviour policy's age) and the update noise by the number of samples collected between updates. If the step size is too large relative to the noise, the policy thrashes around a local optimum instead of converging — the plateau is the policy changing too MUCH between iterations, not too little. Two remedies follow: shrink the step size (stronger regularisation) or collect more data per update (more parallel environments moves both levers at once). The paper validates the analogy empirically, including the sharp prediction that plateaus are reversible: changing the outer step size mid-run can induce a plateau in a healthy run or rescue a plateaued one, which rules out irreversible plasticity/capacity explanations for this regime. It also finds the optimal outer step size shrinks as the total interaction budget grows, so longer runs need smaller, higher-quality updates. Scaling recipe (the practically load-bearing part): when increasing parallel environments, keep the inner loop untouched — fixed minibatch size and learning rate, more minibatches (more optimisation steps). On Isaac Gym robotics tasks (Singla et al.'s setup), reverting the minibatch size from their scaled 98,304 back to the 16,384 default — one change — significantly improves both vanilla PPO and their SAPG method and narrows the gap between them. Headline result: on Kinetix (procedurally generated 2D-physics open-ended task universe, SFL autocurriculum over PPO), default configurations plateau and then degrade after <10B interactions; scaling to over 1M parallel environments (512x the 2,048 used by Matthews et al., across 128 GPUs) sustains monotonic improvement past one trillion transitions and far exceeds prior baselines (mean and 95% CI over 3 seeds). Analysis uses PPO-EWMA (Hilton et al.'s decoupled proximal policy) as an instrument to vary regularisation independently of parallelisation; final results use standard PPO.
- Paper
Training Foundation Models with a Single Algorithm (Unified Training)
Foundation models are trained in stages — pretraining, midtraining, SFT, RL — each with its own data and algorithm. This paper argues the algorithmic separation is not fundamental. Building on MaxRL's likelihood interpretation (Tajwar et al.), it shows a suitable RL update is exactly maximum-likelihood fitting to a model-generated target distribution: for binary rewards, the MaxRL gradient equals an expectation under the current policy's success-conditioned distribution pi+, so an RL step is MLE on the model's own successful generations, with the generator held fixed during the update. The construction extends to generations from arbitrary fixed policies nu (fit nu's success-conditioned distribution — off-policy generations need no separate algorithm) and, via TailRL, to continuous rewards and other policy-gradient objectives. Unified training then writes every stage as a source (prompt distribution + target distribution) feeding ONE weighted likelihood loss over a time-varying mixture q_t = sum_s lambda_{s,t} (rho_{s,t} o mu_{s,t}): pretraining and midtraining are the empty-prompt static sources, SFT the demonstration source, RL the self-generated success source. The learning rule never changes; the design problem becomes which data, in what proportions, and when — with conventional staged training as the special case where one source holds all the weight at a time. Implementation: a single trainer over a common data representation, with asynchronous generators appending completed batches to a shared buffer and the trainer publishing weights every k updates (policy staleness measured in the appendix). Experiments, deliberately small-scale: (1) Controlled full pipeline — 124M model from scratch, fixed 20B-token pretraining corpus + 510M-token midtraining corpus of oracle solutions to Reasoning-Gym-style puzzles with controllable difficulty and compositional RL tasks; MaxRL, results averaged over two seeds. Best unified configurations beat staged training on final accuracy and coverage in both Base and Extended settings and on Extended generalization (larger puzzles seen in neither midtraining nor RL). Unified reuses data better: its two best configurations run 2 and 4 epochs over the midtraining corpus during pretraining, where staged training degrades when midtraining is extended past its best budget. Compute-matched frontiers (total compute including pretraining): staged is accuracy-optimal at intermediate budgets, unified wins at the smallest and largest budgets and on generalization at almost all budgets. Retention: unified initializations keep held-out pretraining loss and five-benchmark average near the pretrain-only model even as midtraining data grows, while even the best-retention staged configuration is substantially worse on both. (2) Real-world — 0.76B model from scratch, mathematical RL on Math12K with a 240M-token heterogeneous midtraining corpus (web text, math, code, reasoning traces) mixed at 0–5% token proportions. Math accuracy is roughly flat across proportions (slight decline) while coverage peaks at the largest proportions; every nonzero mixture pushes held-out midtraining loss BELOW the base model (staged training raises it) and SciQ generally improves, but Coding accuracy falls with more mixing despite higher coding coverage. Schedules at a fixed 0.5% average: annealing the mixture to zero by mid-training recovers Coding accuracy while keeping SciQ gains, at some retention cost — no universally preferred schedule. Continual learning: after math training, all unified models beat the staged model on final HumanEval+ and MBPP+ accuracy after identical coding RL (the 5% mixture best on all four accuracy/coverage metrics) despite starting from lower coding accuracy. Objective ablation at fixed mixture: REINFORCE gives higher Math accuracy and retention, MaxRL higher coverage. KL-penalty control: no tested penalty reproduces unified training's combination of math performance, retention, and SciQ/MMLU gains. Separately-normalized dual-loss control: the shared likelihood loss matches or beats it without a tuned coefficient.
- 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.
- 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
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.
- 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.
- 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.
- Post
Reactive Optimizers — OPAL (OPtimizer with an Agent in the Loop)
Thesis: optimizers are static — hand-crafted or discovered offline, then run unchanged. A reactive optimizer instead puts a zero-shot LLM agent (Claude Opus 5.5 in all blog experiments; nothing learned or retained across runs) inside a single training run and gives it code as the entire interface. The agent iteratively rewrites two programs: `updater.py`, the optimizer itself, executed every step — the whole algorithm is up for rewriting, not just hyperparameters — and `analysis.py`, self-written probes that extract the training-dynamics statistics the agent chooses to watch (per-parameter-group gradient norms, update size relative to weights, cosine between consecutive gradients, per-tensor spike detection). One agent conversation spans the run, so it remembers what it tried and why. In the released package, checks run every 50 steps, decisions are capped (default ≤50, front-loaded into the first 5% of the run), and the agent's remit is bounded: it cannot touch model, data, loss, batch size, step count, or evaluation, and until its first edit the wrapped run is bit-for-bit identical to the plain run. Guardrails in the package: a new updater takes over on all ranks at once and runs a 20-step trial — an error reverts to the previous program; a first-step failure is undone exactly when a snapshot of parameters + optimizer state fits in `snapshot_limit_gb` (default 2 GB); a later failure is NOT undone and the agent is only told; an `eval_integrity` check flags a program that moves parameters away for an evaluation and back. Training can run asynchronously while the agent thinks (blocking=False), edits landing a median of 65 updates later on Goldfish. Headline claim (authors'): where no recipe has been tuned for the setting, OPAL — always INITIALIZED from an existing recipe — matches or beats the best recipe one could pick off the shelf one-shot. Baselines, precisely: for settings derived from modded-nanogpt Track 3 (162M GPT on FineWeb), five leaderboard records transplanted with natural adjustments (#46, #30, #21 Shampoo, #36 tuned Muon, #2 AdamW; at quarter batch, all LRs ×¼) — OPAL initialized from #36 ranked first in every new setting (quarter batch; Chinese, Thai, Kyrgyz from 1 GB Goldfish sets; Chinese/Thai bars are means of 3 runs). Goldfish Amharic (125M GPT, 1 GB, 10 epochs; metric bits/sentence on held-out FLORES-200): official recipe 83.48 → OPAL from that recipe 81.11; an LR sweep found a static recipe at 80.89 — ahead of OPAL-from-official — but OPAL initialized from the swept recipe ended ahead again at 80.73 (Swahili similar: 79.37 → 77.60). Image generation: LightningDiT-XL/1 on ImageNet, FID-50K 1.83 vs official recipe's 2.18 with guidance (4.33 vs 5.15 without); RAEv2-B (official recipe already a Muon variant, GMuon) 3.19 vs 3.39 in the blog — the repo table shows prompt sensitivity: 3.10 with an efficiency-asking prompt, 3.46 with the neutral prompt. SiT-B/2 (repo table): FID-50K 35.7 → 23.6. On the original, heavily tuned modded-nanogpt setting the gain is small (validation loss 3.2749 vs record #36's 3.2781), and the README documents a run that ended WORSE (3.2878 on OPAL 0.2.0). What the agent actually does, from the decision logs: builds intricate per-parameter-group multi-stage LR schedules (including mid-run LR increases; A/B/A tests alternating two LRs for a few hundred updates each and keeping the winner; re-planned earlier cooldowns from loss trends); migrates tensors from AdamW to Muon module-by-module (attention/MLP first, then adaLN split into chunks, timestep embedder last); on modded-nanogpt it measured that token-embedding entries are ~15 in size where adjacent bf16 values are 0.0625 apart, so as the LR decayed, rounding would discard a growing share of each update — from update 1,040 it kept that one matrix's Adam moments in float32 with compensated rounding on writeback and left everything else alone. Loss-spike defense: in a SiT run it traced 17 of 18 logged gradient spikes to the timestep embedder and wrote per-tensor clipping thresholds set from each tensor's own recent gradient norm (global threshold kept as backstop); in a controlled ResNet-18/CIFAR-10 experiment with four inserted stretches of random images and labels (agent not told), the first two stretches cost it −50.0 and −66.3 accuracy points (≈ the static baselines), but between stretches it added loss damping, replaced it with clipping, then wrote a gate that holds back batches whose loss is far above recent clean ones — the third stretch cost −12.1 and the fourth +0.7, while Muon+clip, AdamW+clip and Stable-SPAM still lost 28.5–76 points per stretch. Overfitting: ResNet-18 on CIFAR-10 with 10% wrong labels, no augmentation, agent sees train + dev metrics but is never told about the label noise — AdamW ends at test loss 2.49 / 73.5% accuracy (early-stopped 1.01 / 72.9%; weight-averaged 0.83 / 77.5%) and predicts the wrong trained label on 100% of the 4,500 mislabeled training images; OPAL ends at 0.69 / 78.6%, predicts the wrong label on only 4% (true label on 78%), via progressively higher learning rates plus a self-chosen weight average ("extended SWA") selected on the dev set. Toy control check (2D landscapes, OPAL restricted to heavy-ball with momentum resets/return-to-best): mean log10(f − f*) −11.6 vs −2.2 for the best of 12 common static recipes and −7.4 for the best of 382,080 swept recipes. Cost: ≈100 decisions on LightningDiT cost $6.42 at Opus 5.5 list price on top of ~74 H100-hours (~$510 AWS on-demand); asynchronous mode adds 1.01–1.14× wall-clock vs the static run (blocking at every decision: 1.30–4.39×). Authors' stated limits: gains shrink when a run is short AND its recipe is already fine-tuned (the two conditions coincide in the original modded-nanogpt setting; other settings train 8–120× more updates); reactive behavior is another source of nondeterminism and makes training less reproducible; most experiments run once, a few three times; the current implementation does not support sharded training or optimizer compilation. Repo README adds: v0.3.4, single GPU / single-node DDP only (no multi-node, FSDP, DeepSpeed); "the agent can make a run worse: it cannot restart or roll back training, it can only fix its programs at the next decision"; results vary run to run because the agent chooses differently. Repo ships a one-line `opal.wrap()` wrapper around any torch.optim optimizer, `opal doctor` / `opal estimate` / `opal show` / `opal report` tooling, examples, a CPU test suite, and an experimental Codex backend (gpt-6.1-sol); 34 stars, created the day of the thread.
- Paper
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.
- 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.
- Paper
Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptors
The "leave the backbone byte-identical" extreme of knowledge insertion. Writes new input→output mappings into the model's latent space as a discrete, local codebook of key-value adaptors — zero weight changes to the model itself. Authors' result: "the first method enabling thousands of sequential edits using only streaming errors" (demonstrated on T5, BERT, GPT). Training per edit: none — a codebook write. Relevance: when the constraint is "do not touch the weights at all" — e.g., inserting knowledge into a frozen production model, or a model whose weights are shared across deployments — GRACE is the cheapest reliable option in the survey. Trade-off to label: the knowledge lives outside the parametric core (in the adaptor codebook), so it doesn't compose with the model's weights the way a MEMIT edit does; retrieval/routing correctness becomes the failure surface.
- Paper
Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?
The must-read guardrail before any fine-tuning-based knowledge insertion. Controlled closed-book QA experiments: examples containing genuinely new knowledge are learned significantly slower than knowledge-consistent examples, and once learned they linearly increase the model's tendency to hallucinate. Conclusion: LLMs acquire factual knowledge through pre-training; fine-tuning teaches them to use existing knowledge more efficiently. This is the mechanism behind ID 488's interference finding (sequential FT writes degrade earlier facts): the hallucination tax is the price of forcing new knowledge through the fine-tuning channel. Practical implication for Hudson's runs: if a fact must go in via fine-tuning, expect to pay in hallucination rate — prefer the closed-form (MEMIT #86), side-memory (WISE #87), or codebook (GRACE #90) routes for the insertion itself.
- 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).
- Paper
Check The Scoreboard: An Analysis of Scoring Schemes on Multiple-Choice Evaluation
MCQA benchmarks use number-right scoring (accuracy), but educational testing treats the scoring scheme — response mode (how test-takers answer) + scoring rule (how answers are graded) — as the key design choice for which abilities get rewarded. The paper ports six education-inspired schemes to LLM eval, each implemented as a prompt (response mode) plus metric (scoring rule), all on InspectAI MCQA templates: (1) Negative Marking (NM) — pick one answer or abstain; +1 right, −1/(n−1) wrong, 0 abstain (uncertainty, abstention); (2) Elimination Scoring (Elim) — list answers believed wrong; score = proportion of distractors eliminated, 0 if the correct answer is eliminated (partial knowledge, eliminative reasoning); (3) Elimination+NM — 1/(n−1) per eliminated distractor, −1 for eliminating the correct one (partial knowledge + abstention); (4) Confidence-Based Marking (CBM) — predict answer + confidence C∈{1,2,3}: C=1 → +1/0, C=2 → +2/−2, C=3 → +3/−6 (discrete confidence calibration); (5) Personal Point Allocation (PPA) — output a probability distribution per choice, scored by Brier score vs the one-hot gold (probabilistic calibration); (6) Answer Until Correct (AUC) — answer until correct over a fixed number of tries, told when wrong; score (r−1)/(n−1) where r = choices left when correct (self-correction, adaptability). Number Right (NR) is the baseline and a rephrased Control Variation (NR-Var) is the prompt-sensitivity control — so the table has 8 rows, 6 of them the alternative schemes. 31 LLMs (Gemini 2/3 Flash, 2.5 Lite, 2.5/3 Pro; GPT 4.1, 5 Nano, 5 Mini, 5, 5.2; Claude 3.7/4/4.5 Sonnet, 4.5 Haiku; Cohere Command-R/R+/R7B; DeepSeek V3.1, R1; Qwen-3 80B/235B Inst/Think; LLaMA-3.1 8B/70B/405B; GPT OSS 20B/120B; GLM 4.5/4.6; Kimi-K2; GPT-OSS and Cmd-R+ omitted on SuperGPQA for speed; default params) on 1,000 sampled MCQs each from ARC, MMLU, and SuperGPQA (285 graduate topics). Findings (author-reported, exact correlation values live in the paper's figures): (1) Elim, Elim-NM, PPA, and AUC shift LLM rankings beyond the NR-Var control (Spearman vs NR, bootstrapped SE n=1000) — they measure abilities NR doesn't; NM and CBM correlate highly with NR. Also holds under choice-shuffling/letter→number sensitivity baselines on ARC; ARC's NR scores cluster, so the schemes double as tie-breakers. (2) AUC best predicts LLM Arena crowd-preference rankings — better than NR — consistent with users preferring models that adapt to feedback; the NR-vs-AUC gap is wider on technical queries (Math, Expert) than on Creative Writing; a cheaper self-refine-once ablation also improves Arena agreement. (3) Schemes surface model quirks NR hides: GPT models state high confidence and rarely abstain; weaker GPT models struggle to change answers after being told they're wrong while stronger ones readily self-correct; Command-R+ often abstains; LLaMA-3.1 hesitates to eliminate choices; weaker open-weight models often abstain and hesitate to eliminate. All models state high confidence in CBM and rarely abstain in NM on easier datasets (ARC, MMLU) but not SuperGPQA — some awareness of item difficulty. Larger models and test-time reasoning improve cross-scheme consistency (NR answer must not be eliminated in Elim; NR answer must carry the most PPA weight). Caveats (authors' own): prompt sensitivity — changing prompts can shift ranks; LLM Arena doesn't disclose its prompts/inference params; AUC is the most expensive scheme (many turns, costs in Table 3) though still cheaper than crowdsourcing. Discussion: extend education-inspired scoring to programming (White 1993) and writing (Tew & Guzdial 2010) rubrics, and run classic NLP tasks (NLI, summarization) as multi-turn dialogues to form user-inspired evaluations. AI-use statement: Cursor used for plot design/refactoring/debugging, ChatGPT for writing brevity ("AI tools did not directly write any parts of this paper"). Code repo: github.com/nbalepur/mcqa-scoring (created 2026-03-01, 8 commits, 0 stars) — includes a "Self-Refine (ablation)" scheme row not in the paper's Table 1.
- Post
Defeating Nondeterminism in LLM Inference
The "concurrency + floating point" story for LLM nondeterminism is incomplete: the forward pass contains no atomic adds and is run-to-run deterministic. The true culprit is lack of BATCH INVARIANCE — matmul/RMSNorm/attention kernels change reduction order/tiling with batch size (split-K matmuls, tensor-core tile choice, attention split on KV cache vs current tokens), and inference servers change batch composition via continuous batching, so "identical" requests from one user's perspective get different outputs. Fix: batch-invariant kernels for the three reduction ops (data-parallel RMSNorm; single compiled matmul config, ~20% cost vs cuBLAS; attention with pre-kernel KV-cache/page-table layout update and FIXED-SIZE split-KV — which required internal FlexAttention changes not included in the code release). Evidence: 1000 temperature-0 completions of 1000 tokens from Qwen3-235B-A22B-Instruct-2507 ("Tell me about Richard Feynman") → 80 unique completions, identical for first 102 tokens, first divergence at token 103 ("Queens, New York" 992 vs "New York City" 8); with batch-invariant kernels all 1000 identical. True on-policy RL: RLVR on BigMath with Qwen2.5-VL-Instruct-8B, bitwise-identical sampler/trainer → KL divergence flat at 0, trains smoothly without importance weighting; the naive run's reward collapses ~step 318 with a KL spike. Claim: train/inference numeric mismatch "implicitly turns our on-policy RL into off-policy RL." Fun detail: Triton FlashAttention backward differs algorithmically from the FA-2 paper — recomputes to avoid atomics at 40% more FLOPs. Repo: github.com/thinking-machines-lab/batch-invariant-ops (torch.Library substitution layer + vLLM FlexAttention deterministic-mode demo), MIT.
- Paper
Towards joint scaling laws with optimal batch size schedules
Derives optimal batch-size schedules from LR schedules in closed form under a convex loss model. Given an LR schedule, horizon, and token budget, the noise-term-minimizing schedule is B_t^optim = (K/2)·η_t/√(∫₀ᵀη_k dk · ∫_tᵀη_k dk), with K = B_static·T — depends only on LR schedule shape and budget, independent of peak LR, weight decay, model size, architecture, or optimizer. Cosine LR → BS grows then declines; WSD → grows then plateaus; linear → exactly flat at B_static; constant LR → grows like 1/√(T−t). η_t/B_t is NOT a sufficient statistic (matched trajectories favor realizing the schedule through LR over BS, +0.017–0.743 val loss), so BS scheduling is an independent dimension. Scaling experiments (Llama3 dense, Qwen3 MoE, 0.1B–7B, up to 1e21 FLOPs, Fineweb-edu; peak LR ∝ 1/√T, same LR/WD for both): +15% compute efficiency on Llama3 at 50 TPP, +6% on Qwen3 MoE at 100 TPP; Llama3-1B best-perplexity gains 0.8%/2.5%/14.6% for cosine/WSD/constant; lm-eval-harness wins on all 8 tasks for both families. Joint scaling laws: peak LR and WD ∝ 1/√T, scale-free BS schedule, O(1/√T) convergence; universal dynamics (supercollapse) preserved. Holds on AdamW and Muon-NSGD; ablations incl. VLM post-training (dynamic wins 7/9 benchmarks) and math fine-tuning. Caveats: the cosine-derived schedule decays to zero at the end (proven endpoint behavior — nonzero-terminal-slope schedules give constant terminal BS instead); no practical floor prescribed, and end-of-training tiny batches are systems-impractical; convex foundation is empirical-fit, not a theorem; token-based compute optimality, not wall-clock. Zero overhead — it's a schedule-shape recipe, no extra tuning.