Explore the research collection
132 entries · showing 1–24 · Follow this search
- Paper
BasinKV: Bounded-VRAM Sparse KV-Cache Serving for llama.cpp, SGLang, and vLLM
BasinKV (Zellige; github.com/zellige-ai/basinkv, Apache-2.0, released Dec 1 2026) is an open-source implementation and extension of the OasisKV lookahead-prefetch architecture (Xiao, Cho, et al., arXiv 2608.08097 - summarized here, not separately cataloged). It serves long contexts with bounded VRAM by capping each full-attention head at a fixed GPU working set (W = 2,048 tokens by default: sink blocks, retrieved sparse blocks, and a local ring, in static-shaped pages so stock FlashAttention/FlashInfer kernels and full-model CUDA graphs run unmodified), keeping the full KV history in pinned host RAM or on NVMe, scoring evicted blocks on the GPU, and prefetching needed blocks over PCIe while earlier layers compute. No retraining and no weight changes. Two precision tiers: the quality default is INT8 host KV with a Quest INT8 block index whose partial-RoPE radius weight alpha = 0.25 down-weights the non-rotary box radius (on Qwen3.8-27B, D = 256 with 64 RoPE + 192 NoPE dims, that radius averages 2.70x the midpoint magnitude; alpha = 0.25 raises per-step Top-8 recall from 29.9% unweighted and 82.5% at alpha = 0.5 to 95.5%, and restores 128K RULER from 0/5 to 5/5); the high-compression tier pairs WHT-INT4 host KV (1.97x smaller than INT8, 3.88x vs BF16, under 0.5% decode-speed cost) with a SphereIndex of WHT-rotated INT4 centroids (7.53x smaller GPU index than BF16 min/max). A successor co-fetch propagates each block's score one hop forward so cues straddling a block boundary fetch both halves, and content-addressed prefix caches persist in RAM/NVMe including hybrid recurrent state. Project-reported benchmarks (first-party, single-user llama.cpp decode unless noted): Qwen3.6-35B-A3B Q4_K_M at 256K on a 24 GB L4 runs at 67.12 tok/s with 84.8 MiB of GPU KV+index where stock llama.cpp OOMs from 64K, with live passkeys passing at 64K and 203K; on A100-80GB the same model goes 95.01 to 141.12 tok/s (1.49x) with 96.2% retrieval at 240K; Qwen3-8B at 128K goes 54.28 to 124.29 tok/s (2.29x); Gemma 4 E4B at 128K on L4 goes 31.69 to 61.46 tok/s (1.94x). Gains shrink where the baseline already fits comfortably: gpt-oss 20B 1.02-1.20x, and Inkling 2 Mini (looped + SWA) only 1.08x at 64K - most of its attention is already windowed. In SGLang, Qwen3.8-27B at batch 16 x 64K (1.02M tokens) runs 581.4 tok/s with native MTP on one A100 where stock OOMs with MTP. Limits stated in the repo: MLA models (DeepSeek-V3/R1, GLM-5, Kimi K2) are rejected at init on all engines; the vLLM integration's zero-fork mode is prefix caching only (sparse decode needs upstream hooks) and rejects recurrent hybrids today; quality evidence is passkey/RULER retrieval and short-output parity, not long-form generation quality. Flags: the repo is one day old at cataloging (14 commits) and every benchmark is the project's own. Cross-references: the serving-side member of the KV-cache thread, alongside training-free block-sparse attention (Factorized Context Attention, ID 1896); the Quest alpha detail - down-weighting NoPE dims in block scoring - is the transferable nugget for partial-RoPE hybrids.
- Paper
DR Tulu 2: Scaling Simulated Environments for Deep Research Agents
Chen, Faria, Zhuo, Shao, Gupta, Jiang, Zettlemoyer, Koh, Smith, Brahman, Dasigi & Asai (Ai2), 'DR Tulu 2: Scaling Simulated Environments for Deep Research Agents' (released Dec 1 2026; code Apache-2.0 at github.com/allenai/dr-tulu2; model allenai/DR-Tulu2-4B on Hugging Face; paper at allenai.org/papers/dr-tulu2). An open 4B deep research agent trained entirely in simulated search environments with the DR-Anything framework: for each training task the framework constructs both a research question and a searchable collection of documents, and the agent issues queries, opens documents, and refines its search over many steps. Serving the collection locally (BM25 indexes over General Web, Finance, and Science corpora, all released on Hugging Face) makes RL rollouts scalable without per-query API costs or external rate limits. Training is a three-stage checkpoint sequence from Qwen3.5-4B: a BrowseComp stage on the General Web corpus (step 400), then SEC100 on Finance (step 200), then Science100 on Science (step 100) as the final checkpoint; the stack is Prime-RL with a Verifiers environment and vLLM serving. Ai2's headline claim (first-party): across 10 benchmarks DR Tulu 2 beats Tongyi DeepResearch with a page summarizer by 9.7 points on average, and the release reports live-web accuracy after purely simulated training - the sim-to-live transfer is the load-bearing claim. Evaluation covers BrowseComp-Plus with GPT-4.1 grading, plus live-web runs via Serper/Jina. Cross-references: the environment-construction member of the agent-RL thread - simulated, locally served search environments as the scalable alternative to live-API rollouts; the post-training counterpart to Search-Native Pretraining (ID 1902, search taught in pretraining); v1's training data is in the catalog as datasets (dr-tulu-rl-data, dr-tulu-sft-data).
- Paper
Post-Training Gemini 4 for Real Engineering Work
Melvin Johnson (VP, Gemini post-training lead, Google DeepMind), 'Post-Training Gemini 4 for Real Engineering Work' (AI Engineer Code Summit, Nov 12 2026; video on YouTube). The talk's core claim: the post-training bottleneck is now task supply, not compute - easy tasks give zero RL signal, because when every rollout on a prompt is correct there is no variance and hence no gradient, and the share of learnable prompts shrinks continuously across successive model iterations. DeepMind's response is a four-step loop run continuously: source hard tasks, grade them like an experienced reviewer, run large-scale RL, then dogfood candidate models with Google's 100,000+ internal engineers (blind comparisons, experimental routing in Antigravity) and feed their failures back as next-generation tasks. Task sourcing: prune 100%-solved single-file tasks; mine real commits and diffs from multi-file repositories and Google's production codebase (production-mined diffs average ~20x the diff size of SWE-bench Verified); build-from-scratch tasks from an empty folder and a written spec; thousands of open-ended tasks graded without pre-existing unit tests. Grading: binary unit tests replaced by multi-criteria rubrics auto-generated from landed PRs (pr_rubric.yaml - root cause, edge cases, scope hygiene, verification), explicitly penalizing 'passing slop'; because agents trained to pass tests bypass checkers and fake evidence, evaluation environments are isolated (git history and remotes removed so answers cannot leak). Honesty: helpfulness is named as a driver of fabrication; models are trained to ground final claims in the actions actually taken and to report partial progress rather than fake completion - fabrication on a hard internal engineering eval fell from 8% (baseline) to ~3% (Hydrogen) to ~1.5% (Carbon), with zero as the stated goal. Context claims: AI now writes ~75% of Google's new code; the attached slide puts Gemini 4 Hydrogen at 57% on Terminal-Bench 4.0 (up from 19.1% for 3.8 Flash) and 2.5x faster than competing models in its class. Flags, as entered: first-party talk, all numbers Google-reported and internal where noted; cataloged from the talk video plus transcript/secondary coverage - the sharing thread's later posts were not read. For the user: a frontier lab's production post-training recipe - the saturation-pruning rule (a prompt with no rollout variance carries no signal) and the rubric-over-unit-test grading design transfer directly to his RL environment and data work, and the fabrication thread pairs with IDs 1806/1861 and the staged Wen entry (slot 32) on grader-shaped dishonesty.
- Paper
Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training
Zhang et al. (arXiv 2611.27376, Nov 20 2026, CC BY 4.0) solve the continual post-training consolidation problem without touching the backbone. RL post-training produces domain experts that must be consolidated into one model, and as new experts keep arriving the consolidation becomes continual - but weight merging and multi-teacher on-policy distillation (MOPD) must re-consolidate the whole model whenever an expert is added, and can erode capabilities outside the target domains. Composable Soft-Prompt Distillation (CSPD) keeps the pre-RL model frozen, distills each RL expert independently into a soft prompt, and composes experts by concatenating their prompts with no joint training. A single soft prompt recovers at least 90% of the teacher's gain in 22 of 23 math, code, and agent settings. Independently trained prompts compose well: in a multi-expert setting the average rises with every expert added, and the full composition matches MOPD (67.83 vs 67.79) while generalizing best across six held-out benchmarks. Input-space adaptation adds little serving overhead: throughput within 1.5% of the unadapted backbone and 2.40x that of rank-4 LoRA. Flags, as entered: abstract-level at cataloging, authors' own numbers; code/release status not confirmed from the arXiv record. Cross-references: the consolidation alternative to MOPD (ID 1534) and to the Base Labs OPSD critique (staged slot 2) - CSPD sidesteps both by never merging weights; retention counterpart to ID 1762 (Unified Training) and staged Deletion Tuning (slot 13), all three answering 'how do I keep adding capabilities without losing old ones' from different directions (data mixture, weight deletion, frozen backbone + soft prompts). For the user's stack, the transferable idea is continual post-training on a fixed backbone: each new RL expert becomes a composable soft prompt instead of another consolidation run, directly relevant to his pretraining/post-training split and to Model Axes' need to keep adding evals without re-consolidating.
- Paper
Classical Energies Learn to Reason 1,000x Faster than Looped Models
Hoover, Blayney & Whittington (Prefrontal AI; arXiv 2611.17309, Nov 12 2026, CC BY 4.0) replace looped reasoning with descent on a learned energy: CRAM (Compact Reasoning Associative Memory), a trainable version of Hopfield & Tank's 1985 energy. Training needs no backprop-through-time - pull the energy of data samples down, push it up everywhere else - which is where the speed comes from. CRAM solves 99.996% of Sudoku-Extreme and 100% of Maze-Unique test puzzles after 42 ms and 132 ms of training on one GPU, at least 1,000x faster than looped models on these tasks (fit-time chart: CRAM 42 ms vs HRM 1.2 h, EqR 2.0 h, TRM 2.5 h, EBR 2.8 h, FRM 2.9 h, GRAM 3.2 h, TRMP 9.0 h), and matches looped models' best accuracy on Sudoku-Extreme with at least 282x fewer inference FLOPs. It is also far more data-efficient: ~98-100% Sudoku-Extreme accuracy from 30 training puzzles vs 700+ for looped models - learning constraints is easier than learning reasoning trajectories. The energy itself gives built-in early stopping and compute that adapts to problem difficulty, and the learned weights are interpretable (they learn the puzzle's constraints). The paper's second, sharper point is a caution: hand-set CRAM energies with at most 3 parameters solve all four tested benchmarks, so Sudoku and Maze are too trivial to test the scalability of looped reasoning - the field needs a better suite of basic reasoning tasks. One limit: Maze-Hard (choose 1 of many shortest paths) is not solvable by CRAM's energy alone, but a hidden layer of neurons with 11 learnable parameters reaches ~100% (+10% over any looped model). Flags, as entered: first-party (Prefrontal AI); all headline numbers are on Sudoku/Maze toy benchmarks, abstract-level at cataloging; the thread's '100.00% Sudoku-Extreme' rounds the abstract's 99.996%. Cross-references: the looped cluster (IDs 670, 938, 952, 1545, 1548, 1549, 1551, 1563, 1566, 1579, 1765, 1808, 1820, staged Ouro and ARLoop) - CRAM is the strongest 'maybe don't loop at all' challenge to it, and its hand-set-3-parameters result is the cleanest evidence yet that the looped benchmarks are saturated; the energy-descent framing (x <- x - alpha grad E) is a cousin of the optimizer-as-update view in ID 1765/OperLoop territory; for the user's 250M stack, the transferable idea is energy-based early stopping / difficulty-adaptive compute, not the toy puzzles themselves.
- Paper
No Second Run: Does RSI Stop at Frontier Pre-training?
Cai et al. (arXiv 2611.10719, Nov 7 2026, CC BY 4.0) ask whether recursive self-improvement (RSI) stops at frontier pre-training - and answer that it changes form. Public RSI work so far has targeted POST-training: start from an existing base, run GPU-hour-scale trials, get verifiable scores. Pre-training breaks all three conditions: a run consumes hundreds of thousands of GPU-hours over months and CANNOT be repeated (hence 'no second run'); its objective, post-training headroom, cannot be read off any single score; and what must improve is not a model but the whole production system - data pipelines, training infrastructure, the teams running them. Since no end-to-end loop can close over a single unrepeatable run, they decompose RSI into SMALLER LOOPS that can close, each repairing a step the full run breaks. The artifact is 801-30B-A3B-Base, a 30B-A3B MoE trained from scratch on 11.8T tokens in three months by a newly formed team, released open-source along with the lightweight SFT data. As a base model it outperforms Qwen3-30B-A3B and Nemotron-3.5-Lightning-30B-A3B and trails only the larger Qwen3.5-35B-A3B, keeping that position under identical SFT; with lightweight SFT alone (6B tokens, NO RL) it achieves the highest average on four agentic benchmarks against fully post-trained models, including Qwen3.6-35B-A3B. Flags, as entered: abstract-level record at cataloging time - the headline comparisons are the authors' own and the internal architecture/recipe details and the decomposed loop inventory live in the full text; the authors claim to be the first to apply RSI to an entire frontier pre-training run and report it in detail. Cross-references: the RSI thread - this is the pretraining-scale counterpart to Mirendil's mission (recursive self-improvement / automating AI R&D), to the staged doubleAI entry (self-redesign during training, small-scale experiments) and to Hedra's Model Factory (the loop as a service); it is the first detailed field report of RSI inside a frontier run, at 30B/11.8T, rather than as a post-training loop or a lab-platform announcement. For the user's own 250M training, the transferable idea is the decomposition itself - improving the training SYSTEM through closable sub-loops (data, infra, eval probes) is the pretraining-scale analogue of the same loop, not a claim that his run can be restarted.
- Paper
LittleBit: Ultra Low-Bit Quantization via Latent Factorization
LittleBit (Lee, Kim, You & Kim; arXiv 2506.13771, May 2025, v5 Feb 2026, CC BY-NC-ND 4.0) pushes weight quantization into the extreme sub-1-bit regime: as low as 0.1 bits per weight, a ~31x memory reduction that compresses Llama2-13B to under 0.9 GB. Instead of quantizing weights directly, it represents each weight matrix by a LOW-RANK LATENT FACTORIZATION and binarizes the resulting factors. To counter the information loss at such precision, a multi-scale compensation mechanism learns importance parameters across the row, column and latent dimensions. Two pieces make training work: Dual Sign-Value-Independent Decomposition (Dual-SVID), which initializes the quantization-aware training, and Residual Compensation, which minimizes the factorization's approximation error. Headline claim: at 0.1 BPW on Llama2-7B, LittleBit surpasses leading techniques operating at 0.7 BPW, and the authors project up to an 11.6x inference speedup versus FP16; code is public. Flags, as entered: abstract-level record at cataloging time; the evidence is Llama2-era 7B/13B models, the cross-method comparison is the authors' own, and the speedup is stated as potential rather than measured end-to-end; unlike calibration-free PTQ, LittleBit is a quantization-AWARE TRAINING method, so its costs include a training run. Cross-references: the catalog's quantization thread, at the opposite design pole from the SINQ/BeeLlama entry staged the same day - SINQ keeps 2-8 bit weights and removes calibration; LittleBit removes the bits themselves (down to a tenth of a bit) and pays with factorization plus training. Both treat the weight matrix's row/column scale structure as the thing to model explicitly.
- Paper
LoopVQ: Sub 1-bit KV Cache Quantization for Looped Transformers
LoopVQ applies sub-1-bit vector quantization to the KV cache of looped transformers, exploiting redundancy across loop steps so cache memory no longer grows linearly with loop count.
- 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
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
There Is No Free Loop: When Does Looping a Trained Model Pay for Its Inference Compute?
Asks whether adding a loop to an already trained model pays for its roughly (N+m)/N per-token inference cost, comparing a post-hoc looped model against two simple baselines.
- 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
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
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
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
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
Don't Stop Long-Context Continual Pre-Training Too Early: An Empirical Scaling Law
Asks how the benefits of long-context continual pre-training (LCCP — the stage after short-context pre-training that extends the window) scale with its token budget, and whether they can be predicted. Setup: five dense full-attention scales S1–S5 (non-embedding N = 31M–821M; total 165M–1.22B; S5 = 36 layers, hidden 1,536, GQA 24Q/2KV heads, vocab 130,560, attention sink enabled), all trained with Muon in bf16 on 16×H800. Short stage: 4K sequences, WSD schedule. LCCP stage: 32K sequences, RoPE base 10,000 → 500,000, LR starting at the 4K stage's terminal value, on a fixed 32K mixture of public + internally curated data (not fully released — exact replication impossible). Metric: LongPPL (Fang et al. 2025) — perplexity only on tokens a reference model (Llama-3.1-8B) predicts well with full context but badly with a 4K chunk (only 1.42% of tokens on 10K GovReport 32K documents); ShortPPL is the matched local-token control. (1) THE LAW: an additive Chinchilla-style power law with short-context tokens D_s and LCCP tokens D_l as SEPARATE predictors — log(LongPPL) = A/N^α + B_s/D_s^β_s + B_l/D_l^β_l + C — fit on 109 Linear-Decay configurations. Held-out-scale extrapolation: fit S1–S4 → S5 R² 0.9516 / MAPE 1.71% (Linear-Decay) and 0.9718 / 0.66% (Constant-Last4), despite S5's ~100B LCCP tokens being >8× the largest D_l in the fitting set; collapsing D_s+D_l into one budget wrecks extrapolation (R² 0.849), and no-offset variants collapse entirely (R² −0.10 / −4.09 on S5) — separating the two budgets is doing real work. (2) CONSTANT-LAST4 PROTOCOL: linear decay needs a pre-committed endpoint, blocking open-ended scaling; their alternative trains LCCP at constant LR (extensible trajectory) but OBSERVES it through the uniform average of the 4 most recent checkpoints — merging is an observation mechanism only, training always continues from the latest raw checkpoint. It tracks budget-matched Linear-Decay endpoints closely (32K LongPPL 2.241 vs raw-constant 2.312; RULER-32K 45.48 vs 44.29), but its small edge shrinks and slightly reverses after the larger SFT budget (−0.16) — the authors explicitly decline to claim merging improves downstream training. (3) DOWNSTREAM: RULER-32K rises across the whole 5N→120N LCCP trajectory with no clear saturation, driven by intermediate-difficulty retrieval (niah_multikey_2 51.2 → 71.2, niah_multivalue 10.2 → 28.75, niah_multiquery 18.75 → 45.0); gains transfer to 128K after a fixed 2.10B-token extension and persist through identical long-context and agentic SFT stages (the agentic arm — GAIA / BFCL-WebSearch / τ²-telecom — improves with upstream 32K LCCP budget). Proxy sanity checks: LongPPL improves much faster than ShortPPL (elasticity ratio 3.35 → 2.22, always >2 — gains are not just general LM improvement), while retrieval-head probes plateau after ~30N even as behavior improves to 120N — mechanistic probes saturate before behavior does. Caveats: everything ≤1.22B params, 32K LCCP (128K only as fixed extension), one data mixture — frontier transfer asserted, not shown; the law is explicitly finite-range (fitted offset C is negative, so it eventually predicts LongPPL < 1 — authors compute the zero crossing and disown asymptotic interpretation); downstream evidence is mostly figure trends at modest absolute levels with non-monotonic per-subtask movement; "no saturation" ≠ no diminishing returns (their own elasticity ratio shrinks); the HF weights release was mid-upload at check time (several checkpoint repos incomplete/"coming soon").
- Model
Mirendil-Base — Pretraining at Scale Without a Pretraining Team (Mirendil)
Mirendil — formally launched late June 2026 with a $200M seed at a $1B valuation (a16z + Kleiner Perkins co-led, NVIDIA participating), mission "solve Recursive Self-Improvement (RSI) and use it to democratize frontier AI development" — reports a controlled experiment: starting fully from scratch, can one researcher with AI agents pretrain a strong coding model at scale, with radically less time, headcount, and compute? Claimed result (ALL company-reported, unreplicated): Mirendil-Base, a code-specialized base model, was built by ONE researcher in 3.5 months for < $10M compute, all-in — research, small-scale experiments, agent token spend, data processing, and the final training run. Per the blog: AI agents wrote over 99% of the code, ran experiments, and diagnosed failures; the researcher chose what to try and what to trust. All code was written from scratch from an empty repository on standard libraries (PyTorch, JAX), using open-source projects as references. Training data was organic public data only (GitHub and other public code, web pages, public datasets) — no distillation, no synthetic data, nothing purchased or licensed. Efficiency gains are attributed, without specifics, to an improved architecture, data-mixture tuning, and kernel optimization. Sizes are disclosed ONLY as ranges: Mirendil-Base 100B–500B params; Base-Large 500B–2T (80% through training at announcement); Base-XL 2T–10T (19% through). No exact parameter count, architecture details, training-token count, or hardware is given. Evidence offered is BPB (cross-entropy in bits per byte — loss per byte of text, so models with different tokenizers compare fairly) on code. Fig. 1, BPB on held-out code from Mirendil's OWN repositories (home-turf eval set): Mirendil-Base-Large 0.2177 (still training), Mirendil-Base-XL 0.2181 (still training), Kimi-K3 0.2387, Mirendil-Base 0.2803, Nemotron-550B-Base 0.2918, GLM-5.3 0.2926, DeepSeek-V4-Pro-Base 0.3013, Inkling 0.3467. Fig. 2, BPB on SEVEN EXTERNAL repositories published AFTER the models were trained (post-cutoff, so contamination-resistant by construction) — averages: Kimi-K3 0.193, Mirendil-Base 0.222, GLM-5.3 0.242, DeepSeek-V4-Pro-Base 0.243, Nemotron-550B-Base 0.247; per-repo (codex-sec, grok-build, openworker, json-render, native, scriptc, anydoc), Mirendil-Base finishes second overall, ties Kimi-K3 on json-render (0.127) and GLM-5.3 on native (0.257), and beats Nemotron-550B-Base, GLM-5.3, and DeepSeek-V4-Pro-Base on the remaining rows. Comparison models are all MoE (total/active params: Kimi-K3 2.8T/104B, Nemotron-550B-Base 550B/55B, GLM-5.3 753B/40B, DeepSeek-V4-Pro-Base 1.6T/49B, Inkling 975B/41B). Baseline caveat stated by Mirendil itself: Kimi-K3, GLM-5.3, and Inkling are post-trained models, which generally score slightly worse on BPB than their base versions. Post-training of Mirendil-Base has started; independent evaluations, post-training benchmarks, and API access are promised but NOT yet delivered — no weights, no API, no third-party numbers exist as of the check. Bakouch's comment (the shared post): the external-repo BPB results make it stronger; it appears to be a code-only model; the team "rewrote the full codebase from scratch with agents"; aligns with his Prime Intellect autoresearch work and his view that frontier pretraining doesn't need large teams.
- Paper
Beyond Parameters: Exploring Virtual Logic Depth for Scaling Laws
Proposes virtual logical depth (VLD) as a fourth scaling dimension alongside depth, width, and parameter count: VLD = effective algorithmic depth minus base layer count, increased by repeating whole transformer layers with tied weights inside the computation graph, during training and/or inference — not token-wise test-time scaling. Three reuse patterns (after Takase & Kiyono 2021): sequence (adjacent layers share parameters in uniform blocks), cycle (a block of layers repeated), and inverse cycle (the block repeated in reverse order, motivated by larger gradient norms in higher layers). Repetition factors ×1–×3, cycle up to ×5. Two controlled measurements. (1) Knowledge capacity, operationalized Allen-Zhu & Li-style as absorbed entropy ΔH: train a model to memorize a 640k-token IID random sequence over a 50,257-token vocabulary (~15.6 bits/token, sized to the ~2 bits/parameter estimate) and measure the entropy reduction of its softmax outputs on the training sequence. Across 4-layer GPT-2 models of 5M/10M/15M/20M parameters, capacity grows with parameter count; at fixed parameters (5M and 20M tested), absorbed entropy stays nearly unchanged across all three patterns and factors ×1–×3 (reported in Fig. 4, graphically). (2) Reasoning, measured on synthetic iGSM (500K problems, trained at ≤15 operations, exact-answer accuracy, greedy decoding): GPT-2 models of 4/8/12/16 layers (≈50M/100M/150M/200M) trained from scratch. Cycle is the strongest pattern: the 4-layer model's op15 accuracy rises 46.3% (base) → 62.1% (×2) → 70.7% (×5), and the gains grow under depth distribution shift (op20: 21.8→43.8; op21: 21.2→40.2). A 50M cycle ×2 model (effective depth 12) scores 62.05%, beating the native 12-layer 150M model (61.15%) — reasoning decoupled from parameter count. Real-world check: LLaMA-3.2-3B-Instruct with Cycle VLD inserted before LoRA fine-tuning (both arms from identical pretrained weights, same 2.3B-token multi-domain SFT corpus) improves over base on Math500 30.40→35.40, GPQA 29.80→32.32, AIME 3.33→6.67, HumanEval 37.79→39.52, MBPP 38.36→40.22. "Properly implemented" is load-bearing: pattern and placement matter — inverse cycle at ×1 underperforms the base model (4-layer op15 43.9 vs 46.3; 8-layer 53.3 vs 60.5), and in an 8-layer placement ablation, cycle reuse on later layers only (5–8) scores 64.2 vs 62.0 for all layers and 54.2 for early layers only (below the 60.5 no-VLD baseline). Scaling is also non-monotonic: cycle ×3 dips below ×2 on the 4-layer model (61.6 vs 62.1), and effective depth 32 underperforms depth 16 — the authors flag possible fixed points. No fitted scaling-law functional forms or exponents are given; the laws are qualitative (knowledge ∝ parameters; reasoning ↑ with VLD). Caveats: synthetic experiments cap at 200M from-scratch GPT-2 models; the real-world evidence is a single 3B model with LoRA-only fine-tuning and small absolute gains (AIME 3.33→6.67 is one additional problem in 30); knowledge capacity is a synthetic memorization probe, not natural knowledge; all reuse experiments train (or fine-tune) with the reuse graph in place — inference-only looping of a conventionally trained model is not tested; multi-seed statistics deferred to future work (authors' Appendix I).
- Paper
Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformers
Separates three independently-learnable skills: computing an answer, retaining it across extra loops, keeping the hidden state reusable by later computation. Setting: in-context execution of Mealy machines (state-tracking), simulator giving exact intermediate targets and counterfactual continuations; 2-layer shared block (width 128, 4 heads, MLP 512, no positional/loop embeddings), trained to exit at loop 32. Key results: final-only supervision is 100% at the trained exit but keeps 22.3% of answers at loop 64; supervising every position → 94.3%; supervising one uniformly-random position per example (same single-label density as final-only) → 99.8% retention; randomized exit budget raises loop-64 accuracy 30.0% → 85.6%; progressive training works in only 1/3 seeds vs 3/3 for the random-exit control (97.9% retention). Computation is exact — swapping a loop-k hidden vector for one from another input redirects every later position to that input's exact continuation (237/237 pairs across ten models) — but answers fade within a few loops. Retention ≠ reuse: freezing each position at the loop its answer first becomes readable crashes endpoint accuracy 100% → 4.1% (sampled-prefix) / 6.3% (matched random exit); waiting four more loops is harmless. External check: Bansal et al. (2022)'s released recurrent maze network solves 0 of 32 mazes when pixels are frozen at answer arrival, 4/4... all 32 when frozen four iterations later. Caveats (§7): one synthetic task family + one principal architecture; interventions don't identify a microscopic cause or general repair; six paired seeds for original comparisons, three for controls; sampled supervision still needs intermediate labels; finite-window retention ≠ hidden-state convergence or uniform length extrapolation.
- Paper
LAST: Looped Audio Spectrogram Transformer
One full spectrogram pass through D=6 shared blocks, then audio tokens freeze; later passes update only the class token by attending to cached audio keys/values (K/V computed on pass 2, reused). End-to-end training with gradients reaching the first pass. Cached class-token pass costs O(D(C²+NC)) vs O(D(NC²+N²C)) full — the quadratic-in-N term vanishes. On AudioSet (1.9M train / 18,886 eval, from scratch, 12 epochs): R=10 reaches 0.3450 mAP vs 0.3379 for sequential 12-layer AST — +2.1% relative with 49.4% fewer parameters (43.5M vs 86.1M), 42% fewer MACs, 9.8% higher throughput. Passes 2→10 add only 1.2% compute; mAP rises monotonically. Key control: naive full-token recurrence with the same blocks gets worse (0.3247→0.3099 mAP, R=2→10) at ~8× MACs — the gain is specific to class-token-only loops. Robustness: leads sequential D=12 in all 12 corruption families (38 settings; family-mean 0.2651 vs 0.2422) and under temporal masking (0.1383 vs 0.0905). Frozen-feature probe wins 5/8 tasks (FMA-Small 43.5→50.9%; ESC-50, VGGSound, DCASE). Caveats: single seed, trained from scratch; each pass-count data point is a separately trained model — nothing establishes a trained LAST benefits from more passes at inference; absolute mAP modest; no win on speech keyword spotting or US8K — gains concentrate in music/events/environmental tasks.
- Paper
Harness²: Recursive Agent Harnessing for an Open World
Google Cloud AI Research + Northwestern's recursive self-improvement framework for agent harnesses in open-world settings. The model stays 100% frozen; the harness is the object of optimization. Eight editable components (system prompt, guardrails, memory, skills, tool guidance, scripts, subagents, middleware plugin — each a mounted runtime file; extends the AHE file-level decomposition by one). Two coupled recursion levels: task-level recursion refines the current task's execution harness via a contrastive Propose–Probe–Compose step — propose invariant + domain-specific candidate harness edits, probe them under matched conditions, compose changes supported by behavioral contrasts, no ground-truth verifier needed — scalable in parallel or sequential schedules; harnessing-level recursion distills reusable experience into an improvement library (adopted harnesses + EXPERIENCE.md lessons) that guides future proposals. On three professional benchmarks (WorkBuddy-Bench, JobBench, Harvey's Legal Agent Benchmark) across four executor–harness configurations (GLM-5 and Gemini 3.5 Flash under OpenCode/Codex, edited by Claude Opus 4.8), a single contrastive step consistently improves every configuration: up to +11.5 points WorkBuddy-Bench, +4.5 points JobBench, +11.8pp LAB Partial pass rate. Parallel recursion to k=5 reaches 80.8 on WorkBuddy-Bench and 39.0 on JobBench (31.5 base); improvement libraries transfer across benchmarks. Result: an adapted weaker model can surpass an unadapted stronger model. Caveats: multi-candidate probing multiplies test-time token costs; main experiments rely on a frontier editor (Claude Opus 4.8); behavioral signals don't guarantee correctness.
- Thread
"We turned off the assistant with 128 numbers" — 128 neurons that make Gemma talk like a human (Chang)
Interpretability experiment: Claude Opus 5.5 identified 128 neurons in Gemma whose per-neuron multiplier edit ("the 128-number edit") makes the model stop sounding like a help desk and sound like a person — claimed more effective than steering along Anthropic's Assistant Axis (Lu et al., arXiv 2601.10387). Compared against: a "Talk like a person" system prompt, the 128-number edit, 256 numbers (gain × offset), and assistant-axis steering, with before/after chat examples, a sweet-spot dial curve, and per-persona bar charts (casual human, blunt expert, bully). The rewiring is context-gated. The "nothing else broke" protocol: 0/30 harmful requests, GSM8K 81 → 82, still self-identifies as AI when asked, works in Chinese/German/Japanese, holds over 4+ turns. Caveats: no paper, blog post, repo, or notebook exists — the artifact is the thread itself; which Gemma checkpoint, how the 128 neurons were identified (SAE? patching? contrastive activations?), what "context-gated" means mechanically, and how "human-like" was judged are all unverified from the available material.
- Paper
Train for Many, Update with One: Improving Multi-Sample Reasoning via Fenchel–Bregman Posterior Learning
Multi-sample reasoning succeeds when at least one of K candidates is correct, but minimizing average per-attempt loss doesn't optimize that. Finite-K posterior learning trains a distribution q_φ(θ) over solver parameters to minimize the all-fail probability E_x[F̄_φ(x)^K] + KL regularization, with per-problem gradient weight λ*_x = K·F̄_φ(x)^{K−1} up-weighting problems other candidates are unlikely to solve. An exact Fenchel reformulation of r^K separates problem weights from the posterior update so one draw per update suffices (vs K for the direct Monte Carlo estimator), and closed-form Bregman tracking updates weights via an exponential running average of observed failures reusing the same draw. Instantiated with IVON (diagonal Gaussian) → FBI. On recursive benchmarks (TRM backbone, 3-seed means): Sudoku-Extreme 99.55 Pass@10, Maze-Hard 91.30 Pass@10 (vs W-PTRM 89.80), ARC-AGI-1 Pass@100 64.25, ARC-AGI-2 12.78 — highest or tied in every metric. Matched vs Direct-10 on Maze-Hard: Pass@10 91.3% vs 91.0% at one draw per update, using 12.3% of measured training time (0.0692s vs 0.5614s), 10.4% of FLOPs, 0.611 vs 3.707 GB peak memory. FBI recovers exact solutions in 32.5% of first-candidate failures (Direct-10 27.2%) with lower repeated-output rate. On Qwen3-4B-Base trained on MATH7.5K (K_train=8): mean Pass@8 60.44% across MATH500/OlymMATH/AMC23/AIME24/AIME25 vs DMPO 59.60, GRPO 56.82 — best average, best on AMC23/AIME25; at K=1 it trails DMPO (40.22% vs 43.01%), consistent with optimizing coverage not single-shot accuracy. Matched K_train=K gives the highest Pass@K at each budget. Caveats: surrogate mismatch/noise/posterior drift may weaken failure tracking; a selector gap remains (correct candidates not always selected); code license unconfirmed (no LICENSE file in repo). AI-use statement present. Project page https://sungjun98.github.io/projects/fbi/; code github.com/team-approx-bayes/Fenchel-Bregman.