TL;DR
Training AI agents to navigate graphical user interfaces (GUIs) using standard language-model playbooks hits a frustrating paradox: making them think harder degrades their aim, and optimizing them on static datasets doesn't mean they'll survive in the wild. GUI-Libra introduces a tailored post-training recipe that balances reasoning with precise clicking and adapts reinforcement learning for ambiguous, multi-path environments. Without collecting a single new interactive trajectory, small open-source models trained with this method rival or beat much larger, multi-module agent systems.
What Problem Does This Paper Address?
Imagine teaching an AI to book a flight on your phone. "Native" GUI agents use a single vision-language model (VLM) to look at a screen and output exact actions—like clicking (x, y) coordinates. While open-source models are getting good at single clicks, they stumble on long, multi-step tasks compared to closed-source giants.
Why? Because researchers have been copy-pasting post-training recipes built for math and coding directly onto GUIs, ignoring two domain-specific traps:
- Thinking hurts aiming (Grounding Degradation): Training models with long Chain-of-Thought (CoT) reasoning helps them plan, but all those extra "thought" tokens drown out the loss signal for the actual action, ruining their ability to accurately click UI elements ("grounding").
- The "One Right Answer" Illusion (Partial Verifiability): In math,
2 + 2has one verifiable answer. On a website, you might click a search icon, pressEnter, or tap a dropdown—all valid moves. Offline datasets only record one human demonstration. Standard reinforcement learning treats every valid alternative as a failure, confusing the model and causing high offline scores to flop in live, online environments.
Methods
GUI-Libra fixes the post-training pipeline in two distinct stages, moving beyond standard Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO):
- Action-Aware Supervised Fine-Tuning (ASFT): Instead of standard SFT where every token is weighted equally, ASFT mixes two types of training examples: reasoning-then-action and direct-action (no CoT). Crucially, it applies token-level reweighting, cranking up the loss multiplier specifically on action tokens (like
clickor typed text) and spatial grounding tokens (point_2dcoordinates) so long reasoning chains don't wash out spatial precision. - Conservative RL with SNGS: While recent RL pipelines often drop KL-divergence regularization (which keeps a model from drifting too far from its starting point) to maximize performance, GUI-Libra brings a moderate KL penalty back to prevent distribution shift across multi-step tasks. It also introduces Success-Adaptive Negative Gradient Scaling (SNGS). Because a zero reward might secretly be a valid alternative action, SNGS scales down the penalty for "wrong" answers—especially early on when the model's group success rate on a given state is low—while keeping positive rewards at full strength.
Datasets
Rather than running expensive live simulations, the authors curate GUI-Libra-81K by augmenting existing public datasets (like AGUVIS) using GPT-4.1 to generate rich, structured reasoning (~210 thought tokens per step, compared to <100 in prior sets) and strictly filtering out mismatched actions and coordinates. A balanced 40K subset is used for RL.
For offline evaluation, they refine existing benchmarks into cleaner versions—AndroidControl-v2 and MM-Mind2Web-v2—and test pure grounding on ScreenSpot-v2. For online (live) evaluation, they test on AndroidWorld, WebArena-Lite-v2, and Online-Mind2Web.
Key Insights and Ideas
- Verbosity is the enemy of precision: Plotting response length against clicking accuracy reveals a steep drop-off once reasoning exceeds ~250 tokens. Fixing how the loss weights action tokens solves this without lobotomizing the model's planning ability.
- KL regularization restores offline-to-online predictability: Without a KL penalty during RL, training rewards go up while policy entropy collapses and live performance tanks. Adding a tiny KL leash (
0.001) boosts the Pearson correlation between offline step accuracy and online task completion from 0.63 to 0.89—meaning offline benchmarks actually become trustworthy again. - RL heals the reasoning-grounding gap: Even after ASFT, models click slightly worse when prompted to reason out loud versus acting directly. Conservative RL closes this gap completely, aligning long thoughts with sharp execution.
Key Results
Built on Qwen2.5-VL (3B/7B) and Qwen3-VL (4B/8B) backbones, GUI-Libra punches well above its weight class:
- AndroidWorld (Mobile): GUI-Libra-4B and 8B both reach 42.6% task success (up +15.6% and +12.2% over their base models), outperforming native Qwen3-VL-32B (34.8%) and matching multi-module frameworks like GPT-4o + UGround (42.6%). Meanwhile, the tiny 3B model leaps from 3.5% to 25.2%.
- Online-Mind2Web (Live Websites): GUI-Libra-8B hits an average score of 28.0% (+8.7% over base), beating all other open-source native models including ScaleCUA-32B (23.5%).
- WebArena-Lite-v2: The 4B and 8B models improve over their base models by +12.5% and +11.3%, respectively.
Limitations and Future Work
GUI-Libra softens the blow of ambiguous rewards rather than solving them outright—it still relies on single-demonstration offline data and cannot explicitly identify which alternative actions are valid (the authors note in an appendix that trying to use a learned AI judge instead led to reward hacking). Additionally, the theoretical guarantees assume ideal population coverage while training uses finite static data. Future work points toward blending in continual online interaction and building smarter, step-level verifiers.
Summary updated