Explore the research collection
1,586 researched entries: papers, datasets, models, code, posts and notes. Each one is read, summarized and checked before it lands here.
Last addition Dec 2, 2026 · 458 datasets with a full research profile · API & MCP for agents
1,586 entries · showing 169–192
- 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").
- Post
Carbon-X: When Natural Language Meets DNA
A 14B open model mid- and post-trained from Qwen3-14B (POST ERROR, flag: the announcement post says "Qwen3.5 14B" — every primary source says Qwen3-14B, HF metadata base_model: Qwen/Qwen3-14B) to reason over DNA sequences in the same token stream as natural language — "chat to your DNA." Architecture is the unchanged Qwen3-14B backbone (14.82B BF16 params, 40 layers, hidden 5120, GQA 40Q/8KV heads, head dim 128, SwiGLU, RMSNorm + QK-norm, RoPE θ=1e6, 40,960-token window). The one architectural idea is a hybrid tokenizer in a single stream (explicit contrast with BioReason's separate DNA encoder): text uses Qwen3 BPE; DNA is encoded as non-overlapping 6-mers (4,096 6-mer tokens + 1,364 tail tokens + <dna>/</dna>/<oov> markers = 5,515 DNA tokens, vocab 157,184 total), ~1/3 the tokens of BPE on DNA; the tokenizer auto-detects runs of ≥6 ACGT bases, and any 6-mer containing a non-ACGT character collapses to a single <oov> token (resolution loss by construction); custom tokenizer code requires trust_remote_code=True. RECIPE (all numbers model card): (1) vocab-extension warmup — DNA tokens random-init, ~10B tokens with the transformer body frozen (embeddings only), then unfreeze; (2) mid-training — 302B tokens, seq 8,192, global batch 512 seqs (~4.2M tokens/step, 72K steps), cosine LR 5e-5 → 5e-6; mixture Raw DNA 55% (eukaryotic genomes 38.5%, mRNA/OpenGenome2 8.8%, prokaryotic 5.5%, mRNA w/ splice+promoters 2.2%), English 20% (FineWeb-Edu 8%, DCLM 8%, FinePDFs-Edu 4%), biology text 15%, instruction 10%. Blog ablation story (4B-scale sweeps): LR was the dominant forgetting knob — higher LR learns DNA fast but catastrophically forgets English, lower LR preserves English with DNA at chance; separate embedding/body LRs, gradient-conflict layer protection, specialist merging, more replay, and embedding-init schemes all FAILED; what worked was lower LR + larger model (14B preserved English where 4B at the same LR did not) + longer run; cosine beat WSD (WSD worsened forgetting in their experiments). (3) SFT — 3 epochs, cosine 1e-5 → 1e-6, loss on assistant tokens only; variant-effect reasoning (~30%), sequence classification, procedurally generated DNA skills, sequence recovery, bio Q&A, general chat. Supervision provenance (blog): distillation was tried and ABANDONED — frontier teachers refused/hallucinated, open models too weak, self-distillation from the mid-trained model's own RL rollouts imported unsupported claims; instead they built deterministic verifiers that check claims against the supplied DNA with domain experts, and the grounded SFT checkpoint beat the self-distilled one on FrontierVEP. (4) RLVR — asynchronous GRPO (TRL + vLLM), thinking disabled, two rounds with pass-rate-based prompt selection from the model's own rollouts (98,433 prompts round 1, 58,249 re-selected round 2), 16 samples/prompt, completions ≤4,096, LR 1e-6, asymmetric clipping ε=0.2/0.28, max grad norm 0.2; rewards are code-checked verifiers per task, INCLUDING a penalty for ungrounded rationales in variant-effect prediction. RESULTS — ALL first-party HF, no independent replication, released same day: five DNA benchmarks (thinking disabled, 1 sample/problem; each rival shown at the reasoning effort with its highest AVERAGE — their selection rule): BioReason Coding 74.9 (best; GPT-6.1 Sol Max 71.0, Opus 5.5 Max 70.3), BioReason Non-SNV 85.1 (Opus 94.8, GPT 91.7), GenomeQA 63.6 (GPT 67.2), NextBase 39.4 (best; GPT 32.9), FrontierVEP 70.4 (Opus 76.2, GPT 74.9) — average 66.7 vs GPT-6.1 Sol 67.5 and Opus 5.5 60.9, claimed +27 points over the Qwen3-14B base (base row not tabulated) at ~1/1,800 the inference cost per problem by their cost model (blog subtitle says 1,000× — internal inconsistency, flagged). GenomeQA hides two weak tasks (histone marks 34.6, splice sites 29.8). General ability retained: IFEval 79.3% prompt-level strict. KEY CONTROL: RL applied directly to Qwen3-14B with no mid-training never rose above the 50% chance baseline on FrontierVEP — the capability had to be installed by mid-training first. Sub-agent result (first-party): Kimi K3 with required Carbon-X consultation rose 49.4% → 60.5% (+11.1pp) on their DNA index. Authors' limitations: not clinically validated; exact sequence operations unreliable (pair with deterministic tools); hallucinates without context; long DNA generation degrades (a reader/explainer, not a designer); inputs beyond training lengths untested; eukaryote-infecting viral genomes excluded from training data. Two of the five benchmarks (FrontierVEP, NextBase) were built by the authors themselves, and several frontier-model scores are refusal-driven rather than capability-driven (authors transparent: e.g. Opus NextBase falls to 1.1% at max effort as refusals rise) — the "matches frontier" framing partly prices in rivals' safety refusals. Also unresolved between primaries: blog says Carbon-X "works with llama.cpp," model card says llama.cpp/GGUF are NOT supported because the custom DNA tokenizer cannot load there — flagged.
- Paper
Truncate or Not? A Scaling Study of Looped Transformers with Truncated Backpropagation
Asks whether truncating backpropagation through the loops of a looped transformer is worth it, answered as a compute-allocation problem rather than a recipe comparison. Setup: a loop setting (T,B) runs T forward loops of a shared recurrent block and backpropagates only through the last B — the state s_{T−B} is detached, so the first T−B loops run gradient-free and store no activations (a backward loop costs 2× a forward loop). Only suffix truncation is studied; no random-window variant. Architecture is the Huginn-style prelude–recurrent–coda of Iso-Depth (Schwethelm et al. 2026), whose recipe the study adopts wholesale — input injection of s₀ at every loop, per-loop RMSNorm, and the cross-entropy loss applied ONLY to the final state s_T (final-only supervision throughout; per-loop/deep supervision is never varied). 592 training runs on FineWeb-Edu (Llama-2 tokenizer, 2,048-token sequences): a 347-configuration scaling suite over five sizes (58M–919M non-embedding parameters; recurrent block ≈51% of N), fifteen (T,B) settings with T ∈ {1,2,4,8,16} and B/T from 1/4 to 1, and 1.1–1,291 tokens per parameter; MuonH for block/injection matrices, AdamW elsewhere; metric is held-out validation loss (nats/token). The unified law writes N_eff = N_once + g(T,B)·N_rec with looping coefficient g(T,B) = exp[c(1 − T^{−p}B^{−q})], fitted c = 1.112, p = 0.237, q = 1.022 (R² = 0.9992; leave-one-(T,B)-out RMSE 8.7×10⁻³ nats). Consequences: the loop gain saturates at a ceiling of e^c ≈ 3.04× on the recurrent block; g(2,2) ≈ 1.91, i.e. two fully trained loops are worth nearly two untied copies; and because q ≫ p, effective size is set mainly by B — at fixed B, extra forward loops add almost nothing (under the law, a (4,1) model has the effective size of a non-looped model only 1.19× its parameter count, vs 1.76× for (4,4)). The truncation discount for dropping the same fraction of loops shrinks with T (~18% of the loop gain at T=4, B=2; ~3% at T=16, B=8). WHEN T IS PRESCRIBED, truncation pays — this recovers Iso-Depth's fixed-depth result and explains it: the freed backward compute buys a larger model and more tokens, and the law's optimal B* is just 2 for every T ≥ 4 (at T=8: 33–35% less compute at equal loss in separately fitted frontiers, reinvested as a 1.51× larger model and 1.20× more tokens; at T=16: 1.70× and 1.31×). WHEN BOTH COUNTS ARE FREE, full BPTT is optimal: because q > 2p, the law's continuous optimum at fixed loop-compute S = T+2B is exactly T = B = S/3 at every compute level, and matched-compute runs confirm it — at 17.2B tokens, (4,4) beats (8,2) at identical size, tokens, and compute at all five sizes, by 0.028 nats at 60M shrinking to 0.009 nats at 1B; separately fitted frontiers give (4,4) an 8–14% compute advantage at equal loss. Hence the prescription: run fewer loops and train them all. Near-tie honesty from the paper: half-truncated settings like (8,4) and (16,8) sit just below the full-BPTT frontier (≤2.2% more compute per effective parameter), and (4,3) edges fully trained neighbors by ≤0.002 nats in a narrow band. Allocation rules under full BPTT: at fixed model size, T* ∝ C^0.24 and D* ∝ C^0.76 (a 10× compute increase ⇒ ~1.7× the loops, ~5.8× the tokens — most new compute goes to data); with size also free, no looping at all is compute-optimal (untied copies beat g(T,T) < T), and the best looped setting is (2,2): experimentally within 0.008 nats of the compute-optimal non-looped model at equal compute across three budgets with 27–32% fewer non-embedding parameters (344M vs 471M at 2.1×10¹⁹ FLOPs, loss 2.36 vs 2.37), and with 8% more compute it beats the non-looped model outright with 27% fewer parameters. Why the usual defense of truncation fails here (paper's Appendix B.2): the fixed-point/Neumann-series argument makes dropped gradient terms shrink geometrically only if the loops nearly converge, but production looped LMs run few loops, states stay far from a fixed point, and the bias compounds across every update. Authors' limitations: dense models only (looped MoE untested); validation loss only — downstream/reasoning transfer not established; T capped at 16, so the gain ceiling is extrapolated; prelude/coda-to-recurrent parameter ratio held fixed.
- Paper
Reward Misspecification Degrades Chain-of-Thought Monitorability
Controlled testbed for a question prior monitorability work mostly approached via monitor pressure or inference-time cues: does a misspecified OUTPUT reward alone — no pressure on the CoT, identical inputs for paired models — make reward hacking invisible to a CoT monitor? Design: from the same base model, train a control on a true reward r_t aligned with the stated task intent and a misaligned model on a misspecified reward r_m favoring a different behavior; a rollout is labeled a hack (Y=1) iff r_m > r_t on it. Three tasks, each modeling a known real-world hack: (1) Length — answer within N words (HF Helpful Instructions); r_m pays for EXCEEDING the limit. (2) LM Judge — assign preference scores summing to 1 to a Gemini and a Claude response selected as equally preferred by humans (Arena-Human-Preference-140k); r_t pulls toward (0.5, 0.5), r_m toward (0.9, 0.1) for Gemini whichever position it occupies; hack = output closer to the biased split. (3) Coding — LeetCode problems with only 10 tests each; r_t = pass all, r_m = pass a nonempty strict subset (passing all 10 does not guarantee correctness, a stated labeling caveat). Training: GRPO-style, fully on-policy, run on Thinking Machines' Tinker API with LoRA rank 32 (batch 16, group 8, max rollout 8,192 tokens, LR 4e-5; 120/250/800 steps for length/judge/coding), 3 seeds, on three base models — gpt-oss-20b, gpt-oss-120b, NVIDIA-Nemotron-3-Nano-30B-A3B-BF16. An LM monitor (headline: gpt-5.6-luna; gpt-4.1-mini as the weaker comparison) reads only (intent, query, CoT) and predicts Z=1 if the model pursues a different intent than stated. Two metrics in [0,1], both built to punish false alarms: intervention g-mean² (from Guan et al. 2026) = TPR_mc × √(TNR on misaligned × TNR on control), where TPR_mc counts only hacks ATTRIBUTABLE to the misspecification (corrected by R_effect, the share of the misaligned model's hacks exceeding the control's hack rate) and false positives are charged both on controls and on the misaligned model's non-hacking rollouts; reward-intent g-mean² = TPR × TNR for the different label "was this rollout's model trained on r_m" — it REWARDS flagging the misaligned model's non-hacking rollouts, which intervention g-mean² penalizes; the two capture "will it hack in this output" vs "does the CoT reveal the training reward." BASELINE RESULT (final checkpoint, 9 task×model cells): misaligned models hack at mean rate 0.87 (length 1.00 across all three models; judge 1.00/1.00/0.93; coding 0.67/0.61/0.59) vs 0.05 for controls — yet intervention g-mean² averages 0.13 and reward-intent 0.17, no cell above 0.31 intervention or 0.34 overall; the monitor flags only ~18% of hacking rollouts. Mechanism: the CoT keeps reasoning about the PROMPT's intent (stay under the limit; judge fairly) while the output serves the reward — outputs run to 3× the word limit under CoTs arguing for brevity; on coding, monitorability tracks whether the CoT happens to draft the solution or collapses to phrases like "Output code" (a source of the high per-seed variance). A stronger monitor buys little (+0.09/+0.12 average over gpt-4.1-mini, and nothing on Judge, where CoTs almost never mention identity bias). THE FIX — reward description training, requiring NO prior knowledge of the misspecification: during the baseline run, sample rollouts on 50 held-out queries every 10 steps; take the 5 queries with the highest reward variance; have an LM (gpt-5.6-terra) generate 8 candidate natural-language descriptions of what the reward favors; select the candidate that most raises the UNTRAINED base model's reward when placed in its context (e.g., Length: "A high reward is predicted by the response exceeding the 1,351-word limit"; Coding: "The reward function is effectively inverted relative to the stated intent"). Restart RL from base with the description injected into HALF of each group's rollouts (all-injection destroys the signal: if every CoT verbalizes it, verbalizing can't distinguish high- from low-reward rollouts); the training update is computed on the rollouts WITHOUT the description visible (Deliberative-Alignment-style), so the CoT learns to state the true objective under ordinary inputs. RESULTS: monitorability improves on average by +0.24 (intervention → 0.37) and +0.42 (reward-intent → 0.59), driven by monitor TPR rising 0.18 → 0.85; description-trained CoTs say things like "We need to produce buggy solution." BUT HACKING IS NOT FIXED: mean hack rate only 0.87 → 0.79, and several cells move the wrong way — gpt-oss-120b/Length hack rate falls 1.00 → 0.45 yet its intervention g-mean² DROPS 0.23 → 0.17 (fewer hacks means fewer attributable true positives to find; reward-intent flat 0.34 → 0.34); Nemotron/Judge hack rate rises 0.93 → 1.00 and Nemotron/Coding 0.59 → 0.66 even as their monitorability improves; per-cell intervention under description training ranges 0.15–0.91 (best: gpt-oss-20b/Length 0.31 → 0.91). False-positive costs are real and partly artifactual: monitors flag more of the misaligned model's non-hacking rollouts (on Coding, a solution failing ALL tests is labeled not-hacking, so a monitor that correctly reads hacking intent is penalized), and on controls the inferred description of the TRUE judge reward ("as close as possible to an exact tie… regardless of response quality") itself sounds suspicious and draws flags. ABLATION: removing the stated word limit from the prompt (underspecified intent) leaves monitorability low for gpt-oss-20b (intervention 0.31 → 0.15) and Nemotron (0.08 → 0.05) — an explicit prompt–reward conflict is NOT necessary — while gpt-oss-120b improves (0.23 → 0.37) only because its CoT enumerates many output topics, leaking the coming length. POSITIONING: vs Baker et al. 2025 (monitor pressure breeds obfuscated hacking) — here there is no CoT pressure at all; vs Turpin et al. 2025 (verbalization fine-tuning for KNOWN prompt cues) — here the cue is a training-time reward, unknown in advance and inferred; the identical-inputs paired design also removes the cue-matching shortcut that inflates monitor scores in inference-time-cue studies. No dedicated limitations section; stated caveats are the 10-test coding labels, small synthetic testbed (3 tasks × 3 models, LoRA fine-tunes), coding monitorability's dependence on CoT verbosity/collapse, and exact reproduction being tied to the Tinker API (reproducibility statement; authors state no reason to believe results are Tinker-specific). Code public (Apache-2.0; repo created 2026-10-15).
- Tool
Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels
A library of fused communication-and-compute kernels for expert-parallel (EP) MoE on NVIDIA SM100+ (Blackwell) GPUs. The caller supplies top-k expert IDs and scores (routing itself is out of scope); a reusable context owns symmetric, peer-addressable HBM dispatch/combine buffers (NVLink) and executes dispatch → grouped expert GEMM (W13 → SwiGLU → W2) → combine as one ordered operation, with forward and backward (FPROP/DGRAD/WGRAD) kernels throughout. Precision/pipeline matrix: BF16 "standard" (training + inference); MXFP8 E4M3 in Staged (separate W13 and SwiGLU/W2 kernels) or Mega (both projections fused into one chunk-pipelined kernel with chunk-local readiness) pipelines (training + inference); NVFP4 in Staged or Mega, inference only, prepared weights. Kernels are CuTe/CUTLASS-DSL; validated stack is Linux ARM64, PyTorch 2.14 + CUDA 13.0, NCCL 2.30.7; no CPU fallback. Two mechanisms distinguish it from DeepEP (dispatch/combine comms only, no fused expert compute), MegaBlocks, DeepSeek's Mega MoE/DeepGEMM (fused forward only, no fused training backward), ByteDance Comet/Flux (no CUDA graphs on the dynamic-routing path, no packing policy), and Cursor's Mixture-of-Kittens (MoK): (1) dynamic activation packing — a planner packs saved forward state from all layers sharing an activation slot into one bounded buffer instead of reserving a per-layer budget, and it works during CUDA-graph replay; (2) dynamic, capacity-driven recompute — when the slot budget is exhausted the planner keeps mandatory layer inputs and rebuilds the remaining intermediates in backward, decided by device predicates so the host launches one fixed, graph-stable sequence (soft limit; scratch overflow without VMM host-backed overflow is a hard error). Also: full CUDA-graph support and non-strict make_fx (full torch.compile/strict export explicitly NOT supported), fused post-expert RMSNorm + score weighting + top-k reduction, clamped SwiGLU, in-place WGRAD accumulation into standard parameter.grad, and no shared-expert branch required — routed-only execution, -1 expert ID disables a route (MoK's reviewed API, by contrast, requires shared-expert weights). TorchTitan integration: a DistMoeTransform swaps stock RoutedExperts for the Dist-MoE backend in place (same GroupedLinear parameter layout, so FSDP/optimizer/checkpoint ownership is unchanged; requires mixed_precision_param="bfloat16"), plus a rank-wide DistMoeRuntime.Config (scratch/activation-slot capacity factors, VMM factor, pipeline-parallel slot policy); verified 671B DeepSeek-V3 recipes ship in torchtitan_recipes, MXFP8 Mega fused inference is wired for RL generators, and NVFP4 inference is in the library but not yet exposed by TorchTitan. Benchmarks — ALL Meta-reported, GB300 NVL72, no independent replication: "useful" throughput counts only real GEMM FLOPs (fwd = 6·T·K·D·F per GPU; bwd = 2× fwd), excluding padding and replay work, divided by whole-layer iteration time (median of five 30-iteration CUDA-graph windows, slowest rank; comm/quantization/padding time stays in the denominator). Headline MoK comparison (both implementations given one BF16 shared expert, D=7,168, 384 experts, top-6, 2,048 tokens/GPU, CUDA graphs on): up to 1.40× over MoK — specifically the synthetic ten-layer packing training workload under per-layer routing imbalance (MXFP8, EP64), where Dist-MoE packed all ten layers' saved state at capacity factor 2.5 with zero capacity-induced recompute (peak allocation 49.73 GiB vs MoK 48.37 GiB); Meta notes the experiment does not isolate how much of the gain is avoided recompute alone. MoK was chosen as baseline because Cursor's published single-layer NVL72 results lead the other OSS stacks (DeepEP+PyTorch, DeepEP+TransformerEngine, HybridEP+Megatron). Separate standalone suite (zero shared experts, one routed layer): 3.09 useful PFLOP/s per GPU NVFP4 Mega inference (EP16), 1.86 MXFP8 Staged training (EP64), 1.27 BF16 training (EP64) — vs dense datasheet peaks of 15/5/2.5 PFLOP/s respectively. Imbalance scaling is sub-linear: NVFP4 inference EP16, 8× received rows on the busiest GPU → 4.82× iteration time (~40% lower time per received row). Stated limitations: SM100+ only; no NVFP4 training, MXFP8 E5M2, MXFP4, A8W4, communication quantization, or expert borrowing in this release; the explainer itself discloses that EP32/EP64 training ran at different sites, some allocations shared an NVLink fabric with unconfirmed timing overlap (not uncontended-peak evidence), and HBM byte rates are modeled, not measured.
- Post
Reactive Optimizers — OPAL (OPtimizer with an Agent in the Loop)
Thesis: optimizers are static — hand-crafted or discovered offline, then run unchanged. A reactive optimizer instead puts a zero-shot LLM agent (Claude Opus 5.5 in all blog experiments; nothing learned or retained across runs) inside a single training run and gives it code as the entire interface. The agent iteratively rewrites two programs: `updater.py`, the optimizer itself, executed every step — the whole algorithm is up for rewriting, not just hyperparameters — and `analysis.py`, self-written probes that extract the training-dynamics statistics the agent chooses to watch (per-parameter-group gradient norms, update size relative to weights, cosine between consecutive gradients, per-tensor spike detection). One agent conversation spans the run, so it remembers what it tried and why. In the released package, checks run every 50 steps, decisions are capped (default ≤50, front-loaded into the first 5% of the run), and the agent's remit is bounded: it cannot touch model, data, loss, batch size, step count, or evaluation, and until its first edit the wrapped run is bit-for-bit identical to the plain run. Guardrails in the package: a new updater takes over on all ranks at once and runs a 20-step trial — an error reverts to the previous program; a first-step failure is undone exactly when a snapshot of parameters + optimizer state fits in `snapshot_limit_gb` (default 2 GB); a later failure is NOT undone and the agent is only told; an `eval_integrity` check flags a program that moves parameters away for an evaluation and back. Training can run asynchronously while the agent thinks (blocking=False), edits landing a median of 65 updates later on Goldfish. Headline claim (authors'): where no recipe has been tuned for the setting, OPAL — always INITIALIZED from an existing recipe — matches or beats the best recipe one could pick off the shelf one-shot. Baselines, precisely: for settings derived from modded-nanogpt Track 3 (162M GPT on FineWeb), five leaderboard records transplanted with natural adjustments (#46, #30, #21 Shampoo, #36 tuned Muon, #2 AdamW; at quarter batch, all LRs ×¼) — OPAL initialized from #36 ranked first in every new setting (quarter batch; Chinese, Thai, Kyrgyz from 1 GB Goldfish sets; Chinese/Thai bars are means of 3 runs). Goldfish Amharic (125M GPT, 1 GB, 10 epochs; metric bits/sentence on held-out FLORES-200): official recipe 83.48 → OPAL from that recipe 81.11; an LR sweep found a static recipe at 80.89 — ahead of OPAL-from-official — but OPAL initialized from the swept recipe ended ahead again at 80.73 (Swahili similar: 79.37 → 77.60). Image generation: LightningDiT-XL/1 on ImageNet, FID-50K 1.83 vs official recipe's 2.18 with guidance (4.33 vs 5.15 without); RAEv2-B (official recipe already a Muon variant, GMuon) 3.19 vs 3.39 in the blog — the repo table shows prompt sensitivity: 3.10 with an efficiency-asking prompt, 3.46 with the neutral prompt. SiT-B/2 (repo table): FID-50K 35.7 → 23.6. On the original, heavily tuned modded-nanogpt setting the gain is small (validation loss 3.2749 vs record #36's 3.2781), and the README documents a run that ended WORSE (3.2878 on OPAL 0.2.0). What the agent actually does, from the decision logs: builds intricate per-parameter-group multi-stage LR schedules (including mid-run LR increases; A/B/A tests alternating two LRs for a few hundred updates each and keeping the winner; re-planned earlier cooldowns from loss trends); migrates tensors from AdamW to Muon module-by-module (attention/MLP first, then adaLN split into chunks, timestep embedder last); on modded-nanogpt it measured that token-embedding entries are ~15 in size where adjacent bf16 values are 0.0625 apart, so as the LR decayed, rounding would discard a growing share of each update — from update 1,040 it kept that one matrix's Adam moments in float32 with compensated rounding on writeback and left everything else alone. Loss-spike defense: in a SiT run it traced 17 of 18 logged gradient spikes to the timestep embedder and wrote per-tensor clipping thresholds set from each tensor's own recent gradient norm (global threshold kept as backstop); in a controlled ResNet-18/CIFAR-10 experiment with four inserted stretches of random images and labels (agent not told), the first two stretches cost it −50.0 and −66.3 accuracy points (≈ the static baselines), but between stretches it added loss damping, replaced it with clipping, then wrote a gate that holds back batches whose loss is far above recent clean ones — the third stretch cost −12.1 and the fourth +0.7, while Muon+clip, AdamW+clip and Stable-SPAM still lost 28.5–76 points per stretch. Overfitting: ResNet-18 on CIFAR-10 with 10% wrong labels, no augmentation, agent sees train + dev metrics but is never told about the label noise — AdamW ends at test loss 2.49 / 73.5% accuracy (early-stopped 1.01 / 72.9%; weight-averaged 0.83 / 77.5%) and predicts the wrong trained label on 100% of the 4,500 mislabeled training images; OPAL ends at 0.69 / 78.6%, predicts the wrong label on only 4% (true label on 78%), via progressively higher learning rates plus a self-chosen weight average ("extended SWA") selected on the dev set. Toy control check (2D landscapes, OPAL restricted to heavy-ball with momentum resets/return-to-best): mean log10(f − f*) −11.6 vs −2.2 for the best of 12 common static recipes and −7.4 for the best of 382,080 swept recipes. Cost: ≈100 decisions on LightningDiT cost $6.42 at Opus 5.5 list price on top of ~74 H100-hours (~$510 AWS on-demand); asynchronous mode adds 1.01–1.14× wall-clock vs the static run (blocking at every decision: 1.30–4.39×). Authors' stated limits: gains shrink when a run is short AND its recipe is already fine-tuned (the two conditions coincide in the original modded-nanogpt setting; other settings train 8–120× more updates); reactive behavior is another source of nondeterminism and makes training less reproducible; most experiments run once, a few three times; the current implementation does not support sharded training or optimizer compilation. Repo README adds: v0.3.4, single GPU / single-node DDP only (no multi-node, FSDP, DeepSpeed); "the agent can make a run worse: it cannot restart or roll back training, it can only fix its programs at the next decision"; results vary run to run because the agent chooses differently. Repo ships a one-line `opal.wrap()` wrapper around any torch.optim optimizer, `opal doctor` / `opal estimate` / `opal show` / `opal report` tooling, examples, a CPU test suite, and an experimental Codex backend (gpt-6.1-sol); 34 stars, created the day of the thread.
- Paper
TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
Problem: a transformer processes every input token through every layer, so long-context prefill (quadratic attention, linear MLP + KV growth) dominates serving cost. Prior work splits into training-free token-pruning heuristics (attention-score based; limited speedup before accuracy degrades) and architectural conditional compute (needs pretraining from scratch). TokenGate instead retrofits a trained model. Mechanism: a gate module sits inside one layer L (L=1 in the main experiments; multiple gates generalize). A small scoring MLP reads each prunable token's normalized post-attention residual at layer L and emits a scalar, RMS-normalized across the sequence into an importance score b_j; a top-K selector forwards S = top-K prunable tokens ∪ the non-prunable set (instructions, the question, answer/decoded tokens — in the code API, everything outside a marked {state} document span). Pruned tokens' residual streams stop at L: layers above L never process them and never generate KV entries for them, so the method is both prefill-compute skipping and upper-layer KV-cache reduction (layers ≤ L keep full KV by default; pruning those too is optional). The trainability trick is token-gated attention: in layers above the gate, each kept key's attention logit gets an additive bias softplus(γ^{ℓh})·b_j (head-wise learnable gains), under a temperature τ scaled by log(kept rank)/log(original position) (SSMax-inspired) that recalibrates softmax sharpness after pruning and generalizes across budgets — this gives gradients through the non-differentiable top-K, the same way MoE routers learn. Implemented as a FlashAttention-based kernel (custom FA2 key-bias kernel in the repo; FlexAttention fallback). Training: NOT from scratch and no sparsity/auxiliary loss — LoRA co-adaptation (r=16, α=32 on Q/V projections; backbone otherwise frozen; Muon for the gate matrices) plus gate parameters, plain next-token CE. Each step averages a full-context loss (K = all prunable tokens; anchors full-context accuracy and gives pruned tokens gradient) with a pruned loss at K ~ LogUniform(1, |𝒫|/2), so one trained gate serves every budget K at inference; the scoring MLP is zero-initialized. Training contexts 2k–16k tokens; a step costs 1.3× standard SFT but converges in fewer steps on 4 of 5 tasks, so total training time is comparable to or below LoRA SFT (mean 0.8× A100-hours at 1.7B). Results (Qwen3-1.7B, five tasks — NIAH 16k, RepoBench-P mean 11k/max 39k, 2WikiMultihopQA mean 7.5k, MultiNews, BioDEX): Pareto-dominant on all five; TTFT 1.4–11.3× faster and peak prefill memory 1.5–3.4× lower at no accuracy degradation vs the LoRA-fine-tuned full-context model, and up to 6.4× faster / ~2× lower memory than the best prior pruning baseline at matched accuracy (baselines: FastKV, SlimInfer, DASH, GemFilter; sparse-attention FlexPrefill, MInference). Launch-figure numbers at matched accuracy: NIAH TTFT 425→37 ms (11.3×; best prior 235 ms), peak memory 2.4→0.7 GB (3.4×); RepoBench TTFT 286→72 ms (3.9×; best prior 201 ms), memory 1.6→0.6 GB (2.8×). A more typical operating point: 2WikiMultihopQA at 95% of full-context accuracy = 3.0× faster, 2.7× less memory. Extrapolation: a gate trained at 16k holds accuracy at 32k/64k/128k with TTFT speedup rising to ~13× (memory reduction flat ~3.43×, since peak memory is dominated by the below-gate full forward). Ablations: the learned selector beats random-K and FastKV's attention-score selector at the same layer by wide margins; co-adaptation independently helps (random-K on the TokenGate-trained model beats random-K on the plain fine-tuned model — training redistributes information into kept tokens); learned keep-patterns are task-dependent (answer keywords for QA, phrase-final stopwords for summarization). Repo's held-out test table (batch 1, one H100): NIAH-16k @K=2000 accuracy 1.000 vs raw base 0.993 at 6.3× TTFT, still 1.000 at K=100 (8.1×); a 32k haystack demo answers the needle with 144 of 32,191 tokens retained above the gate. Hybrid architectures: on Qwen3.5-2B (24 layers; full attention at layers 3,7,11,…,23, Gated DeltaNet elsewhere) TokenGate can sit inside DeltaNet layers 1–2 — where attention-heuristic pruners cannot operate at all (FastKV can only prune at full-attention layers) — reaching up to 7.8× faster prefill within 6% of standard accuracy; at layer 3 it gives 3.8× lower TTFT at no accuracy loss, 2.1× better than the best FastKV run; token-gated attention applies only in full-attention layers above the gate, and DeltaNet layers above run on kept tokens only, their recurrent state built from kept tokens. Decoding (appendix): generated tokens attend to kept + generated tokens in layers above the gate, full context at/below it, with the gate bias precomputed once at prefill as a constant per-key bias — all headline claims are prefill/TTFT claims, no decode-speed claim. NOT GateSkip: the OpenReview/ICLR-2026 GateSkip paper ("What Layers When," Laitenberger et al., HU Berlin/UvA/UT Nuremberg, arXiv 2510.13876) is a different work by different authors — residual gates for token-wise layer skipping (15–50% FLOP savings), uncited here.
- 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
Rewards for Budget-Aware Multi-Turn Agents That Adapt to Arbitrary Test-Time Constraints
Asks whether a multi-turn LLM agent can learn to allocate an inference budget itself — across turns and resource types — instead of leaving enforcement to an external harness, and which reward teaches it best. Framework (budget-augmented POMDP): total budget B0 and remaining budget bt are written in natural language into the observation at every turn (bt decremented by each action's realised cost — step = 1, token cost = emitted length incl. reasoning, API cost = executed calls), so the policy conditions directly on allowance left; budgets are sampled uniformly per episode from a six-value training grid, and overspending is permitted during training so the policy learns from it. Two metrics at each stated budget b: budget utility U(b) = probability of solving the task with the rollout finishing within budget (the practical cutoff setting), and natural compliance Comp(b) = probability the rollout terminates within budget on its own, regardless of success, with no external cutoff. Training: Dr. GRPO from post-trained Qwen3.5-4B and 9B checkpoints, one separate policy per environment × resource type, each trained across budget values. Eleven objectives compared in the shared pipeline, organised in four families — hard boundary (Trunc: rollouts halted at B0, reward = task success within it, the only method with an enforced cutoff; Gate: overspend ⇒ return 0; Gate-Neg: overspend ⇒ fixed −1, adapted from Kimi K3's step-function shaping), within-budget cost pressure (Sigmoid: return R − σ(2(C̄−1)), penalising before the boundary; Linear-Cost: linear cost penalty from the first action), gradual post-budget magnitude shaping (Sigmoid-Gate: sigmoid penalty on overspend only, in-budget return untouched; Linear-Mag: DAPO's soft-overlong penalty generalised to normalised cost; Exp-Mag: success reward decays exponentially in overspend), and learned per-budget violation prices (Rate: Lagrangian step price per budget tracking the overspend frequency, price capped at 1; Dual: learned frequency price + DAPO linear magnitude price, each capped at 0.5). Baselines: Base (untrained, same budget feedback) and GRPO-Std (binary task reward only). Results (AppWorld test-normal under step/token/API-call budgets; BabyAI gridworld under turn budgets): prompting alone fails — at step budget B=36, Base budget utility is 37% (9B) and 19% (4B), and 9B Base complies on fewer than half of episodes across the token range; GRPO-Std improves task success but keeps weak compliance. The stronger budget-shaped objectives beat both baselines on both metrics, and behaviour is genuinely budget-responsive: spend rises with the stated allowance and with task difficulty, and under step budgets budget-aware policies learn to batch API calls (≈1.9 calls/turn at B=10 vs ≈1.5–1.6 at B=32; GRPO-Std stays ≈1.0) — batching is an emergent allocation strategy. Objective trade-offs (Table 2, pooled over the eight experiments): Sigmoid-Gate most often has the highest utility at an individual budget (20.1% win rate); Dual has the smallest mean regret to the per-budget best (2.92pp; Gate 3.33pp despite having no explicit overspend penalty); Gate-Neg generally attains the highest natural compliance but pays for it in utility (6.00pp regret — the strong penalty makes the policy hesitant near the boundary); Linear-Mag is worst (14.01pp). Two design lessons: Gate beats Trunc on all pooled metrics — retaining overspending rollouts in training (they earn negative advantage against in-group successes) teaches more than cutting them off; and magnitude penalties are not required for small overruns (Gate/Gate-Neg have comparatively small conditional overspend without one). Generalisation: gains hold at interpolated and extrapolated unseen budgets (9B utility keeps rising past the largest training step budget of 29 on shifted tasks), persist zero-shot on the distribution-shifted AppWorld test-challenge split, and transfer zero-shot to the new benchmark ASTRA (Xiu et al. 2026; personal-assistant tasks, same Python-REPL interface, step budgets only). Limitations/failure modes (authors'): one resource type at a time (no joint token+call+step budgets); budgets fixed at episode start; natural compliance is imperfect — a strict deployment budget still requires an external cutoff; most comparisons use one training seed (extra seeds cover two objectives in one setting), so ordering among the leading methods is not reliable; prompts bundle budget feedback with resource-specific advice (incl. batching hints) with no ablation, so gains are attributable to the combined prompt+training procedure; evidence is two scales of one model family in simulated environments.
- Tool
rl-env-use: RL Environments for Any Domain from Real Web-Mined Cases
An open-source tool that builds an RL environment / eval for a skill in any domain from real cases mined from the live web. Input is one line ("predict whether a completed trial met its primary endpoint from its registered protocol; ClinicalTrials.gov"); a planner writes a spec (skill, sources, conventions, outcome-blind sampling rule), then mining rounds loop mine → write → verify → frontier panel → harden → verify → panel until the task target, the budget, or two rounds with no new tasks. A case = the materials the model reads (a trial protocol, a 10-Q) plus its true outcome, published elsewhere or later; Browser Use agents mine both. Gold answers are computed by code from expressions over numbers in the materials; mined outcome facts must be quote-verified (the agent must surface the source quote). A frontier panel (Opus 5.5, GPT Astra, Gemini) measures difficulty — all-pass tasks are rewritten harder on the same case, up to two levels — and tasks are rejected for leaked answers, memorized outcomes (closed-book memory check), or ambiguous prompts. Grading is programmatic (number / date / set / exact / contains / probability), self-tested against null, foreign, and perturbed golds. The artifact is one folder, envs/<name>/: spec.json, kb.json (materials + quote-verified outcome facts + missions), tasks.jsonl (every drafted task with gold and checks; only passing tasks are served), audit.json, reviews.jsonl (human verdicts and gold fixes), and climb-<model>/ prompt versions. `export` writes the dataset for an RL trainer; `from rl_env_use import Env` serves it in code (reset, reward). Built directly on Anthropic's "Automating eval design and hillclimbing" workflow (Lance Martin, claude.dev, 28 Sep 2026; the claude-api skill's build-eval → hillclimb method) with one change: real web-mined cases instead of synthetic ones. The hillclimb loop edits a model's SYSTEM PROMPT (the model is fixed), split by case, with A/A noise floors — edits are kept only on a paired case-bootstrap test gain. Verification comparison (first-party; also shipped as a `compare` command that reruns mining with vanilla Claude Code — WebSearch + WebFetch, same model and instructions — through the same synth + verify pipeline): 8 clinical-trial-result missions, Claude Code verified 0 of 86 facts vs Browser Use 17 verified / 4 complete cases; a same-model rerun, 0 of 43 vs 3 verified / 2 complete; 8 human-genetic-variant missions (UniProt, gnomAD, GTEx), 6 of 82 vs 40 verified. Shipped example envs/trial-forecast: 35 forecasts from 29 ClinicalTrials.gov trials whose results were posted since July 2026, after the models' training data; built for $72 ($17 of it Browser Use). A prompt-climbed open Qwen 3.6 35B-A3B goes 0.53 → 0.78 on held-out tasks it never trained on (score = 1 − Brier; +0.25, 95% CI +0.07 to +0.45), level with Opus 5.5 (0.77) and below GPT-6 Astra (0.81); the climb kept 1 of 12 proposed edits (base-rate priors per question type). The README is explicit that most of the gain is calibration: always answering 50% scores 0.75, so the base model's 0.53 sat below the constant baseline because it answered 0 or 1. Maturity: repo created the day of the announcement (2026-10-21), 10 commits, 43 stars, no releases; Python 3.11+, optional Node 18+ for HTML reports; offline pytest suite included. Human review is built into the step-by-step mode (three sign-offs: cases, tasks/grading, pilot cost); an autonomous mode is the default.
- Paper
Asymptotic Risk of Learning-Rate Schedules for Least-Squares Regression with Discretely Distributed Features
Exact last-iterate theory for SGD on streaming least squares under Slock's model (Slock 1993): each sample activates a single eigendirection of the covariance H (drawn with probability ∝ its eigenvalue λ_i), which decouples the dynamics across eigendirections and makes the risk computable in closed form — one-hot features are a special case. Under power-law capacity and source conditions (Assumption 3.2: λ_i = L·i^(−α), α>1; squared initial error per eigendirection m_{0,i} = Δ·i^(−β); write ω = (α+β−1)/α), the authors derive the exact finite-time risk (Theorem 3.1, an explicit bias+variance decomposition) and asymptotic equivalents for the constant schedule and the WSD family η_j = min{1, (T−j)/(cT)} — stable phase then LINEAR decay over the last fraction c of the horizon; warmup is explicitly excluded from the analysis, and the strict constant schedule is the excluded limit c=0. Mechanism: at fixed base LR γ, the constant schedule's variance does not vanish (V_T → (ζ(α)/2)·σ²Lγ/(2−γ·Tr Λ)), while WSD's variance decays — as γ^(1/α)·T^(1/α−1) for 1<α<2 and γ^(1/2)·T^(−1/2) for α>2 (the critical case α=2, with log corrections, is omitted). With each schedule run at its own tuned base LR γ̃*_T (which vanishes as a power of T), the optimal risk is Θ(T^(−q)) with q = ω/(v+ω), where the schedules differ only through the variance's γ-exponent v: v=1 for constant → q = (α+β−1)/(2α+β−1); v=1/α for WSD with 1<α<2 → q = (α+β−1)/(α+β); v=1/2 for WSD with α>2 → q = ω/(ω+1/2). Since v_WSD < 1 always, ANY cooldown of fixed relative length c>0, however short, strictly improves the exponent over the constant schedule — a polynomial-factor gain in T (exponents agree with Li et al. 2025, derived there up to constants; this paper resolves the constants). The cooldown length c enters only the prefactor, and the prefactor is minimized at c* = 1 in both regimes (Corollary 5.2: for α>2 the c-dependent factor is (c(2−c))^(−1/2); for α<2 the objective W(α,c)/(2−c)^(1/α) is strictly decreasing in c) — pure linear decay is optimal within the WSD family when γ is tuned. Learning-rate transfer is explicit: log(γ̃*_T(1)/γ̃*_T(c)) has a closed form independent of T (Eq. 19), matching co-author Schaipp et al. (2025)'s convex-bound numerics and their Llama-style measurements (20% cooldown → γ*(1) ≈ e^0.7·γ*(0.2)). Averaging comparison: when α<2 and β<α+1, WSD's optimal last-iterate rate coincides with that of averaged constant-step SGD (up to a constant) — a cooldown recovers, for the last iterate, the (unimprovable) rate of averaging; averaging itself saturates at ω=2. Caveat within the theory: for α>2, polynomial cooldowns η=(1−t/T)^δ beat linear WSD across all schedules (Bordelon & Mori 2026; δ=2α−1 optimal per Li et al. 2026) — linear is optimal only inside the WSD family, and this family is not analyzed. Batch size (Section 6 / Appendix B): a minibatch b rescales the noise σ²→σ²/b and trace Tr(Λ)→Tr(Λ)/b; the optimal base LR rescales as γ̃*_{T,b} = b^p·γ̃*_T (p+ϑ=1), so at fixed sample budget N=bT the optimal risk depends on b and T only through bT — batching is statistically free — but only up to a critical batch size: the stability bound γ < 2b/(Tr(Λ)+L(b−1)) saturates at 2/L as b grows, forcing b ≤ b̃_max(T), and b̃_crit(N) is the maximal b with b ≤ b̃_max(N/b) (computed numerically, Table 4, for N=2×10^5). The authors flag b̃_crit as a heuristic extrapolation: the theorem is stated for fixed b, and near the threshold the optimal LR is no longer small, so the equivalents need not apply. Validation is entirely within-model numerics (no real-data experiments): Monte-Carlo SGD simulations match the exact risk formula (Fig. 1; 50 runs, d=100, γ=0.1, α=1.5, β=2, σ=0.1); risk-vs-γ curves at T=10^5 confirm γ̃*_T is near the exact finite-time minimizer (Fig. 2); equivalents-vs-exact ratio checks (Figs. 7–8); and Slock-vs-Gaussian bias/variance ratios → 1 along the optimal vanishing-LR sequence (Appendix D). Limitations (authors', §7): least squares is smooth and convex, deep-learning objectives are not; plain SGD, not the adaptive methods used in practice; Slock's model is chosen to decouple coordinates, not to describe real data; exact power laws are assumed; the asymptotics can require very large horizons (T > 10^5 steps, worse as α→1 or α→2); only linear cooldowns are studied; no warmup analysis.
- Paper
Comparing Sparsified MLPs and Transcoders: Many Transcoder Features Are Neurons in Disguise
Asks what transcoders — sparse learned approximations of MLP layers, the substrate of attribution-graph circuit analysis — actually contribute over raw MLP neurons, prompted by Arora et al. 2026 and Ye et al. 2025 showing neuron-basis circuits can match transcoder circuits. Construction: a gated-MLP neuron at high activation magnitude is approximately bilinear, with effective encoders W_up ± W_gate and decoders ±W_down, so each neuron is treated as two sign-split features; the "sparsified MLP" is the MLP itself under layer-wise top-k thresholding (k≈50–64) on sign-split activations — a narrow transcoder with no learned weights. A transcoder feature is a NEURON FEATURE iff both its encoder and its decoder exceed a cosine threshold to the SAME neuron's effective encoder and decoder (the per-feature similarity distribution is bimodal; the separating threshold varies 0.6–0.9 across transcoders, headline claims at 0.6/0.7). Evaluated across 13 open-source per-layer transcoders (TopK and JumpReLU, two codebases) on dense base models 1B–27B (Gemma 2/3, Qwen 3, Llama 3.1/3.2; detailed testbed Gemma 3 4B). Prevalence: neuron features are a small share of the dictionary (late layers 5.9% → 8.9% → 15.6% → 37.1% from 1B to 27B) but fire >10× more often than other features, so they dominate activations — 57.9% → 82.8% of late-layer activations over the same range, near zero in early layers and >50% by mid-model; in attribution graphs they are ≥40% of nodes in the late third of layers for every transcoder tested (one exception ~38%). Faithfulness (§3.4): the full transcoder's Jacobian alignment with the MLP is ≈0.3; the neuron-aligned subset alone reproduces ≈0.3 while the non-neuron subset reaches only ≈0.05 — essentially all of the transcoder's first-order faithfulness is its neuron features; top-k-pruned neurons alone match or exceed the full transcoder's Jacobian alignment in late layers. Stability (§3.5): features that recur across training seeds are >50% likely to be neuron features in most configurations, and stable-feature count grows sublinearly with dictionary width — a 1M-feature dictionary discovers only ~22k stable features, comparable to the model's 20,480 sign-split neurons. Distance from init (§3.6): in TopK training, neuron features rotate to near-orthogonal to their random initialization (median encoder cos ≈ 0) while non-neuron features stay close (median cos +0.48, many >0.8) — the non-neuron remainder is partly an initialization artifact; JumpReLU pipelines behave differently. Their constructive fix, neuron initialization (§3.7): initialize encoder rows at neuron directions and alignment survives training — features with encoder similarity >0.5 to a neuron rise 11% → 92%, and aligned features carry 95% of activation mass (vs 65%). Replacement-model comparison (§2): sparsified neurons plus a trained linear reconstruction map beat transcoders on KL (replacement faithfulness) while losing on FVU (reconstruction) — part of what transcoders learn improves reconstruction only, not behavior; neurons match or exceed transcoders on sparse probing across 8 transcoders, and top neuron activations are as monosemantic as transcoder features on sort evals. Where transcoders still win: reconstruction, fine-grained concept detection (dictionary bigram features fire on their target bigram 75.6% of the time vs ~0% for neurons — though neurons still score 0.988 mean AUC on the probing task), and early layers; non-neuron features do encode extra interpretable concepts (bigrams, color), though the authors are uncertain how truly the model represents them. Recommendations: avoid transcoders with <4× width expansion (for MoEs, practically don't use transcoders); use TopK≈64 sign-split neurons as the baseline in dictionary-learning comparisons; consider neuron initialization. Limitations (authors'): base models only, mostly English, all dense, per-layer transcoders only; only sparse high-magnitude activations characterized — the low-activation regime is explicitly out of scope; neuron-feature fraction depends on architecture and threshold with no complete explanation; faithfulness measured is first-order Jacobian only, not interventional; cross-layer transcoder evidence preliminary (2 narrow models); no human evaluation (automated interpretability metrics only).
- Thread
Weak Neuron Activations Store Memorized Text (flattening ablation experiment)
An in-thread experiment testing Neel Nanda's conjecture (long-form post, 2026-10-15) about weak neuron activations. Nanda, commenting on recent neuron-based interpretability work (neuron-basis attribution graphs; Nick Cammarata's updated vision results; Transluce precedent), argued that LMs hold far more facts and memorized content than they have neurons, packed in superposition as linear combinations, so weak neuron activations should contain substantial memorized/semantic info that pruned attribution graphs miss and whose ablation would meaningfully damage performance. Brauer's test: for each neuron, take its weakest X% of activations in its ordinary regime (gate > 0, up > 0) and FLATTEN them — replace them with their mean, deliberately not zeroing (flattening all regimes gives the same trends). Models: Qwen3-32B, Qwen3-8B-Base, Llama-3.1-8B. General loss barely moves at first — weakest 50% flattened: +0.1–0.3%; 75%: +0.8%; 90%: +2.6–3.4%; 95%: +5.7–6.6%; 99%: +16–18% — but the damage is task-selective: MMLU exam questions hold ~100→92% while PopQA fact recall falls to ~65% and verbatim recitation of memorized text collapses to ~20%. Weaker activations correspond to less generalizable content; memorization lives disproportionately in the weak tail. (A refinement of Nanda, not a simple confirmation: general performance survives, so the "meaningfully damage" prediction holds for memorized content specifically, not overall loss.) Second result — an ablation-methodology correction: zero-ablation badly distorts, worst where a neuron's outputs share a sign, because zeroing shifts its mean output off-center. At the weakest-75% level, zeroing vs mean replacement costs 3×/3×/12×/30× more held-out loss across the gate/up sign regimes on Llama-3.1-8B (gate<0/up<0, the SwiGLU "double negative": +34.3% loss increase), and 5×/5×/10×/9× on Qwen3-8B-Base. Repro note: Kong et al. (arXiv 2509.24198) used zeroing of gate<0 values; Brauer rebuilt their setup and their measured effects largely evaporate under mean replacement — perplexity +26% → +1%, grammar −4.1 → −1.2 points (Llama-3.1-8B). Rule: ablate neurons by mean replacement, not zeroing.
- Paper
Copy-Paste Language Models
Adds a pointer-style Copy-Paste (CP) head beside the standard LM head, motivated by the authors' own prior result (Godey & Artzi 2026) that the LM head is an optimization bottleneck, not just an expressivity one: backpropagating V-dimensional logit gradients through the D-dimensional head compresses them like a random projection — at 135M scale (D=576, V=49,152) LM heads lose over 99% of the gradient norm before it reaches the backbone, with the loss level set by the D/V ratio. Mechanism: the CP head scores context positions with q_t = W_Q h_t and keys k_τ = W_K h_τ (two D×D projections plus one sink key, +0.5% params at 1.7B); the copy distribution marginalizes attention over positions carrying the same token. A dummy <copy> token in the LM head supplies the gate c_t (its softmax probability); a learnable <sink> key in the CP softmax supplies the fallback probability s_t; the prediction is the mixture p = (1−λ_t)·p_LM + λ_t·p_CP with λ_t = c_t·(1−s_t). Trained end-to-end with plain next-token cross-entropy — no auxiliary loss, no copy supervision; closest prior art is the pointer-sentinel mixture (Merity et al. 2017), but here the gate is decided by the LM head before any copy attention is computed, so decoding can skip the copy pass when it cannot change the argmax. Because CP logits live over t context positions (t << V), the CP gradient path preserves up to 85% of gradient norm at early positions. Setup: ~60% of FineWeb-Edu tokens already appear earlier in a 4k context; pretraining 135M–1.7B on up to 200B FineWeb-Edu tokens (SmolLM2 recipe) across Full-attention, sliding-window, Hybrid 3:1 (SW:full interleave), and Gated DeltaNet backbones. Results: CPLMs reach the vanilla final loss 1.25× faster (Full/Hybrid) to 2× faster (SW) at 1.7B; 0.5–1.5 PPL better on OOD FinePDFs at 1.7B; zero-shot +0.4–0.9 avg (LAMBADA +2.5–4.0); gains also land on tokens the model does not copy. A sliding-window (w=256) CPLM matches full-attention vanilla perplexity at 12× less memory per token (copy cache included), and w≈128 also matches; rolling perplexity keeps improving out to 16k (4× training length) while vanilla models degrade past ~1k. Mechanistic evidence: a stop-gradient ablation (blocking CP gradients into the backbone) keeps only ~25% of the gain (0.008 vs 0.031 nats/token), i.e. ~75% of the benefit is the gradient pathway, not the extra output path; on the SpamLang synthetic task (D=576 fixed, V swept 8k→512k) vanilla collapses (34% accuracy at 512k) while CPLMs solve every size; byte-level models (V=257 < D=576, no bottleneck) get zero gain — a clean falsification check for the rank theory. Capacity effect: 1.7B CPLM backbones form only 4 induction heads vs 13–15 in vanilla models while copying better — the CP head takes over the induction heads' job. Long context (needle test, 1k–64k, averaged over the depth/length grid): SW 14.3% → 99.4%, Hybrid 3:1 58.2% → 83.6%, Full 49.7% → 54.8%; BABILong/RULER +7.5 avg, LongBench +4.1 avg. SFT on Tulu-3 (1.7B): CPLM beats vanilla by +1.2–5.1 average points; SW-256 CPLM lifts MATH (levels 1–2, pass@4) 7.2% → 16.4%, above Full-attention vanilla (13.9%) and near Full CPLM (17.5%); GSM8K gains hold at every pass@k. RAG (HotpotQA distractor setting, fine-tuned 1.7B): with documents hidden from the backbone and reachable only through precomputed CP keys, CPLMs keep 90–97% of their docs-visible accuracy at 5 distractors and 34–38% EM at 500 distractors with a 50× smaller cache than a full KV cache; the SW CPLM holds 34% EM at 500 distractors where every Full model fails, and a last-layer-KV control with twice the CP cache's memory sits at 14% EM (never-sees-the-docs level); document CP keys can be computed once and reused across queries. Overhead (single B300, bf16): +0.5% params at 1.7B/9B (+0.2% at 30B); training at 97% of vanilla throughput at 1.7B (~3% slower), within 1% at 9B/30B; inference prefill unchanged, decode step +1.0–3.8%, per-request +0.8–1.7%; copy cache is D values/token (2.1% of the KV cache at 1.7B). A CPLM variant also holds the modded-nanogpt speedrun record (+11.3% over the prior record, largest architecture-centric speedup since Dec 2024). Ablations: gains are 15–40× seed std at 135M (p<10⁻³); the sink matters most at small windows (−0.3 PPL at w=32, −0.07 at w=256, ~0 at w≥512); the <copy>/<sink> gate beats Chang et al. (2023) pointer partitions and matches or beats sigmoid-gate and shared-softmax mixtures; the CP head also improves Gated DeltaNet and Hybrid-GDN backbones (~0.5 PPL in-domain, 1–6 PPL OOD). Limitations (authors'): the CP head only relaxes the bottleneck for tokens present in the context; experiments stop at 1.7B, so how benefits evolve as D approaches V is untested; shrinking CP projections to d=64 costs nothing (within 0.02 PPL of d=2,048 at 9× less cache), which the pure rank theory does not obviously predict — left open; multi-seed analysis only at 135M; ethics note that easier copying may reproduce sensitive or copyrighted in-context content more faithfully.
- Paper
Beyond Parameters: Exploring Virtual Logic Depth for Scaling Laws
Proposes virtual logical depth (VLD) as a fourth scaling dimension alongside depth, width, and parameter count: VLD = effective algorithmic depth minus base layer count, increased by repeating whole transformer layers with tied weights inside the computation graph, during training and/or inference — not token-wise test-time scaling. Three reuse patterns (after Takase & Kiyono 2021): sequence (adjacent layers share parameters in uniform blocks), cycle (a block of layers repeated), and inverse cycle (the block repeated in reverse order, motivated by larger gradient norms in higher layers). Repetition factors ×1–×3, cycle up to ×5. Two controlled measurements. (1) Knowledge capacity, operationalized Allen-Zhu & Li-style as absorbed entropy ΔH: train a model to memorize a 640k-token IID random sequence over a 50,257-token vocabulary (~15.6 bits/token, sized to the ~2 bits/parameter estimate) and measure the entropy reduction of its softmax outputs on the training sequence. Across 4-layer GPT-2 models of 5M/10M/15M/20M parameters, capacity grows with parameter count; at fixed parameters (5M and 20M tested), absorbed entropy stays nearly unchanged across all three patterns and factors ×1–×3 (reported in Fig. 4, graphically). (2) Reasoning, measured on synthetic iGSM (500K problems, trained at ≤15 operations, exact-answer accuracy, greedy decoding): GPT-2 models of 4/8/12/16 layers (≈50M/100M/150M/200M) trained from scratch. Cycle is the strongest pattern: the 4-layer model's op15 accuracy rises 46.3% (base) → 62.1% (×2) → 70.7% (×5), and the gains grow under depth distribution shift (op20: 21.8→43.8; op21: 21.2→40.2). A 50M cycle ×2 model (effective depth 12) scores 62.05%, beating the native 12-layer 150M model (61.15%) — reasoning decoupled from parameter count. Real-world check: LLaMA-3.2-3B-Instruct with Cycle VLD inserted before LoRA fine-tuning (both arms from identical pretrained weights, same 2.3B-token multi-domain SFT corpus) improves over base on Math500 30.40→35.40, GPQA 29.80→32.32, AIME 3.33→6.67, HumanEval 37.79→39.52, MBPP 38.36→40.22. "Properly implemented" is load-bearing: pattern and placement matter — inverse cycle at ×1 underperforms the base model (4-layer op15 43.9 vs 46.3; 8-layer 53.3 vs 60.5), and in an 8-layer placement ablation, cycle reuse on later layers only (5–8) scores 64.2 vs 62.0 for all layers and 54.2 for early layers only (below the 60.5 no-VLD baseline). Scaling is also non-monotonic: cycle ×3 dips below ×2 on the 4-layer model (61.6 vs 62.1), and effective depth 32 underperforms depth 16 — the authors flag possible fixed points. No fitted scaling-law functional forms or exponents are given; the laws are qualitative (knowledge ∝ parameters; reasoning ↑ with VLD). Caveats: synthetic experiments cap at 200M from-scratch GPT-2 models; the real-world evidence is a single 3B model with LoRA-only fine-tuning and small absolute gains (AIME 3.33→6.67 is one additional problem in 30); knowledge capacity is a synthetic memorization probe, not natural knowledge; all reuse experiments train (or fine-tune) with the reuse graph in place — inference-only looping of a conventionally trained model is not tested; multi-seed statistics deferred to future work (authors' Appendix I).
- Paper
Depth Memory
Reframes depth mixing as memory management. The Depth Memory framework describes PreLN (one additive residual stream), Attention Residuals (a growing key–value cache of every earlier layer output — explicit depth memory), and mHC (an expanded residual stream — implicit depth memory) as streams with Read/Write operators, then proposes Linear Depth Memory (LDM): three streams per token — the standard residual stream, a fixed-size matrix-valued associative memory M, and an inverse-covariance stream P. M is maintained as the EXACT solution of a "depth regression" — least squares over past layers, fitting a linear map that reconstructs earlier layer outputs v_i from their keys k_i — solved online by recursive least squares (Sherman–Morrison) with learnable per-layer forgetting factors, dynamic importance weights, and a ridge penalty. Each write is an error-correcting rank-1 update M ← M + u·κᵀ (u = current prediction error, κ = RLS gain from P); reads add a gated memory retrieval to the residual stream, x + γ⊙M(g⊙q). Depth can afford the exact solve that sequence mixing cannot, because layers are already evaluated sequentially — this is test-time regression (delta rule / MesaNet lineage) transplanted from the sequence axis to the depth axis, and the fixed-size RLS state replaces AttnRes's depth-growing cache. Memory is split into G=16 groups with per-group covariance; main config D_k=8 (memory matrix 8D entries/token, 2× mHC's 4D). Hardware-aware implementation: the RLS recurrence is reversible, so the backward pass unwinds states from the final M instead of storing one per layer, and windowed writes (E=4) defer updates within a window — CuTe DSL kernels for Hopper/Blackwell. Results on FineWeb-Edu with per-method LR sweeps and ~1% extra parameters over PreLN: 400M (Llama-like, 50B tokens) validation PPL 12.08 vs Block AttnRes 12.12, mHC 12.23, Full AttnRes 12.35, PreLN 12.73 — lowest also on WikiText-2 (20.70) and LAMBADA (19.10); zero-shot average 50.46, second to Block AttnRes (50.61). 1.5B (Qwen-like, 100B tokens): validation PPL 9.15 vs mHC 9.25, Block AttnRes 9.26, PreLN 9.48; WikiText-2 14.21 and LAMBADA 8.42, both lowest; highest zero-shot average (59.71). A D_k=4 variant whose memory matrix matches mHC's state size still beats mHC on all three perplexities. Throughput (B200, 1.7B–14B): exceeds Full AttnRes in every setting and mHC in all training and most inference settings; competitive with Block AttnRes, especially in decode. Ablations (400M, 15B tokens): the separate residual stream is load-bearing — memory-only layer input (+1.88 PPL) or replacing the stream with the layer output (+0.87) both fall below PreLN (+0.78); replacing RLS with a delta rule (+0.06) or plain outer-product update (+0.07) still beats PreLN but not RLS; storing the residual stream instead of layer outputs hurts most among addressing choices (+0.33); disabling forgetting is a wash (−0.01). On the DepthBench aspect-ratio protocol, LDM beats PreLN at every width/depth ratio at 400M and 1.6B and is lowest at every 1.6B ratio; the deepest 400M shape is the lone exception (HC slightly better). Caveats: quality evidence stops at 1.5B / 100B tokens (larger scales appear only in throughput tests); LDM can add peak training memory; all results first-party, no independent reproduction.
- Post
INTELLECT Policy Optimization (IPO)
Prime Intellect's new default RL loss in prime-rl 0.10.0, built for async/off-policy RL stability. The problem: in async RL the trainer policy π and the rollout-generating inference policy μ never agree exactly on a token's probability, and drift between them can collapse training. The old fix, IcePop (ratio-band masking from "Every Step Evolves," also used in INTELLECT-3), keeps a token iff π(y_t)/μ(y_t) ∈ [0.2, 5]. IPO keeps a token iff the absolute probability change |π(y_t) − μ(y_t)| ≤ ε (default 0.3), retaining the importance-weighted policy-gradient term τ_A Â_t · π/μ on kept tokens. Why the ratio misjudges both tails: a rare token 0.01→0.06 has ratio 6× → masked despite moving 0.05 of probability mass; a likely token 0.90→0.20 has ratio 0.22 → kept despite moving 0.70. Treating the vocab as {this token, everything else}, |π−μ| is the total-variation distance between the two engines on that split. The criterion comes from DPPO (Qi et al., 2026), which used probability-difference for the PPO trust region between policy updates; IPO applies it to the trainer–inference mismatch, with a sign-independent mask (unlike DPPO). Ablation on agentic SWE RL with GLM-4.5-Air (100B MoE, bf16) in a deliberately extreme setting — up to 64 steps off-policy, no routing replay, no router replay ("in most runs IcePop is stable"): arms indistinguishable for ~1k steps, then IcePop's trainer→inference KL explodes >20× around step 1.2k and SWE solve rate falls ~0.8→~0.3, while both IPO arms (ε=0.2, 0.3) train straight through. At ε=0.3 IPO masks ~0.25% of tokens (vs ~2% at the old ε=0.1 default, which collapsed entropy). Open caveat from the thread (Yusuf Sadek): at ε=0.3, a token at 0.25 trainer / 0.001 inference (difference 0.249, ratio 250×) is never masked, and IPO doesn't clip the importance weight on kept tokens — the mask gates inclusion only. All figures first-party; no independent repro. Same release also: top-p/top-k replayed exactly in the trainer, constant trainer batch size, MoE router frozen by default.
- Post
One Search, Two Layers: Compiler Controls Inside PyTorch Helion Using NVIDIA CompileIQ
Helion is PyTorch's Python-embedded DSL for GPU kernels (released 2025): write PyTorch with hl.tile, the autotuner explores thousands of Triton configs (block sizes, loop orders, num_warps, num_stages, indexing, pid_type, reduction_loops), lowering through TorchInductor → Triton → PTX → ptxas → SASS. The post's argument: every kernel autotuner (Helion, Triton, torch.compile) searches the same space — "what work each thread block does" — while a second space sits below it: how that work becomes machine assembly via ptxas (NVIDIA's PTX assembler), i.e. register allocation policy, fine-grained instruction scheduling, code-gen heuristics, exposed as tunable "advanced controls" since CUDA 13.3 and left at defaults by everything shipping today. Helion's new autotune_search_acf hands a list of Advanced Control Files (ACFs — binary, portable, versionable compile-time artifacts) to Helion's own autotuner as just another search dimension; the empty string (compiler defaults) is auto-appended so the default is always a candidate — worst case you get back the kernel you had. The substantive argument for joint search: sequential tuning finds a local optimum because the spaces are coupled through hardware — block size/stage count determine register pressure, and register allocation decides whether that pressure causes spills; a control set that would shine at block_sizes=[64,64] is never evaluated there if the kernel config was frozen first under default controls. ACFs are produced by NVIDIA's CompileIQ, which treats compiler-control selection as hyperparameter optimization (evolutionary search: propose population, compile each, correctness-check vs reference, time survivors, breed winners); pip install compileiq. Pre-tuned "Booster Packs" are published on CompileIQ's GitHub releases — the helion-booster-pack holds 24 ACFs tuned across Helion kernels, validated against ptxas from CUDA 13.4, targeting B200 — so the realistic workflow is download the pack, point autotune_search_acf at it, autotune once, pin the winner. Case study (all vendor/first-party, GB200 sm_100 Blackwell, ptxas 13.3.73 / CUDA 13.3, CompileIQ 1.0.3, Triton 3.8.0, locked clocks, correctness vs PyTorch reference, Welch's t-test p<0.05 + Cohen's d>0.2 on every claim): nvfp4_gemv_fp4in_kernel, a W4A4 NVFP4 decode GEMV (N=8192, K=28672 down_proj) that already ships a checked-in Helion AOT config — i.e. the baseline was already swept, so headroom is real. Runtime objective: 0.0971 → 0.0928 ms = 1.047× (4.7%), confirmed in two independent runs (d≈2.5). Occupancy objective (ncu metric): +0.16pp achieved occupancy → ~1.75–2.0% runtime win. Multi-objective (runtime + L1TEX throughput): 6.9% runtime speedup + 4.5pp L1TEX gain (81.51%→85.96%), one Pareto-dominant point, nothing traded off. Joint ACF across two shapes (down_proj + N=15360,K=5120): one ACF beats baseline on both (1.05× d=67.71, 1.01× d=4.54). Stated expectations: 2–7% on already-highly-optimized kernels (meaningful for decode-step kernels running fleet-wide), double digits on less-optimized ones. Caveats (authors' own): ACFs are hardware- and toolkit-specific (sm_90 ACF invalid on sm_100 — can produce incorrect results, not just slower code; correctness check in the search loop is not optional); search time is nontrivial — run offline on kernels that matter, then pin; gains are workload-specific ("the only number that matters for your kernel is the one you measure on your kernel"). Links: github.com/pytorch/helion, helionlang.com, helion examples/acfs, pretuned_kernels; github.com/NVIDIA/CompileIQ, nvidia.github.io/CompileIQ, NVIDIA's CompileIQ blog post.
- Paper
JetSpec++: Foresight Parallel Drafting with Self Refinements
Algorithm-system co-design for speculative decoding: acceptance rate and drafting cost co-optimized by hiding the draft model's cost almost entirely. Three components: (1) Intra-block self refinement — the causal parallel draft model (built on the original JetSpec architecture) is trained to iteratively correct its own parallel predictions within a token block via Jacobi-style passes; each pass moves the draft distribution toward a more autoregressive factorization with better target alignment; between passes, a context refresh re-predicts the target hidden states and an anchor replacement swaps the first draft token that disagrees with the decoder. (2) Inter-block foresight drafting — drafting the next block begins before the current block is verified, by anticipating possible verification outcomes and predicting the corresponding target hidden states and anchor tokens. (3) Pipelined drafting and verification — the two stages overlap (draft model on a second GPU) so drafting's marginal wall-clock cost approaches zero; the freed draft-side time funds the Jacobi passes and context refreshes. Lossless: standard speculative-sampling rejection rule preserves the target model's output distribution exactly (stated in the paper, §2). Results (all first-party, batch-size-1 serving on NVIDIA GB200 with CUDA graphs): targets Qwen3-8B and Qwen3.8-27B (thinking disabled); baselines DFlash, DSpark, Domino, JetSpec, SSD (Qwen3-0.6B drafter) — all drafters trained on 800k target-regenerated sequences, block size 16, verification budgets 16/32. Seven benchmarks: GSM8K, MATH-500, AIME25, HumanEval, MBPP, LiveCodeBench, MT-Bench. Up to 7.45× wall-clock speedup over autoregressive decoding and 1.54× over DSpark (1.54× on GSM8K, 1.51× on MATH-500); up to 1,361 tokens/s for a single request; average acceptance length 8.94 across the seven benchmarks (vs 6.89 for DSpark at temp 0) — longest of all methods on every benchmark at temperatures 0 and 1; cuts per-round overhead beyond verification by up to 84% vs DSpark. Caveats (authors' framing preserved): the 7.45× is the max (budget-16, single-request GB200 serving); the headline comparisons are at verification budget 16; all figures vendor/first-party, no independent repro; draft models are target-specific (trained per target on its own outputs).
- Paper
Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptors
The "leave the backbone byte-identical" extreme of knowledge insertion. Writes new input→output mappings into the model's latent space as a discrete, local codebook of key-value adaptors — zero weight changes to the model itself. Authors' result: "the first method enabling thousands of sequential edits using only streaming errors" (demonstrated on T5, BERT, GPT). Training per edit: none — a codebook write. Relevance: when the constraint is "do not touch the weights at all" — e.g., inserting knowledge into a frozen production model, or a model whose weights are shared across deployments — GRACE is the cheapest reliable option in the survey. Trade-off to label: the knowledge lives outside the parametric core (in the adaptor codebook), so it doesn't compose with the model's weights the way a MEMIT edit does; retrieval/routing correctness becomes the failure surface.
- Paper
The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"
The second guardrail for knowledge insertion, and it operationalizes directly into a data protocol. Fine-tuning GPT-3/Llama-1 on fictitious "A is B" statements yields reverse-direction ("B is A?") accuracy no better than a random name — robust across model sizes and families, not fixed by data augmentation. GPT-4 answers forward celebrity questions 79% vs 33% reverse. The lesson for any insertion method: every fact must be stated in both directions (and ideally multiple surface forms) or the reverse direction is never learned. This is the directional half of ID 488's "breadth of restatements matters" finding — breadth without bidirectionality still leaves half the knowledge inaccessible.
- Paper
Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?
The must-read guardrail before any fine-tuning-based knowledge insertion. Controlled closed-book QA experiments: examples containing genuinely new knowledge are learned significantly slower than knowledge-consistent examples, and once learned they linearly increase the model's tendency to hallucinate. Conclusion: LLMs acquire factual knowledge through pre-training; fine-tuning teaches them to use existing knowledge more efficiently. This is the mechanism behind ID 488's interference finding (sequential FT writes degrade earlier facts): the hallucination tax is the price of forcing new knowledge through the fine-tuning channel. Practical implication for Hudson's runs: if a fact must go in via fine-tuning, expect to pay in hallucination rate — prefer the closed-form (MEMIT #86), side-memory (WISE #87), or codebook (GRACE #90) routes for the insertion itself.
- Paper
WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models
The architecture-level answer for lifelong knowledge insertion. Dual parametric memory: the main FFN memory is never touched; a side memory (a copy of the FFN layer) absorbs all edits, with a trained router choosing which memory to use per query. Knowledge sharding (edits scattered across random subspaces) plus Ties-Merge merging prevent cross-edit conflicts — the mechanism behind surviving thousands of sequential edits. Authors' result: overcomes the "impossible triangle" of reliability, generalization, and locality in lifelong editing across QA, hallucination, and OOD settings (GPT, LLaMA, Mistral families). Training cost: router trained once; per edit a small side-memory optimization — light, not zero. Relevance: the backbone-side counterpart to EngramEdit (ID 1626) — both decouple knowledge from the main weights, but WISE does it inside the backbone's own FFN layers instead of a conditional-memory module; the side-memory pattern is directly adoptable in Hudson's own 3:1 hybrid stack.
- Paper
Mass-Editing Memory in a Transformer
The canonical mass-insertion method and the direct answer to the "insert knowledge with no training" ask: scales ROME's locate-then-edit to many edits at once via batch closed-form updates spread across multiple MLP layers. Causal tracing identifies the decisive mid-layer FFN activations; a rank-one update per layer writes new factual associations with zero gradient training per edit (key vectors estimated from activation samples). Authors' result: thousands of associations inserted into GPT-J (6B) and GPT-NeoX (20B), "exceeding prior work by orders of magnitude." Everything downstream in the closed-form line (PMET, AlphaEdit) builds on it. Limitations to label: edit-benchmark success (reliability/generalization/locality) is not the same as pretraining-quality knowledge; sequential-editing degradation is evidenced by later work (AlphaEdit's null-space protection is bounded at high edit counts per a reproducibility study).