Explore the research collection
13 entries · Follow this search
- Paper
Test-Time Self-Play: Scaling without a Verifier
Test-Time Self-Play (TTSP) (Yoshiyama, Ashirmatov, Hübotter, Hakimi, Krause; arXiv 2611.07367, Nov 5 2026, CC BY 4.0) targets a gap in test-time scaling: most methods spend deployment compute through a VERIFIER that scores candidate solutions, but in many deployment regimes no strong verifier for the target problem exists. TTSP instead scales test-time compute through ASYMMETRIC SELF-PLAY - the model playing asymmetric roles against itself at inference - with no reliance on a verifier. On a difficulty-calibrated subset of LiveCodeBench v6, TTSP is the best-performing method at EVERY verifier strength evaluated, and its advantage over the strongest baseline GROWS as the verifier weakens; in the no-verifier limit it yields a 35% absolute improvement in mean@8. The one regime where the gains fail is when the base policy has near-zero coverage of the correct answer - self-play cannot amplify a solution the policy essentially never samples, so the method inherits the base model's support as its ceiling. Flags, as entered: abstract-level record at cataloging time - the headline number comes from a difficulty-calibrated SUBSET of one coding benchmark, and the detailed game construction, compute budgets and baseline list live in the full text; the coverage caveat is the authors' own. Cross-references: the verifier-free / self-referential improvement thread - SPoT (self-judging trained INTO the policy at training time; TTSP is the inference-time counterpart that needs no training), the score-seeking caution of ID 1806 (self-generated signals are exactly where grader-shaped pathologies would enter, which is why the coverage ceiling matters), and the broader test-time-compute scaling line in the catalog.
- Post
Is RoPE Just a Recency Bias?
A mechanistic explainer (with the author's own simulations) asking whether RoPE is merely a recency bias. Answer: partly - but trained models split the frequency spectrum into two regimes, and RoPE's deepest value may be as a training scaffold. (1) DEPHASING IS REAL: for a matching key (q = k), each 2D pair contributes ||k_i||^2 cos(omega_i * delta), and the pairs rotate at different rates, so the match decays to the chance level of an unrelated key (+-1/sqrt(d)): at head dim 128, base 10K, the fastest 16 pairs dephase by offset ~4, the middle 32 by ~512, the slowest 16 by ~4K (the author's simulations; 20K random keys per band). Past a quarter turn a pair's contribution flips sign and works against the match. (2) CONTENT LIVES IN THE SLOW PAIRS: at base 10K only 9 of 64 pairs stay under a quarter turn across 4K tokens and none at 32K - which is why long-context models raise the base (500K in Llama 3) - and Barbero et al. find Gemma 7B concentrates most Q/K norm in the slowest pairs. Their p-RoPE ablation (Gemma 2B from scratch, Wiki/FlanV2 ppl): unrotating the slowest 25% of pairs is free, marginally better (4.44/6.44 vs full RoPE 4.46/6.44); unrotating the fastest 25% is also nearly free (4.46/6.47); unrotating the slowest 75% hurts (4.53/6.51); NoPE is far worse (4.86/6.64). Partial RoPE (GPT-NeoX, Pythia rotate 25% of dims) and DeepSeek's MLA build the content/position separation in by design. A second threshold is one full turn: pairs completing less than a full turn in training (18 of 64 at 4K) rotate into unseen angles at longer contexts - YaRN interpolates exactly those pairs. (3) WHAT A RECENCY BIAS CANNOT DO: exact-offset heads. With a token-independent carrier on the fast pairs, setting W_Q = W_K rotated by omega_i*delta_0 in each 2D block - a fixed linear map, no MLP - peaks the logit at an exact offset delta_0; the author's toy head puts 0.998 of its weight on offset 3, while ALiBi always peaks at 0. Gemma 7B's previous-token and diagonal heads (the first half of an induction circuit) are built from its highest frequencies. Offset 0 is easy (any symmetric W_Q ~ W_K alignment phases all pairs at delta=0); offset >= 1 needs the per-block rotation in W_Q^T W_K, and because RoPE phases never enter the residual stream, a dynamic content-dependent offset delta(x) genuinely is hard - in practice sidestepped by induction circuits. (4) WHERE RECENCY HOLDS: at 120M / context 512 (Bianchessi et al.), ALiBi matches RoPE within 0.3 ppl (Wiki 18.55 vs 18.36; FineWeb 22.18 vs 22.44; NoPE trails both by 1.3-1.6), so short-context perplexity cannot separate the two explanations. Retrieval beyond the training length can: at 2x context on RULER multi-query/key/value, Gelberg et al.'s 500M models score RoPE 0/0/0, ALiBi 5.2/0/1.1 (its penalty downweights distant semantic matches), NoPE 9.2/36.2/21.4, DroPE 28.0/41.6/23.3. (5) ROPE AS TRAINING SCAFFOLD (Gelberg et al., DroPE, ICLR 2026): their theorem shows a causal NoPE transformer at small-variance init keeps attention near-uniform with gradients too bounded to build positional structure quickly, while RoPE breaks uniformity from step 0. Dropping RoPE mid-run (500M, 16B FineWeb tokens, 16K steps): NoPE throughout 23.77 val ppl; drop at 8K 22.42; drop at 14K 21.73; RoPE throughout 21.72 - free to drop at the end, but the 8K drop leaves a 0.70 gap, so RoPE keeps helping through most of training. Applied to pretrained SmolLM and Llama-2-7B, DroPE recalibration beats zero-shot YaRN/NTK on long-context benchmarks - with the author's own caveat that SmolLM-360M needs 60B recalibration tokens to fully match and there is no baseline spending those tokens on continued RoPE. Recalibration spikes the gradient norm 45x before settling; attention maps stay correlated (r = 0.68), diverging mainly in positional heads. (6) A TELLING ASYMMETRY: from scratch, losing rotation on either quarter of pairs barely matters, but in pretrained models the fast pairs matter more - Ji et al. (MHA2MLA) keeping only the fastest pairs in SmolLM costs -0.85% accuracy vs -6.49% for only the slowest at 135M (-0.76% vs -1.21% at 1.7B). The post closes with four cheap experiments that would separate the recency and offset-head accounts (induction vs skip-k head formation timing under RoPE/ALiBi/NoPE; matched-fraction band removal from scratch vs post-training; dropping ALiBi at 8K/14K as a scaffold control; offset profiles in Pythia's log-spaced early checkpoints). Provenance: a synthesis, not new experiments - the dephasing figures are the author's own simulations and the empirical results are Barbero et al. (ICLR 2025) and Gelberg et al. (ICLR 2026); the author discloses the write-up and figures were produced with Claude and Gemini assistance and edited by him, and he himself rates two external DroPE replication reports cited along the way as weak/suggestive only.
- Paper
Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention
Sparse attention whose indexer is subquadratic. The bottleneck the paper targets: at ultra-long context (above 1M tokens) full attention is prohibitive, and existing sparse-attention indexers - a dedicated module that selects a subset of keys per query - either still cost quadratically in context length or lose accuracy at that scale. Latent Sparse Attention (LSA) instead hierarchically clusters the keys in a learned latent space, and each query scores the hierarchy of clusters rather than every key, so selection cost grows subquadratically while prefill, decode, and training all get faster at long context. Two variants: Distilled-LSA (D-LSA), which retrofits a pretrained model via distillation, and Native-LSA (N-LSA), trained from scratch on the next-token loss alone. Headline results: on GLM-5.3-FLASH (Qwen-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x in prefill and 4.6x in decode relative to that model's original sparse attention (72.4x and 42.5x relative to full attention), at similar accuracy across a variety of tasks; N-LSA matches full-attention accuracy with a 1.6x per-layer training speedup at 128k tokens. Caveats: the speedups are per attention layer, not end-to-end model throughput, and the abstract-level evidence is a single retrofit model at 10M plus native training at 128k - the regime where LSA wins (million-token contexts for long-horizon agentic work) is far beyond typical training contexts. In the catalog's attention-cost thread this is the learned-indexing alternative to fixed-structure sparsity: where a sliding-window hybrid (e.g. a 3:1 SWA:full mix) hard-codes which keys are reachable, LSA learns a key geometry and lets each query route through it - complementary to, not a replacement for, windowed attention at moderate context lengths.
- Paper
Training Foundation Models with a Single Algorithm (Unified Training)
Foundation models are trained in stages — pretraining, midtraining, SFT, RL — each with its own data and algorithm. This paper argues the algorithmic separation is not fundamental. Building on MaxRL's likelihood interpretation (Tajwar et al.), it shows a suitable RL update is exactly maximum-likelihood fitting to a model-generated target distribution: for binary rewards, the MaxRL gradient equals an expectation under the current policy's success-conditioned distribution pi+, so an RL step is MLE on the model's own successful generations, with the generator held fixed during the update. The construction extends to generations from arbitrary fixed policies nu (fit nu's success-conditioned distribution — off-policy generations need no separate algorithm) and, via TailRL, to continuous rewards and other policy-gradient objectives. Unified training then writes every stage as a source (prompt distribution + target distribution) feeding ONE weighted likelihood loss over a time-varying mixture q_t = sum_s lambda_{s,t} (rho_{s,t} o mu_{s,t}): pretraining and midtraining are the empty-prompt static sources, SFT the demonstration source, RL the self-generated success source. The learning rule never changes; the design problem becomes which data, in what proportions, and when — with conventional staged training as the special case where one source holds all the weight at a time. Implementation: a single trainer over a common data representation, with asynchronous generators appending completed batches to a shared buffer and the trainer publishing weights every k updates (policy staleness measured in the appendix). Experiments, deliberately small-scale: (1) Controlled full pipeline — 124M model from scratch, fixed 20B-token pretraining corpus + 510M-token midtraining corpus of oracle solutions to Reasoning-Gym-style puzzles with controllable difficulty and compositional RL tasks; MaxRL, results averaged over two seeds. Best unified configurations beat staged training on final accuracy and coverage in both Base and Extended settings and on Extended generalization (larger puzzles seen in neither midtraining nor RL). Unified reuses data better: its two best configurations run 2 and 4 epochs over the midtraining corpus during pretraining, where staged training degrades when midtraining is extended past its best budget. Compute-matched frontiers (total compute including pretraining): staged is accuracy-optimal at intermediate budgets, unified wins at the smallest and largest budgets and on generalization at almost all budgets. Retention: unified initializations keep held-out pretraining loss and five-benchmark average near the pretrain-only model even as midtraining data grows, while even the best-retention staged configuration is substantially worse on both. (2) Real-world — 0.76B model from scratch, mathematical RL on Math12K with a 240M-token heterogeneous midtraining corpus (web text, math, code, reasoning traces) mixed at 0–5% token proportions. Math accuracy is roughly flat across proportions (slight decline) while coverage peaks at the largest proportions; every nonzero mixture pushes held-out midtraining loss BELOW the base model (staged training raises it) and SciQ generally improves, but Coding accuracy falls with more mixing despite higher coding coverage. Schedules at a fixed 0.5% average: annealing the mixture to zero by mid-training recovers Coding accuracy while keeping SciQ gains, at some retention cost — no universally preferred schedule. Continual learning: after math training, all unified models beat the staged model on final HumanEval+ and MBPP+ accuracy after identical coding RL (the 5% mixture best on all four accuracy/coverage metrics) despite starting from lower coding accuracy. Objective ablation at fixed mixture: REINFORCE gives higher Math accuracy and retention, MaxRL higher coverage. KL-penalty control: no tested penalty reproduces unified training's combination of math performance, retention, and SciQ/MMLU gains. Separately-normalized dual-loss control: the shared likelihood loss matches or beats it without a tuned coefficient.
- Paper
Training Language Models to Fail Gracefully
RL makes LMs better at tasks, but success-only rewards make guessing rational — when wrong actions corrupt databases or ship broken code, that's costly. This paper trains models to fail gracefully: preserve successful behavior where possible, execute a safe fallback where acting would be unreliable. Rewarding Success > Fallback > Error (1/c/0) with standard policy gradients is brittle: the gradient vanishes near saturated policies (‖∇J_PG‖ = O(1−p_o) as p_o→1), so policies collapse to always-fallback (or never-fallback) — shown empirically with GRPO/RLOO on SafeMaze (100% fallback within a few steps at c=0.4; collapse for every tested c≥0.3). GracefulRL reshapes the landscape with a surrogate objective J = (1−c)·log p_S + c·log(1−p_E): log-barriers at the outcome-simplex edges p_E→1 and p_S→0 keep the gradient non-vanishing (Θ(1)) near suboptimal saturation. The objective coincides with TailRL specialized to the ternary reward; the paper's contribution is the log-barrier reinterpretation plus ε-smoothing of inverse-frequency weights for variance control. Experiments: (1) SafeMaze (navigation; 4M-param ResNet policy) — GracefulRL Pareto-dominates online reward tuning and Delightful PG across 3 seeds; (2) math abstention on Qwen3-1.7B/4B-Base (DAPO-Math-17K, conditioned on five caution levels c∈{0,...,0.8} via prompt suffixes; eval MATH500, AIME 2024–2026, AMC 2022–2024, JEEBench) — Pareto-dominates RLCR+Thresholding at both sizes; on AIME the error rate falls 79.1%→8.9% (88.8% relative) while sacrificing only ~3.1pp success; models verbalize uncertainty in CoT with no fallback annotations; OOD transfer to AbstentionBench (F1 0.677 at c=0.8 vs 0.590 for Qwen3-4B-Instruct); (3) multi-turn Minesweeper (Qwen3-4B-Instruct, irreversible actions) — c=0.5 raises success 67.4%→77.4% and cuts errors 17.0%→6.0% (RLOO collapses to all-fallback); learning to fail gracefully improved success, hypothesized as reward-shaping toward safer states. Author-stated limitations: online RL only (off-policy unstudied), no coding-agent/long-horizon experiments, fallback specification is domain-dependent. Blog: zanette-labs.github.io/failing-gracefully/ (training code and checkpoints linked, exact URLs unverified).
- Paper
Continual Reinforcement Learning with Neuroevolution
Across changing environments without task-boundary markers, with policies ranging from a few hundred parameters to million-parameter vision networks, evolution strategies (ES) and genetic algorithms (GAs) are benchmarked against PPO, three continual-RL modifications, and population-based RL across low-dimensional control, navigation, continuous locomotion, and vision tasks. ES most consistently achieves the best stability-plasticity trade-off — outperforming all RL baselines in 8 of 18 settings, whereas no gradient RL method wins in any setting — while the GA is the most plastic method but forgets more than ES; rewarding behavioral diversity through novelty search makes the GA population even more plastic at the cost of forgetting. Mechanistically, the return landscape around each method's solutions shows ES finds the widest neighborhoods (regions of weight space in which perturbed policies still solve the task), 3.9x wider than PPO's, and the size of the overlap between consecutive tasks' neighborhoods correlates with a method's stability-plasticity trade-off. Symptoms of plasticity loss commonly reported in RL do not transfer to neuroevolution; the results suggest dormant neurons and weight drift stem from gradient optimization rather than non-stationarity itself, and that training under weight-space perturbations may be a useful continual-learning mechanism more broadly. Caveats: neuroevolution remains sample-inefficient and struggles on narrow return peaks.
- Paper
Harness Learning Enables Generalizable Test-Time Adaptation
Introduces harness learning: instead of updating model weights at test time, train a proposer model to revise the solver's executable harness — the program organizing model calls, tool use, and information flow — using execution feedback. Framed as meta-learning over executable programs, with harness revisions playing the role of weight updates; the proposer is trained with RL using revised harnesses' task performance as reward, and candidate harnesses run under a frozen solver. On 21 unseen Reasoning Gym families, SFT followed by RL raises mean single-revision score from 0.32 (base proposer) to 0.62, and the trained 4B proposer beats its 35B teacher on average. A QA proposer trained with RL only on HotpotQA transfers to MuSiQue and 2WikiMultihopQA, with ten revision rounds nearly doubling exact match. Policies trained on single revisions keep improving harnesses over multiple rounds, suggesting harness design can become a reusable adaptation skill.
- Paper
Beyond Binary Rewards: Training LMs to Reason About Their Uncertainty
Almost all successful RL for reasoning uses binary rewards that evaluate output correctness; because they do not penalize guessing or low-confidence outputs, they degrade calibration and increase hallucination in other domains. RLCR (Reinforcement Learning with Calibration Rewards) trains reasoning models to generate predictions and numerical confidence estimates after reasoning, optimizing a reward that augments a binary correctness score with a Brier score -- a scoring rule for confidence estimates that incentivizes calibrated prediction. The paper proves that this reward (or any bounded proper scoring rule) yields models that are both accurate and well-calibrated, shows across diverse datasets that RLCR substantially improves calibration with no loss in accuracy in-domain and out-of-domain (outperforming ordinary RL and post-hoc confidence classifiers), and demonstrates that verbalized confidence can be leveraged at test time via confidence-weighted scaling. Code, models, and info at rl-calibration.github.io.
- Paper
AutoGym: Blueprint-First Generation of Verifiable Agent Gyms
A framework that generates full agent environments — tasks, executable environments, and verifiers — from a minimal domain seed or from example trajectories, without hand-building each gym.
- Paper
A Smaller Transformer in Your Transformer
arXiv 2609.20100v1 (cs.CV; submitted 2026-09-17; accepted BMVC 2026). Formalises ViT block redundancy (contiguous layers with high functional similarity) and proposes Transformer-Within-Transformer (TWT): max–min DP discovery of redundant phases, auditioned single-layer surrogate init, then single-stage deep-supervision distillation. Unlike Raptor/BRH (recurrent shared layer keeps FLOPs) or TOAST linear maps (lose token mixing), TWT replaces each phase with one ViT layer. Natural images: ~6-layer TWT ~half FLOPs, competitive ImageNet (e.g. DINOv2 B/14 84.2% vs 84.6% baseline / 84.0% Raptor-6). Histopathology H0-mini/Hibou-B: often matches or improves MIL QWK/accuracy at 3–5 layers. ADE20k denser drop. Code: https://github.com/dsb-ifi/TWT.
- Paper
Transformers need glasses! Information over-squashing in language tasks
We study how information propagates in decoder-only Transformers, which are the architectural backbone of most existing frontier large language models (LLMs). We rely on a theoretical signal propagation analysis -- specifically, we analyse the representations of the last token in the final layer of the Transformer, as …
- Paper
[schema]: Frontier Models with the Right Harness Achieve ~99% on ARC-AGI-3 Public
Schema harness (not weight changes) for ARC-AGI-3: observe→deliberate→execute→record with an append-only timeline. Deliberation writes step(state,action), run_backtest over all recorded transitions, run_bfs inside the certified program, commit_actions only. Self-reported Public-set RHAE 98.98% with Opus 4.8+Fable 5 fallback (vs 42.83% same pairing in Claude Code) and 95.35% with GPT-5.6 Sol xhigh/max fallback. Official Sol max was 13.33% Public / 7.78% Semi-private — not a matched harness ablation. Scores unverified by ARC Prize. 50 released trajectories (25+25). Residual: Claude 19/25 games at 100 RHAE, six remaining 89.87–99.10; Sol 20/25 at 100.
- Paper
Claude's Values Across Models and Languages
Anthropic Societal Impacts blog (cite anthropic2026values). Starts from Values in the Wild’s 3,307 values, clusters to 339 high-level labels, then privacy-preserving labels on 309,815 Claude.ai subjective-task conversations equally sampled from Sonnet 4.6 / Opus 4.6 / Opus 4.7 and the 20 most common languages (~5k per model-language pair; two weeks in May 2026). Dimensionality reduction after controlling for task, topic, and user-expressed values yields four axes that capture 15% of remaining variance: Deference vs Caution, Warmth vs Rigor, Depth vs Brevity, Candor vs Execution. Model profiles match character lore (Sonnet 4.6 warm/deferential/brief; Opus 4.7 rigorous/cautious/deep/candid; Opus 4.6 rigorous/deferential/brief). Language: warmth highest in Hindi/Arabic, rigor in English/Russian; candor highest in Dutch, execution in Indonesian; English more caution/depth, Arabic more deference/brevity. Conversations not released.