TL;DR
PACT (Plan-Action Consistency Training) is a new training framework designed to bridge the "execution gap" in GUI agents—where an agent correctly describes what it should do but then executes the wrong command. By selectively shielding valid plans from negative reinforcement and specifically repairing faulty actions, PACT significantly improves task success rates across both mobile (AndroidWorld) and desktop (OSWorld) environments without adding any inference-time overhead.
What Problem Does This Paper Address?
Building reliable GUI agents is hard because a single slip-up in a multi-step workflow can derail the entire task. Researchers have noticed a recurring "execution gap": an agent’s internal reasoning might correctly state, "I need to click the '+' icon," yet the actual code it emits might be LaunchApp('Pinterest').
In standard Reinforcement Learning (RL) setups like Group Relative Policy Optimization (GRPO), the agent receives a single reward for its entire response. If the final action is wrong, the whole sequence—including the perfectly valid reasoning—gets penalized. This creates a credit-assignment conflict: the model is discouraged from planning correctly because its execution failed. Simply rewarding "consistency" between plan and action isn't enough either, as an agent might learn to hallucinate a flawed plan just to justify a wrong action.
Methods
PACT introduces a "correctness-guided" credit assignment principle: preserve the plan, repair the action. It integrates two complementary mechanisms into a group-relative RL pipeline:
- Reference-Aligned Plan Protection: Using a rule-based selector and annotated reference actions, PACT identifies "execution gaps." When a gap is found, the framework masks the negative policy-gradient contributions for the tokens in the plan span. This effectively "shields" the correct reasoning from being penalized by the failed outcome.
- Plan-Aligned Action Repair: PACT takes the model's own correct reasoning trace and pairs it with a reference-derived "positive" action suffix. It then uses a preference surrogate (inspired by Direct Preference Optimization or DPO) to favor this correct action over the emitted erroneous one.
Crucially, PACT leaves the original scalar action reward intact and operates strictly during training. At inference time, the agent remains a standard, single-pass model.
Datasets
The authors evaluated PACT across several rigorous benchmarks:
- AndroidWorld: A suite of 116 interactive mobile tasks.
- OSWorld: A comprehensive 369-task benchmark for desktop (Ubuntu) environments.
- AndroidControl: Used to evaluate plan-action consistency across over 8,000 states.
- ScreenSpot-v2 Mobile: A benchmark for visual grounding (point-in-target accuracy).
Training was conducted using 10,000 mobile GUI state-action examples and 18,000 desktop examples, all disjoint from the evaluation sets.
Key Insights and Ideas
- Don't Penalize Good Thinking: The core "aha moment" is that negative reinforcement is a blunt instrument. By identifying which part of a failed response was actually correct (the plan), we can prevent the model from "unlearning" good reasoning.
- Consistency vs. Correctness: As shown in the paper's diagnostic taxonomy (see Figure 5), consistency is a poor proxy for success. An agent can be consistently wrong. PACT anchors consistency to a ground-truth reference, ensuring the agent learns to execute valid plans faithfully.
- Retention is as Important as Repair: PACT doesn't just fix errors; it excels at retention. It prevents "regressions" where a model might stop performing a previously mastered behavior because it was penalized in a different, failed context.
Key Results
PACT demonstrated consistent gains across all tested environments:
- Mobile Success: On AndroidWorld, PACT achieved a 68.97% success rate, an 8.63 percentage point (pp) increase over the outcome-only baseline.
- Desktop Success: On OSWorld, it improved success from 40.92% to 44.17% (+3.25 pp), outperforming other state-of-the-art agents in its size class.
- Consistency: Rule-based plan-action consistency on AndroidControl High rose from 83.71% to 89.74% (+6.03 pp).
- Grounding: It achieved a near-perfect 96.01% hit rate on ScreenSpot-v2 Mobile, showing that better reasoning-execution alignment also aids spatial precision.
Limitations and Future Work
The authors acknowledge a few areas for improvement:
- Rule-Based Limitations: The current training-time selector relies on explicit plans that can be parsed by rules. It might miss valid but implicit plans or semantically equivalent alternative actions.
- Reference Dependency: PACT currently requires a single annotated reference. Incorporating semantic plan verifiers or multi-reference supervision could broaden its applicability to more open-ended tasks.
- Desktop Complexity: While PACT works on desktop, the authors suggest that extending their mechanistic analysis to richer action spaces—like complex keyboard shortcuts and long-horizon workflows—is a vital next step.
Summary updated