TL;DR
This paper introduces "Continual GUI Agents," a new task that challenges AI agents to adapt to evolving graphical user interfaces (GUIs) across different domains and resolutions. They propose GUI-Anchoring in Flux (GUI-AiF), a novel reinforcement learning framework with specialized rewards that enable agents to maintain stable performance even as GUIs change, outperforming existing methods.
What Problem Does This Paper Address?
Modern digital environments are constantly changing. New software versions, different operating systems (like switching from mobile to web), and varying screen resolutions (e.g., 1080p to 4K) mean that the data GUIs present to AI agents is not static. Agents trained on a fixed set of GUI data quickly become outdated and perform poorly when faced with these "in-flux" environments. Existing methods, particularly those relying on supervised fine-tuning (SFT), tend to overfit to the training data and struggle to generalize. While reinforcement fine-tuning (RFT) offers more adaptability, current RFT approaches still fall short when dealing with significant shifts in GUI layouts, interaction points, and element scales. This paper aims to bridge this gap by developing agents that can continuously learn and adapt to these dynamic GUI landscapes.
Methods
The core of the proposed solution is the GUI-Anchoring in Flux (GUI-AiF) framework, built upon the Reinforcement Fine-Tuning (RFT) paradigm. GUI-AiF introduces two novel reward functions designed to stabilize continual learning:
- Anchoring Point Reward in Flux (APR-iF): This reward encourages the agent to explore a diverse range of interaction points (e.g., center coordinates of UI elements) within an interface. By promoting this diversity, it prevents the agent from becoming overly fixated on specific coordinates from a single, static task, thus improving generalization to new locations.
- Anchoring Region Reward in Flux (ARR-iF): This reward focuses on the diversity of predicted element regions (e.g., bounding box scales and shapes). It models predicted regions as Gaussian distributions and rewards spatial separation between them, helping the agent adapt to varying element sizes and aspect ratios across different GUIs and resolutions.
These two rewards are combined into a single reward signal ($R_{AiF}$) that guides the RFT policy. The framework also incorporates a KL divergence term to prevent catastrophic forgetting and maintain a connection to the reference model.
Datasets
The authors evaluate their approach on three benchmarks:
- ScreenSpot-V1 (SSv1): Covers mobile, desktop, and web GUI tasks for continual domain evaluation.
- ScreenSpot-V2 (SSv2): Similar to SSv1, also used for continual domain evaluation.
- ScreenSpot-Pro (SSPro): Features high-resolution software interfaces (CAD, Development, Creative, Scientific, Office, OS) for evaluating continual resolution performance.
The paper also describes two specific continual learning scenarios:
- Domain Sequence: Training on mobile, then desktop, then web applications.
- Resolution Sequence: Training on normal resolution (1080p), then high resolution (4K).
Key Insights and Ideas
- The "flux" is critical: The paper strongly emphasizes that real-world GUIs are not static. Ignoring this dynamic nature leads to brittle AI agents.
- Over-adaptation is the enemy: Existing methods, especially SFT, tend to overfit to specific GUI layouts and scales, making them perform poorly when faced with even minor changes.
- APR-iF is more impactful than ARR-iF: The authors found that rewarding diverse interaction points (APR-iF) had a larger positive impact on performance than rewarding diverse regions (ARR-iF). This is attributed to the fact that shifts in GUI environments (like domain or resolution changes) primarily manifest as changes in element positions.
- RFT is a better foundation for continual learning: The paper reinforces that RFT's inherent mechanism of minimizing KL divergence from a reference model makes it a more suitable starting point for continual learning compared to SFT.
- Exploration vs. Exploitation Trade-off: The novel rewards (APR-iF, ARR-iF) encourage exploration, which can sometimes conflict with the exploitation needed for accurate performance on the current task. The KL divergence term helps balance this.
Key Results
- State-of-the-art performance: GUI-AiF consistently outperforms existing SFT and RFT baselines on both continual domain and resolution tasks across the ScreenSpot-V1, SSv2, and SSPro benchmarks.
- Significant gains: For instance, in the SSv1 domain task (Mobile→Desktop→Web), GUI-AiF achieved an average accuracy of 81.7%, significantly higher than baselines. In the SSPro resolution task, GUI-AiF achieved 19.0% average accuracy, outperforming SFT and RFT baselines which achieved 16.7% and 17.7% respectively.
- Robustness to shifts: The framework demonstrates strong adaptability to both domain shifts (e.g., mobile to web) and resolution shifts (e.g., 1080p to 4K).
- Forward Transfer: GUI-AiF shows improved forward transfer capabilities, meaning knowledge learned from earlier tasks helps agents perform better on subsequent tasks.
Limitations and Future Work
- Model Scale: The experiments were primarily conducted on a 3B model scale due to computational constraints. The authors believe larger models and more extensive datasets could further improve performance.
- Types of GUI Shifts: The current work focuses on domain and resolution shifts. Future work will explore more diverse GUI changes, such as app updates (layout shifts) and dark mode, as well as localization (language changes).
- Bias towards Text: The paper notes a general bias in GUI agents towards text-based interactions over icon-based ones, likely due to the agents' stronger OCR capabilities. This is an area for further investigation.
Summary updated