Explore the research collection
88 entries · showing 25–48 · Follow this search
- 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.
- Post
Defeating Nondeterminism in LLM Inference
The "concurrency + floating point" story for LLM nondeterminism is incomplete: the forward pass contains no atomic adds and is run-to-run deterministic. The true culprit is lack of BATCH INVARIANCE — matmul/RMSNorm/attention kernels change reduction order/tiling with batch size (split-K matmuls, tensor-core tile choice, attention split on KV cache vs current tokens), and inference servers change batch composition via continuous batching, so "identical" requests from one user's perspective get different outputs. Fix: batch-invariant kernels for the three reduction ops (data-parallel RMSNorm; single compiled matmul config, ~20% cost vs cuBLAS; attention with pre-kernel KV-cache/page-table layout update and FIXED-SIZE split-KV — which required internal FlexAttention changes not included in the code release). Evidence: 1000 temperature-0 completions of 1000 tokens from Qwen3-235B-A22B-Instruct-2507 ("Tell me about Richard Feynman") → 80 unique completions, identical for first 102 tokens, first divergence at token 103 ("Queens, New York" 992 vs "New York City" 8); with batch-invariant kernels all 1000 identical. True on-policy RL: RLVR on BigMath with Qwen2.5-VL-Instruct-8B, bitwise-identical sampler/trainer → KL divergence flat at 0, trains smoothly without importance weighting; the naive run's reward collapses ~step 318 with a KL spike. Claim: train/inference numeric mismatch "implicitly turns our on-policy RL into off-policy RL." Fun detail: Triton FlashAttention backward differs algorithmically from the FA-2 paper — recomputes to avoid atomics at 40% more FLOPs. Repo: github.com/thinking-machines-lab/batch-invariant-ops (torch.Library substitution layer + vLLM FlexAttention deterministic-mode demo), MIT.
- 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.
- 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.
- 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.
- Post
How to make a good RL task
Practitioner essay on designing RL tasks for agents. A task is four components — Prompt (the request), World (the data and dynamics of the environment), Verifier (the deterministic or model-based definition of "good"), and Intent (the explicit capability or failure mode being targeted) — and task generation is constraint satisfaction across their alignment axes. Prompt↔Verifier: the prompt must contain enough signal for a capable model to satisfy the verifier. Verifier↔Intent: the verifier is the sole source of optimization pressure, so any gap is reward hacking (buggy code passing tests; escaping the sandbox to hack Hugging Face for answers). Prompt↔Intent: prompts must stay distributionally aligned with production traffic. Worlds span real (uncorrupted repo) to fully synthetic (cloned travel sites); a world is sufficient iff it reliably elicits the target failure mode. Making good tasks means building revision loops that calibrate prompt, verifier, and world against intent: author → eval → audit traces → loop back to author or discard, with a verifier-calibration loop mapping edge cases against ground truth. A worked SWE pipeline uses solver agents, a verifier agent writing the grader, hacker agents seeking undesirable-but-passing solutions, and a review agent. Naively hardening tasks is warned against — it targets contrived axes. On the verifiability spectrum, most interesting work is semi-verifiable, and human experts are the ultimate verifiers. Task factories are the outer loop: distilling expert judgment into the generation pipeline so it yields better tasks at progressively lower cost — e.g. an investment banker flags unrealistic prompts, the recipe is updated, and expensive human gates compile down to agent proxies and eventually cheap classifiers like Jev. Cites the recent OpenAI/Hugging Face attack as the catastrophic end of verifier–intent misalignment.
- Post
Toward RL on mixed-precision, mixed-accelerator samplers
RL training normally runs samplers on a fixed homogeneous cluster of the latest accelerators to keep sampler–trainer mismatch low, throwing away inference optimizations built for other vendors/generations. Modal asks whether RL can sample from mixed-precision, mixed-accelerator fleets while staying stable and performant. They train Qwen3.6-35B-A3B on agentic coding tasks (2.7K de-leaked Xiaomi/MiMo-V2.6 repo tasks, up to 256K context, binary test-pass reward in a fresh sandbox) with fully asynchronous RL in the open-source Miles framework: SGLang samplers and a Megatron-LM trainer updating the policy in BF16 on B200s, 128 prompts × 8 trajectories per update, no staleness limit. Two sampler setups: mixed (six accelerator kinds — B200/B300 with NVFP4 weights, H100/H200 with FP8 and BF16 weights, A100/RTX PRO 6000 with BF16 weights — each with its own kernels and FP8 KV caches) vs homogeneous (B200 only, BF16 weights, BF16 KV cache). The fix is off-policy correction on top of GRPO: masked importance sampling (per-token ratio kept inside [0.2, 5], zeroed outside), score centering (removes drift toward the sampling policy), and top-p sampling with mask replay (shared support). Uncorrected GRPO collapses on both setups; each correction piece alone only delays collapse; only score-centering + masked importance sampling trains stably to convergence, reaching SWE-bench Pro V2 pass@4 ~65–75% on the HARD-51 subset and ~94% on the full set. With the full correction, mixed samplers match homogeneous pass@4 throughout training despite a 4.7× larger average sampler–trainer KL, at ~15% lower sampler cost per update on a setup built for validation, not minimal cost. The central claim: stability depends on whether the mismatch keeps growing, not its magnitude — accelerator and precision differences need no new kind of fix, since off-policy correction is agnostic to why the sampling policy differs from the training policy.
- Post
PriorBPB: Reducing the Answer Length Confound of Bits-per-Byte While Improving Accuracy Prediction
BPB divides a model's total surprisal on a gold answer by its UTF-8 byte length to remove tokenizer dependence — but answer length is a property of the benchmark, not the model. The post shows total bits decompose as a fixed per-item cost α plus a per-byte rate β, and corpus BPB equals α/mean(n) + β algebraically, so the fixed cost (largely first-token surprisal, ~10× later tokens) is divided by the task's mean answer length. Empirical effects: on MMLU full text (Qwen3-4B) the shortest-fifth answers score ~11× worse than the longest fifth; median across tasks the ratio is ~2×. The fixed-cost share is task-dependent (SQuAD2 later tokens nearly free via copy-from-passage; OLMo-3-7B GSM8K cost 96% length-scaled), so no single constant normalization fits. Mean-of-ratios BPB (mean of per-item ratios — not a rate) inflates further, up to ~2× (+122% on MMLU full text vs corpus BPB). Under corpus BPB, Qwen3-0.6B-instruct beats its 1.7B/4B siblings on 15/19 tasks — an apparent inverse-scaling trend: α is larger at 4B than 0.6B on all 19 tasks (1.2× to 7×) while β shows no trend, plausibly from wrapping completion-style gold answers in an instruct chat template. PriorBPB fixes the aggregation: estimate each model/task's marginal per-byte cost curve R(k) non-parametrically from per-token bits, then average it under one shared geometric length prior (μ=111 bytes, pooled median, frozen pre-scoring). With a task's own length distribution it recovers corpus BPB exactly. Across 62 base checkpoints from five families: within-task top/bottom quintile ratio 0.98 (essentially length-invariant) and cross-task mean |correlation| with answer length 0.68 → 0.18, while following accuracy more closely than mean-of-ratios BPB (+0.021 base, +0.122 instruct). Residual caveats: survivorship bias in late-position R(k) and μ-dependent residual length correlation, so μ must be reported.
- Post
Impactful scheduling for GPU clusters
Ai2's AI Infrastructure team replaced their priority-based GPU scheduler with a budget-based system: GPU time budgets allocated hierarchically by managers (lead researcher / PI / lead program manager / CEO), a hierarchical fair-share scheduler tracking occupancy over a 7-day sliding lookback window (lineage: Hadoop Fair Scheduler, SLURM Fair Tree, YARN Fair Scheduler), and a 'scheduling contract' time-slicing mechanism. The contract: every workload declares a minimum runtime (protected from preemption, charged to its budget, max 8 hours) or sets it to zero (unallocated, always preemptible but free). Allocated occupancy draws from the owner's budget and is protected during minimum runtime; unallocated occupancy keeps GPUs full when allocations don't match demand and can be preempted by any allocated request. This killed three pathologies of the old system: GPU 'squatting' (no-op workloads parked for later), priority inflation (100% of jobs at HIGH priority), and on-call toil negotiating shutdowns of non-preemptible jobs on failing hosts. Rollout results (30-day test period, cluster-by-cluster from end of July): teams received 98% of owed GPU hours (13 of 15 teams got 95%+, worst case 90%); occupancy held at 98% with 2-3x demand over capacity; median queue wait on the largest H100 cluster fell from 5 minutes to 24 seconds, p90 from 2.8 hours to 1.8 hours; debug-workload p90 wait fell from 2 hours to 30 seconds; repairs requiring a human-in-the-loop fell 74% via automatic draining of unhealthy hosts at minimum-runtime boundaries. Challenges recorded: interactive dev sessions now face an 8-hour protected-runtime cap (preemption wipes volatile state), so Ai2 is investing in a CPU-only cluster for data-prep sessions and restorable sessions; possible capacity fragmentation for the largest workloads is under investigation with the simulator. One user quote: the new system 'makes it feel like we have an extra 30% compute' via bursting beyond allocation limits when others underuse their share.
- Post
Improving Qwen3.8-27B-Medium on DeepSWE with GRPO: 500-task SWE agent dataset experiment (AfterQuery)
AfterQuery's internal post-training team trained Qwen3.8-27B (medium reasoning) with GRPO on 500 tasks from their SWE agent training dataset and reports DeepSWE pass@1 (avg of 3 attempts) rising from 27.8% to 39.1% (+11.3 points) over 15 GRPO updates. The dataset spans 10,000+ tasks authored by experienced software engineers and open-source contributors with expert review, built from real workflows in private enterprise codebases to avoid evaluation contamination; the 500-task subset was chosen in a 'learnable distribution' across 422 repos (Python 39.4%, TypeScript 24.2%, Go 20.4%, Rust 13.8%, JavaScript 2.2%) with 80.4% feature requests, 11.6% bug fixes, 8.0% enhancements. Training: 8 attempts per task, GRPO updating all LM parameters on each attempt's reward relative to the group, medium reasoning to speed rollouts; mean shaped reward rose 0.570 to 0.856 over 15 updates (each update a new batch of tasks), entropy held 0.509-0.605 nats/token with no sustained decline. Same-harness evals (mini-swe-agent, medium reasoning): DeepSWE pass@3 51.3%->68.1%; Terminal-Bench 2.1 pass@1 57.30%->61.42%, pass@3 73.03%->75.28%; SWE-Bench-Pro (Hard) pass@1 61.44%->64.71%, pass@6 flat at 88.24%.
- Post
Post-training infrastructure at Proximal
Proximal's engineering post on their internal post-training stack for agentic RL. Training and inference run on Modal GPUs (an internal fork of Miles, the OSS RL framework based on Slime); rollouts run in gVisor/microVM sandboxes on their own Kubernetes cluster, coordinated via a lightweight command daemon (pxd). Key design choices: async training where each rollout keeps the adapter it started on while new groups start on the newest published weights (rollouts >3 versions stale are never trained on; 128 finished groups per step; mean staleness 1.7 at 4:1 inference-to-trainer ratio); inference capture moved inside the replica after cross-region (Sweden vs US West) network waits cost minutes per rollout; single-replica on-demand GPU containers instead of 8-GPU nodes, growing inference 3:1 to 4:1 mid-run; a custom KV-cache-headroom router hitting 99.6% cache hit rate; fault tolerance via a durable rollout store on Modal Volumes (a run survived losing 40% of inference capacity mid-step, fully recovering in 19 minutes); LoRA weight sync over HTTPS sharded across ranks (delta sync tried, not worth it for small adapters); custom attention recomputation keeping only FlashAttention outputs + log-sum-exp, cutting step time 7.3% at long context. Sandbox fleet: tasks declare 1-8 vCPUs (mean 2.3); pods request 25% CPU / 40% memory of hard limits, packing 26 sandboxes per 16-vCPU node; image-aware scheduling raised cache hits 1% to 37% (2s cold starts); zstd over gzip sped image unpack 15-25%; their sandboxes beat a SOTA provider ~5x median / 7x+ p90 on command latency. Case study: Qwen3.8-27B with rank-32 LoRA, 128 envs/step, group size 8, vanilla GRPO on internal agentic coding tasks — DeepSWE pass@1 37.2% (+8.4 over base in 44 steps), pass@8 67.7% to 86.6%; gains survive dropping tasks flagged flawed by Epoch AI/Scrim/internal review. Built on OSS Miles and SGLang, with contributions back upstream (SGLang #43047, Miles #3977).
- Post
New in llama.cpp: Decision Models — /v1/systemone typed-decision endpoint
llama.cpp's server now supports decision models through a /v1/systemone endpoint: you send a state (text, JSON, a screenshot, or a chat message list) plus typed questions, and the model returns a probability for each option in a single forward pass — no token-by-token generation and no output parsing. The API follows the System One format introduced with TypeSafe's Jev model, so existing clients only need a new base URL (implementation: llama.cpp PR #29818). Three question types: choice (options with optional descriptions, returns top option plus per-option probabilities), score (2-10 levels, returns an expected level), and noul (yes/no, returns probability of yes). Six supported models at launch: Julia-1 (144M, mmBERT-small, 50+ languages, Apache 2.0, 3 ms), Laya (421M, ModernBERT-large, English, Apache 2.0, 5 ms), Kev-4B (4B, Qwen3.5-4B-Base, English, Apache 2.0, 12 ms), lev (4B, Qwen3.5-4B, English, Apache 2.0, 36 ms), OpenJev (27B, Qwen3.8-27B, multilingual + images, CC BY-NC 4.0, 43 ms), and Clef (27B, Qwen3.8-27B, English + images, Apache 2.0) — latencies are median time per question on one NVIDIA RTX PRO 6000. Router mode lets one server load several models on demand and pick per request; a community Decision Index leaderboard compares the models. Typical uses: request routing, content moderation, checking an agent step worked, or choosing an agent's next action.
- Post
Cutting Pretraining Costs by 62% — Hyperstition (ANVIL III optimizer)
ANVIL III is a Muon-family optimizer presented as the biggest optimizer breakthrough since Muon (2024). It beats a fully tuned Muon by 20-28 millinats of final validation loss at matched token budget, holding across 124M, 350M, 774M and 1.2B parameters and across overtraining depths; the gap typically grows from 30% to 80% of training (up to ~50 mnat in some configs), with Muon partially catching up during annealing. At a fixed 8x-Chinchilla budget, fitted scaling curves imply optimizer-only compute savings of 32%/39%/39%/50% at the four sizes; combined with an architecture variant (≈25% near-Chinchilla compute saving) the headline is ~62% less pretraining compute at frontier scale, plus ~30% lower inference cost from faster decode. Mechanistically, an 'Adam SNR' probe (descent inequality = Gini of |u_i^T G v_i| over singular directions, scored on held-out batches) shows ANVIL III's update directions have persistently higher signal-to-noise across the whole singular spectrum; 90% of its singular directions go downhill on held-out data vs 67% for Muon (random = 50%), and it is far less sensitive to truncating the weakest singular vectors (removing weakest 20%: Muon +6.9 mnat, ANVIL III +1.8 mnat). The team also released Feather 1.7B (1.68B params, 200B training tokens), which beats Qwen3-1.7B-Base (~36T tokens) on math with ~180x fewer training tokens (MATH500 63.0 vs 53.0; GSM8K 83.4 vs 76.6; GSM8K Platinum 85.7 vs 74.4; GSM-Symbolic main 81.1 vs 62.7), with three rounds of benchmark decontamination documented. A deprecated ANVIL II set the public NanoGPT speedrun record (73.889s -> 39.914s, 1.851x speedup, 46.0% training-time reduction — a larger percentage leap than the previous 45 records combined) and is public as part of the submission; no license stated for the code.
- Post
E2S Finetuning: From Expert Demonstrations to On-Policy Learning
E2S (Expert-to-Student) Finetuning turns off-policy expert demonstrations into more on-policy SFT data via amortized sampling. The formulation is constrained generation: the expert trace defines the validity constraint C_tau (e.g., semantically equivalent responses, correct outcomes on math), while the student model decides the relative probabilities of valid responses. Among normalized distributions supported on the valid set, the closest to the student under KL is the student distribution conditioned on validity: q*(y) = p(y)*1[y in C_tau]/Z_tau. While Finetuning with Sampling (arXiv 2610.02140) reaches this target with per-example MCMC search, E2S amortizes the search by training a conditional sampler across examples with GFlowNets: trajectory balance with a shared offset z_tau becomes a group-relative loss (no normalizer network) that matches the accepted-output distribution. Implementation uses LoRA adapters on the student backbone as the sampler (expert trace conditions the sampler; student scoring and SFT use only the original prompt). Two variants: E2S-Offline (fit sampler once against the fixed student, generate a dataset, then SFT) and E2S-Online (refit the sampler against the current student after each update). In the Finetuning-with-Sampling math setting (Qwen2.5-3B, MATH levels 3-5, 8,230 training problems), Math avg. / Prior avg.: base 31.8/42.2, expert SFT 24.2/38.9, GRPO 45.7/41.4, MCMC+SFT 53.4/42.0, E2S-Offline 55.5/42.1 (+3.9% relative vs MCMC+SFT), E2S-Online 59.4/42.2 (+11.2% relative vs MCMC+SFT, +6.0 points vs MCMC+SFT, +35.2 points vs vanilla expert SFT, while matching the base on prior tasks). Drawing 1/2/4 responses per expert example lifts offline Math avg. 55.0 -> 56.3 -> 57.2. Diversity is a property of the target distribution (preserving relative mass across valid reasoning modes), not an extra bonus term.
- Post
The Unreasonable Efficiency of a Single Gradient Step (Base Labs)
Tests whether recent claims about rank-1/linear extrapolation of early RL updates (RELEX, arXiv 2605.21468; arXiv 2601.04537; arXiv 2510.00553) really hold, and finds them less general than claimed. Replication: training Qwen2.5-Math-1.5B with GRPO for 500 steps on MATH, extrapolating the first k steps via a fitted rank-1 direction recovers the full 500-step gains (66.0% with just the first 2 steps vs 63.8% actual step 500, base 46.9%); scaling the very first gradient step 1000x yields 66.7%. But: 72.0% of the corrected questions were base rollouts showing heavy repetition — RL fixed them mostly by stopping the model from doom-looping ('You are a helpful assistant. 🎉' repeated forever), i.e. exploiting linear structure is largely about removing easy failure modes, not gaining new capabilities. Off-distribution it breaks: first-step scaling does nothing for function calling or Knights & Knaves. Gains vanish at scale: on Qwen3-8B-Base the RELEX fit degrades vs actual training (RELEX-K 7.6% vs actual 97.0% on Knights & Knaves at K=500). Takeaway: RL trajectories being 'basically straight' is too good to be true; the extrapolation gains come from easier problems and fixing doom loops, while harder environments are less linearly extrapolatable. The team believes extractable structure still exists in general RL optimization dynamics and is continuing this direction. Code and checkpoints released in the article; practical lesson: always inspect rollouts, not just metrics. Relevant to the user's post-training work: a 'free lunch' check on recent RL-efficiency results.
- Post
The Anatomy of an Agent Harness
Synthesis of how Anthropic, OpenAI, LangChain, and Perplexity actually structure production agents - identifying 12 production-grade harness components (cited as the canonical reference by projects like Mnemosyne, which audits itself row-by-row against it). Framed the field's three-phase trajectory: competing on model weights, then context engineering, then harness engineering - each stage widening what the practitioner is responsible for shaping. LangChain's Vivek Trivedy formalized the companion distinction: 'If you're not the model, you're the harness.' The harness is the runtime shipped as a product (loop engine, tool registry with schemas/permissions/errors, state/memory persistence, control loop, verification layer, recovery policy, budget manager); you configure it, you don't construct it.
- Post
The most underrated part of Jev as a judge
Deep evaluation of Jev (TypeSafe AI's System One model — reads natural language but returns per-label probabilities instead of text) as an LLM judge. Ran five LLMs and two Jev configurations over 10 human-labeled Phoenix evaluator benchmarks, 10 runs each (36,190 judgments). Findings: Jev matched LLM judges at 98.3% accuracy (statistically tied) while costing 12–290x less ($0.06 vs $17.08 per 1,000 judgments for Claude Opus 5) and running 13–55x faster (133 ms vs 4.0 s median). The underrated part: Jev's probability is a strong self-uncertainty signal — all 3,561 predictions at ≥99% confidence were correct; its probability flagged its own errors (ROC AUC 0.95 drop-in / 0.99 native) far better than repeated LLM calls (0.62–0.84); and Jev entropy predicted where LLMs themselves waver (ROC AUC 0.85), giving a principled router for human review. Directly relevant to the user's Model Axes eval platform and the catalog's System One/JEV cluster (1363, 1434, 1541, 1542).
- Post
Evals: How to Know Whether an AI System Actually Works
Long-form, plain-language guide to evaluating LLM-based systems, aimed at engineers, PMs, and CEOs. Grounded in a runnable tutorial on a fictional bike-shop support assistant (triage/answer/agent components; 80 tickets split 20 dev / 60 test). Defines the four-step eval loop: curate inputs with gold answers, run the system, grade outputs, report one number with an error bar. Grader comparison: code rules (cheap, exact, blind to meaning); LLM-as-judge (flexible but biased — must be calibrated with human labels and binary yes/no questions; their run: 60% agreement with humans, Cohen's kappa 0.15, five judge biases); judge panels; small hallucination detectors (HHEM, LettuceDetect, MiniCheck, SelfCheckGPT); typed judges (TypeSafe's Jev). Stresses honest statistics: confidence intervals, paired comparisons, detection floor. Benchmark caveats: harness dependence, contamination, saturation, redundancy. Covers RAG and agent grading (pass^k, cost, reliability), a tools/frameworks landscape (Inspect AI, lm-evaluation-harness, promptfoo, DeepEval, RAGAS, Langfuse, Phoenix, LangSmith/Braintrust, Opik/MLflow/Weave, HELM, evalica, Selene-Mini/Prometheus 2/Flow-Judge), an approaches comparison table, a decision guide, 'Fifteen things to carry away', and an extensive references list. Directly relevant to the user's Model Axes eval platform. Reported numbers: triage accuracy 0.700, 95% CI [0.583, 0.817].
- Post
How Diffusion Policies Work: From VAEs to Flow Matching in Robot Learning
Educational explainer on diffusion policies in robot learning, written as the author wished they'd been taught. Builds from first principles: why plain VAEs blend demonstrations and how hierarchical VAEs help; diffusion as a special case of a hierarchical VAE and why it works; how Diffusion Policy brings this to action-policy learning (with the author's own reimplementation/tweaking results and a denoising animation); how DDIM takes fewer steps; and how flow matching straightens the path into a simpler recipe and reframes diffusion. Framed as the techniques behind Diffusion Policy, NVIDIA's GR00T models, and most pi (π) models; aimed at ML practitioners new to robot learning. The author also announced an upcoming sim-to-real RL project with a physical SO-101 robot arm, to be documented on X. Resource-sharing, not a research paper.
- Post
How to Train a Neural Net: Lecture Notes (MIT 6.7960 Deep Learning, Fall 2024)
Concise mathematical treatment of how a neural network learns its weights during training, from MIT's 6.7960 Deep Learning course (Fall 2024). Covers the forward pass, loss functions, gradients, backpropagation, and gradient-based optimization — aimed at moving from high-level intuition to a rigorous understanding of training math. Lecture 2 notes; a tip in the thread notes all 20+ lectures can be downloaded from the course's OCW page. Resource-sharing, not a research paper.
- Post
Agentic RL: Token-In, Token-Out Done Right (TITO)
Interactive HF Space article (qgallouedec/tito) arguing multi-turn agentic RL silently breaks when decode→parse→re-tokenize drifts tokens so gradients hit sequences the policy never sampled. Fix: keep a token buffer; never re-encode decoded samples; tokenize tool deltas via prefix-preserving chat-template property. Surveys 18/19 open families as prefix-preserving for tool messages; documents Qwen3 Jinja one-line fix and GLM stop-token placement pitfalls. Alternative is per-family renderers libraries.
- Post
Language Models for Text Classification: From Bag-of-Words to Jev
Long-form visual guide and essay (2026-09-29) using the hype around Jev -- a proprietary fast,cheap,general-purpose text classifier from TypeSafe AI -- to tell the history of language models for text classification and analyze what Jev likely is. Covers pre-transformer baselines (bag-of-words plus naive Bayes/logistic regression,word embeddings,RNNs/LSTMs/ULMFiT,CNNs),transformers (BERT/ModernBERT,GPT-style decoders with a classification head,T5 text-to-text),a Jev overview (Choice/Noul/Score APIs; 96.47%/96.20% on IMDb test at low cost,comparable to fine-tuned ModernBERT without per-task fine-tuning,with an IMDb-test-contamination caveat; a Tetris real-time demo via the Choice API),how to retrofit a Jev-like API onto any BERT/GPT/T5 model with a single-output scoring head,an educated guess at Jev internals (ModernBERT-scale encoder,100% synthetic data,proprietary "Reinforcement Learning for Calibrated Decisions"),the RLCR public method,calibration techniques (temperature scaling,Brier loss),use cases (email sorting,prompt-injection prescreening,LLM judges,context building),Jev alternatives (GLiNER,Contrastive LMs,Laya),and OpenAI's Jev-like Decision API announced at DevDay 2026. Argues Jev's novelty is not fundamental but raises the bar for justifying fine-tuned specialist classifiers and could make agent harnesses faster and cheaper. Author is not affiliated with Jev; not an endorsement.