arXiv:2608.27866cs.CVAug 2026

Manuscript Offprint

arXiv:2608.27866

Iron: Intent-Aligned and Retrospective Dual Learning Framework for Enhancing Generalist Virtual Agents

Jiahe Ying, Wendong Bu, Kaihang Pan, Bingchen Miao, Siyu Chen, Wen Wang, Xueming Jiang, Juncheng Li, Siliang Tang

Abstract

Achieving virtual agents capable of automating tasks across diverse digital environments remains a pivotal challenge in Embodied AI. While Multimodal Large Language Models (MLLMs) offer enhanced visual perception and reasoning, their agentic deployment faces three challenges: costly data annotation, imprecise action-intent alignment, and inefficient exploration from discarded failed trajectories. To address these, we introduce Iron, an intent-aligned, self-improved, and annotation-efficient framework for training GUI agents. Iron employs a novel dual learning strategy that utilizes a stepwise cycle-consistent (SCC) reward to achieve fine-grained alignment between low-level actions and high-level intents, thereby improving instruction grounding and intent understanding. Concurrently, Iron introduces a hindsight reproduction mechanism to repurpose failed trajectories for training, improving both learning efficiency and task diversity. Extensive experiments demonstrate that Iron-trained generalist agents consistently improve performance on cross-environment and cross-device tasks, outperforming models trained with three times more data. Iron also achieves a substantial 25.06% relative improvement on unseen web tasks, with further gains observed on inherently complex tasks, demonstrating the feasibility of building more capable virtual agents.

1. Introduction

Building virtual agents to automate tasks in diverse digital environments has been a long-standing goal. Compared to traditional LLM-based agents [8, 9, 21, 47], which are strictly limited to textual data (such as HTML or XML) and often struggle to accurately understand UI visuals, recent advances in MLLMs [2, 27, 38] have significantly expanded their capabilities in perceiving, reasoning, and acting on visual information. This makes MLLMs inherently more suitable for assuming the roles of general virtual agents.

Figure

(a)

(b)

Seen scenarios [light mode]

Unseen scenarios [already dark mode]

(c)

Figure 1. (a) Scarcity of successful trajectories in GPT-4V's annotation of VisualWebArena. (b) In 50 sampled GPT-4o trajectories, failures (right bar) vastly outnumber successes (left bar). (c) Comparison between the 'Mechanical Imitation' of traditional agents and an Iron-trained agent in both similar and unseen scenarios.

Despite these advancements, significant challenges persist in three key areas: 1) High costs for labeling superior, diverse sequential decision data: The complexity of the digital environment poses a significant challenge for human efforts. While MLLMs have been proposed for automated labeling [12], their deficiencies in multi-image understanding and complex contextual reasoning render them unreliable as label sources, which results in very limited usable data (see Figure 1a). Moreover, insufficient reward signals further hinder virtual agents' automated annotation. 2) Inefficient exploration caused by numerous wasted failed trajectories: To tackle very limited data, some methods integrate reward models with Monte Carlo Tree Search (MCTS) for autonomous data collection [21, 40, 41]. However, their reliance on sampling only successful trajectories creates a critical inefficiency by ignoring the vast number of failed ones. Our own experiments validate this: when sampling 50 trajectories with GPT-4o [20], we found that failures vastly outnumber successes across diverse environments (Figure 1b), demonstrating that even advanced MLLMs predominantly fail during exploration. This issue is magnified in challenging tasks where successful trajectories may be entirely absent [46]. This leads to a significant waste of resources and impedes performance on complex tasks because of a lack of diverse examples and reference demonstrations. 3) Lack of fine-grained alignment between low-level actions and underlying intent: Most current MLLM-based agents merely fit the existing training trajectories in a “mechanical imitation” way [5]. That is, although given a human instruction and a complete trajectory, the agent does not understand what sub-goal a particular trajectory segment accomplishes and how it contributes to the overall objective, thus leading to poor performance in unseen scenarios, as illustrated in the example shown in Figure 1c. Hence, the agent needs fine-grained, stepwise low-level sequence intent understanding.

To address the above challenges, we propose Iron, an Intent-aligned and Retrospective Self-training Framework. Without requiring manual labor, it employs a dual learning strategy [6, 35] to achieve fine-grained alignment between low-level actions and underlying intents, simultaneously utilizing failure data through hindsight reproduction and improving the agent iteratively in a self-training paradigm. Specifically, we explicitly formulate two complementary tasks to achieve the dual learning strategy:

(i) Instruction Grounding: translate instruction I into a sequence of executable operations A.

(ii) Intent Understanding [28, 29]: infer the intent U in the given sequence of executable operations A in (i).

As shown in Figure 2a, the two tasks establish a dual cycle, mutually reinforcing each other to yield synergistic benefits in the training stage (detailed in subsequent sections). We then capitalize on the inherent cycle-consistency between these tasks as a core mechanism to propose the stepwise cycle-consistent (SCC) reward. This design provides a per-step self-assessment signal, ensuring a deep, fine-grained action-intent alignment, which facilitates autonomous learning without relying on external labeling.

Additionally, building upon the fundamental realization that every trajectory culminates in a valid, concrete outcome, regardless of whether it achieves the intended goal, we implement a hindsight reproduction mechanism within MCTS to effectively leverage failure experiences (Figure 2c). By utilizing the inferred intent (U), a failed trajectory is thus repurposed into a “successful trajectory with a revised goal”. For further optimization, we designed five key metrics (Repeatability, Logicality, Ineffectiveness, Exploratory, Invalidity) to filter useless converted trajectories. This innovative mechanism boosts both MCTS utilization and exploration efficacy, ultimately establishing a high-quality, scalable data collection paradigm that substantially augments data volume and task diversity.

Driven by the aforementioned innovations, we conducted extensive experiments leveraging Qwen3-VL-8B [3], OS-Atlas-Base-7B [34], and InternVL2.5-4B [7] as backbones. Iron delivers superior cross-platform results, consistently outperforming the Step-DPO variant and the baseline trained with triple the SFT data. Notably, on the stronger Qwen3-VL-8B backbone, Iron achieves 41.96% on OSWorld and 39.15% on AndroidWorld, while maintaining over 25% relative improvement in unseen web scenarios. This robust performance is particularly evident on complex tasks. Our main contributions are threefold:

• We introduce Iron, a novel self-training framework that allows agents to learn from both successes and failures via action-intent alignment and hindsight reproduction.

• As a model-agnostic framework, Iron can be easily applied to various agent architectures, providing a scalable, automated paradigm for continuous self-improvement by generating high-quality and diverse training data.

• A key contribution is the scalable expansion of agent capabilities on complex, long-horizon tasks, which is enabled by our hindsight reproduction mechanism that learns efficiently from failures.

References (47)