Gui agents improve themselves by optimizing task control harness

GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolution

Machine LearningArtificial Intelligence

Summary

Automated agents that interact with computer interfaces sometimes fail because the way their tasks are set up doesn’t perfectly match what they see on the screen or how the interface behaves. The authors present GUI-HARVEST, a system that helps these agents fix themselves by analyzing screenshots before and after actions, spotting where things go wrong repeatedly, and making practical changes to how tasks are controlled. This approach lets agents get better at completing tasks without changing the underlying AI model. Tests showed it improved performance across various AI models and task types.

What this means in practice

  • For software testers: Improve automated GUI testing by enabling agents to self-correct task execution failures across multiple software environments.
  • For robotic process automation teams: Enhance business process automation agents to adapt their task scripts dynamically without retraining AI models, increasing robustness on various user interfaces.

Authors

Geyi Yang, Zikun Qu, Xiang Li, Zhiyong Wang, Min Zhang, Shipei Zeng, Zhongxiang Dai

Abstract

The executable harness surrounding a GUI model determines how observations are assembled, actions are executed, and verification, recovery, and termination are controlled. Compared with harness optimization for non-GUI agents, automatically optimizing this harness poses three coupled challenges: reconciling model intent with observed visual effects, diagnosing failures under variable execution outcomes, and identifying recurrent failure patterns across tasks and translating them into reusable runtime changes. We introduce GUI-HARVEST, an automatic harness optimizer that enables self-improving GUI agents with frozen backbone models. First, to ground diagnosis in observed action effects, it aligns model outputs and executed actions with before-and-after screenshots, tying findings to specific interface transitions. Second, to account for execution variability, it treats repeated runs of the same task as a joint evidence unit, using within-task comparisons to locate outcome-relevant behavioral differences. Third, it consolidates verified findings across tasks into recurring failure patterns, maps them to bounded source-code edits with predictions recorded before evaluation, and checks the predicted behavioral effects alongside task performance through repeated execution. Experiments on OSWorld-Verified show consistent held-out gains across six general-purpose open, GUI-specialized open, and proprietary backbone models; Qwen3-VL-32B-Instruct gains 12.33 points on the full suite. Frozen-harness transfer improves GPT-5 by 13.87 percentage points on WindowsAgentArena at 50 steps without further optimization. With the same backbone and initial harness, GUI-HARVEST outperforms Self-Harness and Meta-Harness, suggesting that GUI-specific diagnosis and validation help harness improvements generalize to unseen tasks. The code is available at https://github.com/GaryYang12345/GUI-HARVEST.