Explore the research collection
17 entries · Follow this search
- Paper
Anchor: Augmented Cross-Layer Recurrent State for Long-Context Retrieval in Test-Time Training
Finds that long-context retrieval in sliding-window + test-time-training hybrids is concentrated in a few anchor layers' recurrent state, and proposes Anchor, an augmented cross-layer recurrent state to improve retrieval.
- Paper
LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers
LoopKV compresses per-loop KV caches when serving looped transformers like Ouro by allocating quantization precision to each layer's sensitivity at each loop, raising servable batch size.
- Paper
A Circuit for In-Context Learning
A complete, causally traced circuit for in-context learning in its cleanest setting: few-shot sentence classification with ARBITRARY labels, where the label mapping cannot have been memorized, so the learning must happen inside a single forward pass. Studied in three 3-4B-parameter transformers. The composition: the model builds a key-value memory over the label-token positions. Each label token's residual stream encodes the label's identity (the value), and middle-layer attention heads write into that position the class of the preceding demonstration (the key) - induction-head-style binding, but storing class rather than token identity. At the query, upper-layer reader heads match the query's class representation against the stored keys and copy out the label attached to the matching key. Two control components complete the circuit: an early-layer signal encoding whether any label has REPEATED anywhere in the prompt gates the readout - without it, the reader heads attend to the start of the prompt and no label is favored, so the lookup only fires once the prompt actually contains a repeated-label structure to look up - and a separate set of heads suppresses the most recently seen label, countering a pure recency/copy bias. Every step is established causally, not correlationally: activation patching, head ablations benchmarked against random-head baselines, and steering with the model's own signals; and a softmax model of the readout with just two fitted constants per head, fit on one prompt distribution, predicts behavior on a different distribution. Generality claims: the computation is conserved across all three models; the named heads alone reproduce the behavior; a transformer trained from scratch grows the same parts (the circuit is an attractor of training, not an artifact of one checkpoint); it transfers from arbitrary labels to semantic concepts and labels with meaning; and within one model family the same parts with the causal gate appear from 0.6B to 8B parameters and survive instruction tuning. Caveats: abstract-level evidence; the setting is few-shot classification - the most lookup-like form of ICL - and says nothing directly about many-shot, regression-style, or open-ended generative ICL; the three main models are not named in the abstract. Catalog placement: the mechanism counterpart to ID 1765 (LIDAS), which argued grown/looped models share a context-over-weights inductive bias rooted in induction heads - this paper shows what a mature version of that bias looks like as an explicit circuit: bind demonstrations into a key-value store in the residual stream, gate the lookup on prompt structure, and read by class match. The gating signal is also the architecturally interesting part: the model checks a global prompt property (has any label repeated?) before trusting its own associative memory.
- Paper
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
Preventing Learning Stagnation in PPO by Scaling to 1 Million Parallel Environments
Why do on-policy RL agents plateau far below optimal return even with unlimited experience? The paper argues that in an important regime the cause is neither exploration, capacity, nor plasticity loss: PPO's sample-based loss estimates become poor proxies for the true objective, so updates stop being informative. It models PPO as two loops — an outer loop (collect rollouts from N parallel environments under the current policy) and an inner loop (minibatch SGD on that batch) — and abstracts the outer loop as plain stochastic optimisation. In that model the outer "step size" is set by the regularisation strength toward the previous policy (clip threshold epsilon, epochs per batch, and implicitly the behaviour policy's age) and the update noise by the number of samples collected between updates. If the step size is too large relative to the noise, the policy thrashes around a local optimum instead of converging — the plateau is the policy changing too MUCH between iterations, not too little. Two remedies follow: shrink the step size (stronger regularisation) or collect more data per update (more parallel environments moves both levers at once). The paper validates the analogy empirically, including the sharp prediction that plateaus are reversible: changing the outer step size mid-run can induce a plateau in a healthy run or rescue a plateaued one, which rules out irreversible plasticity/capacity explanations for this regime. It also finds the optimal outer step size shrinks as the total interaction budget grows, so longer runs need smaller, higher-quality updates. Scaling recipe (the practically load-bearing part): when increasing parallel environments, keep the inner loop untouched — fixed minibatch size and learning rate, more minibatches (more optimisation steps). On Isaac Gym robotics tasks (Singla et al.'s setup), reverting the minibatch size from their scaled 98,304 back to the 16,384 default — one change — significantly improves both vanilla PPO and their SAPG method and narrows the gap between them. Headline result: on Kinetix (procedurally generated 2D-physics open-ended task universe, SFL autocurriculum over PPO), default configurations plateau and then degrade after <10B interactions; scaling to over 1M parallel environments (512x the 2,048 used by Matthews et al., across 128 GPUs) sustains monotonic improvement past one trillion transitions and far exceeds prior baselines (mean and 95% CI over 3 seeds). Analysis uses PPO-EWMA (Hilton et al.'s decoupled proximal policy) as an instrument to vary regularisation independently of parallelisation; final results use standard PPO.
- Paper
Rewards for Budget-Aware Multi-Turn Agents That Adapt to Arbitrary Test-Time Constraints
Asks whether a multi-turn LLM agent can learn to allocate an inference budget itself — across turns and resource types — instead of leaving enforcement to an external harness, and which reward teaches it best. Framework (budget-augmented POMDP): total budget B0 and remaining budget bt are written in natural language into the observation at every turn (bt decremented by each action's realised cost — step = 1, token cost = emitted length incl. reasoning, API cost = executed calls), so the policy conditions directly on allowance left; budgets are sampled uniformly per episode from a six-value training grid, and overspending is permitted during training so the policy learns from it. Two metrics at each stated budget b: budget utility U(b) = probability of solving the task with the rollout finishing within budget (the practical cutoff setting), and natural compliance Comp(b) = probability the rollout terminates within budget on its own, regardless of success, with no external cutoff. Training: Dr. GRPO from post-trained Qwen3.5-4B and 9B checkpoints, one separate policy per environment × resource type, each trained across budget values. Eleven objectives compared in the shared pipeline, organised in four families — hard boundary (Trunc: rollouts halted at B0, reward = task success within it, the only method with an enforced cutoff; Gate: overspend ⇒ return 0; Gate-Neg: overspend ⇒ fixed −1, adapted from Kimi K3's step-function shaping), within-budget cost pressure (Sigmoid: return R − σ(2(C̄−1)), penalising before the boundary; Linear-Cost: linear cost penalty from the first action), gradual post-budget magnitude shaping (Sigmoid-Gate: sigmoid penalty on overspend only, in-budget return untouched; Linear-Mag: DAPO's soft-overlong penalty generalised to normalised cost; Exp-Mag: success reward decays exponentially in overspend), and learned per-budget violation prices (Rate: Lagrangian step price per budget tracking the overspend frequency, price capped at 1; Dual: learned frequency price + DAPO linear magnitude price, each capped at 0.5). Baselines: Base (untrained, same budget feedback) and GRPO-Std (binary task reward only). Results (AppWorld test-normal under step/token/API-call budgets; BabyAI gridworld under turn budgets): prompting alone fails — at step budget B=36, Base budget utility is 37% (9B) and 19% (4B), and 9B Base complies on fewer than half of episodes across the token range; GRPO-Std improves task success but keeps weak compliance. The stronger budget-shaped objectives beat both baselines on both metrics, and behaviour is genuinely budget-responsive: spend rises with the stated allowance and with task difficulty, and under step budgets budget-aware policies learn to batch API calls (≈1.9 calls/turn at B=10 vs ≈1.5–1.6 at B=32; GRPO-Std stays ≈1.0) — batching is an emergent allocation strategy. Objective trade-offs (Table 2, pooled over the eight experiments): Sigmoid-Gate most often has the highest utility at an individual budget (20.1% win rate); Dual has the smallest mean regret to the per-budget best (2.92pp; Gate 3.33pp despite having no explicit overspend penalty); Gate-Neg generally attains the highest natural compliance but pays for it in utility (6.00pp regret — the strong penalty makes the policy hesitant near the boundary); Linear-Mag is worst (14.01pp). Two design lessons: Gate beats Trunc on all pooled metrics — retaining overspending rollouts in training (they earn negative advantage against in-group successes) teaches more than cutting them off; and magnitude penalties are not required for small overruns (Gate/Gate-Neg have comparatively small conditional overspend without one). Generalisation: gains hold at interpolated and extrapolated unseen budgets (9B utility keeps rising past the largest training step budget of 29 on shifted tasks), persist zero-shot on the distribution-shifted AppWorld test-challenge split, and transfer zero-shot to the new benchmark ASTRA (Xiu et al. 2026; personal-assistant tasks, same Python-REPL interface, step budgets only). Limitations/failure modes (authors'): one resource type at a time (no joint token+call+step budgets); budgets fixed at episode start; natural compliance is imperfect — a strict deployment budget still requires an external cutoff; most comparisons use one training seed (extra seeds cover two objectives in one setting), so ordering among the leading methods is not reliable; prompts bundle budget feedback with resource-specific advice (incl. batching hints) with no ablation, so gains are attributable to the combined prompt+training procedure; evidence is two scales of one model family in simulated environments.
- Paper
Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models
NVIDIA paper on choosing which base checkpoint deserves an expensive round of agentic post-training. The problem: end-to-end SWE-bench Verified pass@K is near zero for base checkpoints because untuned base models cannot reliably operate tool-use harnesses (Appendix F; the dair_ai thread reports six base models with five solving zero tasks), while non-agentic coding benchmarks correlate inconsistently with post-trained agentic performance (across ten base/post-trained pairs, Spearman rho with post-trained SWE-bench Verified pass@1 ranges from 0.830 on RepoBench XFirst to -0.394 on HumanEval). The method treats successful post-trained agent trajectories as a lookahead signal of base-model potential: replay each trajectory and rerun the task's tests after every code-changing step; the decisive step T* is the first step whose cumulative patch flips the repository from failing to passing, and its action is the golden action - produced by a real coding agent and certified by the same verifier that defines task success, not the human-written gold patch. Three screens are built at the decisive step, none requiring the base checkpoint to drive the harness from a cold start: (i) Decisive-Action BPB (bits per byte) measures the byte-normalized probability mass the checkpoint assigns to the golden action; (ii) Patch MCQ tests the checkpoint's choice between the golden action and distractor alternatives rejected by the same verifier; (iii) prefix-conditioned pass@K draws K continuations from the decisive step and lets the task's own verifier judge them, crediting any continuation the tests accept. Across ten pairs of public base and post-trained models, all three screens rank the cohort in close agreement with post-trained SWE-bench Verified pass@1: Decisive-Action BPB reaches Spearman rho=0.964 on held-out trajectories from DeepSWE (a separate agentic coding benchmark), Patch MCQ reaches rho=0.903, and prefix-conditioned pass@K at K=16 reaches rho=0.988 on SWE-bench Verified trajectories. The construction is a generic recipe: any agentic coding benchmark with successful trajectories and a verifier can be converted into a base-model evaluation. Related-work details worth knowing: motivated by the coverage principle (base-model mass on high-quality behaviors bounds post-training gains); their audit of 1,682 APTBench MCQs found designated-correct options that were wrong or not unique, which motivates the verifier-certified distractor construction for Patch MCQ. License: (c) 2026 NVIDIA, all rights reserved - not CC-BY. No code repo found at catalog time.
- Paper
Adapter Thickets: Splitting an RLVR Budget Beats Concentrating It
RLVR improves each sampled completion, and majority voting over many completions is the workhorse of test-time scaling — but the standard pipeline (train one policy with RLVR, sample it many times, vote) is lossy. A vote can only overturn mistakes its voters do not share, and RLVR sharpens a policy so its samples increasingly make the same mistakes. With exactly 160 completions per problem, training a single LoRA adapter on the full RLVR budget raises single-sample accuracy on every model tested (1.5B-8B), yet on three of four models it leaves the majority vote below the untrained base model by up to 4.8 points. The damage builds during training: voter errors grow steadily more correlated, and majority-vote accuracy peaks early before falling by up to 7.0 points. The cause is concentration, not RLVR itself: the authors split the same data and training budget across K LoRA adapters, each trained on its own random disjoint shard, calling the result an adapter thicket. Thickets out-vote the fully trained adapter in all 16 (model, K) settings, and for K>=4 they stay within 0.8 points of the base model or above. A single adapter stopped early at a thicket member's step count is a strong control that matches thickets for small K; for K>=8, thickets keep more of RLVR's single-sample gain and out-vote this control in six of eight settings. The cost of concentration grows with the number of votes: from 16 to 160 votes, the thicket's lead over the fully trained adapter widens from 1.3 to 3.3 points. When the plan is to sample and vote, an RLVR budget is better spent broad than deep.
- Paper
LiFT: Loop Flow Transformers
UvA Amsterdam introduces LiFT, a family of looped generative models that scale computation by repeatedly applying a shared Diffusion Transformer (DiT) core with only light changes to the standard architecture. The key training innovation: rather than asking every recurrent step for the final prediction, each loop is supervised at its own target - a point on a straight reference path from the model's initial velocity estimate to the flow-matching target. Because targets are indexed by a continuous depth coordinate, the trained model can loop far beyond its training depth (K_inf > K_train) with no retraining, early exits, or other modifications, and longer rollouts improve generation - inference computation grows without adding parameters. Prelude-core-coda decomposition: prelude embeds input once, shared core R_theta applied K times (boundary operator reinjects input state), coda maps any state to a prediction. On ImageNet 256x256, LiFT-L/2 achieves FID 3.34 points lower than the dense DiT-XL/2 baseline while using ~60 percent fewer parameters, 32 percent fewer training FLOPs, and 52 percent fewer inference FLOPs. Separates two axes of inference compute: integration steps (follow the flow more closely) vs loops (estimate the velocity field more accurately). At DiT-B/2 the dense model still wins, so the advantage appears at larger scales. CC BY 4.0. Joins the looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566, 1579, 1581) and complements ALoDLM (1581) - the other Oct-2026 looped-diffusion result, which adapts depth per token instead.
- Code
Bergson: An Open Source Library for Data Attribution
Open-source library (EleutherAI) unifying data attribution methods for LLMs across compute budgets. Implements MAGIC, SOURCE, EK-FAC, ASTRA, and TrackStar — the first open-source implementations of MAGIC, SOURCE, and TrackStar. Finetuning leaderboard: MAGIC tops (0.931), EK-FAC and ASTRA are both fast and accurate, SOURCE excels at multi-stage runs; TrackStar's efficient approximate scores enable cheap pretraining attribution via two-stage retrieval (amortize costs with on-disk gradient stores and ANN indices, then refine top scores with a more precise method). Also supports token-level attribution (claimed 10x data-filtering performance gain), GRPO rewards for attributing model behaviors, and optimizations like bucket batching and multi-node support. Answers 'how do LLMs generalize / why do they become misaligned?' by looking at the training data. Relevant to the user's LLM training setups (dataset curation, debugging misalignment) and GRPO work.
- Thread
MOPD's Place in a Frontier Training Portfolio (X discussion)
Brian Huang argues MOPD — a training objective that lets many independently-trained models be automatically 'casseroled' (merged) into a single model — still deserves a place in frontier training portfolios even if RL generalizes strongly. Two reasons: (1) speculative stability — at very large RL step counts (~5k-10k steps), MOPD objective updates may be more stable and accumulate less 'rot' than REINFORCE-style RL objectives, so MOPD could keep climbing where RL plateaus; (2) organizational — MOPD permits many research teams to pursue overlapping research bets in parallel, with their resulting models automatically combined into one final checkpoint, effectively pushing the scaling curve on frontier-lab researcher labor vs usable yield from that labor. Replies: will brown agrees parallelization of research effort is one of the strongest reasons; Lucas Beyer (giffmana) jokes that RL people calling 5-10k steps 'very far' is funny; Patch finds the organizational argument compelling. MOPD acronym was not expanded anywhere on the page. No paper, code, or external artifact attached — captured as a discussion.
- Paper
TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training
The development of large language models (LLMs) has been instrumental in advancing state-of-the-art natural language processing applications. Training LLMs with billions of parameters and trillions of tokens require sophisticated distributed systems that enable composing and comparing several state-of-the-art technique…
- Paper
Speculative Knowledge Distillation: Bridging the Teacher-Student Gap Through Interleaved Sampling
arXiv 2410.11325: Speculative Knowledge Distillation (SKD)—student proposes tokens; teacher replaces those outside top-K; mixes on-policy alignment with teacher quality. Discord Philipp Schmid: Google method addressing on-policy KD limits via interleaved teacher/student sampling.
- Paper
Measuring short-form factuality in large language models (SimpleQA)
SimpleQA has 4,326 short fact-seeking questions adversarially collected against GPT-4, with single indisputable answers for easy grading. Targets whether models know what they know. Released with openai/simple-evals. Discord linked Forbes coverage; cataloged to primary paper.
- Paper
A cellular basis for mapping behavioural structure
Nature article (published 2024-11-06; open access; DOI 10.1038/s41586-024-08145-x). Mice learn ABCD loop tasks with shared abstract structure across changing goal locations and show zero-shot d→a inferences. Most mFC neurons tile progress-to-goal; a subset implements task-structured memory buffers that encode behavioural sequences and predict distal choices, including offline during sleep. Neuroscience primary (not an LLM methods paper) shared in #random-papers.
- Code
CoLoTa: A Dataset for Entity-based Commonsense Reasoning over Long-Tail Knowledge
Rewrites StrategyQA questions and CREAK claims by swapping head entities for long-tail Wikidata counterparts (popularity = number of triples), then annotates QIDs, relevant triples, a natural-language inference rule, and grounded reasoning steps. 3300 queries: 1650 QA + 1650 claim verification (CoLoTa_qa.json / CoLoTa_cv.json). o1 accuracy drops ~0.18-0.22 vs original popular-entity queries while answer rate stays high, implying more hallucinations. LLM-based KGQA (KGR, KB-Binder) near-collapse on CoLoTa. GitHub API license null; no LICENSE in README.
- Paper
Comparing Transformers and Hybrid Models at the Token Level
Paired NLL of matched Olmo 3 7B (transformer) and Olmo Hybrid 7B at identical prefixes. Hybrid advantage is broad but largest on open-class content words (0.0384 nats vs 0.0238 on function words) and on opening delimiters vs closers; it nearly vanishes on long repeated n-grams. Synthetic probes: hybrid wins pronoun-memory and entity-tracking; transformer wins structural closure (predicting the closer). Interprets this as recurrence helping discourse/program state readout while attention handles visible-prefix copy and bracket matching. Proof-of-concept 1B filtered evals (Top-10∩No-Copy vs Copy-5-only) roughly double the architecture gap vs aggregate validation. No official code on the abs page.