Explore the research collection
384 entries · showing 25–48 · Follow this search
- Paper
LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers
LoopKV compresses per-loop KV caches when serving looped transformers like Ouro by allocating quantization precision to each layer's sensitivity at each loop, raising servable batch size.
- Paper
Iterated Narrow Networks: Turing Completeness at Width 4 on Convex Input Spaces and the Complexity of Verification
Proves that iterating a single fixed width-4 ReLU network (equivalently a weight-tied/recurrent net) is Turing complete on convex input spaces, and analyzes the complexity of verifying such iterated systems (NeurIPS 2026).
- 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
A Circuit for In-Context Learning
A complete, causally traced circuit for in-context learning in its cleanest setting: few-shot sentence classification with ARBITRARY labels, where the label mapping cannot have been memorized, so the learning must happen inside a single forward pass. Studied in three 3-4B-parameter transformers. The composition: the model builds a key-value memory over the label-token positions. Each label token's residual stream encodes the label's identity (the value), and middle-layer attention heads write into that position the class of the preceding demonstration (the key) - induction-head-style binding, but storing class rather than token identity. At the query, upper-layer reader heads match the query's class representation against the stored keys and copy out the label attached to the matching key. Two control components complete the circuit: an early-layer signal encoding whether any label has REPEATED anywhere in the prompt gates the readout - without it, the reader heads attend to the start of the prompt and no label is favored, so the lookup only fires once the prompt actually contains a repeated-label structure to look up - and a separate set of heads suppresses the most recently seen label, countering a pure recency/copy bias. Every step is established causally, not correlationally: activation patching, head ablations benchmarked against random-head baselines, and steering with the model's own signals; and a softmax model of the readout with just two fitted constants per head, fit on one prompt distribution, predicts behavior on a different distribution. Generality claims: the computation is conserved across all three models; the named heads alone reproduce the behavior; a transformer trained from scratch grows the same parts (the circuit is an attractor of training, not an artifact of one checkpoint); it transfers from arbitrary labels to semantic concepts and labels with meaning; and within one model family the same parts with the causal gate appear from 0.6B to 8B parameters and survive instruction tuning. Caveats: abstract-level evidence; the setting is few-shot classification - the most lookup-like form of ICL - and says nothing directly about many-shot, regression-style, or open-ended generative ICL; the three main models are not named in the abstract. Catalog placement: the mechanism counterpart to ID 1765 (LIDAS), which argued grown/looped models share a context-over-weights inductive bias rooted in induction heads - this paper shows what a mature version of that bias looks like as an explicit circuit: bind demonstrations into a key-value store in the residual stream, gate the lookup on prompt structure, and read by class match. The gating signal is also the architecturally interesting part: the model checks a global prompt property (has any label repeated?) before trusting its own associative memory.
- Paper
Phases of Muon: When Muon Eclipses SignSGD
An exactly solvable theory of when Muon beats its Adam-like baseline - with a phase diagram, not a blanket verdict. Setup: stochastic Muon (orthogonalize an EMA of minibatch gradients via Newton-Schulz) vs stochastic SignSGD on a high-dimensional matrix-valued least-squares problem whose per-sample gradients are rank-one outer products, mimicking a linear layer under backprop; as dimension and batch grow the loss dynamics become deterministic and the derived theory tracks simulations. Two data knobs organize everything: the covariance spectrum decays as a power law with exponent alpha (large alpha = steep spectrum, effectively low-rank data), and the target's loss in direction i decays with exponent zeta (large zeta = easy target, little loss in the hard small-eigenvalue directions). PHASES: Muon is favored for steep spectra with rich/hard targets (alpha > 2 and zeta < alpha + 1); SignSGD is favored for flat spectra (alpha < 1) and for easy targets generally; in the middle region the winner flips with the accuracy demanded - SignSGD reaches mediocre solutions first, Muon wins late at low loss; elsewhere the winner depends on how target loss scales with dimension. MECHANISM: Muon performs only a SQUARE-ROOT preconditioning in the data spectrum, not a full inverse - small directions get boosted by roughly sqrt(N/B_eff), and that half-strength boost is exactly right when the target loads loss onto hard directions, but over-boosts them for easy targets, where SignSGD's no-preconditioning wins. BATCH: everything runs through the effective batch B_eff = B(1+beta)/(1-beta) - momentum multiplies the effective batch - because Muon can only whiten directions the batch actually spans (batch rank ~ B_eff); with exact whitening and small B_eff it fails to resolve small eigenmodes and slows down, a transition SignSGD does not have. Muon's optimal learning rates are larger than SignSGD's and are derived exactly in the isotropic case, with a sqrt(N) gap at beta = 0.9 unless the batch grows. A practically relevant bonus: finite Newton-Schulz (NS-5) acts as a RIDGE on small singular values, which can help - Muon's speedup over SignSGD peaks around 1.13x at small B_eff/N and 1.46x at large B_eff/N, and in the large-batch regime the inexact NS-5 iteration BEATS the exact polar decomposition. In the isotropic setting the two optimizers' convergence rates match up to a constant factor once each uses its own optimal LR. Scope: this is a least-squares surrogate with rank-one gradients - a theory of the optimization geometry, not an LM experiment; the SignSGD baseline stands in for Adam (no second-moment adaptivity), and the data spectrum of real gradient covariances is an empirical question the paper does not measure. Proofs are accompanied by a Lean 4 formalization (project page: mlexpos.github.io/phases-of-muon). In the catalog's Muon thread this is the theoretical member, complementary to ID 1809's empirical fine-tuning reversal: 1809 says the Muon-vs-AdamW ranking flips with pretraining data scale AFTER fine-tuning; this says the ranking during optimization itself is a function of data spectrum and target hardness - both argue 'Muon vs Adam' has no data-free answer, and this one names the data property that decides it.
- 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
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
bf16 Rounding Silently Discards Most RL Policy Updates: A Hidden Training-Inference Mismatch and an Unbiased One-Line Fix
RL post-training keeps fp32 master weights in the optimizer and serves rollouts from a bf16 copy made by round-to-nearest conversion - the export rule in every open-source framework the authors examined (verl, TRL, OpenRLHF, slime, prime-rl, AReaL). Near a weight of magnitude |w| the bf16 grid spacing is u ~ |w|/128, so round-to-nearest discards any update smaller than u/2 ~ |w|/256; at common RL learning rates (eta ~ 1e-6) almost every update is that small. Measured on Qwen3-1.7B: only 0.4-0.5% of served weights change per optimizer step (0.13% at eta = 3e-7), a weight crosses a rounding boundary only every ~50-200 steps, and under a decaying LR schedule the sampler effectively freezes while the optimizer keeps moving - the data-generating policy lags the optimizer by 50-150 steps. Muon is worse: its per-element updates are nearly uniform in magnitude, so at eta = 1e-6 almost none cross a boundary. The mismatch is invisible to existing corrections (PPO clipping, truncated importance sampling, IcePop) because the ratio they form compares the trainer's bf16 forward pass with the sampler, and both sit downstream of the same rounding: the visible per-token |log rho| stays ~0.01 all training while the hidden master-versus-served ratio - never formed by any framework - grows to 0.10-0.16 on MATH and ~0.45 on knights-and-knaves, with per-token effective sample size between master and served policy falling to 0.2-0.35 on 2,000-token tasks. Fix (Fair Cast): export with an unbiased rounding rule - stochastic rounding (E[q] = theta exactly) or error feedback (a sigma-delta-style residual keeping accumulated export error bounded by u) - AND compute the training loss on the served copy; both halves are necessary, either alone fails. One line at the export call, no hyperparameters, 22-38 ms per export of 1.7B parameters. Results across 25 matched seed-pairs (Qwen3-0.6B to 4B, AdamW and Muon, GRPO on logic/game/math/code tasks): Fair Cast ahead on 18, tied on 6, behind on 1, mean gain 6.1 points; zebra puzzles 0.57 +/- 0.16 over four runs vs round-to-nearest collapsing to 0.33 +/- 0.10; on knights-and-knaves the round-to-nearest sampler stays frozen for the first ~20 steps (0.12 -> 0.15 -> 0.22) where Fair Cast moves immediately (0.12 -> 0.51 -> 0.79), and a single optimizer step moves an fp32 sampler 0.17 -> 0.84 while the bf16 round-to-nearest sampler stays at 0.19 across three steps. Two further findings: under round-to-nearest the saved fp32 checkpoint can score 12-50 points BELOW its own served export (the checkpoint is not the model; any finer export inherits the gap), and the round-to-nearest lag is an uncontrolled low-pass filter on the served policy that acts as a regularizer - exporting an EMA of the master with the same unbiased rounding restores it as a single explicit knob and surpasses round-to-nearest on the one task where the filter helps. Relation to prior diagnostics: Dirhoussi, Gallouedec et al. derived the same dead-zone threshold and PULSE measured the resulting update sparsity, but both treated it as a communication artefact and made the trainer agree with the stale sampler; this paper instead makes the served copy track the master and trains on the served copy. Code and full training harness public (MIT). Joins the precision thread and the train-inference-mismatch cluster (IDs 1588/1589): it identifies a mismatch upstream of every correction in that cluster, since they all compare copies downstream of the rounding.
- Paper
KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise
KV-cache patching from a LoRA-fine-tuned model into its base model to trace whether fine-tuned behaviors arise during answer generation or through altered processing of earlier tokens via attention.
- Paper
Locating Sycophancy Across Training Stages in Open Language Models
Measures sycophancy at every stage of 13 open checkpoints across 5 lineages (base, SFT, preference optimization, release) to locate where it arises, separating claim-induced answer shift from answer confidence.
- Paper
UpLoop: Training Looped Transformers via Upcycling at No Extra Pretraining Compute
UpLoop trains looped transformers by upcycling: start shallow and progressively grow into a looped model while exactly matching a dense baseline's final params, tokens and training FLOPs.
- Paper
Deeper Backpropagation or More Updates? Training Looped Language Models Across Budgets
Studies how many final loop repetitions should keep gradients (the backward window) when training looped LMs, comparing deeper backprop vs more updates across training budgets.
- Paper
Think Twice: The Metis-1.6 Technical Report
Single-researcher tech report for Metis-1.6 (Praxis 2.94B/0.46B active, Logos 10.23B/1.18B active): hybrid Mamba-2 + attention MoE stacks run twice per token, trained on 1.02T tokens; models and benchmark data on HF (Lernex).
- 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
When Steering Shifts Discourse: Identifying and Intervening on Discourse-Level Changes due to Activation Steering in LLMs
Shows activation steering causes systematic discourse-level side effects beyond intended behavior change, and proposes ways to identify and intervene on them.
- Paper
One Vector or Many? Clustered Optimal-Transport Steering under Quantization
Compares single difference-of-means steering vectors with clustered optimal-transport steering (CHaRS) and how both behave under model quantization.
- Paper
From Error Prediction to Causal Influence: Auditing SAE Features in Multiple-Choice QA
Audits Gemma Scope SAE features that predict errors in multiple-choice QA on Gemma 3 1B/4B, separating merely predictive features from those with causal influence on the answer logit margin.
- Paper
ParaTTT: Parallelizing Test-Time Training Layers with Deep Memories
Test-time training (TTT) layers make a recurrent model's memory a small neural network trained online by gradient descent - more expressive than the linear fast-weight memories of Gated DeltaNet and Mamba-2, whose updates are a single delta-rule step. The cost: a nonlinear memory's gradient at each token must be evaluated at weights produced by every earlier update, a sequential dependency. TTT-MLP and Titans break it with block-wise evaluation (gradients for a whole block computed at the block-entry weights), which only approximates token-by-token learning and still runs several times slower than chunkwise-parallel linear recurrences. ParaTTT (PTTT) instead parallelizes arbitrarily deep nonlinear memories by iteratively refining an estimate of the inner-loop gradient trajectory: each refinement is three chunkwise-parallel passes (a forward pass building the feature trajectory implied by the current gradient estimate, an exact gated-delta-rule pass computing the readout trajectory and its feature gradients, and a backward pass producing a new estimate), each pass itself a composition of existing parallel linear-recurrence kernels. The exact online gradient-descent recurrence is a fixed point of the iteration; geometric convergence is proven for a two-layer variant under contraction conditions. Decoding needs no iterations - it runs the exact recurrence. Convergence in practice: on trained models, top-1 agreement with the exact recurrence is ~60% with no iteration, ~90% at N=1, ~94% at N=2, saturating near 98% (the bf16 noise floor); at 4K context, N=2 matches the output error of TTT-MLP's block approximation (b~5) in 32x less time. Speed: a ParaTTT layer at N=2 costs 4.7x a Gated DeltaNet layer and the model keeps roughly one-third the throughput of the linear baselines, but trains 4.9x faster than TTT-MLP end-to-end (37.9k vs 7.8k tokens/s per 8xMI325X node at 340M); TTT-MLP's block form is 5.5x slower per layer at 4K and 8.5x at 16K. Quality (24-layer backbones, SlimPajama, same recipe/order/seed; memory = one hidden layer of width = head dimension, with hidden-layer delta rule and centered readout): at 340M/15.7B tokens, ParaTTT has the best perplexity of the recurrent models (WikiText-103 25.46 vs GDN 26.57, Mamba-2 26.99, TTT-MLP 26.12; Transformer 25.34) and by far the best LAMBADA (26.93 vs 29.66/45.87/40.35; Transformer 39.25), with recall well above the linear recurrences (SWDE 41.9 vs 32.5/25.8; FDA 20.3 vs 17.8/5.7) and the best 32K needle-in-a-haystack of any model tested (16.0, Transformer 10.5). At 1.3B/100B tokens it again leads the recurrences on perplexity (Wiki 15.21, LAMBADA 9.00 - best overall) and recall (SWDE 62.8 vs GDN 59.0, Mamba-2 56.7), though softmax attention still wins most recall and long-context metrics at this scale (SWDE 75.3, NIAH 78.1 at 4K vs 53.8). Caveats: the convergence guarantee covers only the two-layer variant under sufficient contraction conditions; models adapt to their training iteration count (best near training N; training at N=5 improves all four recall tasks but worsens LAMBADA 26.93->28.44 and collapses 32K NIAH 16.0->5.8); the LaCT comparison strips LaCT's sliding-window attention branch, which the authors note prior TTT layers rely on; code repo is a placeholder ('Code to come'). For the fast-weight thread: this is the parallelization fix that makes deep nonlinear memories trainable at linear-recurrence-like cost structure - a per-layer cost of ~4.7x Gated DeltaNet buys the best recurrent recall in the comparison, with exact (iteration-free) decoding.
- 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
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
MoRE: Mixture of Reused Experts
Standard MoE gives every layer its own siloed expert pool, so total parameters grow linearly with experts while each layer's router can only pick from its local C(N,K) combinations, and adjacent layers independently learn redundant experts. MoRE (Mixture of Reused Experts) shares expert pools across groups of adjacent layers ("reuse blocks"): with reuse factor R=2, two adjacent layers draw from one shared pool of 2N experts, each keeping its own router, so the per-layer routing space grows combinatorially (N=32, K=4: C(32,4)=35,960 → C(64,4)=635,376, ~18x) with zero added parameters, and a token can be routed to the SAME expert at consecutive depths — structurally impossible in standard MoE. Only FFN expert parameters are tied; attention, routers, and a lightweight learnable depth embedding (added to the input before routing, so shared experts can condition on which layer called them) stay layer-specific. Implementation is weight tying plus one depth vector per layer on stock Hugging Face models. Experiments deliberately follow the MoEUT small-scale architecture-comparison protocol: DeepSeek-v3-style backbone, ~6.55B tokens of C4, context 1024, batch 64, 8k vocab, three scales (114M / 369M / 1.15B) matched on total parameters and forward FLOPs against standard MoE (DeepSeek), a FLOPs-matched Dense baseline, and MoEUT. Results: MoRE has the lowest validation perplexity at every scale — at 1.15B, 11.75 vs DeepSeek 11.88, MoEUT 12.78, Dense 13.07 (Small: 15.89 vs 15.98); downstream average (OLMo3 suite via lm-eval-harness, 5-shot, six above-chance benchmarks reported) at 1.15B is 48.12% vs DeepSeek 47.05%, MoEUT 44.42%, Dense 44.25%, with the largest gains on LAMBADA/HellaSwag/SciQ. Significance is by paired bootstrapping (B=10,000, alpha=0.05) on the evaluations. Ablations at 114M / 40k steps: every reuse factor R=2..18 beats the baseline with no significant differences among R values (R=2 adopted as the modest default); removing the depth embedding costs 18.71 → 18.76 PPL; the sharing ARRANGEMENT is the active ingredient — block (adjacent) sharing 18.71 beats non-aligned 18.82 and random sharing 18.83 (random ≈ baseline), consistent with CKA representation similarity decaying with layer distance (0.91 at distance 1). Routing analysis at 1.15B: tokens select the same expert at both layers of a reuse block at a 10.3% average rate vs a 5.0% uniform-random baseline (K/N = 7/139), concentrated in early layers and diminishing with depth. Generalization: MoRE applied unchanged to Qwen3MoE and Mixtral and to FineWeb (up to 114M) gives consistent small PPL gains (e.g. FineWeb 114M: DeepSeek 16.00 → 15.93, Qwen3MoE 16.11 → 16.06). Systems at 1.15B on 4x H100: memory roughly matches DeepSeek (48.76 vs 47.17 GB peak); naive HF routing loop slows MoRE (2x experts per layer), but with SonicMoE it reaches ~96% of DeepSeek throughput (142,504 vs 148,753 tok/s). Concurrent work noted by the authors: ReXMoE (adjacent-layer candidate pools with progressive routing) and MoUE (one layer-agnostic universal expert pool) — cross-layer expert reuse is an active direction; MoRE is the minimal-change variant.