Success ≠ every step is right
An agent can recover from mistakes and succeed. A failed trajectory can still contain good decisions.
Learning from experience. One critical step at a time.
Better agents learn where it matters. SCOPE turns self-generated hindsight into targeted corrections at critical error steps.
Qwen2.5-3B · Main results at training step 150
ALFWorld success
WebShop success
01The motivation
A successful trajectory can contain mistakes. A failed one can contain good decisions. Corrective guidance needs to match the step that actually needs it.
An agent can recover from mistakes and succeed. A failed trajectory can still contain good decisions.
One hindsight skill conditions the teacher for an entire trajectory, including decisions unrelated to that skill.
02The approach
The same policy acts, analyzes its own experience, and learns from step-specific skills. Auxiliary distillation is applied only at selected error steps.
Explore the three ideas that turn hindsight into better decisions.
The analyzer reads the trajectory, grounds each error in feedback, and writes a correction tied to its target steps.
Each skill conditions the teacher only at its assigned steps.
Positive gaps reinforce a sampled token. Negative gaps suppress it. Tanh keeps both directions and smoothly bounds their strength.
πθ̄(y | h + sₜ)
Ordinary history + assigned skillπθ(y | h)
Ordinary historyThe coefficient is stop-gradient. The selected-token loss is −Â log πS, averaged only over selected tokens. The tanh derivative is not backpropagated through the gap.
Compare interaction counts within the same task group. A smooth preference adapts to relative length, without choosing an absolute target.
Multiply every trajectory length while keeping a fixed horizon H = 30 for the absolute comparison.
log(aTⱼ) − log(aTᵢ) = log Tⱼ − log Tᵢ. A common rescaling leaves pairwise scores unchanged.
Absolute bonus: max(0, 1 − T/H), with H = 30.
Failures: no efficiency bonus. A lone success: b = ½. Mean b among successes: ½.
A lightweight supervised warm-up teaches the policy to locate errors and write corrective skills. External annotation is confined to this offline stage.
During online RL, the policy analyzes both successful and failed rollouts, assigning each selected error step its own relevant hindsight skill.
A bounded signed teacher–student coefficient preserves reinforcement and suppression while limiting extreme auxiliary update weights.
A success-relative pairwise length reward favors shorter successful trajectories within the same task group, without a fixed length target.
03Inside the trajectory
Follow recorded agents through an embodied room and an online store. Explore how each action changes the environment.
Successful trajectory · Reward 10.0
Replay data could not load. The recorded purchase actions remain available below.
04The evidence
SCOPE leads the smaller-backbone comparisons on task completion and scales to Qwen3-32B, improving ALFWorld success on both seen and unseen tasks.
Explore our main results. Select a benchmark and toggle methods to compare.
Overall task success
97.7%
+5.9 ppvs. SEED
Exact task success
85.2%
+6.3 ppvs. SEED
| Method | Guidance type | ALFWorldSuccess (%) ↑ | WebShopAll values (%) ↑ | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pick | Look | Clean | Heat | Cool | Pick2 | Overall | Score | Success | ||
| Vanilla | None | 44.4 | 11.1 | 6.2 | 15.4 | 28.6 | 12.5 | 21.9 | 6.7 | 0.8 |
| Skill-Prompt* | Skill bank | 51.7 | 66.7 | 48.4 | 0.0 | 4.3 | 10.0 | 28.9 | 0.2 | 0.8 |
| GRPO | None | 91.2 | 62.5 | 96.2 | 61.9 | 65.0 | 47.4 | 75.0 | 79.8 | 63.3 |
| AgentOPSD | Skill bank | 100.0 | 68.8 | 86.4 | 66.7 | 84.6 | 73.7 | 84.4 | 90.4 | 69.5 |
| SDAR | Skill bank | 97.1 | 62.5 | 100.0 | 61.9 | 75.0 | 84.2 | 84.4 | 85.0 | 68.0 |
| OPID | Hybrid skills | 92.7 | 100.0 | 88.9 | 70.0 | 84.2 | 70.0 | 84.3 | 85.0 | 74.2 |
| GRSD | Traj. skill | 100.0 | 81.3 | 91.3 | 88.2 | 70.8 | 85.7 | 86.7 | 86.9 | 76.5 |
| SEED | Traj. skill | 100.0 | 100.0 | 100.0 | 100.0 | 70.6 | 80.0 | 91.8 | 88.5 | 78.9 |
| SCOPE Ours | Step skills | 100.0 | 100.0 | 100.0 | 100.0 | 85.7 | 100.0 | 97.7 | 87.9 | 85.2 |
All values are percentages. ALFWorld: success on six task families and the overall episode success rate (Overall), evaluated on 128 seen validation episodes. WebShop: mean normalized task score (Score) and exact task success (Success) on 128 fixed tasks. Type describes auxiliary guidance; hybrid skills combine trajectory- and step-level skills. SCOPE metrics are logged at training step 150. * Skill-Prompt receives skills at evaluation. Best and second-best distinct values are highlighted within each backbone, including ties.
LARGER-MODEL SCALING / QWEN3-32B
On ALFWorld, SCOPE improves over GRPO with the same Qwen3-32B backbone. The gains hold on both seen and unseen tasks.
| Split | Method | Pick | Look | Clean | Heat | Cool | Pick2 | Overall | Mean steps ↓ |
|---|---|---|---|---|---|---|---|---|---|
| Seen | GRPO | 96.8 | 75.0 | 89.5 | 90.0 | 80.8 | 70.0 | 85.2 | 22.0 |
| SCOPE | 100.0 | 100.0 | 100.0 | 95.0 | 100.0 | 100.0 | 99.2 | 7.7 | |
| Unseen | GRPO | 87.5 | 83.3 | 77.4 | 78.3 | 85.7 | 76.5 | 81.3 | 17.4 |
| SCOPE | 83.3 | 100.0 | 93.5 | 91.3 | 100.0 | 100.0 | 94.0 | 9.2 |
Seen results: training step 150 on 128 validation episodes. Unseen results: 134 episodes. Success rates are percentages; mean steps count environment interactions per episode. Qwen3-32B training used 16 NVIDIA H200 GPUs.
Swipe to inspect all eight training curves ↔
APPENDIX B.2 / TRAINING DYNAMICS
Single-run validation curves for Qwen2.5-3B and Qwen2.5-7B. Dotted lines mark training step 150, the checkpoint used in our main table.
05A closer look
Unseen tasks, optimization diagnostics, and component ablations examine what the complete system learns and how it trains.
ERROR-STEP LOCALIZATION
Supervised initialization improves error-step localization across both WebShop and ALFWorld. In our comparison, the 3B SFT analyzer can surpass the 7B base analyzer on micro-F1.
01 / Generalization
On unseen ALFWorld tasks, success rises from 66.4% with GRPO to 89.6% with SCOPE. Average interactions fall from 18.86 to 10.06.
02 / Optimization
We observe a sharp drop in student log-probability during minibatch optimization. Our bounded signed coefficient limits gap-driven amplification.
03 / Interaction efficiency
Pairwise rewards compare interaction lengths among successes from the same task group. The plot reports mean environment interaction steps during ALFWorld training; lower is better.
Swipe to compare every curve ↔
04 / Component ablations
At training step 180, full SCOPE reaches 98.4% ALFWorld success. Removing supervised initialization yields 92.2%; removing the length reward yields 93.0%.
| Variant | Pick | Look | Clean | Heat | Cool | Pick2 | Overall |
|---|---|---|---|---|---|---|---|
| Full SCOPE | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 92.0 | 98.4 |
| Initialization and guidance | |||||||
| w/o SFT initialization | 100.0 | 92.9 | 100.0 | 70.6 | 83.3 | 94.7 | 92.2 |
| w/o Step-Skill | 100.0 | 92.9 | 100.0 | 94.1 | 94.4 | 89.5 | 96.1 |
| Trajectory-level guidance | 100.0 | 92.9 | 100.0 | 88.2 | 100.0 | 89.5 | 96.1 |
| Skill-bank guidance | 100.0 | 100.0 | 96.6 | 76.5 | 100.0 | 94.7 | 95.3 |
| Length-reward design | |||||||
| w/o length reward | 96.8 | 91.7 | 100.0 | 100.0 | 92.3 | 75.0 | 93.0 |
| Absolute length bonus | 100.0 | 100.0 | 100.0 | 94.1 | 100.0 | 89.5 | 97.7 |
Task success (%). Overall is micro-averaged across evaluation episodes. Best values, including ties, are bold.
05 / Parameter sensitivity
We vary α, c, and τₗₑₙ one at a time from the default setting (2.5, 1, 0.1). The three curves show overall ALFWorld success at training step 180.
Purple diamond: our default · Blue circles: other settings
Swipe horizontally to see every task category ↔
06Research resources
Reproduce the analyzer warm-up with the released SFT models and datasets, then inspect the logged training runs.