Explore the research collection
18 entries · Follow this search
- Paper
Plato's Key: One LLM Can Use Another's Representations via a Rotation
Hazy Research (Stanford), 'Plato's Key' (blog post, Nov 25 2026; contact Vivien Cheng; no arXiv version linked from the post at cataloging). The Platonic Representation Hypothesis says separately trained models converge to geometrically similar representations - but similar is not interchangeable. This work tests interchangeability directly: can one LLM use another's representations in place of its own, with no gradient descent? Yes - a rotation plus one global scale, fit in closed form (orthogonal Procrustes) on fewer than 5,000 facts both models recall, suffices. Treating factual recall as a key-value lookup, they swap the donor's key (the hidden state at the last subject token) into the recipient, whose later layers then retrieve the donor's answer. Across 12 base LLMs from eight families (1.5B-27B), 20 model pairs and 8,800 facts, the rotation reaches a median transfer accuracy of 41% versus 55% for swapping in the recipient's own key (self-swap) - a median 73% retention, similar cross-family (75%) and within-family (69%). More flexible maps (ridge regression, whitened rotation, a trained MLP) significantly beat the plain rotation in only 7% of comparisons, and an unpaired Wasserstein Procrustes map still reaches a median 87% of its accuracy. Two structural results: chained rotations (A to B to C) retain a median 99% of direct (A to C) accuracy across 47 chains, suggesting one shared geometry reachable by a single rotation per model; and a rotation built on just 256 principal components per model retains a median 74% of full accuracy. The measurement warning: geometric similarity does not guarantee functional transfer - selecting swap layers by mutual-nearest-neighbor similarity (the PRH paper's primary metric) yields a median transfer accuracy of only 4.5%, about a tenth of selecting by transfer accuracy, and the similarity peak sits in the first 5% of depth while transfer peaks at 22-38%. Finally, rotated donor keys recover 18% of the recipient's 'dark memories' - facts it stores but fails to recall (56% of tested misses qualify) - with no control recovering more than 1.1%, evidence that some recall failures are bad keys rather than missing knowledge. Flags, as entered: lab blog post, first-party numbers, base models and factual recall only. Cross-references: the functional-transfer member of the PRH thread - ID 1859 (Balestriero & LeCun, proving/improving PRH with JEPAs) and the staged closer look (slot 25, alignment localized and metrics confounded by depth and width); its similarity-vs-function gap is the same caution the closer look raises, shown behaviorally.
- 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
TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
Problem: a transformer processes every input token through every layer, so long-context prefill (quadratic attention, linear MLP + KV growth) dominates serving cost. Prior work splits into training-free token-pruning heuristics (attention-score based; limited speedup before accuracy degrades) and architectural conditional compute (needs pretraining from scratch). TokenGate instead retrofits a trained model. Mechanism: a gate module sits inside one layer L (L=1 in the main experiments; multiple gates generalize). A small scoring MLP reads each prunable token's normalized post-attention residual at layer L and emits a scalar, RMS-normalized across the sequence into an importance score b_j; a top-K selector forwards S = top-K prunable tokens ∪ the non-prunable set (instructions, the question, answer/decoded tokens — in the code API, everything outside a marked {state} document span). Pruned tokens' residual streams stop at L: layers above L never process them and never generate KV entries for them, so the method is both prefill-compute skipping and upper-layer KV-cache reduction (layers ≤ L keep full KV by default; pruning those too is optional). The trainability trick is token-gated attention: in layers above the gate, each kept key's attention logit gets an additive bias softplus(γ^{ℓh})·b_j (head-wise learnable gains), under a temperature τ scaled by log(kept rank)/log(original position) (SSMax-inspired) that recalibrates softmax sharpness after pruning and generalizes across budgets — this gives gradients through the non-differentiable top-K, the same way MoE routers learn. Implemented as a FlashAttention-based kernel (custom FA2 key-bias kernel in the repo; FlexAttention fallback). Training: NOT from scratch and no sparsity/auxiliary loss — LoRA co-adaptation (r=16, α=32 on Q/V projections; backbone otherwise frozen; Muon for the gate matrices) plus gate parameters, plain next-token CE. Each step averages a full-context loss (K = all prunable tokens; anchors full-context accuracy and gives pruned tokens gradient) with a pruned loss at K ~ LogUniform(1, |𝒫|/2), so one trained gate serves every budget K at inference; the scoring MLP is zero-initialized. Training contexts 2k–16k tokens; a step costs 1.3× standard SFT but converges in fewer steps on 4 of 5 tasks, so total training time is comparable to or below LoRA SFT (mean 0.8× A100-hours at 1.7B). Results (Qwen3-1.7B, five tasks — NIAH 16k, RepoBench-P mean 11k/max 39k, 2WikiMultihopQA mean 7.5k, MultiNews, BioDEX): Pareto-dominant on all five; TTFT 1.4–11.3× faster and peak prefill memory 1.5–3.4× lower at no accuracy degradation vs the LoRA-fine-tuned full-context model, and up to 6.4× faster / ~2× lower memory than the best prior pruning baseline at matched accuracy (baselines: FastKV, SlimInfer, DASH, GemFilter; sparse-attention FlexPrefill, MInference). Launch-figure numbers at matched accuracy: NIAH TTFT 425→37 ms (11.3×; best prior 235 ms), peak memory 2.4→0.7 GB (3.4×); RepoBench TTFT 286→72 ms (3.9×; best prior 201 ms), memory 1.6→0.6 GB (2.8×). A more typical operating point: 2WikiMultihopQA at 95% of full-context accuracy = 3.0× faster, 2.7× less memory. Extrapolation: a gate trained at 16k holds accuracy at 32k/64k/128k with TTFT speedup rising to ~13× (memory reduction flat ~3.43×, since peak memory is dominated by the below-gate full forward). Ablations: the learned selector beats random-K and FastKV's attention-score selector at the same layer by wide margins; co-adaptation independently helps (random-K on the TokenGate-trained model beats random-K on the plain fine-tuned model — training redistributes information into kept tokens); learned keep-patterns are task-dependent (answer keywords for QA, phrase-final stopwords for summarization). Repo's held-out test table (batch 1, one H100): NIAH-16k @K=2000 accuracy 1.000 vs raw base 0.993 at 6.3× TTFT, still 1.000 at K=100 (8.1×); a 32k haystack demo answers the needle with 144 of 32,191 tokens retained above the gate. Hybrid architectures: on Qwen3.5-2B (24 layers; full attention at layers 3,7,11,…,23, Gated DeltaNet elsewhere) TokenGate can sit inside DeltaNet layers 1–2 — where attention-heuristic pruners cannot operate at all (FastKV can only prune at full-attention layers) — reaching up to 7.8× faster prefill within 6% of standard accuracy; at layer 3 it gives 3.8× lower TTFT at no accuracy loss, 2.1× better than the best FastKV run; token-gated attention applies only in full-attention layers above the gate, and DeltaNet layers above run on kept tokens only, their recurrent state built from kept tokens. Decoding (appendix): generated tokens attend to kept + generated tokens in layers above the gate, full context at/below it, with the gate bias precomputed once at prefill as a constant per-key bias — all headline claims are prefill/TTFT claims, no decode-speed claim. NOT GateSkip: the OpenReview/ICLR-2026 GateSkip paper ("What Layers When," Laitenberger et al., HU Berlin/UvA/UT Nuremberg, arXiv 2510.13876) is a different work by different authors — residual gates for token-wise layer skipping (15–50% FLOP savings), uncited here.
- Paper
Scaling Discovery Requires Forgetting
LLM-agent discovery plateaus because agents accumulate history: each agent becomes anchored to its own past attempts, making fewer and smaller edits, so more budget buys little. The paper's fix is forgetting: periodically discard every agent's session (messages, tool calls, errors) and the entire candidate history, keep only the highest-scoring artifact, and restart all agents from it with empty context. On a team of four agents with result-sharing (3 forgets → 4 budget-equal rounds), this Periodic Amnesia Search yields up to 15% over independent parallel agents and 39% over a single agent at matched token cost. Measured mechanism: edit distance between successive code artifacts decays exponentially as context grows and diff token entropy collapses — the model mimics recent turns instead of sampling its prior; before the first reset median edits shrink ~150→30 lines and thinking tokens ~28k→7k, and after forgetting agents resume larger edits and more reasoning tokens per proposal. Evaluated on four discovery tasks (AHC014 heuristic programming, a Frontier-CS optimization problem, Anthropic's kernel challenge on a simulated VLIW SIMD machine, a five-minute nanochat LM training run), all with the Pi agent + DeepSeek V4.1 Flash ($20 budget/replicate), 3 replicates each; Frontier-CS Q171 breaks the plateau pattern (parallel agents keep improving) yet the forgetting team still finishes 15% higher; on AHC014 the forgetting team reached mean best score 1,103K vs 964K parallel vs 795K single (best-replicate trajectories 1,144,695 / 1,007,073 / 961,136 — not the means). Stalled runs that forgot gained 4.5–9.2% over the next 30 proposals vs <2% for continuing runs at up to 2× cost (equal-proposal comparison, not equal-dollar/equal-time; AHC014 team-of-4 panel: 9.2% ± 6.9% at $15.32 vs 1.4% ± 1.3% at $24.67). Caveats: the anchoring explanation isn't isolated (session + candidate history cleared together), "when and what to forget" is left for future work, and generality beyond the four tasks isn't established.
- Post
You could have invented transformers from memory
A pedagogical explainer (not a research result) deriving linear maps, MLPs, and self-attention as associative key-value memory stores from first principles. The unifying quantity is the interference-to-signal ratio — interference from other stored memories vs the target's signal — and capacity is the number of memories before interference matches signal (random unit keys, query with a stored key). At d_k=64: outer-product linear store ≈64; optimal linear (least-squares/whitened keys) ≈128; ReLU MLP ≈128; squared ReLU / SwiGLU ≈2d_k²/3 ≈2,700–2,900; cubed ReLU ≈2d_k³/15 ≈35,000; self-attention with β=√d_k ≈e^{2√d_k−2} ≈1.2 million; β ∝ log M allows an essentially unbounded store (>2M in experiments). Derivations: interference terms add like a random walk (√M); σ(s)=ReLU(s)^p gives capacity M≈d_k^p; the exponential is a weighted sum of all powers, so capacity grows exponentially in the sharpness β: M≈e^{2β(1−β/d_k)} for β≪d_k; normalizing weights for numerical stability yields exactly f(x)=Vᵀsoftmax(βKx). Unlike MLPs, self-attention is non-parametric: keys/values come from context tokens, so the store grows with context length. Notes that the original transformer's v2/v3 described the feedforward layer as "a kind of attention" (passage removed from later versions) and tried replacing FFNs with learned-key-value attention at similar quality. The long-context section compares β∝log M tricks (Su 2021 entropy scaling, Scalable-Softmax, Qwen LogN-Scaling, Qwen2.5-1M YaRN scaling), driving the interference ratio to ~10⁻⁴ at 2M memories. Author-stated caveat: the count is random-vector recall of a single layer, ignoring training data; companion pointers to bits-per-parameter memorization work (Morris et al. ~3.6 bits/param; Allen-Zhu & Li ~2 bits factual knowledge/param). Includes interactive demos (sliders for M and β with live interference/signal visualization). Asides: a gradient-descent step is a memory write (Irie, Csordás & Schmidhuber); transformers' MLPs store facts in superposition.
- Paper
Generative Representation Learning for Scalable Latent Tokenization
Introduces Relative Prediction Representations (RePR), a theoretically grounded self-supervised objective for learning representations as generative-model tokenizers. Factorizes the pointwise mutual information between masked image views directly (estimated via a conditional generative model's diffusion ELBO), inheriting contrastive learning's theory without negative samples. Practical components: scale-weighted PMI (timestep weighting toward noise-robust information; plain PMI weighting collapses), bootstrapped incremental PMI estimation that telescopes to the full PMI, a MAR prediction model (MAE encoder/decoder + diffusion MLP head), and iterative feature prediction across training cycles. Robust to feature suppression where LeJEPA and DINOv3 collapse (watermarked ImageNet probe). Establishes tokenizer-encoder scaling laws over ~2 orders of compute on ImageNet and the GPIC text-to-image dataset; extrapolating the trend (not measured end-to-end) predicts DINOv2-equivalent quality at ~1/7 the training FLOPs on ImageNet and WebSSL-equivalent at ~1/8 on GPIC. With Latent Forcing, RePR-78M + JiT-L reaches FID-50K 2.18 at 3.49×10²⁰ total FLOPs vs 2.36 for pixel-space JiT-L at 3.57×10²⁰ — the authors' first demonstration that representation learning + generation beats direct pixel diffusion at matched total FLOPs. Caveats: 7×/8× figures are extrapolations; ImageNet width-1024 model overfits past 200 epochs; code released 2026-10-25 (verified — training code live at github.com/AlanBaade/repr).
- Paper
Evaluating LLM Creativity through Long-Tail Performance
LLM creativity benchmarks vary widely in task and metric design — do they capture a common notion of creativity? The paper formalizes the shared target as task-specific performance in the long tail of a reference input-output distribution (how common input-output pairs are relative to a chosen source of text), grounded in the novelty-quality product formulation Creativity = Novelty × Quality, where a theoretical identity shows the same quality difference contributes more to the creativity score in higher-novelty regions. Empirically: 15 benchmarks (writing, math, QA) and 26 open-weight models, using 4-gram absence from the Pile (Infini-Gram-Mini) as novelty proxy. Creativity benchmarks lie significantly further in tail regions than standard benchmarks from the same domains (p<0.001). Within each benchmark, rankings from higher-tail subsets align more closely with LM-Arena creative-writing human judgments: on Arena-Hard Creative Writing, tail bins reach Kendall τ=+0.39/+0.33 vs +0.06–+0.15 for peak bins; on GPQA-Diamond (not a creativity benchmark), +0.40/+0.22 vs +0.10–+0.18 — significant at ten-bin resolution (Spearman ρ=0.66–0.86). Introduces q@Tail(α), a lower-cost diagnostic: mean task quality on the top-α tail fraction of an existing benchmark. Applying it to nine creativity-promoting methods (min-p, temperature scaling, persona, Convergent-Divergent Thinking, Branch-Solve-Merge, self-consistency, meta-prompting, CRPO-SFT/DPO) reveals a quality-novelty tradeoff: only min-p improves tail quality (+17.7%) while reducing novelty (−16% to −44%); all others raise peak novelty but lower tail quality. Difficulty and novelty splits are nearly disjoint (MATH overlap 0.07), so tail selection is not just "harder examples." Limitations: n-gram rarity captures surface novelty only; rankings depend on the Skywork reward-model quality estimator; LM-Arena votes are self-selected-user holistic preferences, coupled with overall capability; methods tested only on open 7–8B models. Code and data: github.com/YichenZW/longtail-creativity; reading list: github.com/YichenZW/awesome_llm_creativity.
- Paper
Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation
Diffusion language models offer parallel sampling but degrade with fewer steps, process the full sequence every step, and need many training passes. Next-Concept Modeling (NCM) is a two-stage coarse-to-fine alternative: a multiscale residual VQ-VAE encodes text into a hierarchy of discrete codes from coarse to fine (adapting VAR-style next-scale prediction from images, requiring substantial modeling changes since text has no natural downsampling and single-token errors matter), and a transformer generates one level at a time, predicting all codes within each level in parallel — one forward evaluation per level. At ~100M parameters, NCM beats strong diffusion baselines on unconditional generation (TinyStories, LM1B, OpenWebText) with 4–11× fewer function evaluations: on LM1B it uses 11× fewer NFE than DUO and runs 21× faster at better generative perplexity (single H100, batch 16), and on OpenWebText it matches the strongest diffusion LM at 10× faster. Tokenizer plus generator train on 13.36B token positions on LM1B, ~4.9× fewer than baselines' 66B. On XSum summarization it uses 16× fewer NFE than AURORA-LM and runs 31× faster at comparable ROUGE-L, with the best summarization scores; on WMT14 De–En translation it beats all but one non-AR baseline. On Sudoku it scores 99.5/96.5/86.1 (easy/med/hard) with 12 NFE, outperforming AR baselines (greedy: 14.6/5.1/1.0 at 128 NFE) and diffusion/flow baselines including DUO (96.3/84.7/58.4), MDLM, and the strongest flow baseline FMLM+ (97.7/92.8/81.3). Spending the saved sampling time on more candidates with MBR decoding gives ~7% higher ROUGE-L than the strongest summarization baseline at the same time budget. Preliminary scaling: larger generators improve quality at fixed training-token budgets. All numbers are the authors' own at ≤~100M scale; no independent reproduction.
- Paper
AutoEnvScaling: Automating the Data Flywheel with Terminal Agents
Terminal-agent RL is bottlenecked on human-designed environments: the supply of useful training envs grows only as fast as researchers can work. AutoEnvScaling turns environment design into a terminal task — a proposer agent reads the solver's rollouts, decides what to build, then writes and tests complete Harbor tasks (instructions + execution environment + reference solution + tests) inside a sandbox with web access, a coding harness, and child containers. Two admission gates: validation (reference solution scores 1, empty solution <0.5, no 13-gram overlap with held-out tasks, Terminal-Bench rubric review) and calibration (current solver keeps the task only if mean reward ∈ [0.25, 0.75] with variance; up to 2 revisions). The proposer co-evolves via harness optimization (editing its own harness/skills/memory between rounds) or weight training. Across eight frontier proposer models, terminal-based generation raises the valid-environment rate up to 25× over prompt-only generation (DeepSeek-V4-Flash 3.5% → 89.0%) at up to 75% lower cost per valid environment for six of eight models (cost rises for the two strongest proposers since AutoEnvScaling spends more turns). RL on generated environments beats matched static Tmax pools on Terminal-Bench 2.1 (+6.3/+7.4 for Qwen3.5-9B, +4.3/+3.8 for Qwen3.5-35B-A3B), and removing solver feedback costs −3.6/−6.7 points. Recursive self-improvement: Qwen3.6-35B-A3B as both proposer and solver (self-play, one shared policy) improves Terminal-Bench 2.1 from 41.1 to 53.3 (+12.2) and Terminal-Bench 4.0 from 1.6 to 3.2, with 3.1× higher usable-group rate and 42% less rollout-collection time; removing proposer training collapses the loop. On HiL-Bench, tasks generated by Claude Opus 5 let Qwen3.6-35B-A3B reach 33.9% task success / 55.3% Ask-F1 at asking for help — beating Opus 5 itself (7.5%/14.4%). Code (Apache-2.0, private preview), launchers for every experiment, figure data, and generated environments are public; sandboxes run on Modal.
- Paper
Hybrid Reasoning Agents
HybridAgent is an LLM agent that dynamically navigates between latent reasoning and text-based interaction within a single unified generation process, combining efficient latent "inner thinking" with text-based tool calls and external inspection. The core mechanism is HybridLink, a lightweight residual adapter mapping last-layer hidden states back into the input embedding space (e_{t+1} = h_t + W2·GELU(W1·h_t), ~10M params at 4B), enabling sequence-wise recurrence in latent mode without representation mismatch. Mode transitions: text mode emits a <latent> anchor token to enter latent mode; latent mode exits when the HybridLink-projected state nearest-matches a </latent> anchor; span lengths emerge adaptively. Latent thoughts remain interpretable: each latent step maps to its nearest token embedding, recovering readable pseudo-text. Multi-turn generation runs over a continuous working memory (KV entries from text, latent thoughts, and tool observations), losslessly preserving hybrid context across turns. Post-training: HybridSFT (format activation, HybridLink activation with cos+MSE regression, then self-conditioned two-pass training with joint CE at text and regression at latent positions, closing the train-inference mismatch) stabilizes tool-integrated hybrid generation; HybridRL scales reasoning via a hybrid policy factorization (policy likelihoods only over sampled text positions, since latents are deterministic given the backbone and fixed HybridLink) with exact rollout replay, rewarding correctness, format, and multi-tool use — learning when to think in latent space vs act through text. Built on Qwen3-Base at 4B/8B/14B and evaluated on 11 benchmarks (math, science, medicine, search, agentic reasoning) against text-based, latent, and frontier-agent baselines: HybridAgent improves performance by 10.4% on average at the RL stage (18.5% at SFT stage; 14B beats the strongest agentic baseline by 17.4%), with 35.5–54.7% token reduction, 1.8–2.6× faster inference, and 2.7–3.7× cost savings. Tool use stays reliable (higher valid call rates than GRPO, 99.7% execution success) and the exposed text trace remains monitorable/debuggable (first-error localization 98–99%), exposing 43–49% fewer text tokens while carrying 26–28% more key reasoning steps per 100 visible tokens. Code, models, and training data are public: github.com/togethercomputer/HybridAgent (MIT) with HybridAgent-8B-Agentic and -14B-Agentic checkpoints plus HybridSFT-v1/v2 and HybridRL datasets on Hugging Face.
- Paper
nanoswe: Speedrunning SWE-bench — a 2.8B agent trained from scratch for ~$1,000 reaches 25.5% on SWE-bench Verified
nanoswe is a community speedrun of SWE-bench Verified, forked from Karpathy's nanochat: how good a coding agent can ~$1,000 of train compute buy when the model is trained from random initialization on agentic SWE trajectories, with SWE-bench's 12 source repositories strictly held out (the 1.59M-trajectory corpus was audited and 4,516 violating rows purged)? Budgets are denominated in B200-hours at $5/h ($60 track = 12 h; $1000 track = 192 h). The August 2026 scaling sweep found solve rate roughly log-linear in train compute: a ~$10 run already scores 0.53% pass@1, the $60 run (1.38B) reaches 5.0% — the level of Claude 2 at SWE-bench's release — and the $1000 run (5.67B) reaches 11.0%. Two findings complicate the distillation story. First, a stronger teacher can be a worse teacher: replacing Qwen-Coder-30B-A3B trajectories (teacher at 29% pass@1) with Qwen 3.6 35B A3B trajectories (58%) dropped the $60 student from 5.0% to 2.1%, because the stronger teacher's test-first workflow leaves the weak student stuck writing reproduction tests (no patch in 74% of attempts vs 8%). Second, trajectory-only training buys code and little else: the speedruns generalize to synthetic bugs that exist nowhere online and to bugs from real 2026 pull requests, but MMLU and GSM8K do not improve with speedrun compute even after elicitation fine-tuning, while a differential-item-functioning analysis against SmolLM3-3B fine-tunes finds no detectable problem-coverage blind spots from skipping web pretraining — at matched ability the cohorts solve essentially the same problems. The current $1000-track record (Oct 2026) shrinks the model to 2.82B and adds a short web warmup: 6.7B FineWeb-Edu tokens, then 37.8B tokens of SWE-smith trajectories from a Nemotron teacher, reaching 25.47% pass@1 (pass@5 41.4%) on the project's 483-instance cluster-runnable subset of Verified — above the originally reported scores of Claude 3 Opus (15.8%) and GPT-4o (23.2%), under a different scaffold.
- Paper
Switching Linear Attention
Switching Linear Attention (SwiLA) is a sequence layer from Stanford (Lee, Gonzalez, Zucchet, Buchanan, Fox, Linderman) that tries to close linear attention's expressivity gap while keeping its fixed-size recurrent state (no growing KV cache). Derived in the test-time regression framework, the state is a mixture of J linear regressors (state O(JD²)) fitted online by expectation–maximization: posterior responsibilities computed from each component's prediction error plus a learned gating prior weight a delta-rule update per component. Because each output dimension selects its component independently, the layer realizes J^D piecewise-linear maps and its recurrence is nonlinear in the state — unlike Mixture-of-Memories, whose router is state-independent. Variants add temporal persistence in the assignment prior (Temporal SwiLA) and input-dependent gating (Gated SwiLA). At 374M parameters pretrained on 15B FineWeb-Edu tokens with state size matched across recurrent baselines, Gated SwiLA variants average 45.4 on a commonsense suite vs 45.3 for Transformer++ and 43.7 for DeltaNet (KDA leads the linear family at 46.6); on six recall-intensive tasks Gated Temporal SwiLA's 20.6 is the best pure-recurrent average (DeltaNet 17.3) though softmax models still lead (FoX 33.7), and Hybrid Temporal SwiLA (3:1 recurrent:softmax interleave) reaches 31.8, beating Hybrid GDN (29.5) and Transformer++. Profiled at 1.3B, SwiLA gets 4–5× the Transformer's end-to-end inference throughput (batch-size effect of having no KV cache) but trains ~2× slower than Gated DeltaNet with a sequential Triton kernel; a chunkwise parallel Newton training algorithm is derived but not yet implemented. Ablations (115M): temporal persistence helps consistently, load balancing prevents expert collapse in vanilla SwiLA, and more experts (4→16) slightly hurt at fixed state budget.
- Paper
Harness Evolution Hits a Ceiling: When Weight Training Should Begin
Improving a long-horizon LLM agent means evolving the harness around a frozen model or training its weights. This paper builds a diagnose-then-intervene rule: label failed trajectories by the first failure signal — F1 unbacked assertions, F2 harness friction, F3 execution control (loops, exhausted step budgets), F4 planning capacity (delivered plan scoring below 0.5). A self-evolving harness loop (AHE-style propose-verify with judge) repairs the process classes; the behavior it instills can be trained into the weights; content failures are what weight training is for. On DeepPlanning (travel planning with deterministic programmatic scoring; 48 dev / 72 held-out tasks), the loop lifts Qwen3.5-4B held-out score 0.16→0.30 and Qwen3.5-9B 0.32→0.44: for 4B, held-out delivery rises 55%→90% while loop failures (F3) fall 64%→37% of trajectories; for 9B, loops fall 39%→17%. What the loop leaves behind is the content class: F4 rises 10%→28% (4B) and holds ~25% (9B). LoRA adapters trained on evolved-harness trajectories internalize the gain: under the original harness they add +0.13 on held-out tasks for both sizes; on 4B they stack with the harness to more than double the held-out score, and on 9B the adapter alone matches the full evolution line, cutting content failures from roughly a quarter of trajectories to one in twenty. A placebo adapter trained on answer-shuffled trajectories falls below the base model (gain is in trajectory content); full fine-tuning adds +0.04 over LoRA. Why the loop stops at F4: component ablations show compliance-enforcing components (exit gate, checkpoint, hard blocks) are mostly within noise, while capability-granting components (state ledger, distilled lessons file, invented tools) carry the gain — the loop's evidence package shows the proposer gate/checkpoint metrics and never aggregates failure composition, so it optimizes what it can see. The loop transfers to WebArena-Lite (+0.09 on 117 unseen tasks), where the gain lives in what the model sees (two pages of history instead of one) and adapters add nothing. Generality: nine evolution lines on eight models from six families; seed measurements separate the five lines where the harness lever paid (+0.05 to +0.14) from the three where it paid nothing. Measurement: four-rollout means, differences below 0.035 are noise.
- Paper
ThunderSyncRL: Lossless Acceleration of Agentic Reinforcement Learning
ThunderSyncRL resolves the sync/async dilemma in agentic RL training. Synchronous GRPO/OPD leaves learner GPUs idle 49.5% of step time waiting for rollouts and verification to finish (measured training on SWE-smith); asynchronous training overlaps rollout and learning but learns from stale policies and performs worse. ThunderSyncRL streams gradient computation as soon as each piece's inputs are fixed while holding the policy snapshot constant, then takes one synchronous optimizer step. For GRPO, each trajectory's score gradient (the weighted action-token log-probability gradient H_i evaluated at the fixed policy, which does not depend on other rewards) is computed the moment its reward arrives; two running buffers (sum of r_i*H_i and sum of H_i) are regrouped at group close into the exact group gradient using the group mean and standard deviation. For OPD (on-policy distillation), each completed agentic turn contributes a gradient as soon as its teacher scores arrive while its tool call keeps running in the sandbox; per-turn unnormalized contributions accumulate and are divided once by the total scored-token count at batch closure, before clipping and the single optimizer step. The paper proves these streaming updates are identical to batch-synchronous GRPO/OPD without changing either objective. On Qwen-3.8-27B, ThunderSyncRL reaches the GRPO target of 74.01% pass@3 on SWE-bench Verified at 121.3 GPU-hours versus 233.5 for Sync (1.9x). Speedups to Sync's pass@3: SWE-bench Verified GRPO 1.9x, OPD 1.9x; Terminal Bench 4.0 GRPO 1.8x, OPD 1.9x. Pass@3 gains over Async at a fixed 128 GPU-hour budget: +2.47pp (SWE-bench GRPO), +1.27 (OPD), +1.52 (TB4 GRPO), +2.02 (TB4 OPD); model, workload, optimizer, and GPU allocation fixed per comparison. Code: github.com/seilk/thundersync (Apache-2.0) — a Python library with streaming GRPO/OPD objectives, engine, scheduling, rollout sandboxes (Docker/uDocker), and accel kernels; examples run on small randomly-initialized Qwen3 models on CPU or CUDA.
- Tool
RSIArena: LIVE RSI Arena (8 agents compete to post-train one 30B base model)
A live public experiment asking whether AI agents can train a model that wins in human evaluation ("RSI" = recursive self-improvement: AI that makes AI better). Eight agents compete to autonomously post-train the same base model, NVIDIA Nemotron 3.5 Lightning 30B-A3B-Base-BF16: GPT-6 Astra (OpenAI), MiMo-V2.6-Pro (Xiaomi), Grok 4.7 (xAI), DeepSeek V4.1 Flash, GLM-5.3 (Z.ai), Kimi K3 (Moonshot AI), Gemini 3.8 Flash (Google), and Muse Spark 1.3 (Meta). Stage 1 gives each agent $300 of API credit and 1,000 GPU-hours over 144 hours (144 rounds) on a shared RSIBox cluster of 64 RTX PRO 6000 Blackwell GPUs across 8 Slurm servers; stage 2 adds 500 GPU-hours per agent. A live dashboard shows training progress, budgets, GPU usage, trajectories, and SFT runs. Stage 1 checkpoints are judged by humans plus held-out tests at COLM 2026 in San Francisco (arena opens Oct 6 10:00 AM PT, prize draw Oct 9 2:00 PM PT); stage 2 trains daily on that human feedback, with a public report due mid-October. Spectators predict the top three agents for prizes. Organizers state model checkpoints and data will be open-sourced.
- Paper
RRSI: Regularized Recursive Self-Improvement of Agent Harnesses
RRSI regularizes BOTH proposal (annealed L0-style edit budget, evidence-aware credit, structured exploration on stall) AND selection (leakage critic, noise-adjusted floor, Ridge-style cost-aware acceptance, L1-style structural pruning) while keeping the harness fully editable. Evaluated on 8 benchmarks across 3 domains. Key numbers: up to +14.1 evolve (Gemini 3.5 Flash on Terminal-Bench 64.6→78.7); up to +4.7 OOD; ~30% fewer policy tokens than unregularized evolution. Claude Opus 4.8 frozen policy main; SWE-bench Verified 82.0→83.8 OOD; Harvey LAB evolve 90.5, OOD avg JobBench/GDPval/APEX 43.6 vs H0 39.7; ablation removing regularizers raises evolve but hurts OOD. Baselines: Meta-Harness, AHE, TTHE, HarnessX. Code MIT-style at google-research/rrsi.
- Model
CLM-v0.1-8B (Contrastive-LM reference projection head)
Reference CLM head checkpoint CLM_v0.1-8B.pt on Hugging Face (Apache-2.0). Empty model card at first catalog; siblings: CLM_v0.1-8B.pt, README.md. Hub usedStorage ≈75.6 MB. Created 2026-09-21. Architecture from Notion/README: MLP 4096→1536→1536→512 (GELU, LayerNorm), output dim 512, ~20M params; pairs with frozen Qwen3-8B last-token L2-normalized embeddings. Downloaded by clm-serve / download_head.sh. Checkpoint: state_head/action_head, logit_scale, cfg. Parent 1434.
- Model
Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making
CLM (Contrastive Language Model) is a System One decision model: separate state and action encoders trained with bidirectional InfoNCE so each state is pulled toward the ground-truth action and pushed from others; at deploy time candidates are scored by cosine similarity of L2-normalized embeddings and softmaxed into typed answers (Noul/Choice/Score) or ranked for best-of-N. Released CLM-8B uses a frozen Qwen3-8B backbone (hidden 4096, last-token pooling, L2 norm) plus a trainable MLP projection head 4096→1536→1536→512 (GELU+LayerNorm; ~20M params, output dim 512); only the head is trained; LLM embeddings can be precomputed. Full Nemotron DQA pretrain ~1 hour on one RTX 4090. Dual-encoder disaggregation caches state and action embeddings independently (authors contrast with Jev state-only caching). Action-caching example (Super Mario): 4 action embeddings precomputed; per-step cost drops from 5 forwards to 1 (~4×). Zero-shot blog table (CLM vs Jev latency / success): T-Rex 16.5 vs 149.8 ms (5/5 both); BFCL V4 tool calling 76.8 vs 125.5 ms (95.2% vs 99.2%); WikiRacing 79.8 vs 225 ms (26/30 vs 30/30); Super Mario 33.5 vs 132.6 ms (5/5 both) — up to ~9× faster, roughly on-par accuracy. Latency microbench (200-token state, RTX 4090, 15 tok/candidate): at 1024 candidates CLM ~44 ms vs Jev ~579 ms (~13×) vs constrained decoding Qwen3-8B ~4.3 s (~97×); candidate-length sweep (5 cands) CLM stays ~36 ms through 2048 tok while CD goes to 3.4 s and Jev to 333 ms (~9× / ~95×). Agentic verifier (38 DeepSWE / 30 Terminal-Bench 2.1 held-out; Opus 5 / Fable 5 candidates; H100): DeepSWE CLM 81.6% vs Jev 71.1% vs Pass@1 73.7% (79 vs 449 ms, 5.7×); Terminal-Bench 2.1 CLM 87.6% vs Jev 83.1% vs Pass@1 84.0% (32 vs 131 ms, 4.1×) — Jev below Pass@1 on both. Data recipe: pretrain ~60M Nemotron DQA → midtrain ~30M Gemini 2.5 Flash-Lite hard negatives → posttrain ~1M ADP + Endless-Terminals + LiteCoder-Terminal-SFT (40% Nemotron replay / 60% agentic). Hard-neg study (~100K held-out, 1 gold+10 HN): pretrain 52.1% → two-stage 69.2% vs HN-from-scratch peak 62.4%. Replay keeps HN top-1 ~68.5% vs 56.2% agentic-only. Scaling fits (test InfoNCE): L≈(C/7.34e13)^-0.144; (D/2.12e9)^-0.117; (N/3.60e5)^-0.061; (N_enc/4.18e9)^-0.172; optimal head N*∝D^1.02 (~310 tokens/param). Posted 2026-09-23 Notion blog; Jacky Kwok† project lead; Stanford + NVIDIA Research. Roadmap: multimodal CLM-35B early next month; vision; more data/scaling. Contact jackykwok@stanford.edu.