TL;DR
Computer Use Agents (CUAs) that control desktop interfaces via vision-language models (VLMs) face massive deployment costs due to large multimodal context windows. This paper introduces Adaptive VLM Routing (AVR), a framework that dynamically routes GUI actions to the cheapest capable model based on task difficulty, model confidence, and interaction history. AVR achieves projected inference cost reductions of up to 78% while remaining within 2 percentage points of an all-large-model baseline.
What Problem Does This Paper Address?
Building agents that can navigate graphical user interfaces (GUIs)—like clicking buttons, typing text, and scrolling through pages—requires a continuous loop of observing screenshots, reasoning, and acting.
As shown in Figure 1, passing high-resolution screenshots and multi-step action histories at every iteration creates massive token overhead, costing up to $0.40 per task when powered exclusively by frontier VLMs like GPT-4o or Qwen2.5-VL-72B.
However, routing every single action to a giant model is highly inefficient. Clicking a prominent "Submit" button is trivial, whereas locating a tiny icon in a dense IDE toolbar is challenging. Furthermore, raw model scale doesn't guarantee GUI proficiency; specialized 7B models often outperform 1.8T generalist giants at visual grounding. The authors address this inefficiency by treating CUA inference as a dynamic routing problem.
Methods
AVR introduces a lightweight semantic routing layer between the CUA orchestrator and a pool of available VLMs. The framework decides where to send a tool call using three core mechanisms:
- Difficulty Classification via Multimodal Embeddings: Before invoking a heavy VLM, a compact 120M-parameter embedding model (SigLIP for images, MiniLM for text) evaluates a crop of the target screen region and the action description. It computes a difficulty score by comparing these embeddings against a knowledge base of known "easy" and "hard" UI elements.
- Confidence-Based Probing via Logprobs: For medium-difficulty tasks, AVR probes a small VLM (e.g., a 7B model) in a fast, non-streaming mode with log-probabilities enabled. If the model's normalized confidence score meets a difficulty-adaptive threshold, its prediction is accepted. If not, the task escalates to a larger model (e.g., 72B).
- Memory-Compensated Routing: For "warm" agents, AVR retrieves relevant context from prior successful or failed interactions with the same application and injects it into the small VLM's prompt.
As detailed in the flowchart (Figure 3), AVR also integrates a safety guardrail. High-risk actions (e.g., clicking "Delete All") bypass the efficiency logic entirely and escalate directly to the largest model with post-hoc verification.
Datasets
The authors evaluated VLM grounding capabilities and per-application difficulty using ScreenSpot-Pro, a benchmark spanning 26 professional applications. To validate the confidence-routing and memory mechanisms on agent workloads, they utilized the OpenClaw benchmark, which features representative multi-turn agent tasks.
Key Insights and Ideas
- Model Size is a Weak Predictor of Grounding: The paper highlights a striking discrepancy in current VLMs: massive generalist models like GPT-4o score near 0.8% accuracy on ScreenSpot-Pro, while GUI-specialized 7B models like OS-Atlas achieve 18.9%. Scaling within the same model family also yields diminishing returns relative to parameter count.
- Memory Acts as a Model-Size Equalizer: Injecting interaction history disproportionately benefits smaller models. While large models already possess the internal knowledge to ground most actions, a small 7B model lacks this context but catches up rapidly when fed explicit UI layout memories.
As illustrated in Figure 6, memory injection shifts the small model's confidence distribution upward, creating a clean separation that allows the system to keep tasks on the cheaper model without sacrificing accuracy.
Key Results
The paper presents analytical projections combining the routing framework with empirical model accuracy data:
- Warm AVR + Difficulty Classification: Achieves 78% cost savings while maintaining an effective grounding accuracy of 42.8% (within 0.8 percentage points of the all-72B baseline).
- Cold AVR (No Memory): Still delivers 52% cost savings from day one by successfully offloading simple UI tasks to the 7B model, with only a minor 1.5 percentage point drop in accuracy.
- OpenClaw Validation: In text-agent tasks, memory injection raised the 7B model's retention rate to 100% for knowledge-dependent queries, translating to an 86% cost reduction with zero quality degradation.
Limitations and Future Work
- Projected, Not Measured: The CUA grounding cost savings are currently analytical projections. Live, end-to-end agent evaluations on benchmarks like OSWorld are still required to fully validate these numbers.
- Probe Overhead on Short Tasks: For brief tasks consisting of only 2–3 actions, the latency and token overhead of probing the small model first can negate the cost benefits. AVR is optimized for longer, production-scale sessions.
- Screenshot Token Dominance: Because screenshots consume thousands of tokens per image, the cost of the initial probe remains tied to screenshot resolution, capping potential savings if images are excessively large.
Summary updated