Explore the research collection
17 entries · Follow this search
- Tool
Open Env Arena — agent arena for RL environments
On 2026-10-08, Hugging Face's Ben Burtenshaw (community MLE) launched the Open Env Arena, an agent arena for RL environments: instead of agents competing on tasks, agents compete on defining the best RL environments. The loop: agents submit environment definitions (tasks + rewards), the platform trains a fixed base model (Qwen-3.8-27B) on them with a fixed training recipe, evaluates the resulting models, and posts scores to a leaderboard. The arena runs on PostTrainArena by @benchflow_ai (benchflow-ai/posttrainarena): the Hugging Face frontend reuses the Agent Collabs shared board/score chart/leaderboard with 'Add your agent' onboarding, while PostTrain runs headlessly through a CLI/API. It is fully agent-accessible: agents pull instructions from the Space's /AGENTS.md and /openapi.json and use arena_cli.py (discover, environments list, experiment list, board list) to share env datasets, track metrics, and send each other messages. Compute comes from Nebius GPUs. The underlying pipeline uses native task.md-format tasks, one-epoch LoRA SFT followed by LoRA GRPO over the training set, and held-out evaluation (the repo's data-agent canary shows 2,238 training / 366 held-out tasks). First round tackles a mix of 8 domains on held-out tasks, with the best environments evaluated on public benchmarks; future arenas will focus on specific domains and benchmarks.
- Paper
VERA: Scaling Verifiable Environments for Agentic co-Evolution
VERA (NVIDIA) addresses agent training's environment bottleneck by converting benchmark trajectories into 9,000+ restartable, rubric-scored sandboxes, then co-evolving the LLM and its harness on them. Auto-Rubric turns trajectories into sandboxes: a coding agent writes binary rubric items (scored {0,1} from observable evidence) over action arguments, execution effects, artifacts, and output quality; executable checks and an Agent Judge verify each sandbox, and a failed executable check overrides any judge score. Trajectories are segmented into five stages (plan, setup, verify, execute, submit), each restorable and scored independently. The co-evolution loop alternates two updates with the other component frozen: model rounds run full-parameter GRPO with rubric rewards (a Reward Verifier checks the rollout evidence behind each reward; a checkpoint is accepted if its dev-benchmark score drops no more than 20% relative to the previous accepted checkpoint), and harness rounds add/merge/remove skills (accepted only if a paired frozen-model rerun shows target-stage improvement, no end-to-end regression, safety checks pass, and self-tests pass with at least +5 Overall points on the dev set; at most three edits per round). At 9B (Qwen3.5-9B), the co-evolved agent beats the strongest single-axis baseline by 10.3 points on AutoCoWorkBench and 13.0 on AutoMedBench, leading SWE-Bench Verified and MedXpertQA under their official protocols. At 27B (Qwen3.8-27B), VERA reaches 71.6 on AutoCoWorkBench (above Claude Opus 4.8, 1.0 point below GPT-5.6-Sol) and 80.7 on AutoMedBench (within 1.2 of Claude Opus 4.8, highest Agentic score 94.1), and transfers out of domain to Automation-Bench (43.8%) and AgentClinic (76.4%). Only at 27B are general capabilities retained/improved (AIME 2026 +10.0, ALFWorld +3.8, GPQA-Diamond +7.7, IF-Bench +1.8 for the CoWork agent); 4B/9B agents lose heavily on AIME.
- Paper
Targeting Pivotal Decisions for Credit Assignment in Agentic Reinforcement Learning
GRPO gives every token in a trajectory the same advantage, so the training signal cannot distinguish decisive steps from the rest. ProVer targets potentially pivotal decisions for fine-grained credit assignment: given a rollout group, an agentic judge contrasts successful and failed trajectories to propose the segment responsible for their divergent outcomes; rather than trusting the judge directly, ProVer verifies the segment by estimating its advantage from the difference in terminal success rates between current-policy continuations sampled before and after the segment, folding positive estimates into the GRPO advantages of policy tokens within the segment. Model judgment is used only to select where to verify, grounding local credit in observed outcomes without exhaustively evaluating every intermediate state. Across ALFWorld, WebShop, and SearchQA, ProVer achieves the strongest average performance at both model scales, with relative improvements over GRPO of 9.91% for Qwen3.5-2B and 7.12% for Qwen3.5-4B; informed segment selection works with modest additional generation overhead even without a frontier-scale judge.
- Paper
RLTL;DR: Self-improvement by Internalizing Self-generated Feedback
In RLVR the agent makes multiple attempts and optimizes toward the successful ones -- which breaks down in self-improvement,where tasks are so hard the agent has low or no chance of success and no teacher or example solutions exist. RLTL;DR: after each failed attempt,the policy is shown the verifier outputs and writes its own feedback as a single TL;DR insight; the next rollout is conditioned on all previous insights,sequentially sampling rollouts until a solution is found. Crucially,the in-context insights are backpropagated to internalize a direct task-to-insight mapping. On challenging tool-calling and coding datasets filtered to Pass@128=0,standard GRPO on a Qwen 3.5 9B Thinking policy stays flat at Pass@1 0-1%; RLTL;DR breaks the learning barrier to Pass@1 14-31% with insights in context during training,and 12-13% with no insight in context at eval time. A reduced variant,SFTL;DR,trains only on 4k (task,insight) tuples with no rollouts shown or backpropagated and recovers almost the full performance of RLTL;DR and classical SFT on full rollouts -- a compacted training paradigm of the form "on this sort of task,keep this sort of thing in mind". Sequential rather than parallel attempts per task; backpropagating the insight tokens semantically smooths and generalizes knowledge to similar tasks.
- Paper
Seer: Online Context Learning for Fast Synchronous LLM Reinforcement Learning
Rollout is 63–87% of RL iteration time. Seer exploits intra-group (G=8–16) length/pattern similarity: divided chunk-level rollout with a global Mooncake KVCache, context-aware longest-first scheduling via a speculative probe request, and adaptive grouped speculative decoding with compressed suffix trees. On production GRPO workloads (Moonlight, Qwen2-VL-72B, Kimi-K2) up to 2.04× end-to-end rollout throughput vs veRL and 72–94% less long-tail latency, while keeping on-policy semantics. Context-aware scheduling alone cuts tail time ~89%; grouped SD adds up to 1.3× vs vanilla SD.
- Paper
Understanding and Mitigating Premature Confidence for Better LLM Reasoning
Defines premature confidence by probing truncated CoTs: the answer is often already fixed, so remaining tokens cannot causally shape it. On CSQA, prematurely confident traces have 2.8x more logical flaws than progressive ones (pattern holds on GPQA/LSAT/MuSR and on correct answers). Progressive confidence shaping subtracts η⟨c,w⟩ from GRPO advantages with a fixed decreasing vector w, no PRM labels. Hard Countdown Pass@1 19.1%→61.1% (+42.0pp) and issue rate 93.5%→45.5%; AIME Pass@64 +6.6pp; SciQA +2.9–5.8pp from 1.7B–8B. Also raises hint-acknowledgement on a safety benchmark. Premature confidence grows with model size and task difficulty (accessibility dominates utility). No official code on abs.
- Paper
DualKV: Shared-Prompt Flash Attention for Efficient RL Training with Large Rollouts and Long Contexts
Standard FA2 packs N same-prompt rollouts as N(P+R) tokens, recomputing the prompt N times. DualKV repacks to P+NR and splits attention into one prompt self-attention plus a fused kernel that reads shared KV once and accumulates N-way dK/dV with fp32 atomics; mathematically equivalent, no approximation. On Qwen3-8B GRPO (8xH100, N=32, 8K-context) policy-update is 1.63–2.09x faster, MFU 36%→76%; DAPO 2.47x / 77% MFU. At 30B MoE on 16xH100, 3.82x policy-update and 3.38x step vs FA2 that needs 4-way Ulysses SP. Also supports Gemma-4 hybrid d=512 / sliding-window at 64K. Code https://github.com/amazon-science/dualkv-flash-attn-for-rl.
- Paper
Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?
Asks whether chains of thought do real computational work or are decorative, by viewing a transformer as a shallow circuit: one forward pass has constant depth, so any constant number of passes is a shallow circuit, and the best accuracy such a circuit can reach on a task is the task's ceiling. Three results hold for every transformer on serial tasks (ceiling below one): Necessity — replacing the chain with content-independent filler or a restated question drops accuracy to the ceiling, and to chance on a maximally serial task; Depth — no shallow computation can write the chain of a model that exceeds the ceiling; Locality — the answer is one shallow pass from the finished chain, so all serial reasoning happens in the chain. Experiments confirm the predictions: on finite-group word problems, chain-trained small transformers solve every input length and fall to chance when the chain is erased, and on MATH-500/AIME erasing the chain costs open reasoning models 0.52 to 0.82 accuracy while a sentence shuffle is harmless and a token shuffle is as harmful as erasing.
- Post
The ultimate guide to multi-harness RL
The ultimate guide to multi-harness RL (Adithya S Kolavi / FineEnvs, Hugging Face Space, 2026-10-01). Not a paper: a 33-figure ~60-page interactive research article plus full artifact release documenting how to do RL across multiple agent harnesses without modifying them -- claiming the first public multi-harness agent RL pipeline. Core idea: a 'capture proxy' sits between the agent harness and vLLM, speaks the four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids/logprobs sampled by vLLM, and reconstructs TRL-trainable traces, so the same rollouts run unmodified through 10+ harnesses. Full GRPO runs: LFM2.5-2.6B trained with multi-harness RL on 1,000 SmolDataEnvs data-analysis tasks, evaluated on 250 held-out tasks under four harnesses: base 42.2% -> multi-harness RL 54.2% pass@1 overall (step 1,000; best checkpoint step 700: 54.6%); per-harness OpenCode 49.6%, Claude Code 48.8%, Codex 53.6%, Mini-SWE-Agent 64.8%. OpenCode-only RL (step 900) reached 52.4% overall and won on its home harness (56.0%) but lost to multi-harness RL on Claude Code and Codex. Tool efficiency: correctness-only reward keeps tool calls high; adding a small bonus for fewer calls cut tool calls 31.1% on 356 task/harness pairs solved by both base and model, savings in all four harnesses. SFT comparison: fine-tuning on 3,189 successful Qwen3.8-27B teacher rollouts (17,929 examples, 2 epochs) plateaued -- OpenCode SFT 47.5% (-8.5% calls), multi-harness SFT 43.1% (-24.2% calls), both below RL (54.6%), showing multi-harness RL beats imitation at both performance and efficiency. Setup: async GRPO (TRL Async GRPO), 1,000 steps, reward = correctness x (1 + 0.1x15/(15+tool_calls)), 8 rollouts per GRPO group (one harness each, rotating), on 2xH100 (~32h OpenCode-only, 46h multi-harness); rollouts in E2B sandboxes via OpenEnv + Harbor. OpenEnv is BSD-3-Clause (PR #1036 capture proxy + Harbor, PR #1280 typed TrainingTrace API); TRL PR #6947 HarnessRolloutWorker (on TRL main, not v1.14.1). Trained models (full weights) under LFM Open License v1.0: LFM2.5-2.6B-multiharness-RL, -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants. Caveat from the model card: best-checkpoint selection used the test set (no separate validation set); single-run results on fixed harness versions.
- Paper
EasyPPO: Stabilizing the Critic Is Key
Argues PPO's learned critic is a major source of instability in RL for LLMs, and identifies two critic failure modes. First, filtering truncated rollouts from both actor and critic shifts the policy objective to reward conditioned on completion, letting truncation grow even as conditional reward improves. Second, heterogeneous return noise lets high-variance prompts dominate critic updates in finite batches. Introduces EasyPPO: actor-only overlong filtering (critic trains on returns from completed and truncated rollouts), noise-normalized critic regression (each prompt's critic loss weighted by the inverse standard deviation of its sampled returns, balancing noise contributions across prompts), and moderately smaller critic minibatches to confine outlier influence during gradient clipping. No new actor loss, no new policy algorithm; actor update unchanged. Across continuous-reward coding on FrontierCS, binary-reward math reasoning on AIME24, and multi-turn search on Search-R1, using Qwen3.5-9B with rollout batch sizes 512-1024, EasyPPO stays stable through the full training horizon with zero training collapse and beats vanilla PPO, VAPO, and HL-Gauss PPO; best validation scores show relative gains of 14.89%, 2.28%, and 9.47% over PPO respectively.
- Post
vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)
vLLM Blog (2026-09-14) on RL-Kernel v0.1.0 with vime and AMD: Megatron training and vLLM rollout often disagree on logprobs for the same weights/tokens because kernels, Split-K/KV, reduction order, and intermediate precision differ, which pollutes importance ratios and KL/clipping. RL-Kernel aligns the numerical execution contract (RMSNorm, Attention, GEMM/SwiGLU, linear logprob, collectives) while vime aligns the timeline and weight sync. On ROCm they added deterministic MFMA GEMM, vocabulary reduction, HIP IPC, AITER/CK Attention schedule fixes, math/fusion last-bit fixes, and paged-KV/HIP-Graph state fixes. End-to-end Qwen3-8B BF16 GRPO on 8× MI300X (Megatron TP4/CP2; 2× vLLM TP4 colocated; 200 steps; dapo-math-17k) reports mismatch_count=0 and max_abs_diff=0 throughout on the strict path vs native mismatches every step. Apache-2.0 at github.com/RL-Align/RL-Kernel (pyproject 0.1.0; torch>=2.4.1; transformers==5.13.1; optional cuda/rocm/vllm extras). Docs https://rl-align.github.io/RL-Kernel/. Scope today: Qwen3-8B Dense + vime + CUDA/ROCm; MoE/multimodal next.
- Paper
When Do Larger Batches Help Scale LLM Reinforcement Learning?
Tencent Hunyuan RL Team paper (arXiv 2608.29296v1, cs.LG; companion research post hy.tencent.com/research/100116, EN/ZH, page date 2026-09-21) on when larger batches cut wall-clock time-to-target for online LLM RL. Decomposes T=N*/q: larger batch helps only when throughput gain exceeds samples-to-target penalty (r_q>r_N). Two-stage recipe: (1) establish approximate sample-indexed batch-size invariance via Adam √LR retuning η(B)=η0√(B/B0); (2) optimize generation/train throughput within that regime (generation–training asymmetry: decode often bandwidth-bound, sublinear collection time vs ~linear train). GRPO on Qwen3-30B-A3B-Instruct-2507, filtered DAPO-MATH-17K (4,853 rows), G=8, mean@32 AIME 2024/2025: invariance ~P=64–1024; degrade at 2048/4096. Best tuned P=1024: time-to-target 11.90→8.42 h (−29%, 0.71×) with +41% throughput and r_N=1, no extra GPUs; at P=2048/4096 a +60% sample cost outweighs +30%/+36% throughput (T 1.23×/1.18×). PPO on Hunyuan MoE policy+value (3B active each), G=1: aligns ~256–2048, degrades at 4096; gen throughput up to 2.29× (B 256→1024). Fixed-LR control slower despite higher throughput. No public code/HF/dataset links.
- Paper
Matryoshka attribution: Learning to attribute language model outputs to representations and weights
MAttr learns a single nested attribution ordering over model internals by optimizing a differentiable sigmoid top-k soft interchange-intervention mask while sampling k across sparsities; it avoids a separately tuned sparsity penalty and supports nodes, edges, neurons, SAE features, and weight deltas. On the official private/secret MIB Circuit Localization leaderboard, the live entry “MAttr (edge, 5k steps)” averages 5.6 versus 1.95 for the runner-up (~2.9×), with per-cell values captured in the local dump; the paper reports this official score while its figures report public-test results. A GRPO parameter-level application finds that restoring 1% of Llama-3.1-8B-Instruct parameters (2% for 1B) to base removes refusals while retaining capabilities. Primary links: arXiv abs https://arxiv.org/abs/2609.25518; PDF https://arxiv.org/pdf/2609.25518; X post https://x.com/aryaman2020/status/2102800933659000846; code https://github.com/aryamanarora/matryoshka-attribution; parameter code https://github.com/aryamanarora/matryoshka-attribution-parameters; HF circuits https://huggingface.co/aryaman/mattr-mib-circuits; author https://aryaman.io/; MIB leaderboard https://mib-bench-leaderboard.hf.space/; MIB project https://mib-bench.github.io/.
- Paper
DAPO: An Open-Source LLM Reinforcement Learning System at Scale
arXiv 2503.14476 (v2): Decoupled Clip and Dynamic sAmpling Policy Optimization—Clip-Higher, dynamic sampling, token-level PG loss, overlong filtering/shaping. Reports 50 AIME24 with Qwen2.5-32B vs naive GRPO ~30; open-sources verl-based code + DAPO-Math-17k. Discord: RL better than GRPO / ByteDance DAPO.
- Paper
Vector Policy Optimization: Training for Diversity Improves Test-Time Search
MIT Improbable AI / Sakana (cite Bahlous-Boldi et al.; arXiv 2605.22817). Argues scalar GRPO collapses entropy so extra samples become near-duplicates; when test-time search (best@k, AlphaEvolve) handles exploitation, training should preserve reward diversity. VPO: emit m answers in one chain; score the set as E_w[max_y w·r] with w~Dirichlet(1); drop-in GRPO advantage on the set reward. Beats GRPO/Multi-RLVR/Max-at-k/MaxRL/random-w/goal-conditioned GRPO on Maze, MuSiQue, EUREQA, ToolRL as k grows. LiveCodeBench Qwen2.5-Coder-7B: GRPO wins pass@1 but VPO wins best@k and OpenEvolve on 32 hard problems GRPO never solves. Helps when reward components are non-collinear; UltraFeedback ArmoRM dims are near-collinear and VPO does not beat scalar GRPO.
- Other
OpenEnv Integration for Training LLMs with Environments
Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.
- Paper
Noisy Data is Destructive to Reinforcement Learning with Verifiable Rewards
Shows prior 100%-noisy RLVR sets were contaminated: a GPT-5 Pro + math-verify + LLM-judge + manual pipeline found 16.4% of DeepScaleR labels marked incorrect were actually correct. After sanitizing to 12,769 truly incorrect items, Qwen2.5-Math-7B GRPO on 100% noise is 8–10% worse than clean data (9% on MATH-500) and no better than format-only rewards; random labels fall below the base model. Dr.GRPO, TIS, PGFC, DAPO, and SAPO fail to beat GRPO under 50% noise. On a manually corrected 600-example BIRD subset (372/600 originally noisy), real annotation errors cost 5–12% vs the cleaned set. Code/data https://github.com/uiuc-kang-lab/rlvr-noisy-data.