Explore the research collection
4 entries · Follow this search
- Paper
ThunderSyncRL: Lossless Acceleration of Agentic Reinforcement Learning
ThunderSyncRL resolves the sync/async dilemma in agentic RL training. Synchronous GRPO/OPD leaves learner GPUs idle 49.5% of step time waiting for rollouts and verification to finish (measured training on SWE-smith); asynchronous training overlaps rollout and learning but learns from stale policies and performs worse. ThunderSyncRL streams gradient computation as soon as each piece's inputs are fixed while holding the policy snapshot constant, then takes one synchronous optimizer step. For GRPO, each trajectory's score gradient (the weighted action-token log-probability gradient H_i evaluated at the fixed policy, which does not depend on other rewards) is computed the moment its reward arrives; two running buffers (sum of r_i*H_i and sum of H_i) are regrouped at group close into the exact group gradient using the group mean and standard deviation. For OPD (on-policy distillation), each completed agentic turn contributes a gradient as soon as its teacher scores arrive while its tool call keeps running in the sandbox; per-turn unnormalized contributions accumulate and are divided once by the total scored-token count at batch closure, before clipping and the single optimizer step. The paper proves these streaming updates are identical to batch-synchronous GRPO/OPD without changing either objective. On Qwen-3.8-27B, ThunderSyncRL reaches the GRPO target of 74.01% pass@3 on SWE-bench Verified at 121.3 GPU-hours versus 233.5 for Sync (1.9x). Speedups to Sync's pass@3: SWE-bench Verified GRPO 1.9x, OPD 1.9x; Terminal Bench 4.0 GRPO 1.8x, OPD 1.9x. Pass@3 gains over Async at a fixed 128 GPU-hour budget: +2.47pp (SWE-bench GRPO), +1.27 (OPD), +1.52 (TB4 GRPO), +2.02 (TB4 OPD); model, workload, optimizer, and GPU allocation fixed per comparison. Code: github.com/seilk/thundersync (Apache-2.0) — a Python library with streaming GRPO/OPD objectives, engine, scheduling, rollout sandboxes (Docker/uDocker), and accel kernels; examples run on small randomly-initialized Qwen3 models on CPU or CUDA.
- Paper
Sharpening Tax in Post-Training
Tests the 'sharpening hypothesis' — that RL post-training merely sharpens a base model's existing behaviors, improving single-shot accuracy at the cost of solution coverage — in the agentic domain (multi-turn tool use), where post-training is believed to matter most. Pre-trained base LLMs with a light, model-agnostic inference harness turn out to be capable agents: they lose at pass@1 but scale more steeply with pass@k and often overtake their post-trained counterparts given a sufficient test-time budget. The mechanism: post-training pushes tasks toward two extremes (always solved or never solved), improving sampling efficiency and consistency at the cost of solution coverage. The paper proposes Sharpening Tax, a diagnostic metric quantifying the loss in test-time scalability after post-training (area between the pass@k curve and its pass@K ceiling, normalized; tax = base scalability minus post-trained scalability). Across 14 base/post-trained pairs from four model families on three agentic benchmarks (42 settings), the tax is prevalent (36 of 42 pay a positive tax at k=128), can be estimated cheaply from few rollouts (tax from 8 rollouts predicts tax at 32, Spearman rho = 0.85), and correlates with other metrics. Finally, posterior-tempered group sampling (PTGS) — a plug-and-play Bayesian sampler that adapts sampling temperature per prompt via a Beta posterior over difficulty — pays a smaller tax during RL training in two agentic environments, solving more tasks under repeated sampling while also improving pass@1.
- Model
CLM-v0.1-8B (Contrastive-LM reference projection head)
Reference CLM head checkpoint CLM_v0.1-8B.pt on Hugging Face (Apache-2.0). Empty model card at first catalog; siblings: CLM_v0.1-8B.pt, README.md. Hub usedStorage ≈75.6 MB. Created 2026-09-21. Architecture from Notion/README: MLP 4096→1536→1536→512 (GELU, LayerNorm), output dim 512, ~20M params; pairs with frozen Qwen3-8B last-token L2-normalized embeddings. Downloaded by clm-serve / download_head.sh. Checkpoint: state_head/action_head, logit_scale, cfg. Parent 1434.
- Model
Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making
CLM (Contrastive Language Model) is a System One decision model: separate state and action encoders trained with bidirectional InfoNCE so each state is pulled toward the ground-truth action and pushed from others; at deploy time candidates are scored by cosine similarity of L2-normalized embeddings and softmaxed into typed answers (Noul/Choice/Score) or ranked for best-of-N. Released CLM-8B uses a frozen Qwen3-8B backbone (hidden 4096, last-token pooling, L2 norm) plus a trainable MLP projection head 4096→1536→1536→512 (GELU+LayerNorm; ~20M params, output dim 512); only the head is trained; LLM embeddings can be precomputed. Full Nemotron DQA pretrain ~1 hour on one RTX 4090. Dual-encoder disaggregation caches state and action embeddings independently (authors contrast with Jev state-only caching). Action-caching example (Super Mario): 4 action embeddings precomputed; per-step cost drops from 5 forwards to 1 (~4×). Zero-shot blog table (CLM vs Jev latency / success): T-Rex 16.5 vs 149.8 ms (5/5 both); BFCL V4 tool calling 76.8 vs 125.5 ms (95.2% vs 99.2%); WikiRacing 79.8 vs 225 ms (26/30 vs 30/30); Super Mario 33.5 vs 132.6 ms (5/5 both) — up to ~9× faster, roughly on-par accuracy. Latency microbench (200-token state, RTX 4090, 15 tok/candidate): at 1024 candidates CLM ~44 ms vs Jev ~579 ms (~13×) vs constrained decoding Qwen3-8B ~4.3 s (~97×); candidate-length sweep (5 cands) CLM stays ~36 ms through 2048 tok while CD goes to 3.4 s and Jev to 333 ms (~9× / ~95×). Agentic verifier (38 DeepSWE / 30 Terminal-Bench 2.1 held-out; Opus 5 / Fable 5 candidates; H100): DeepSWE CLM 81.6% vs Jev 71.1% vs Pass@1 73.7% (79 vs 449 ms, 5.7×); Terminal-Bench 2.1 CLM 87.6% vs Jev 83.1% vs Pass@1 84.0% (32 vs 131 ms, 4.1×) — Jev below Pass@1 on both. Data recipe: pretrain ~60M Nemotron DQA → midtrain ~30M Gemini 2.5 Flash-Lite hard negatives → posttrain ~1M ADP + Endless-Terminals + LiteCoder-Terminal-SFT (40% Nemotron replay / 60% agentic). Hard-neg study (~100K held-out, 1 gold+10 HN): pretrain 52.1% → two-stage 69.2% vs HN-from-scratch peak 62.4%. Replay keeps HN top-1 ~68.5% vs 56.2% agentic-only. Scaling fits (test InfoNCE): L≈(C/7.34e13)^-0.144; (D/2.12e9)^-0.117; (N/3.60e5)^-0.061; (N_enc/4.18e9)^-0.172; optimal head N*∝D^1.02 (~310 tokens/param). Posted 2026-09-23 Notion blog; Jacky Kwok† project lead; Stanford + NVIDIA Research. Roadmap: multimodal CLM-35B early next month; vision; more data/scaling. Contact jackykwok@stanford.edu.