RTMC: Step-Level Credit Assignment via Rollout Trees
Organizations: Alibaba Group
Abstract
Multi-step agentic reinforcement learning benefits from fine-grained credit assignment, yet existing approaches offer limited options: critic-free methods like GRPO assign a uniform advantage to every action in a trajectory, while learned value networks introduce notable overhead and can be fragile under sparse rewards. We observe that group rollouts targeting the same problem often traverse overlapping intermediate states, implicitly forming a tree whose branches diverge at successive decision points. Building on this insight, we introduce Rollout-Tree Monte Carlo (RTMC) advantage estimation, which aggregates return statistics across rollouts sharing a common state to produce per-step Q-values and advantages--without any learned critic. A state-action signature system compresses raw interaction histories into compact, comparable representations, making cross-rollout state matching tractable. On SWE-bench Verified, RTMC improves pass@1 by 3.2 percentage points over GRPO.
Figures & tables
| ( ) ( ) ( ) , , , , . |
| Category | Description | Example |
|---|---|---|
| view | Inspect file content (full or range-based) | file_editor view , cat , head |
| search | Locate files or code patterns | search , grep , find , ls |
| modify | Edit existing code (replace or insert) | str_replace , insert |
| create | Create a new file | file_editor create |
| execute | Run a script for debugging or reproduction | python reproduce.py |
| test | Execute test suites to validate changes | pytest , python -m unittest |
| Operation | Encoding | Example | Notes |
|---|---|---|---|
| View (full file) | Vf | core.py:Vf | |
| View (partial) | V[b] | core.py:V[2] | Lines 200–299 |
| Modify | M:xxxx | core.py:M:a3f2 | 4-char content hash |
| Insert | I:xxxx | core.py:I:b7c1 | 4-char content hash |
| Search | S | core.py:S | |
| Create | C | test.py:C |
| Method | Resolved | Pass@1 | vs Baseline |
|---|---|---|---|
| Baseline (no training) | 234 / 500 | 46.8% | — |
| GRPO | 245 / 500 | 49.0% | +2.2 pp |
| GRPO + Step Reward | 252 / 500 | 50.4% | +3.6 pp |
| Rollout-Tree MC | 261 / 500 | 52.2% | +5.4 pp |
| Configuration | Pass@1 |
|---|---|
| Rollout-Tree MC w/o prior ( ) | 49.7% |
| Rollout-Tree MC full ( ) | 52.2% |
| Improvement from prior smoothing | +2.5 pp |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Step-Level Credit Assignment in RL
Step-level credit assignment in reinforcement learning links delayed rewards to the actions or reasoning steps that produced them.
See all 164 papers