UI-Evol: Automatic Knowledge Evolving for Computer Use Agents

Ziyun Zhang, Xinyi Liu, Xiaoyi Zhang, Jun Wang, Gang Chen, Yan Lu

TL;DR

Computer use agents often struggle to translate retrieved knowledge into successful actions, leading to a significant "knowledge-execution gap." This paper introduces UI-Evol, a novel module that automatically refines this knowledge by observing actual agent behavior and comparing it against external sources, leading to improved performance and, crucially, much greater reliability.

What Problem Does This Paper Address?

Building AI agents that can effectively interact with and control computer interfaces (like GUIs) to complete tasks is a major challenge. While these agents can access vast amounts of external knowledge (e.g., from web searches), this knowledge often isn't directly usable. The authors identify a critical "knowledge-execution gap": even when external knowledge is deemed correct (e.g., 90% accurate), agents only achieve a 41% success rate. This gap arises because retrieved knowledge might be incomplete, contain assumptions inconsistent with the current task, or suggest overly complex or suboptimal actions. Furthermore, existing agents exhibit high behavioral variability, meaning they can be unreliable even when performing the same task.

Methods

UI-Evol is a "plug-and-play" module designed to evolve GUI knowledge autonomously. It operates in two stages:

  1. Retrace Stage: This stage focuses on capturing the agent's actual behavior. Instead of relying on the agent's planned actions, it uses screenshots from before and after each interaction to reconstruct a precise, objective sequence of actions performed by the agent. This is achieved by feeding pairs of screenshots and the agent's code snippet to a Large Language Model (LLM) to infer the exact operations.
  2. Critique Stage: This stage leverages the external knowledge (e.g., from web search) as a reference. It compares the objective action sequence generated in the Retrace Stage against this reference knowledge. Using a chain-of-thought reasoning process, an LLM identifies deviations, analyzes their root causes (e.g., misunderstanding, knowledge gap, invalid assumption), and explores alternative strategies. Finally, it synthesizes these findings into refined knowledge, providing clear rationales for the changes. This evolved knowledge is then stored and used to guide future agent actions.

Datasets

  • OSWorld: The primary dataset used for evaluation. It's an interactive environment with 369 open-ended computer tasks where agents interact using screenshots. The paper also mentions extending OSWorld with a parallel evaluation framework for faster experimentation.
  • Perplexica: Used for retrieving external web knowledge.

Key Insights and Ideas

  • The "Knowledge-Execution Gap" is Real and Significant: The paper quantifies a substantial drop in performance when agents try to use external knowledge directly, highlighting a fundamental problem in current agent design.
  • Observing Actual Behavior is Crucial: Relying solely on planned actions is insufficient. UI-Evol's Retrace Stage emphasizes the importance of visually reconstructing what the agent actually did, not just what it intended.
  • Reliability is as Important as Accuracy: The authors highlight a previously overlooked issue of high behavioral standard deviation in agents. UI-Evol not only improves success rates but also significantly enhances agent stability.
  • Knowledge Evolution is Task-Specific and Transferable: The evolved knowledge is tailored to the agent's actual interaction patterns and can even be transferred between different base models (e.g., from OpenAI-03 to GPT-40), suggesting the captured regularities are generalizable.

Key Results

  • Improved Success Rate: UI-Evol consistently boosts the average success rate of computer use agents across various backbone models and task groups. For example, when integrated with Agent S2 (GPT-40), the success rate increased from 19.5% to 22.0%.
  • Reduced Behavioral Standard Deviation: UI-Evol significantly reduces the variability in agent performance. For instance, the standard deviation for OpenAI-03 dropped by approximately 4.19 times.
  • Faster Evaluation: The introduction of a parallel evaluation framework for OSWorld reduced the benchmark runtime from 10 hours to 2.5 hours, enabling more extensive experimentation.
  • Knowledge Transferability: Knowledge refined by UI-Evol using trajectories from one model (OpenAI-03) performed comparably when used by another model (GPT-40), demonstrating cross-model applicability.

Limitations and Future Work

  • Computational Cost: The process incurs costs due to API usage for LLMs in both Retrace and Critique stages, with an average cost of $0.22 per task.
  • Dependency on LLM Performance: The effectiveness of UI-Evol relies on the LLM's ability to accurately retrace actions and critique knowledge.
  • Future Work: The paper suggests that UI-Evol's framework can be applied to any knowledge-based agent. Further research could explore more sophisticated critique mechanisms and broader applications beyond GUI tasks. The authors also note the potential for agents to be misused, highlighting the societal impact of such powerful AI.

Summary updated

BibTeX
@inproceedings{zhang2025ui,
  author = {Ziyun Zhang and Xinyi Liu and Xiaoyi Zhang and Jun Wang and Gang Chen and Yan Lu},
  title = {{UI-Evol: Automatic Knowledge Evolving for Computer Use Agents}},
  booktitle = {WCUA @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=vo6nDHdlhU},
}
Figure