Digi-Q: Learning Q-Value Functions for Training Device-Control Agents

Hao Bai, Yifei Zhou, Li Erran Li, Sergey Levine, Aviral Kumar · DOI

Abstract

Training autonomous agents for mobile device control is challenging due to the high cost of environment interaction and the instability of reinforcement learning (RL) with large-scale models. We present Digi-Q, a framework that learns action-value (Q) functions from offline data using Vision-Language Models (VLMs). By combining representation fine-tuning with a stable "Best-of-N" policy extraction method, Digi-Q achieves significant performance gains on Android control tasks without requiring live interaction.

Introduction

Building agents that can autonomously navigate mobile interfaces like Android is a key goal in human-computer interaction. While large Vision-Language Models (VLMs) excel at interpreting screen content, they often struggle to execute precise sequences of actions. Existing methods typically rely on Imitation Learning (IL), which fails in novel states, or On-Policy Reinforcement Learning, which is often impractical due to privacy concerns and the computational instability of training billion-parameter models through trial and error.

The Challenge of Offline Device Control

Offline Reinforcement Learning offers a solution by learning from historical, potentially suboptimal datasets. However, standard VLMs are not naturally "action-aware"—they are trained on static data and may ignore the specific consequences of UI interactions. Furthermore, applying Temporal-Difference (TD) learning directly to large VLM backbones is notoriously unstable.

Digi-Q vs. traditional policy-based methods. Digi-Q leverages offline data more effectively by learning a Q-function to rank actions.

The Digi-Q Framework

Digi-Q introduces a two-stage pipeline designed for stability and performance in offline settings.

1. Representation Fine-tuning

To ground the VLM in the dynamics of the interface, Digi-Q first fine-tunes the model on a binary classification task. Given a state $s$ and an action $a$, the model must predict if the action will lead to a significant state change ($d(s, s') > \epsilon$). This phase "primes" the model's internal representations to focus on actionable features of the UI.

2. Value-based Reinforcement Learning and Policy Extraction

Following representation learning, the VLM backbone is frozen. A lightweight MLP head is trained using TD-learning to estimate the Q-values of state-action pairs. To extract a policy, Digi-Q uses a "Best-of-N" approach: it samples multiple candidate actions from a base policy, ranks them using the learned Q-function, and trains the final agent to imitate the best-performing candidate.

The two-stage Digi-Q pipeline: (1) Representation fine-tuning for action awareness and (2) Value-based RL for policy optimization.

Experimental Results

The framework was evaluated on the Android-in-the-Wild (AitW) benchmark, specifically the "General" and "Web Shopping" subsets. Digi-Q demonstrated a 21.2% improvement over the previous state-of-the-art offline method, DigiRL. Remarkably, Digi-Q's offline performance matched or slightly exceeded the performance of on-policy RL methods that were allowed to interact with the environment.

Key Insights

  • Action Priming: Without the initial fine-tuning stage, Q-functions tend to ignore action inputs, leading to poor performance.
  • Efficiency through Dynamic Programming: Digi-Q can synthesize optimal behavior by identifying and combining the most effective segments of different suboptimal trajectories in the offline dataset.
  • Scalability: Performance scales monotonically with the number of candidate actions ($N$) used during policy extraction, confirming the reliability of the learned Q-function as a ranking signal.

Conclusion

Digi-Q represents a significant step toward stable and efficient training of device-control agents. By leveraging offline data and action-aware VLM representations, it provides a robust alternative to costly on-policy interaction.

Summary updated

BibTeX
@inproceedings{bai2025digi,
  author = {Hao Bai and Yifei Zhou and Li Erran Li and Sergey Levine and Aviral Kumar},
  title = {{Digi-Q: Learning Q-Value Functions for Training Device-Control Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=CjfQssZtAb},
}
Figure