Explore the research collection
243 entries · showing 25–48 · Follow this search
- Paper
You don't need long context
A challenge to the long-context roadmap, on cost grounds. Observation: later tokens are more expensive to generate than earlier ones - each decode step attends over a longer prefix and a larger KV cache - and on frontier open-weight models the per-token cost disparity between early and late positions rises to as much as 7x. If long contexts are that expensive, the question is whether tasks actually need them. The paper's answer, via FREQUENT COMPACTION (periodically compressing the working context back down to a short semantic summary and continuing from it): across a broad range of long-horizon and long-input tasks, frontier language models sacrifice little to no task accuracy when they are forced to maintain short contexts. The extreme version is the striking one: on long-horizon software-engineering tasks, performance does not collapse even when the agent takes AT MOST ONE ACTION PER CONTEXT - every step starts from the compacted state, acts once, and the state is re-compacted - meaning the trajectory's information survives being funneled through a short text bottleneck at every single step. From this the authors outline a concept they call semantic state space models (SSSMs): recast the agent as a state-space model whose recurrent state is not a latent vector but a semantic (natural-language) state, updated by compaction rather than by a learned transition - long-horizon behavior emerges from state quality, not context length. Caveats: abstract-level evidence - the task list, the size of 'little to no' accuracy loss, the compaction method and its own token cost, and which models were run are all full-text details; the 7x figure is a maximum disparity, not a typical one; results are on frontier open-weight models, whose compaction quality (the model summarizing its own state) may not transfer to smaller models; and tasks whose bottleneck is verbatim recall of a long input are exactly where a summary bottleneck should hurt most, so the breadth of 'long-input tasks' tested matters. Catalog placement: the demand-side counterpart to the catalog's long-context supply-side work (e.g. ID 1801's subquadratic sparse attention makes long context cheaper; this argues the expensive thing may be unnecessary) - and for agent architectures it is the compaction/state-carrying position stated at full strength: the context window as a cache you keep evicting into a semantic state, not a memory you keep growing.
- Paper
Pretraining Data Scale Reverses the Muon-AdamW Fine-Tuning Gap
Muon's pretraining-loss advantage over AdamW does not survive fine-tuning at scale - and the crossover is predictable. Empirically: at small pretraining data budgets, Muon-pretrained models also fine-tune better, but beyond a sufficiently large pretraining token budget the ranking flips and AdamW-pretrained models fine-tune to better downstream performance, despite Muon's better pretraining loss. The crossover point is not fixed: as model size increases, AdamW overtakes Muon at progressively SMALLER pretraining token-to-parameter ratios, so larger models cross over earlier in their training-token budget. To explain the reversal the authors model fine-tuning as a perturbation of the model's outputs and introduce the margin-to-spread ratio: how far the correct logit lies above the wrong logits, normalized by how widely the wrong logits are spread. A model with a high ratio has its predictions robustly separated relative to the noise floor of its incorrect alternatives, which is what a fine-tuning perturbation has to overcome or preserve. Measured in language models, the ratio tracks the empirical reversal exactly - Muon's margin-to-spread is larger at small data budgets and AdamW's is larger at large ones. Theory backing: in a linear associative memory model they prove that after a single update, gradient descent's margin-to-spread ratio gains on Muon's as the data budget grows, and simulations show the trend persists after extended training - i.e., the reversal is a structural property of the optimizers' update geometry interacting with data scale, not a tuning artifact. Caveats: abstract-level research - the specific model scales, token budgets, downstream tasks, and crossover magnitudes are in the full text, not the abstract; the proof is for a linear associative-memory surrogate after one update, with the LM claim resting on the empirical correlation between the ratio and fine-tuning outcomes; code was not linked from the arXiv page at catalog time. Practical read for anyone running a pretrain-then-finetune pipeline with Muon (the catalog's Muon thread already covers its weight growth, looped-model LR scaling, and orthogonalization cost): optimizer selection by pretraining loss alone can pick the wrong optimizer for the artifact you actually ship, and the risk grows with model size and token budget. The margin-to-spread ratio is also a candidate pretraining-time observable - a geometry statistic of the base model that predicts post-fine-tuning behavior, in the same family as the logit-margin signals tracked elsewhere in the catalog.
- Paper
Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime
Every production transformer executes its layers in one fixed order; programs, by contrast, chain the same primitives (conditionals, loops) in different orders per algorithm. Library of Layers (LoL) gives the model a single global library of transformer blocks plus a router that dynamically ORDERS them at inference time for the problem at hand. The architecture has essentially one hyperparameter - the library size - which sweeps a continuum: a small library forces heavy block reuse (depth recurrence / looping), a large library with a subset active per step behaves like sparsity (MoE), and the endpoints recover dense and depth-recurrent designs, so the authors frame LoL as one family generalizing the parameter-efficiency and FLOPs-efficiency trade-offs of all three. Results are parity results, not wins: pretrained on text (FineWeb), LoL is competitive with dense, depth-recurrent, and MoE baselines - main experiments at 360M parameters (GPT-2-Medium shape modernized with RoPE, RMSNorm, SwiGLU, bias-free attention; a 1B variant follows the Llama-3.2-1B shape), and on lm-evaluation-harness benchmarks (ARC-Easy/Challenge, HellaSwag, PIQA, GSM8K) all models sit within 2 standard errors of each other, except the vanilla full-attention model scoring notably lower on ARC-Easy. The distinctive evidence is behavioral: on synthetic sudoku and maze tasks the model uses DISTINCT layer orderings to implement different solution strategies, and the routing can be intervened on to force a chosen strategy onto a given problem instance - the ordering is a controllable computational graph, not just a learned permutation. In a multilingual setting the chosen order patterns differ systematically by language and script. And when LoL is trained on safety data, simple probes fitted to the ROUTER's outputs distinguish safe from unsafe text with high AUROC (the exact figure was not extractable from the HTML full text at catalog time) - the routing decisions themselves carry a readable signal about the input. Caveats: 360M-1B scale throughout; headline text results are parity within noise rather than improvements; the strategy evidence is on synthetic toy tasks, not natural reasoning; runtime reordering costs and behavior at frontier scale are untested. In the catalog's looped-models cluster, LoL is the generalization at the end of the line: a fixed loop is LoL with a one-block library and a hard-coded cyclic order, and MoE is the same routing idea applied across width instead of depth order - LoL routes over both WHICH blocks and IN WHAT SEQUENCE. The intervenable routing and probe-able router state are also the monitoring angle: layer-order choices are an observable, steerable intermediate that fixed-order models do not expose.
- Paper
Rethinking Pre-pretraining
A compute-matched negative result on synthetic pre-pretraining (PPT) - a synthetic-data phase (formal grammars and rule systems) run before natural-language pretraining (PT), previously reported to help especially when natural language is scarce. Four curricula are tested: k-Dyck (multi-type bracket matching), NCA (nested bracket sequences from neural cellular automata), DeciRef (declarative reference corpora with C4-decodable rules), and code as a real-data control. Across three regimes, allocating compute to PPT never outperforms pure natural-language training. (1) DATA-CONSTRAINED (100M-token corpus, compute-optimal runs at 1e18 FLOPs, PPT doses of 1/5/10% of total FLOPs): simply repeating the 100M tokens for up to 10 epochs beats every synthetic curriculum on FineWeb validation bpb, with no consistent downstream advantage. (2) DATA-UNCONSTRAINED: power laws fit to compute-optimal runs at 1e18, 3e18, and 9e18 FLOPs and extrapolated to 50B tokens show PPT has a higher compute-optimal data coefficient - it is less compute-efficient than natural language, and the gap GROWS with scale (true at both 1% and 5% doses). (3) OVER-CHINCHILLA (881M parameters, 50B tokens, 1% PPT): almost no effect on FineWeb bpb or DCLM CORE, no method clearly better. The one regime where PPT appears to help - ADDITIVE compute, where the PPT phase is extra on top of a fixed PT budget, reproducing a prior NCA result on OpenWebText perplexity - is largely explained by a confound: the PPT models used a different weight initialization (N(0,1) embeddings, N(0,0.02) elsewhere) than the baseline (N(0,0.02) everywhere). Giving the baseline spectral initialization improves it by 5.4% perplexity and narrows the PPT gap to about 1.0%. With initialization handled and PPT compute given for free, residual gains persist only at small natural-language budgets (50M-100M tokens) and only when repeated epochs over the natural data are prohibited; they disappear by 1B tokens. Downstream, individual subtasks occasionally favor a PPT method (NCA on ARC-Challenge), but no method dominates and on aggregate none beats the baseline outside the no-epoching additive setting. Mechanism: models rapidly FORGET the PPT distribution during PT - a 1%-NCA model starts at 0.01 bpb on NCA and becomes worse than the never-PPT baseline at NCA itself within 200M PT tokens, with the embedding layers forgetting first. Interleaving the same synthetic data uniformly throughout PT prevents the forgetting entirely, yet still does not beat the natural-language baseline on FineWeb bpb - so forgetting is only part of the story; at equal compute the synthetic data appears to add nothing over natural language. The authors' own scope limits are explicit: evaluation is validation bpb plus aggregate benchmarks; they do NOT test generalization to complex hierarchical-structure tasks (PPT's original motivation), structure-matched downstream tasks like parsing, few-shot settings, or low-resource languages. Their recommendations for anyone studying a separate PPT phase: vary weight initialization across arms, permit repeated epochs over the natural data, evaluate retention on the PPT task itself, and compare against a spectrally-initialized baseline. Code is public (github.com/alexkstern/rethinking-ppt). For the catalog's data-constrained thread this is the control-condition companion to ID 1800's scaling law: repeated epochs over unique tokens are the baseline any synthetic curriculum has to beat, and initialization scheme is a hidden variable capable of manufacturing a multi-point 'data' gain.
- Paper
EmbeddingGemma 2: Unified and Efficient Multimodal Representations
Google's second-generation open embedding model, extended from text-only to a single unified representation space: EmbeddingGemma 2 natively embeds text, images, audio, video, and combinations of them, so cross-modal and mixed-modal retrieval use the same vectors as unimodal search. Two design changes carry the quality: simplified per-layer embeddings, and a multi-stage training curriculum with modality and objective progression (stages add modalities and harder objectives rather than training everything jointly from the start). On the authors' comprehensive embedding benchmarks spanning all modalities, they report a new Pareto frontier - the model beats both specialist single-modality embedders and general models two to twelve times its size. The release is engineered for resource-constrained deployment: modality encoders can be loaded selectively (ship only the encoders you need), the vision token budget is adjustable, embedding dimensions are truncatable (train once, serve shorter vectors at lower cost), and weights are quantized. Ablations over the key design decisions are included, and the model is released openly. Caveats: all benchmark claims are first-party (Google evaluating its own model on its chosen suite), and the abstract gives no parameter count or per-benchmark numbers, so the '2-12x larger' comparison cannot be checked at abstract level; the predecessor's niche was small on-device embeddings, and the efficiency features here are design properties, not measured latency or memory figures in the abstract.
- Paper
Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention
Sparse attention whose indexer is subquadratic. The bottleneck the paper targets: at ultra-long context (above 1M tokens) full attention is prohibitive, and existing sparse-attention indexers - a dedicated module that selects a subset of keys per query - either still cost quadratically in context length or lose accuracy at that scale. Latent Sparse Attention (LSA) instead hierarchically clusters the keys in a learned latent space, and each query scores the hierarchy of clusters rather than every key, so selection cost grows subquadratically while prefill, decode, and training all get faster at long context. Two variants: Distilled-LSA (D-LSA), which retrofits a pretrained model via distillation, and Native-LSA (N-LSA), trained from scratch on the next-token loss alone. Headline results: on GLM-5.3-FLASH (Qwen-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x in prefill and 4.6x in decode relative to that model's original sparse attention (72.4x and 42.5x relative to full attention), at similar accuracy across a variety of tasks; N-LSA matches full-attention accuracy with a 1.6x per-layer training speedup at 128k tokens. Caveats: the speedups are per attention layer, not end-to-end model throughput, and the abstract-level evidence is a single retrofit model at 10M plus native training at 128k - the regime where LSA wins (million-token contexts for long-horizon agentic work) is far beyond typical training contexts. In the catalog's attention-cost thread this is the learned-indexing alternative to fixed-structure sparsity: where a sliding-window hybrid (e.g. a 3:1 SWA:full mix) hard-codes which keys are reachable, LSA learns a key geometry and lets each query route through it - complementary to, not a replacement for, windowed attention at moderate context lengths.
- Paper
ElTab: Elastically Looped Tabular Transformers
ElTab is an elastically looped tabular transformer (TabPFN-style) trained with supervision at random early exits so one model serves many compute budgets; evaluated on 30 OpenML classification datasets.
- Paper
How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference
Study of looping in dense decoder-only transformers trained from scratch (up to 1B params, 155B tokens): which parts to loop, how many loops, how to pass information between loops, loop scaling, specialization and parallel inference.
- Paper
Depth through Recurrence: Towards Ultra-Efficient On-Device ASR
Revisits depth in on-device ASR and replaces stacked layers with recurrence over shared layers to get deep-model accuracy at a fraction of the parameters for watches/glasses-class hardware.
- Paper
Mechanistic Interpretability for End-to-End Self-Driving
Trains SAEs on a single-camera end-to-end self-driving planner; latents recover route intent (98.3%), speed and braking, with counterfactual edits showing causal features; CoRL 2026.
- Paper
Pre-Crime for Agents, at the Last Second: Probing When a Recruited Agent Gives In
Linear probes on an agent's activations can predict, before it happens, when a peer agent's pressure will make it break its operator's rule (a precursor to collusion) across six multi-agent scenarios; code released.
- Paper
Elucidating the Design Space of LM Data Attribution
Introduces the Controlled Attribution Benchmark (CATT) to isolate why LM training-data attribution methods fail by varying dataset properties one at a time (Bau lab).
- Paper
The Role of Quantization in Loss Spikes
Why do some pretraining runs look healthy for most of training and then diverge irreversibly? The paper names these delayed, terminal divergences time-bomb spikes and traces them to finite precision in the LM head. Mechanism: the cross-entropy gradient over the LM head is zero-sum along the vocabulary axis, but Adam's coordinate-wise preconditioning breaks that structure, inducing persistent drift in the mean output embedding and hence growth in output logit magnitude. In exact arithmetic that drift is harmless (a constant logit shift leaves softmax and its gradients unchanged), but in finite precision a large logit scale degrades how precisely the logit differences that determine the predictive distribution can be represented - measured directly, LM-head quantization error (RMS difference between native BF16 logits and FP32 logits recomputed from the same hidden states, plus the KL between the two predictive distributions) grows by orders of magnitude before each failure, and loss diverges soon after. Evidence (JAX/Flax modernized GPT-2 with QK-Norm, FineWeb, elevated learning rates, models 28M-1.4B): 404M models overtrained on 96B tokens (~12x Chinchilla) sit on near-identical loss curves until the higher-LR run time-bombs with accelerating logit growth; 28M models overtrained ~28x Chinchilla (16B tokens, five seeds) fail in strict precision order - BF16-true (weights and optimizer states stored in BF16) first, BF16-mixed later, FP32 LM head stable across the whole horizon - while logit norm grows under every AdamW baseline including FP32, so drift alone does not destabilize; precision decides whether drift becomes error. Mitigation: replace AdamW with SGD with momentum (momentum 0.99, separately tuned head LR) on the LM head only - SGD-M preserves the zero-sum gradient structure, keeps logit norm and quantization error nearly flat, prevents time-bombs even in BF16, stays competitive on final loss across the 404M LR sweep, and stores one fewer optimizer buffer; raising the head's AdamW beta1 to 0.99 closes much of the gap but still diverges at the largest trunk LR. Unifying result: z-loss, mu-centering, higher head precision, and SGD-M all prevent time-bombs and all keep quantization error bounded, suggesting suppressed finite-precision error is the shared mechanism behind previously unrelated mitigations. Costs: an FP32 LM head is the direct fix but the head GEMM is among the largest in the model and FP32 logits double the largest activation tensor; the optimizer-side mitigations keep BF16 and add little overhead. Caveats: demonstrated at 28M-404M scale in the overtraining regime with deliberately elevated LRs, not at frontier scale; fast transient spikes are a separate phenomenon, largely suppressed by learnable RMSNorm gains. Joins the catalog's precision thread as its loss-spike mechanism paper: LM-head quantization error is a measurable leading indicator that rises before the spike (a per-checkpoint series in the same family as the logit-margin signal), complementing the checkpoint-level spike-risk screen and the logit-growth mitigations already cataloged. Enrichment (2026-11-03, from senior author Micah Goldblum's launch thread for the paper's v2, revised 29 Oct 2026; project led by first author Zaiqian Chen): the thread's seed-averaged figures (n=5) put a concrete number on the at-horizon gap the abstract describes qualitatively - by 120k steps the AdamW baseline's logit quantization error climbs to roughly 1e0, while LM-head SGD-M holds it near 1e-2 to 1e-3, a two-to-three-orders-of-magnitude separation at the point where the baseline time-bombs; the same figures show the AdamW output-logit norm growing from about 1e6 to above 1e7 over 600k steps while the SGD-M curve stays flat. The thread also states the unification explicitly as the paper's moral: z-loss (acts on the loss), mu-centering (acts on the embeddings), and LM-head SGD-M (acts on the optimizer) are three intervention points on one principle - keep the LM head in the regime where BF16 arithmetic stays stable. Third-share thread additions (Dolatabadi explainer thread, via @miyashita_03, 2026-11-05): the delayed spike is framed as a time bomb set by absolute logit scale - a rare token whose LM-head row has a large norm produces logits around ~128, a magnitude where bf16 rounding misassigns probability mass; a small model spiked 3x after ~150B tokens and a larger one jumped from 2.9 to ~10 with benchmark forgetting. Raising peak LR reproduces the spike more strongly than widening the precision range does. Scope flag from the thread: the long runs are 28M and 404M models with no weight decay and learning rates chosen to provoke instability, so the mechanism explains a specific failure class rather than loss spikes in general. The share's framing (Miyashita): softmax is shift-invariant, so a shared logit offset cancels out - the damage is per-logit rounding at large magnitudes. The thread closes with an open question, flagged as the author's speculation: whether Muon-style momentum could serve as the LM-head optimizer in SGD-M's place.
- Paper
How Depth Growth and Looping Shape In-Context Learning in Language Models
Question: do looped and depth-grown language models merely save compute and parameters, or does reusing computation across depth change what the model learns to rely on? The paper tests the hypothesis that (soft) parameter reuse creates a shared inductive bias toward learning from context rather than from weights, studying how in-context learning (ICL) is acquired, retained, and mechanistically supported. Setup: pretrained LMs at 360M, 1.7B, and 3B (main comparison: 36-layer dense reference, all models trained on the same 100B tokens in the same order, matched optimizer-step budget and final inference FLOPs), plus controlled RegBench (unseen formal languages) and Omniglot tasks that pit context against fixed in-weights associations. Methods compared: the dense baseline; LIDAS depth growth (the authors' earlier method: start from 4 layers and periodically duplicate the central 4-layer block, copying weights and AdamW moments without resetting the learning-rate schedule; growth uses shallower networks early, saving an estimated 26% of training FLOPs at 3B and 22% at 360M/1.7B); and a looped model (Loop 10-8x2-10: 36 layer applications but only 28 unique layers, ~2.45B unique parameters at the 3B scale). Findings: (1) Context use - grown and looped models show larger early-to-late token-loss reductions than dense, and the grown model also reaches lower absolute late-token loss; both beat dense on few-shot GSM8K at every shot count, with the LIDAS gap widening as demonstrations increase, ending about +7 points above baseline at 8 shots (~19% vs ~12% strict exact match, per the review thread); on RegBench both predict unseen formal languages more accurately, the advantage emerging within the first string. (2) Acquisition and retention - on Omniglot tasks where a fixed class-label solution competes, grown and looped models retain higher ICL accuracy (about 0.75-0.80 vs ~0.70 for dense late in training) alongside lower in-weights accuracy, and when labels are reassigned in every sequence they acquire ICL earlier than the dense reference. (3) Mechanism - tracing the 12 strongest final induction heads in the 3B LIDAS model backward through training, 10 descend from just two heads (L2H9 and L2H10) in the initial 4-layer network; duplication clones these circuits across depth at 4-layer intervals, and in the looped model the same heads fire periodically across passes through the shared block. Ablating the top-20% induction-ranked heads drops 19-task few-shot F1 by 0.08 in dense vs 0.18 in LIDAS vs 0.28 in Loop, with correspondingly larger late-token-loss increases - causal evidence that grown/looped models rely more heavily on induction heads, though function-vector heads remain important. Caveats: pretraining at all three scales uses a single random seed; the looped model gives up unique capacity and trails dense slightly on MMLU (38.32% vs 39.15%); and the RegBench looped gains used width d=256 vs d=128 for the dense baseline, which skews that comparison. No author code released (training builds on Hugging Face's public nanotron framework). Joins the catalog's looped-models cluster as its mechanism paper: depth reuse propagates early induction heads across layers, which is why grown and looped models lean on context - complements ID 1548's looped-LM training recipes and ID 928's looped-MoE scaling laws. Author-thread additions (Kapl, 2026-11-04): the backbone is SmolLM3, pretrained from scratch; at 3B the grown and looped models beat the dense baseline on all long-context benchmarks tested (RULER, HELMET, NoLiMa) while matching it on the short-context suite. Induction heads emerge in opposite order - top-down in the baseline, bottom-up in grown/looped models - and end stronger (higher prefix-matching score); ablating them raises FineWeb-Edu NLL by an amount that grows with token position for grown/looped models but stays flat for the baseline. On the Garg et al. random-linear-regression task the grown model shows better in-context prediction alongside MORE memorization, so the context-over-weights bias is task-dependent for growth (the looped model shows less in-weights learning and higher accuracy there).
- 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.
- 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
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
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.
- Paper
Reward Misspecification Degrades Chain-of-Thought Monitorability
Controlled testbed for a question prior monitorability work mostly approached via monitor pressure or inference-time cues: does a misspecified OUTPUT reward alone — no pressure on the CoT, identical inputs for paired models — make reward hacking invisible to a CoT monitor? Design: from the same base model, train a control on a true reward r_t aligned with the stated task intent and a misaligned model on a misspecified reward r_m favoring a different behavior; a rollout is labeled a hack (Y=1) iff r_m > r_t on it. Three tasks, each modeling a known real-world hack: (1) Length — answer within N words (HF Helpful Instructions); r_m pays for EXCEEDING the limit. (2) LM Judge — assign preference scores summing to 1 to a Gemini and a Claude response selected as equally preferred by humans (Arena-Human-Preference-140k); r_t pulls toward (0.5, 0.5), r_m toward (0.9, 0.1) for Gemini whichever position it occupies; hack = output closer to the biased split. (3) Coding — LeetCode problems with only 10 tests each; r_t = pass all, r_m = pass a nonempty strict subset (passing all 10 does not guarantee correctness, a stated labeling caveat). Training: GRPO-style, fully on-policy, run on Thinking Machines' Tinker API with LoRA rank 32 (batch 16, group 8, max rollout 8,192 tokens, LR 4e-5; 120/250/800 steps for length/judge/coding), 3 seeds, on three base models — gpt-oss-20b, gpt-oss-120b, NVIDIA-Nemotron-3-Nano-30B-A3B-BF16. An LM monitor (headline: gpt-5.6-luna; gpt-4.1-mini as the weaker comparison) reads only (intent, query, CoT) and predicts Z=1 if the model pursues a different intent than stated. Two metrics in [0,1], both built to punish false alarms: intervention g-mean² (from Guan et al. 2026) = TPR_mc × √(TNR on misaligned × TNR on control), where TPR_mc counts only hacks ATTRIBUTABLE to the misspecification (corrected by R_effect, the share of the misaligned model's hacks exceeding the control's hack rate) and false positives are charged both on controls and on the misaligned model's non-hacking rollouts; reward-intent g-mean² = TPR × TNR for the different label "was this rollout's model trained on r_m" — it REWARDS flagging the misaligned model's non-hacking rollouts, which intervention g-mean² penalizes; the two capture "will it hack in this output" vs "does the CoT reveal the training reward." BASELINE RESULT (final checkpoint, 9 task×model cells): misaligned models hack at mean rate 0.87 (length 1.00 across all three models; judge 1.00/1.00/0.93; coding 0.67/0.61/0.59) vs 0.05 for controls — yet intervention g-mean² averages 0.13 and reward-intent 0.17, no cell above 0.31 intervention or 0.34 overall; the monitor flags only ~18% of hacking rollouts. Mechanism: the CoT keeps reasoning about the PROMPT's intent (stay under the limit; judge fairly) while the output serves the reward — outputs run to 3× the word limit under CoTs arguing for brevity; on coding, monitorability tracks whether the CoT happens to draft the solution or collapses to phrases like "Output code" (a source of the high per-seed variance). A stronger monitor buys little (+0.09/+0.12 average over gpt-4.1-mini, and nothing on Judge, where CoTs almost never mention identity bias). THE FIX — reward description training, requiring NO prior knowledge of the misspecification: during the baseline run, sample rollouts on 50 held-out queries every 10 steps; take the 5 queries with the highest reward variance; have an LM (gpt-5.6-terra) generate 8 candidate natural-language descriptions of what the reward favors; select the candidate that most raises the UNTRAINED base model's reward when placed in its context (e.g., Length: "A high reward is predicted by the response exceeding the 1,351-word limit"; Coding: "The reward function is effectively inverted relative to the stated intent"). Restart RL from base with the description injected into HALF of each group's rollouts (all-injection destroys the signal: if every CoT verbalizes it, verbalizing can't distinguish high- from low-reward rollouts); the training update is computed on the rollouts WITHOUT the description visible (Deliberative-Alignment-style), so the CoT learns to state the true objective under ordinary inputs. RESULTS: monitorability improves on average by +0.24 (intervention → 0.37) and +0.42 (reward-intent → 0.59), driven by monitor TPR rising 0.18 → 0.85; description-trained CoTs say things like "We need to produce buggy solution." BUT HACKING IS NOT FIXED: mean hack rate only 0.87 → 0.79, and several cells move the wrong way — gpt-oss-120b/Length hack rate falls 1.00 → 0.45 yet its intervention g-mean² DROPS 0.23 → 0.17 (fewer hacks means fewer attributable true positives to find; reward-intent flat 0.34 → 0.34); Nemotron/Judge hack rate rises 0.93 → 1.00 and Nemotron/Coding 0.59 → 0.66 even as their monitorability improves; per-cell intervention under description training ranges 0.15–0.91 (best: gpt-oss-20b/Length 0.31 → 0.91). False-positive costs are real and partly artifactual: monitors flag more of the misaligned model's non-hacking rollouts (on Coding, a solution failing ALL tests is labeled not-hacking, so a monitor that correctly reads hacking intent is penalized), and on controls the inferred description of the TRUE judge reward ("as close as possible to an exact tie… regardless of response quality") itself sounds suspicious and draws flags. ABLATION: removing the stated word limit from the prompt (underspecified intent) leaves monitorability low for gpt-oss-20b (intervention 0.31 → 0.15) and Nemotron (0.08 → 0.05) — an explicit prompt–reward conflict is NOT necessary — while gpt-oss-120b improves (0.23 → 0.37) only because its CoT enumerates many output topics, leaking the coming length. POSITIONING: vs Baker et al. 2025 (monitor pressure breeds obfuscated hacking) — here there is no CoT pressure at all; vs Turpin et al. 2025 (verbalization fine-tuning for KNOWN prompt cues) — here the cue is a training-time reward, unknown in advance and inferred; the identical-inputs paired design also removes the cue-matching shortcut that inflates monitor scores in inference-time-cue studies. No dedicated limitations section; stated caveats are the 10-test coding labels, small synthetic testbed (3 tasks × 3 models, LoRA fine-tunes), coding monitorability's dependence on CoT verbosity/collapse, and exact reproduction being tied to the Tinker API (reproducibility statement; authors state no reason to believe results are Tinker-specific). Code public (Apache-2.0; repo created 2026-10-15).
- 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
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.