Beyond Success and Failure: Length-Aware Contrastive Learning for GUI Agents

Chengyang Gu, Le Zhang, Jingbo Zhou, Yize Chen, Yu Shi +4 more
8/22/2026
cs.AI
rlrlhf-rlvr-dpocontrastive-ssl

No confident code implementation found for this paper.

Abstract

Graphical User Interface (GUI) agents powered by Multimodal Large Language Models (MLLMs) have shown strong potential for automating tasks across diverse digital environments, where reinforcement learning (RL) has become a dominant training paradigm. However, widely used methods such as Group Relative Policy Optimization (GRPO) suffer from reward-gradient misalignment, leading to inefficient and unstable optimization.

Show full abstract

Recent work addresses this issue by reformulating RL with verifiable rewards (RLVR) as contrastive or classification-based objectives, which improve stability by eliminating problematic gradient behaviors. Despite this progress, existing contrastive RLVR methods rely primarily on outcome-level supervision and fail to capture fine-grained differences in trajectory quality within the same outcome category. In this paper, we propose Length-Aware Contrastive Learning for GUI Agents (LACL-GUI), a contrastive RLVR framework that incorporates trajectory-level quality signals into policy optimization. LACL-GUI introduces structured preferences within both successful and failed trajectories, encouraging concise successful executions and differentiating failure quality based on divergence from successful trajectories, while preserving optimization stability. Experiments on GUI agent benchmarks show that LACL-GUI provides more effective learning signals and consistently improves agent performance over prior methods, highlighting the value of trajectory-level supervision in contrastive RLVR.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gu2026beyond,
  title  = {Beyond Success and Failure: Length-Aware Contrastive Learning for GUI Agents},
  author = {Chengyang Gu and Le Zhang and Jingbo Zhou and Yize Chen and Yu Shi and Siqi Bao and Zheng-Fan Wu and Hua Wu and Hui Xiong},
  year   = {2026},
  eprint = {2608.21830},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.21830v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.21830.svg)](https://codeofpaper.com/paper/2608.21830)

Discussion