TL;DR
STEP (Success-rate-aware Trajectory-Efficient Policy optimization) is a new reinforcement learning framework that significantly improves how we train multi-turn LLM agents. By tracking per-task success rates, STEP dynamically shifts training focus to harder tasks, isolates step-level learning signals from successful runs, and applies cheap data augmentation without extra environment interactions. This approach yields up to a 14.7% improvement in success rates and a 1.74x training speedup over standard trajectory-level methods on complex GUI automation benchmarks.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly deployed as autonomous agents to handle multi-turn tasks like desktop or mobile GUI automation. To help these agents adapt, researchers often use online Reinforcement Learning (RL), specifically variants of Group Relative Policy Optimization (GRPO).
However, standard implementations optimize at the trajectory level: they treat an entire multi-turn episode as a single training sample and evaluate it based solely on the final outcome. The authors identify three major flaws with this approach:
- Uniform Task Sampling: The agent wastes valuable sampling budgets repeatedly practicing simple, already-solved tasks instead of focusing on difficult, unmastered ones.
- Inaccurate Credit Assignment: If an agent executes 14 perfect steps but makes a minor blunder on the 15th, the entire trajectory is marked as a failure. Trajectory-level RL blindly penalizes those 14 correct intermediate actions, sending confusing learning signals to the model.
- Inefficient Sample Collection: Multi-turn environment rollouts are bottlenecked by sequential environment latency, making data collection incredibly slow and expensive.
Methods
To resolve these inefficiencies, the authors introduce STEP, which transitions training from coarse trajectory-level updates to fine-grained, success-rate-aware step updates.
The framework consists of three core components:
- Success-Rate Guided Trajectory Sampling (SR-Traj): STEP maintains a running, smoothed record of success rates for each task. Using a logistic replacement function, tasks that the agent has already mastered are dynamically swapped out of the training batch for more informative, low-success tasks.
- Success-Rate-Weighted Advantage (SR-Adv): To eliminate the misleading gradients of failed runs, STEP completely filters out failed trajectories and trains only on successful ones. It decomposes these successful trajectories into individual step-level samples and weights their advantages by $(1 - \hat{s}_i)$—meaning a success on a historically difficult task receives a much stronger learning signal than a success on an easy task.
- Step-level GRPO Augmentation (SL-GRPO): For tasks with low success rates, STEP takes the collected step samples and prompts the LLM to generate alternative actions for the same state. It evaluates these local perturbations purely via text matching against the successful action, computing relative advantages without incurring any additional environment interaction overhead.
Datasets
The authors evaluated STEP on two prominent, general-purpose GUI automation benchmarks:
- OSWorld: A real-computer desktop environment. The authors sampled a 128-task subset spanning office productivity, web browsing, and system management for training.
- AndroidWorld: A functional Android environment featuring 116 programmatic tasks across 20 real-world apps. A subset of 43 tasks was used for training.
Both benchmarks use strict, rule-based binary rewards (1.0 for success, 0.0 for failure) evaluated only at the very end of an episode.
Key Insights and Ideas
- Failed trajectories are mostly correct: A manual analysis of 100 failed OSWorld trajectories revealed that 78% contained sub-sequences identical to successful runs, and 38.56% of all individual steps in failed trajectories were completely valid. This underscores why trajectory-level penalization is so damaging.
- Environment interaction is the true bottleneck: Time-profiling showed that environment latency dominates training time, while model inference takes a fraction of the cost. By utilizing step-level parallelization and text-only action augmentation, STEP bypasses this bottleneck completely.
- Prioritizing rare successes stabilizes gradients: Instead of trying to perform complex credit assignment on messy, failed trajectories, simply up-weighting the step-level components of rare successes on hard tasks provides a cleaner, more stable gradient path.
Key Results
STEP demonstrated substantial improvements in both task performance and training efficiency:
- Higher Success Rates: On the OSWorld training subset, STEP achieved a 62.5% success rate, outperforming trajectory-level GRPO (T-GRPO) by 14.1% and GiGRPO by 7.1%. On AndroidWorld, it achieved a 45.7% overall success rate, outperforming T-GRPO by 14.7%.
- Faster Convergence: As seen in Figure 1, STEP helps the agent master a wider variety of tasks much earlier in the training process compared to baseline methods.
- 1.74x Training Speedup: By breaking trajectories into step-level samples, STEP dramatically shortens the context length required during training steps. This nearly halves the average training time per step compared to T-GRPO (dropping from 45.67 to 26.25 minutes), even with the added cost of data augmentation.
Limitations and Future Work
Despite its success, the authors note a couple of key limitations:
- Wasted Failure Data: Because STEP completely discards failed trajectories to avoid bad learning signals, any highly valuable, correct sub-sequences within those failed runs are lost, resulting in some sample inefficiency.
- Uniform Step Credit: Currently, STEP assigns the exact same trajectory advantage to every single step within a successful run. In reality, even successful trajectories can contain redundant, sub-optimal, or accidental actions.
Future Work: The authors suggest exploring more fine-grained, step-level reward mechanisms that can selectively harvest and learn from high-quality segments hidden inside both successful and partially successful trajectories.
Summary updated