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 217–240
- Paper
Co-Evolving Acting and Forecasting for Language Agents
CoPE adds one multi-step action-forecasting loss on top of GRPO for sample-efficient RL of long-horizon language agents. Standard agentic RL learns only from a terminal scalar reward; value targets label every step with the same outcome, and observation targets (HTML pages, terminal logs) are noisy, one-step, and waste loss on irrelevant tokens. CoPE's third kind of target: on successful on-policy trajectories, the shared policy backbone learns to predict the action chunk a_{t:t+K} from each history (population optimum: the hindsight distribution Pr(a|h, success) — success is a selection condition, not a per-step label). Each action is thus supervised both where it is taken and when forecast from the K preceding histories, forming an implicit temporal ensemble absorbed into the policy; acting and forecasting co-evolve. Inference still acts one step at a time — zero overhead. On five benchmarks (ALFWorld, ScienceWorld, WebShop, τ²-bench, AppWorld): ALFWorld +5.0pp over GRPO, WebShop success 64.5→77.0, ScienceWorld 64.5→72.5 (best of all RL baselines including ECHO and RWML), τ²-bench 27.5→28.7 (Retail 17.5→29.4, with an honestly reported Airline drop 26.2→16.2), AppWorld 41.67→55.36 (normal) / 18.71→22.54 (challenge). Sample efficiency: 2.0× vs GRPO and 1.7–1.9× vs ECHO on ScienceWorld; 1.6× vs GRPO on AppWorld. Cost: +11% per-step training compute, −9% end-to-end step time; no separate model, no pretraining, no inference overhead. Ablations: K=2 best (all K≥1 beat GRPO), λ=10⁻², gains hold on Qwen3-8B, group normalization stabilizes training. Explicit-ensembling control (separate LoRA forecaster reranking 8 candidates) improves GRPO but adds nothing to CoPE, supporting the implicit-ensembling claim. Plain success-filtered BC on successful rollouts hurts (−7.5pp) — multi-step forecasting is the crucial ingredient. Limitations: outcome-conditioned imitation over-represents easy tasks; the Airline failure shows refusal tasks bleeding into action tasks. Code MIT at github.com/ulab-uiuc/CoPE (AgentGym-RL/verl stack).
- Post
You could have invented transformers from memory
A pedagogical explainer (not a research result) deriving linear maps, MLPs, and self-attention as associative key-value memory stores from first principles. The unifying quantity is the interference-to-signal ratio — interference from other stored memories vs the target's signal — and capacity is the number of memories before interference matches signal (random unit keys, query with a stored key). At d_k=64: outer-product linear store ≈64; optimal linear (least-squares/whitened keys) ≈128; ReLU MLP ≈128; squared ReLU / SwiGLU ≈2d_k²/3 ≈2,700–2,900; cubed ReLU ≈2d_k³/15 ≈35,000; self-attention with β=√d_k ≈e^{2√d_k−2} ≈1.2 million; β ∝ log M allows an essentially unbounded store (>2M in experiments). Derivations: interference terms add like a random walk (√M); σ(s)=ReLU(s)^p gives capacity M≈d_k^p; the exponential is a weighted sum of all powers, so capacity grows exponentially in the sharpness β: M≈e^{2β(1−β/d_k)} for β≪d_k; normalizing weights for numerical stability yields exactly f(x)=Vᵀsoftmax(βKx). Unlike MLPs, self-attention is non-parametric: keys/values come from context tokens, so the store grows with context length. Notes that the original transformer's v2/v3 described the feedforward layer as "a kind of attention" (passage removed from later versions) and tried replacing FFNs with learned-key-value attention at similar quality. The long-context section compares β∝log M tricks (Su 2021 entropy scaling, Scalable-Softmax, Qwen LogN-Scaling, Qwen2.5-1M YaRN scaling), driving the interference ratio to ~10⁻⁴ at 2M memories. Author-stated caveat: the count is random-vector recall of a single layer, ignoring training data; companion pointers to bits-per-parameter memorization work (Morris et al. ~3.6 bits/param; Allen-Zhu & Li ~2 bits factual knowledge/param). Includes interactive demos (sliders for M and β with live interference/signal visualization). Asides: a gradient-descent step is a memory write (Irie, Csordás & Schmidhuber); transformers' MLPs store facts in superposition.
- Paper
Do LLMs Write Like Humans?
Using Douglas Biber's 66-feature tagset on two parallel human/LLM corpora (HAP-E: 8,290 texts across six genres; CAP: 9,615 from COCA registers), the authors show instruction-tuned LLMs write in an informationally dense, noun-heavy register unlike humans: GPT-4o uses present participial clauses at 5.3× the human rate, 'that' clauses as subjects 2.6×, nominalizations 2.1×, phrasal coordination 1.9×, while using agentless passives at about half the human rate — but Llama 3 base models match human rates on these features, implicating instruction tuning (not scale or pretraining data) as the source of the divergence. Vocabulary: "camaraderie" 162×, "tapestry" 155×, "intricate" 119× human rates ("tapestry" in 23% of GPT-4o outputs). A random-forest classifier separates all seven sources at 66% (chance 14%); pairwise human-vs-instruction-tuned accuracy is 93–98% vs ~75% for base models. The authors' framing: instruction tuning trains models in a genre-misaligned register — they don't vary output by genre the way humans do — and the work is meant for teachable revision, not detection. Caveats: English only, 2024-era models, continuation task, weak cross-corpus generalization. No code or corpora released.
- Paper
Video Generation Models Are Good Latent Reward Models
Extending reward feedback learning (ReFL) to video generation is blocked by pixel-space reward models: they need near-complete denoising plus expensive VAE decoding, OOM on full-frame sequences, and supervise only late-stage steps. PRFL (Process Reward Feedback Learning) conducts preference optimization entirely in latent space. A Process-Aware Video Reward Model (PAVRM) reuses the first 8 DiT blocks of the pretrained video-generation backbone (Wan2.1-14B) as a feature extractor, compresses spatiotemporal features with a learnable query-attention, and predicts motion-quality scores from noisy latents at arbitrary timesteps — trained on human labels of finished videos only, with noise injected at random timesteps (no per-step annotations). Training rolls out gradient-free to a sampled timestep, backpropagates reward through a single gradient-enabled denoising step, and alternates with SFT to prevent over-optimization. On Wan2.1-14B at 480p/720p (T2V and I2V): T2V dynamic degree +46.00 (480p) / +56.00 (720p), human anatomy +10.49 / +12.16; PRFL wins 67% of human comparisons (25 prompts, 30 annotators, 2,250 pairs) vs RGB ReFL. Timestep ablation on 100 prompts: early-only better on motion (DD 51.00 vs 44.00), late-only better on anatomy (HA 91.54 vs 87.52), full-trajectory sampling best on both. PRFL processes all 81 frames within 67 GB VRAM at 1.42×–1.49× faster training than first-frame-only RGB ReFL (whose full-frames variant OOMs). Caveats: the RGB ReFL baseline uses PickScore on the first frame only — a weak comparison; the missing control is the same ReFL setup with a different full-video reward model, so the results support the system but don't isolate the backbone-reward contribution. Author-stated limitation: focuses on motion quality; aesthetics/semantics evaluation left to future work. No code released at catalog time.
- Paper
Train for Many, Update with One: Improving Multi-Sample Reasoning via Fenchel–Bregman Posterior Learning
Multi-sample reasoning succeeds when at least one of K candidates is correct, but minimizing average per-attempt loss doesn't optimize that. Finite-K posterior learning trains a distribution q_φ(θ) over solver parameters to minimize the all-fail probability E_x[F̄_φ(x)^K] + KL regularization, with per-problem gradient weight λ*_x = K·F̄_φ(x)^{K−1} up-weighting problems other candidates are unlikely to solve. An exact Fenchel reformulation of r^K separates problem weights from the posterior update so one draw per update suffices (vs K for the direct Monte Carlo estimator), and closed-form Bregman tracking updates weights via an exponential running average of observed failures reusing the same draw. Instantiated with IVON (diagonal Gaussian) → FBI. On recursive benchmarks (TRM backbone, 3-seed means): Sudoku-Extreme 99.55 Pass@10, Maze-Hard 91.30 Pass@10 (vs W-PTRM 89.80), ARC-AGI-1 Pass@100 64.25, ARC-AGI-2 12.78 — highest or tied in every metric. Matched vs Direct-10 on Maze-Hard: Pass@10 91.3% vs 91.0% at one draw per update, using 12.3% of measured training time (0.0692s vs 0.5614s), 10.4% of FLOPs, 0.611 vs 3.707 GB peak memory. FBI recovers exact solutions in 32.5% of first-candidate failures (Direct-10 27.2%) with lower repeated-output rate. On Qwen3-4B-Base trained on MATH7.5K (K_train=8): mean Pass@8 60.44% across MATH500/OlymMATH/AMC23/AIME24/AIME25 vs DMPO 59.60, GRPO 56.82 — best average, best on AMC23/AIME25; at K=1 it trails DMPO (40.22% vs 43.01%), consistent with optimizing coverage not single-shot accuracy. Matched K_train=K gives the highest Pass@K at each budget. Caveats: surrogate mismatch/noise/posterior drift may weaken failure tracking; a selector gap remains (correct candidates not always selected); code license unconfirmed (no LICENSE file in repo). AI-use statement present. Project page https://sungjun98.github.io/projects/fbi/; code github.com/team-approx-bayes/Fenchel-Bregman.
- 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
Jeva: System One Models from First Principles
Jeva is a decision-native architecture for system-one (direct decision) models that jointly satisfies four structural requirements: null-awareness, permutation invariance, option scalability, and cacheability. A shared Qwen3.5-4B backbone independently encodes the request (state z₀) and each option (normalized 768-d vector uᵢ); a single compact decision block (L=1, H=8) refines only the request state against immutable option memory via symmetric cross-attention — proven to support set-dependent preference reversal that independent scorers cannot express (Prop. 1) — while symmetric aggregation yields permutation-equivariant probabilities with no augmentation or consistency loss (Prop. 3). A coverage gate ρ=σ((maxᵢ sᵢ−b_cov)/τ_cov) separates answer presence from candidate competition q=softmax(s/τ_dec), so adding options below the existing maximum leaves coverage unchanged (Prop. 2) — no compulsory log K penalty. The same computation unifies Choice, Noul, and Score outputs. Trained with rank-64 LoRA (13.37M params) on a staged ~1.05M-example typed-decision curriculum. Evaluated on Typed Decisions, BANKING77, MASSIVE, Mind2Web, and ToolRet: Jeva-4B leads 7 of 8 slices (Typed Decisions 78.30% vs InternDecision-4B 78.70%; BANKING77 16-cand 91.62%), records 0% decision flips under all tested candidate permutations (baselines 17.00–45.00%; mean TV 3.17e-08), achieves 98.66% null-detection AUROC on 16-option BANKING77 (vs 93.61% KEV-4B), scores 2,048 ToolRet candidates in one decision-head pass at 69.88% accuracy in 12.04s (vs recursive JevK5 67.47% in 28s; fixed-vocab baselines fail past K=32), and atomic option caching (2,304 scalars/option, request-independent) cuts MLDR p50 latency 27.98× at full reuse (2,102.0→75.1 ms) without changing decisions. Caveats: no ablation isolates the decision head from the training curriculum; cold-start encoding of 2,048 new options takes 12.04s on H200; 768-d single-vector pooling may lose token-level diff resolution on long code; symmetry proofs assume exact arithmetic. Code Apache 2.0; weights at huggingface.co/LIQIIIII/Jeva-4B.
- Paper
Generative Representation Learning for Scalable Latent Tokenization
Introduces Relative Prediction Representations (RePR), a theoretically grounded self-supervised objective for learning representations as generative-model tokenizers. Factorizes the pointwise mutual information between masked image views directly (estimated via a conditional generative model's diffusion ELBO), inheriting contrastive learning's theory without negative samples. Practical components: scale-weighted PMI (timestep weighting toward noise-robust information; plain PMI weighting collapses), bootstrapped incremental PMI estimation that telescopes to the full PMI, a MAR prediction model (MAE encoder/decoder + diffusion MLP head), and iterative feature prediction across training cycles. Robust to feature suppression where LeJEPA and DINOv3 collapse (watermarked ImageNet probe). Establishes tokenizer-encoder scaling laws over ~2 orders of compute on ImageNet and the GPIC text-to-image dataset; extrapolating the trend (not measured end-to-end) predicts DINOv2-equivalent quality at ~1/7 the training FLOPs on ImageNet and WebSSL-equivalent at ~1/8 on GPIC. With Latent Forcing, RePR-78M + JiT-L reaches FID-50K 2.18 at 3.49×10²⁰ total FLOPs vs 2.36 for pixel-space JiT-L at 3.57×10²⁰ — the authors' first demonstration that representation learning + generation beats direct pixel diffusion at matched total FLOPs. Caveats: 7×/8× figures are extrapolations; ImageNet width-1024 model overfits past 200 epochs; code released 2026-10-25 (verified — training code live at github.com/AlanBaade/repr).
- Paper
xHC: Expanded Hyper-Connections
xHC (Expanded Hyper-Connections) is the first Hyper-Connections-family method to achieve meaningful residual-stream expansion beyond N=4. Hyper-Connections expand the Transformer residual stream into N parallel streams (memory scaling beyond width and depth); mHC stabilized this at scale but stopped at N=4, where scaling mHC further gives diminishing gains at rising cost. xHC combines (1) temporal feature augmentation — MLP write-back enriched with multi-scale local features from causal depthwise convolutions (kernels {4,8,12}) over neighboring tokens — with (2) sparse residual-stream updates: dense read access to all N=16 streams, but residual mixing/write-back routed through only k=4 active streams (2 fixed + 2 routed), cutting residual-mapping generation cost from O(N³C) to O(k³C); mixing is Sinkhorn-normalized over active streams. On an 18B MoE, xHC improves the average downstream score over mHC by 4.0 points across 12 benchmarks (3.1 points at 28B, winning 11/12), with only modest extra training FLOPs; vanilla and mHC need 1.50× and 1.19× xHC's compute to reach the same loss; expanding N=4→16 improves xHC's loss by 0.012 at +4% FLOPs vs 0.006 at +32% for mHC. xHC-Flash (sharing full-state ops across sublayers) cuts per-sublayer memory traffic from 73.5C to 40C (Flash-4sub), near mHC's 34C at N=4, while retaining the gains. Fused Triton forward/backward kernels: mHC adds ~15% training overhead over baseline, xHC-Flash-4sub ~11% on top of mHC; inference prefill +11.4%/+12.9%. Author-open-sourced the training code (Megatron-LM based; xHC-Flash not included): github.com/aHapBean/xHC (Apache 2.0).
- Paper
The Thinking Leakage in Reinforcement Learning for LLMs
Hybrid reasoning models (Qwen3) switch between THINK and NO-THINK modes via chat-template tokens; a popular recipe trains in NO-THINK mode with RLVR and reports improved reasoning. This paper argues much of that gain is "thinking leakage" — partial reactivation of the original model's THINK mode, not newly learned reasoning. They train Qwen3-1.7B/4B/8B with GRPO in NO-THINK mode on DAPO-Math-17k (rank-64 LoRA on all linear layers, lr 1e-5, KL 1e-3). Evidence chain, evaluated on AIME 2022–2024 (90 problems): (1) behavior — 8B accuracy 0.17→0.43 while responses grow 2.7k→7.2k tokens, reflection words 1.3→13.0, think-win-rate judged by the original model 50%→94%, and activations shift α=0.56 along the original think direction (4B α=0.40, 1.7B α=0.21); (2) weights — scaling the RL update (W₀+c·ΔW) approaches but never exceeds think-mode accuracy (0.72 vs 0.74), and scaled models generate </think> at the same position as think mode (51% at c=3) despite never being trained to; (3) activations — exchanging an 8-dim think subspace between RL-trained and original 8B models removes 75% of the RL gain (0.411→0.244) and transfers 50% in reverse (0.189→0.300; 60% with 16 dims), vs PCA controls of 22%/25%; (4) attention heads — a small set of heads (e.g. 8B L18H19, top 0.2% by empty-think-block attention) keeps the original in no-think mode, and single-head patching of L18H19 accounts for 44% of the RL-induced activation shift; (5) GRPO signal — correct responses with larger advantages are more think-like (TWR 57.8%→40.5% as group size-correctness k goes 1→4), and one GRPO gradient step moves a fresh LoRA adapter toward think mode (Δα=+0.0075), while shuffled or uniform advantages do not — so the leakage pressure lives in the advantage assignment itself. Caveats: scaling probe is exploratory (factors explored on the same 90 AIME problems); gradient-step probe is not an actual training step; single eval set. Code announced on GitHub but repo URL not verified at catalog time.
- Post
RL Fine-Tuning from Scratch: Build the Environment, Train with GRPO
Deep-ML's new hands-on Project (24 steps, tagged Hard / Reinforcement Learning / PyTorch) builds the entire RLVR pipeline from scratch in PyTorch: a Countdown-style arithmetic RL environment (three numbers, a target, postfix expression using each number exactly once), a reward verifier, tokenization, a causal transformer policy, SFT warm-start, then the three GRPO components — group-relative advantages, the clipped policy-gradient objective, and the k3 KL estimator. Includes a reward-hacking experiment (watching the policy exploit a lenient verifier) and training-loop diagnostics. No paper, no code repo — the platform's format is atomized coding problems solved in-browser on their compute, "no library call standing in for the thing you are trying to learn."
- Post
Teaching NVIDIA's Nemotron 3.5 Super-VL ML Engineering
Bespoke Labs post-trained NVIDIA's Nemotron-3.5-Super-VL 120B-A12B (hybrid Mamba-attention MoE, 120B total / 12B active) into an autonomous ML researcher, evaluating on AutoResearchExam — Bespoke's benchmark of extended ML-engineering tasks (22 CPU-only long-horizon tasks, 4–6h limits, single final submission, no grader feedback; a different protocol from the public ARE leaderboard). All post-trained variants are tiny LoRA adapters (r32, 224 tensors, 205 MB = 0.08% of base weights). Mean score: base 0.286 → Curated Decision SFT 0.319 (+11.3%) → self-context distillation 0.317 (+10.6%) → SCD + Reflection 0.358 (+24.8%), vs Muse Spark 1.3 at 0.258 and Qwen 3.8 Max at 0.353 (20× total parameters). Curated Decision SFT extracts useful decisions from Qwen 3.8 Max teacher trajectories (400 examples, 2.19M tokens). Self-context distillation has the model solve tasks with terminal-use guidance and hints, then strips the help — reconstructing each context without hints and excluding steps whose reasoning depends on hint-only information — and trains on the retained trajectories (3,365 examples, 7.44M tokens). The reflection extension (inspired by Retrospection-Only Fine-Tuning) has the SCD model review its own better-vs-worse attempt pairs and write concrete lessons, training on 972 reflection examples + 500 replayed SCD action examples; reflection-only variants regressed, and with no matched replay-only control the result supports only the combined recipe. Contamination screening via task IDs and instruction-text comparison found no eval overlap. All results are the companies' own; the proprietary ARE eval means no independent reproduction is possible.
- Model
MAI-Base-2
Microsoft AI's MAI-Base-2 is a base (pre-trained only) MoE foundation model with 80B active / 2.8T total parameters, trained on 16k GB200s over 38 days at 21% MFU on a 50T-token mixture including native vision (encoder-free VLM architecture; VLM corpus 4.5T unique tokens). Microsoft claims it beats every open-weight model on their held-out evaluations and is 4.2–12.3× more pre-training-FLOPs-efficient than DeepSeek-V4-Pro-Base (12× on held-out code), with efficiency measured by fitting BPB-vs-FLOPs scaling laws and estimating matching compute on held-out text (bits-per-byte), their own codebase for code, and vendor-commissioned STEM/Math/Q&A evals, all decontaminated. The recipe's pillars: scaling ladders with "source scaling" (fixed unique-data-to-parameter ratio across rungs so small-scale choices transfer), jointly-swept LR/weight-decay scaling laws (LR*×WD* = 17.04/steps), dropless multi-round MoE with fixed per-expert token capacity (MoE-layer MFU 24%→35%, enabling MoE in every layer), the Muon optimizer (2.1% of iteration time), and activation gradient clipping that also surfaced a preprocessing bug. Data is described as organic/in-house with no distillation. Closed release — weights licensed via Foundry only; post-training is in progress with results promised soon; MAI-Base-3 prep underway. All performance claims are Microsoft's own; no independent reproduction.
- Other
ScalingDepth
ScalingDepth is a community hub for tracking residual-connection research — the "zoo of residual designs" (mHC, iHC, oHC, xHC, AttnRes variants and more). It collects residual designs with one-line update rules in unified shared notation so the design differences are visible at a glance, and runs DepthBench: controlled comparisons of designs at a fixed parameter count across width–depth ratios, with open code and checkpoints, plus a research/papers/tutorials/blogs aggregation. Its "short history" runs from Highway Networks/ResNet (2015) through Pre-LN (2020), DeepNorm (2022), Depth-µP/CompleteP/Hyper-Connections/DenseFormer/mHC (2023–25), to AttnRes/MoDA/KEEL/SiameseNorm/KiteNorm (2026). Community-driven: new methods, follow-ups, reproductions, or analysis are added by opening a PR against a data file. Open to showcasing community blogs, posts, and unexpected findings.
- Paper
Understanding and Enhancing Backdoor Persistency in LLM Agent Post-Training
Supply-chain threat for LLM agents built from third-party models via benign post-training: a backdoored model (comment trigger `# |TEST MODE|` → credential-exfiltrating tool command) is adapted through the developer's SFT and task-level RL. On SWE-agent coding models (Qwen2.5-Coder 3B/7B, Qwen3-Coder-30B), benign SFT (3,000 updates) cuts attack success from 100% to 8%/20%/7%, but subsequent GRPO (150 steps) preserves the residual in every setting and increases it in some (30B first-position 6%→12%). Analysis attributes SFT survival to two factors: backdoor strength and gradient compatibility with benign updates. PersistBD refines the backdoored model pre-release with a single merged LoRA adapter optimizing a joint objective (backdoor strength + compatibility surrogate from disjoint benign data + benign anchor), flipping compatibility from negative to positive at all scales: 7B post-SFT ASR 20%→74%, post-RL 20%→76%; 3B 8%→21% / 7%→22%; 30B 7%→37% / 8%→36% — while keeping benign SWE-bench Lite resolved rates comparable to the base backdoor (7B: 23/300 vs 20/300 after SFT, 27/300 both after RL). Ablations show both strength and compatibility terms are necessary; dropping them produces unselective backdoors (false-trigger rate 0.87–0.99) that erase within one benign epoch. Conclusion: backdoors survive benign SFT–RL pipelines and adversaries can deliberately harden them; motivates inherited-backdoor detection and mitigation. Limitations: SWE tasks and one scaffold only; fixed attack target; attacker knows the domain/scaffold; results depend on the evaluated training procedures and budgets.
- Paper
Evaluating LLM Creativity through Long-Tail Performance
LLM creativity benchmarks vary widely in task and metric design — do they capture a common notion of creativity? The paper formalizes the shared target as task-specific performance in the long tail of a reference input-output distribution (how common input-output pairs are relative to a chosen source of text), grounded in the novelty-quality product formulation Creativity = Novelty × Quality, where a theoretical identity shows the same quality difference contributes more to the creativity score in higher-novelty regions. Empirically: 15 benchmarks (writing, math, QA) and 26 open-weight models, using 4-gram absence from the Pile (Infini-Gram-Mini) as novelty proxy. Creativity benchmarks lie significantly further in tail regions than standard benchmarks from the same domains (p<0.001). Within each benchmark, rankings from higher-tail subsets align more closely with LM-Arena creative-writing human judgments: on Arena-Hard Creative Writing, tail bins reach Kendall τ=+0.39/+0.33 vs +0.06–+0.15 for peak bins; on GPQA-Diamond (not a creativity benchmark), +0.40/+0.22 vs +0.10–+0.18 — significant at ten-bin resolution (Spearman ρ=0.66–0.86). Introduces q@Tail(α), a lower-cost diagnostic: mean task quality on the top-α tail fraction of an existing benchmark. Applying it to nine creativity-promoting methods (min-p, temperature scaling, persona, Convergent-Divergent Thinking, Branch-Solve-Merge, self-consistency, meta-prompting, CRPO-SFT/DPO) reveals a quality-novelty tradeoff: only min-p improves tail quality (+17.7%) while reducing novelty (−16% to −44%); all others raise peak novelty but lower tail quality. Difficulty and novelty splits are nearly disjoint (MATH overlap 0.07), so tail selection is not just "harder examples." Limitations: n-gram rarity captures surface novelty only; rankings depend on the Skywork reward-model quality estimator; LM-Arena votes are self-selected-user holistic preferences, coupled with overall capability; methods tested only on open 7–8B models. Code and data: github.com/YichenZW/longtail-creativity; reading list: github.com/YichenZW/awesome_llm_creativity.
- Paper
DFlash: Block Diffusion for Flash Speculative Decoding
Speculative decoding caps out at ~2–3× because autoregressive drafters are sequential and shallow. DFlash replaces the AR drafter with a lightweight block-diffusion model (5 layers) that proposes an entire token block in one forward pass. The key design: the target model's hidden features — extracted from 5 uniformly sampled layers and fused — are KV-injected into every draft layer (not just fused at the input like EAGLE-3), so acceptance length scales with draft depth. The drafter trains on the target model's own outputs (random anchor-token block construction, early-position-weighted CE, shared frozen embedding/LM head), and verification keeps generation lossless. On Qwen3-8B (greedy): up to 6.1× speedup over autoregressive baseline (avg ~4.9×) and ~2.4× over EAGLE-3, with acceptance lengths ~6.5 vs ~3. In SGLang serving: 4.8× at concurrency 1, 2.9× at concurrency 32. Z-Lab × Modal joint retrains (40k context, sliding-window attention): Qwen3.5-122B-A10B — baseline ~260 tok/s → 1,088.9 tok/s on HumanEval (4.21×), 1,041.2 tok/s on math500, accept lengths up to 8.7 (4×B200); Qwen3.6-35B-A3B — up to 3.61× speedup (1,116.3 tok/s math500) on a single B200, beating Qwen's built-in MTP path everywhere. DFlash 2 (Inco AI, Qwen3.8-27B): per-position top-candidate selection plus two-tap dynamic convolutions; accept lengths 4.1–5.5 vs MTP 3.7–5.0, throughput 2.7–3.4×. Limitations: draft models trained on ~800K Nemotron+CodeAlpaca samples at ≤30B-A3B scale in the paper; retrain benchmark cards are same-domain (GSM8K/MATH/HumanEval/MBPP/MT-Bench); the X post's production-traffic-training claim for the Modal retrains is not stated on any model card.
- Paper
Vela: User Behavior as Supervision Sparks LLM Intelligence
User behavior as supervision: from anonymized behavior records of 100,000 users on a large social media platform, Vela builds 100,000 tasks across 91 real-world question templates. Each user's history (Views, Searches, Purchases, Posts, Follows, Dislikes) is split into a visible segment and a hidden future; Predictive questions (Objective candidate selection; Open-prediction free-form) are scored against ground truth extracted from the hidden future, while Rubric questions (Open summaries; Attribution explanations) are evaluated against task-specific rubrics, both by a larger scorer model (Qwen3.8-2.4T-A95B). Difficulty-based filtering (keep tasks with mean 4-shot score in [0.2, 0.8]) plus trajectory acceptance (best-of-4, must exceed the filtering mean) retains ~75,000 tasks forming Vela-Instruct, with a 9,375-sample self-generated Vela-RFT variant. Fine-tuning Qwen3.6-35B-A3B on Vela-Instruct: VelaBench (982 held-out tasks) 51.5 → 63.0 (+11.5); user-related OOD average 41.3 → 47.5 (+6.2), led by ProfileSummary +10.1 and AdRecommendation +11.2 while PurchaseIntent barely moves (+0.2); general OOD average 54.2 → 58.2 (+4.0), led by IFBench +6.7 and CL-bench Life +5.6, with no regressions on any of the five. More behavior data monotonically improves user-related performance (4.7K → 75K). GSPO reinforcement learning after Vela fine-tuning beats RL from the base model by 7.7 points on both VelaBench and ProfileSummary (using the 18.8K checkpoint). Limitations: proprietary single-platform data means no external reproduction is possible; the task templates, prompts, and code are promised but not released; rubric and scorer-based metrics use the authors' own larger sibling model; VelaBench is same-domain as training; no multi-platform generalization or deployment evidence; all results are the authors' own.
- Post
SGD, AdamW, and the mystery of α = 2
Charles Martin (WeightWatcher author) offers an explanation for why WeightWatcher's spectral renormalization-group diagnostics behave differently under SGD and AdamW: layer spectral exponents α often approach the ≈2 marginal regime with SGD, but with AdamW many layers land at α < 2 — the regime he flags as possible overtraining. The paradox: in his LeNet-5-on-MNIST example, the AdamW run (α < 2) has better test accuracy than the SGD run (α ≈ 2). His answer: SGD is scale-invariant — for an idealized scale-invariant loss, rescaling weights W → bW, WᵀW → b²X and learning rate η → b²η yields a rescaled copy of the same trajectory, and this symmetry underlies the RG-flow emergence and Exact RG fixed-point conditions — whereas AdamW's adaptive normalization changes the scaling law (learning rate scales as b rather than b² in the idealized limit), breaking the SGD scaling symmetry and shifting the spectral trace-log drift. Working hypothesis: SGD scale-invariance is consistent with the RG flow, while AdamW's implicit bias moves learning away from the α ≈ 2 regime — which explains why WeightWatcher worked well in the pre-AdamW era and why modern-optimizer models are harder to analyze. A standing research question, not a publication; discussion invited on the WeightWatcher Discord.
- Paper
Next-Concept Modeling: Fast, Parallel Coarse-to-Fine Text Generation
Diffusion language models offer parallel sampling but degrade with fewer steps, process the full sequence every step, and need many training passes. Next-Concept Modeling (NCM) is a two-stage coarse-to-fine alternative: a multiscale residual VQ-VAE encodes text into a hierarchy of discrete codes from coarse to fine (adapting VAR-style next-scale prediction from images, requiring substantial modeling changes since text has no natural downsampling and single-token errors matter), and a transformer generates one level at a time, predicting all codes within each level in parallel — one forward evaluation per level. At ~100M parameters, NCM beats strong diffusion baselines on unconditional generation (TinyStories, LM1B, OpenWebText) with 4–11× fewer function evaluations: on LM1B it uses 11× fewer NFE than DUO and runs 21× faster at better generative perplexity (single H100, batch 16), and on OpenWebText it matches the strongest diffusion LM at 10× faster. Tokenizer plus generator train on 13.36B token positions on LM1B, ~4.9× fewer than baselines' 66B. On XSum summarization it uses 16× fewer NFE than AURORA-LM and runs 31× faster at comparable ROUGE-L, with the best summarization scores; on WMT14 De–En translation it beats all but one non-AR baseline. On Sudoku it scores 99.5/96.5/86.1 (easy/med/hard) with 12 NFE, outperforming AR baselines (greedy: 14.6/5.1/1.0 at 128 NFE) and diffusion/flow baselines including DUO (96.3/84.7/58.4), MDLM, and the strongest flow baseline FMLM+ (97.7/92.8/81.3). Spending the saved sampling time on more candidates with MBR decoding gives ~7% higher ROUGE-L than the strongest summarization baseline at the same time budget. Preliminary scaling: larger generators improve quality at fixed training-token budgets. All numbers are the authors' own at ≤~100M scale; no independent reproduction.
- Paper
Distributionally Robust Mixture-of-Experts Training
The hidden reliability problem in sparse MoE is not uneven utilization but uneven expert competence: imperfect routing sends tokens to experts that were never well trained for them. DRMoET (Distributionally Robust MoE Training) treats each layer's routed experts as endogenous robustness groups and optimizes the layer-wise worst expert-attributed loss — a drop-in objective with no auxiliary losses and no routing changes. It maintains a per-layer distribution over experts, updated by an entropy-regularized softmax on EMA-smoothed (β=0.999), activation-weighted (routing-probability × expert-output-norm, stop-gradient) expert losses, strengthening plausible non-top routing paths while the router, architecture, and sparse forward/backward stay unchanged. Under the FLAME-MoE recipe from-scratch pretraining at 746M-total (~33.5B tokens) and 10.3B-total (67B tokens) scales, evaluated 0-shot on ARC-E/ARC-C, HellaSwag, PIQA, WinoGrande, SciQ, ReCoRD: at 1.7B-10.3B the seven-task average rises 0.6625 → 0.6767 (+1.42pp absolute, +2.14% relative) vs standard FLAME-MoE and 0.6431 for auxiliary-loss-free balancing (Wang et al. 2024, DeepSeek's method) — +3.36pp over aux-loss-free. At 290M-746M DRMoET's best setting reaches 0.5523 vs 0.5403 FLAME-MoE and 0.5084/0.5055 aux-loss-free. Mechanistic probes: expert-loss std −8.58% with mean loss nearly unchanged (−0.05%), worst-expert loss −2.05%; forced mid-k misrouting shows 4.3% lower excess loss degradation; domain–expert specialization metrics all improve (competence advantage ΔQ +30.2%, expert–domain MI +12.9%). Training-throughput measurement shows no slowdown: 67.19 vs 64.17 TFLOP/s/GPU (+4.7%), iteration time −4.6%, lower variance — the authors attribute this to reduced straggler variance rather than an algorithmic guarantee. Convergence guarantee (Theorem 4.1): entropic mirror ascent on the entropy-regularized objective reaches stationarity at Õ(T^(−1/2)). Limitations: two model scales and fixed expert configs; no imbalanced or long-tail evaluations; probes are diagnostics on trained checkpoints.
- Paper
Scaling Repeated-Data Pretraining: Batch Size, Regularization, and GPU-Time Tradeoffs
Studies pretraining when compute is abundant but unique data are finite, requiring repeated passes over the same data. Revisits the infinite-compute, finite-data frontier (Kim et al. 2026) and shows it depends critically on choices previously fixed or studied in isolation. Jointly optimizing batch size, learning rate, weight decay, and epoch count reveals a U-shaped relationship between validation loss and batch size: the optimum (B=64 sequences / 0.262M tokens for the 1.5B on a 1B-token DCLM-Baseline pool) is 2.9–4.7× smaller than what single-pass batch laws predict, and substantially smaller than the 512–2,048-sequence batches in public recipes — small-batch gradient noise acts as implicit regularization against repeated-data overfitting (CE 3.124→2.977 for the 1.5B; 3.136→3.093 for 474M; 3.416→3.332 for 153M). Batch tuning extends beneficial repetition from 8→20 epochs (1.5B) and 40→112 (153M). A repetition-aware recipe — repacking documents into fresh sequences every epoch, tying input/output embeddings, and applying positive weight decay to the shared embeddings — further improves the frontier (B=64: 2.971→2.946) and delays the best checkpoint (1.5B 20→32 epochs; 474M 32→80; 153M 112→240); batch warmdown, structured gradient noise, and LocalSGD/DiLoCo were tried and showed no clear consistent gains. Because the infinite-compute optimum can demand prohibitive sequential time (an illustrative 70B-on-10T extrapolation gives 22.6 years), the paper splits compute into GPUs and time: under short deadlines larger batches win, but even under a fixed deadline a smaller batch on 16 GPUs can beat a larger batch on 64 GPUs, and latency-oriented parallelism (microbatch 8→1) trades 8× GPUs for 2.7× shorter training at unchanged loss. The repetition-aware recipe uniformly improves the joint GPU-time frontier. Limitations: 153M–1.5B models, 0.333B–3B-token pools; dense models only; target-scale numbers are illustrative extrapolations.
- Paper
Learning What to Investigate Next: Meta-Reasoning for Long-Horizon Research Agents
Long-horizon research agents must decide both how to investigate and what to investigate next, but allocation decisions are sparse in long traces and their consequences emerge several investigations later. MIRA (Meta-reasoning for Iterative Research Agents) makes those decisions explicit: an outer-loop meta-reasoner curates context from a persistent Git-based research record and writes a work order (objective, proposed approach, success criteria) or ends the episode; a fresh inner-loop executor carries out each work order, so every investigation — however long — is one meta-reasoning transition. The decision boundaries also give natural credit-assignment units: a generative critic forecasts expected remaining return from the curated observation using the LM's native next-token distribution, and MIRA-AC jointly trains actor and critic in one model, propagating a single decision-level advantage to the tokens of the decision response while masking the longer executor trace, using buffered single-rollout async optimization. Without policy training, MIRA raises GPT-5.5's IMOProofBench Advanced score 67.1% → 100% (all 30 problems in each of 3 trials) and achieves the lowest proxy and gold loss in matched 24h/48h neural-architecture hill-climbing campaigns (per-cell residual-write gates on RMT; signed attention + leaky recurrent update on Loop Transformer), revisiting proof directions more often than baselines (strategic inertia 0.772 vs 0.958 direct). The generative decision-level critic beats token-level alternatives by 0.110 RMSE, and cross-environment LOO pretraining improves forecasting and adaptation (−0.053 RMSE after 5 target episodes). Trained on the model's own proxy hill-climbing signals, MIRA-AC improves gold performance across four autoresearch environments (symbolic regression, physics discovery, HillClimbBench-CPU, BNLearn causal discovery), with the cross-environment policy transferring to BNLearn held out from actor training; only 25.8% of output tokens (the decision responses) receive actor loss.
- Paper
AutoEnvScaling: Automating the Data Flywheel with Terminal Agents
Terminal-agent RL is bottlenecked on human-designed environments: the supply of useful training envs grows only as fast as researchers can work. AutoEnvScaling turns environment design into a terminal task — a proposer agent reads the solver's rollouts, decides what to build, then writes and tests complete Harbor tasks (instructions + execution environment + reference solution + tests) inside a sandbox with web access, a coding harness, and child containers. Two admission gates: validation (reference solution scores 1, empty solution <0.5, no 13-gram overlap with held-out tasks, Terminal-Bench rubric review) and calibration (current solver keeps the task only if mean reward ∈ [0.25, 0.75] with variance; up to 2 revisions). The proposer co-evolves via harness optimization (editing its own harness/skills/memory between rounds) or weight training. Across eight frontier proposer models, terminal-based generation raises the valid-environment rate up to 25× over prompt-only generation (DeepSeek-V4-Flash 3.5% → 89.0%) at up to 75% lower cost per valid environment for six of eight models (cost rises for the two strongest proposers since AutoEnvScaling spends more turns). RL on generated environments beats matched static Tmax pools on Terminal-Bench 2.1 (+6.3/+7.4 for Qwen3.5-9B, +4.3/+3.8 for Qwen3.5-35B-A3B), and removing solver feedback costs −3.6/−6.7 points. Recursive self-improvement: Qwen3.6-35B-A3B as both proposer and solver (self-play, one shared policy) improves Terminal-Bench 2.1 from 41.1 to 53.3 (+12.2) and Terminal-Bench 4.0 from 1.6 to 3.2, with 3.1× higher usable-group rate and 42% less rollout-collection time; removing proposer training collapses the loop. On HiL-Bench, tasks generated by Claude Opus 5 let Qwen3.6-35B-A3B reach 33.9% task success / 55.3% Ask-F1 at asking for help — beating Opus 5 itself (7.5%/14.4%). Code (Apache-2.0, private preview), launchers for every experiment, figure data, and generated environments are public; sandboxes run on Modal.