Papers › ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay

ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay

22 May 2025arXiv:2505.16282archive 2025-07-28

Fanbin Lu, Zhisheng Zhong, Shu Liu, Chi-Wing Fu, Jiaya Jia

Training large language models (LLMs) as interactive agents for controlling graphical user interfaces (GUIs) presents a unique challenge to optimize long-horizon action sequences with multimodal feedback from complex environments. While recent works have advanced multi-turn reinforcement learning (RL) for reasoning and tool-using capabilities in LLMs, their application to GUI-based agents remains relatively underexplored due to the difficulty of sparse rewards, delayed feedback, and high rollout costs. In this paper, we investigate end-to-end policy optimization for vision-language-based GUI agents with the aim of improving performance on complex, long-horizon computer tasks. We propose Agentic Replay Policy Optimization (ARPO), an end-to-end RL approach that augments Group Relative Policy Optimization (GRPO) with a replay buffer to reuse the successful experience across training iterations. To further stabilize the training process, we propose a task selection strategy that filters tasks based on baseline agent performance, allowing the agent to focus on learning from informative interactions. Additionally, we compare ARPO with offline preference optimization approaches, highlighting the advantages of policy-based methods in GUI environments. Experiments on the OSWorld benchmark demonstrate that ARPO achieves competitive results, establishing a new performance baseline for LLM-based GUI agents trained via reinforcement learning. Our findings underscore the effectiveness of reinforcement learning for training multi-turn, vision-language GUI agents capable of managing complex real-world UI interactions. Codes and models:https://github.com/dvlab-research/ARPO.git.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.16282")

Code

Syntology Ran 5 of 16 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

dvlab-research/arpo officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 5 ran; 1 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran
11unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from dvlab-research/arpo. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_kl_controller dvlab-research/arpo/verl/trainer/core_algos.py official repository ran Apache-2.0 (permissive) · 33a3cccef610855c · report
prepare_fa2_from_position_ids dvlab-research/arpo/verl/models/transformers/flash_attention_utils.py official repository ran Apache-2.0 (permissive) · 4049cf08f994464e · report
reduce_metrics dvlab-research/arpo/verl/trainer/metrics.py official repository ran Apache-2.0 (permissive) · 4b07ccef58be043a · report
round_by_factor dvlab-research/arpo/verl/trainer/gui_agent.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · e252767324188623 · report
unpad_dataproto dvlab-research/arpo/verl/protocol.py official repository ran Apache-2.0 (permissive) · a91c18341292d50e · report
collate_fn dvlab-research/arpo/verl/utils/dataset.py official repository unverified Apache-2.0 (permissive) · 69132eba50f047ff · report
compute_gae_advantage_return dvlab-research/arpo/verl/trainer/core_algos.py official repository unverified Apache-2.0 (permissive) · d3ee7b3d8f0cf2fa · report
compute_grpo_outcome_advantage dvlab-research/arpo/verl/trainer/core_algos.py official repository unverified Apache-2.0 (permissive) · b7dacadfa17e35d2 · report
escape_single_quotes dvlab-research/arpo/verl/trainer/gui_agent.py official repository unverified Apache-2.0 (permissive) · 07fd593c156d2586 · report
flash_attention_forward dvlab-research/arpo/verl/models/transformers/flash_attention_utils.py official repository unverified Apache-2.0 (permissive) · d71e909038b965a1 · report
get_rope_index dvlab-research/arpo/verl/models/transformers/qwen2_vl.py official repository unverified Apache-2.0 (permissive) · 8c950c2610637eaa · report
pad_dataproto_to_divisor dvlab-research/arpo/verl/protocol.py official repository unverified Apache-2.0 (permissive) · 3d40f4d5f0572fce · report
parse_action dvlab-research/arpo/verl/trainer/gui_agent.py official repository unverified Apache-2.0 (permissive) · c242cf8145d74b19 · report
qwen2_vl_attn_forward dvlab-research/arpo/verl/models/transformers/qwen2_vl.py official repository unverified Apache-2.0 (permissive) · e6be35b8d742e7d6 · report
qwen_2_mixed_modality_forward dvlab-research/arpo/verl/models/transformers/qwen2_vl.py official repository unverified Apache-2.0 (permissive) · 62d02a7c36f65d6d · report
union_tensor_dict dvlab-research/arpo/verl/protocol.py official repository unverified Apache-2.0 (permissive) · ad658a1d6fe829ba · report

Tasks

Reinforcement LearningReinforcement Learning (RL)reinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections