DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learning

Training corpuses for vision language models (VLMs) typically lack sufficient amounts of decision-centric data. This renders off-the-shelf VLMs sub-optimal for decision-making tasks such as in-the-wild device control through graphical user interfaces (GUIs). While training with static demonstrations has shown some promise, we show that such methods fall short for controlling real GUIs due to their failure to deal with real-world stochasticity and non-stationarity not captured in static observational data. This paper introduces a novel autonomous RL approach, called DigiRL, for training in-the-wild device control agents through fine-tuning a pre-trained VLM in two stages: offline RL to initialize the model, followed by offline-to-online RL. To do this, we build a scalable and parallelizable Android learning environment equipped with a VLM-based evaluator and develop a simple yet effective RL approach for learning in this domain. Our approach runs advantage-weighted RL with advantage estimators enhanced to account for stochasticity along with an automatic curriculum for deriving maximal learning signal. We demonstrate the effectiveness of DigiRL using the Android-in-the-Wild (AitW) dataset, where our 1.3B VLM trained with RL achieves a 49.5% absolute improvement -- from 17.7 to 67.2% success rate -- over supervised fine-tuning with static human demonstration data. These results significantly surpass not only the prior best agents, including AppAgent with GPT-4V (8.3% success rate) and the 17B CogAgent trained with AitW data (38.5%), but also the prior best autonomous RL approach based on filtered behavior cloning (57.8%), thereby establishing a new state-of-the-art for digital agents for in-the-wild device control.

Paper

References (48)

Scroll for more · 36 remaining

Similar papers

Peer review

Reviewer zDzF7/10 · confidence 3/52024-07-13

Summary

This paper shows the potential of Reinforcement Learning (RL) for designing an effective digital agent for in-the-wild control through Graphical User Interfaces (GUIs). The proposed approach relies on the advantage of the pre-trained visual language models (VLMs) while tackling real-world stochasticity by training an RL agent that interacts with an environment instead of relying on static demonstrations. Accordingly, this work proposes a novel autonomous RL approach, namely DigiRL, for training device control agents, which consists of two stages: an offline RL phase where the agent is trained on static demonstrations, followed by an in-the-wild, offline-to-online RL stage for training the agent through interacting with an environment. Consequently, this work also introduces a scalable and parallelizable Android learning environment with a reward model (evaluator) based on a robust VLM-based model. To show the effectiveness of the proposed method, an evaluation of different tasks given diverse instructions is carried out from the Android in the Wild dataset on real Android device emulators. The results show a significant improvement of DigiRL compared to the existing state-of-the-art agents, including wrapped proprietary VLMs such as GPT-4V and Gemini 1.5 pro. The paper claims to be the first to succeed in developing an autonomous offline-to-online RL approach to enable state-of-the-art performance on device control problems.

Strengths

- The usage of RL in designing a successful digital agent for a device control task is fascinating. - I appreciate implementing such a scalable Android learning environment, and I hope the authors will open-source everything so that other researchers can reuse it. - The clarity of the paper is worth mentioning. - The experimental results section is rich, especially the ablation studies.

Weaknesses

- Although the POMDP definition sounds correct when defining the problem, a contextual POMDP is even more appropriate for such a problem [1]. - A pseudo-code or an illustrative diagram should be added to facilitate understanding the method. - It is not clear how the policy and the value network are conditioned given the context $c$. (implementation-wise) [1] Hallak, Assaf, Dotan Di Castro, and Shie Mannor. "Contextual markov decision processes." arXiv preprint arXiv:1502.02259 (2015).

Questions

- How are the policy and the value network conditioned given the context $c$? - Is the RL agent trained in a multi-task fashion (which I believe is true)? I mean the agent is trained with more than one task concurrently accessing fully or partially the same models. - If yes, do you think classical Multi-task learning or Multi-task reinforcement learning approaches would enhance the performance even more?

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

I believe the authors discussed the method's limitations in the final section. I agree with the authors regarding the impact of such application on the economy, society, and privacy, and that needs careful review in the future to limit any harm.

Authorsrebuttal2024-08-07

Link to annonymous code

https://anonymous.4open.science/r/digirl-anonymous-7ED0/ Here is the link to our code promised for Reviewer zDzF

Reviewer zDzF2024-08-13

Rebuttal

Dear Authors, Thanks a lot for answering my questions and addressing my concerns! Given the authors' responses to my questions and those of other reviewers, I will increase my score from 6->7 while keeping my confidence level, as it is similar to Reviewer 251X; my background is RL.

Authorsrebuttal2024-08-13

We thank the reviewer for the response. We appreciate your score increase!

Reviewer 251X5/10 · confidence 3/52024-07-13

Summary

This paper introduces a novel autonomous reinforcement learning (RL) approach, DigiRL, for training in-the-wild device control agents. DigiRL first employs offline RL to fine-tune a pre-trained vision-language model (VLM as the agent) using stale task-specific data, and then further refines the agent through online RL by continuously interacting with parallelized emulators. DigiRL achieves a 49.5% absolute improvement in task success rate over existing state-of-the-art agents, establishing a new benchmark for digital agents in device control.

Strengths

1. The paper is well-written and motivated, many important technical/implementation details are covered. 2. The paper considers a challenging problem, autonomous device control, where existing LLM-based methods struggle to achieve acceptable success rate. The proposed method leverages VLM and RL techniques and significantly improves compared to these baselines. 3. The experiments are comprehensive and informative, covering LLM/RL agents, prompting and learning paradigms, offline and off-to-on RL, as well as failure modes analysis. 4. The authors implement a multi-machine emulator system to support parallel and real-time training of online RL.

Weaknesses

Major Points: 1. From a ML methodological point of view, the novelty/contribution of the paper is limited. To perform offline and off-to-on RL, the paper adopts a number of existing techniques such as AWR, doubly-robust estimators with little customization (e.g., hard filtering on the advantages instead of computing $\exp(A)$, which is mainly indended for easier implementation), all well-known to the community. The only thing seems "new" is training value functions with cross-entropy losses, also directly taken from [1], and the equations in line 250-251 seems to be qustionable (see my comments in the Questions section). Moreover, no theoretical insight is provided to elucidate why these specific designs are chosen. [1] Stop regressing: Training value functions via classification for scalable deep rl, 2024. 2. Limited Scope. The entire paper focuses on a very specific domain (autonomous device control). The scope of the proposed method might be too narrow to be of general interest to the ML/RL community. Minor Points: - In section 4.2, how to properly balance the two estimators, one with higher variance and one with higher bias to achieve the optimal result? What's the hyperparameter profile of the combined estimator? Have you tried any alternative designs and can you give theoretical insight to justify this specific design choice? - Regarding the offline and off-to-on RL setting: to my knowledge, the main point of offline RL is to leverage a large body of stale data to safely and efficiently pretrain a RL agent. Therefore, for off-to-on RL, where online RL operates as the fine-tuning stage, one should use data far less than the offline pretrained dataset to ensure the setting is meaningful. The fact that authors intentionally use the same amount of data for both offline and online stage, which assumes access to a large amount of online data might make the offline pretraining unecessary. To see this, I recommend the authors to directly perform online RL on the combined dataset and it's highly possible that such "purely online" agent outperforms its off-to-on counterpart. - The authors spend quite a few words discussing the challenges of stochasticity and device control as a POMDP. However, I do not see any specific design or techincal contribution targeting such problems.

Questions

1. In line 250-251, the CE loss pairs r with log V and (1-r) with log (1-V). Intuitively, this means one would like to make the distribution of r and V as close as possible (when r-> 1, V -> 1 and vice versa). This seems to contradict the claim in line 240-241 that "Intuitively, if a rollout attains a high value of A(sh, ah, c), it means the value function V is small". 2. How do you perform the train/test task split, if not random split? It is odd to see in Table 1 that almost all testing performance clearly surpass the training performance (normally should be the opposite), which suggest that the testing tasks are in general easier than the training tasks and not i.i.d?

Rating

5

Confidence

3

Soundness

2

Presentation

3

Contribution

2

Limitations

N/A

Authorsrebuttal2024-08-07

references

[1] ‘WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents’. NeurIPS 2022. [2] Mind2Web: Towards a Generalist Agent for the Web’. NeurIPS 2023. [3] GPT-4V(Ision) Is a Generalist Web Agent, If Grounded. 2024, ICML 2024. [4] ‘TravelPlanner: A Benchmark for Real-World Planning with Language Agents’. ICML 2024. [5] Data-Driven Offline Optimization For Architecting Hardware Accelerators’. ICLR 2022. [6] Chip Placement with Deep Reinforcement Learning’. ICML 2022. [7] A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis. ICLR 2024 (Oral). [8] Schulman, John, et al. ‘High-Dimensional Continuous Control Using Generalized Advantage Estimation’.

Authorsrebuttal2024-08-12

Discussion period ends soon

Dear reviewer 251x, Apologies for bothering you! Since the discussion period will end in two days, we would be grateful and would sincerely appreciate if you could respond to our rebuttal, leaving us enough time to address any remaining questions. Thanks, Authors

Reviewer 251X2024-08-13

Thank you for the rebuttal and I appreciate the efforts of providing many new experiments in the PDF, please do add these to the revised version. I think most of my concerns are properly addressed. Regarding the technical novelty, since my expertise mainly comes from RL algorithm research, and much less from developing AI agents/systems, I might not be in the best position to make the judgement. Nevertheless, given all information provided, I will raise my score 4->5 but lower my confidence 4->3, and vote for acceptance.

Authorsrebuttal2024-08-13

Thank the reviewer for reading our rebuttal We are glad that our rebuttal has solved most of your concerns. We appreciate your score raise and voting for acceptance!

Reviewer XhdC6/10 · confidence 3/52024-07-15

Summary

This paper proposes an autonomous RL approach, RL for digital agent (DigiRL), to finetune a pretrained VLM as an in-the-wild device control agent through GUI. The authors build a parallelizable Android learning environment with VLM-based evaluator to identify the key design choices for RL. The training include two stages an offline RL phase on existing data, then followed by an online RL phase by interacting with real-world graphical user interfaces using the Android learning environment. The proposed method with only 1.5B model size outperforms other state-of-the-art models such as GPT4-V or 17B CogAgent in the Android-in-the-Wild (AitW) dataset.

Strengths

- The paper is well-structured and easy to follow. - Many design choices are well motivated. - The experiments are nice and well support the claims.

Weaknesses

- Overall there is no major weakness. There are only several questions and potentially interesting empirical studies to look at. Check more details in the question sections.

Questions

- Could the authors compare more advanced LLM reasoning or planning algorithms like Chain of Thoughts (CoT), Tree of Thoughts (ToT), Reasoning as Planning (RaP), etc.? - Following the previous question, is it possible to compare with those planning/search-based methods with the autonomous evaluator or the trained value model of DigiRL as value functions? - What is the training time and compute requirement for online training? - In Figure 7, what does the AWR reweighting mean? Is it simply AWR? - With the auto-curriculum setup, it may be interesting to look at what types of data/replay are critical throughout the online learning process; with simple categorization like failure mode in Figure 5 or whatever characterization can be interesting. As detailed in the "Challenges of stochasticity" paragraph in section 3, could the authors provide some studies on unpredictable distractor and technical glitches?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

Limitations are discussed in the paper.

Reviewer JuUV6/10 · confidence 3/52024-07-17

Summary

This paper tackles AI agent training for controlling digital devices (e.g., web navigation). The proposed framework, named DigiRL, is a 3-stage training process consisting of model pre-training, offline fine-tuning (offline RL), and online fine-tuning (online RL). To achieve this goal, the authors first build a parallelizable Android learning environment that enables fast online interactions for policy learning; they then adopt a VLM-based evaluator to provide reward signals for the agents; finally, they perform ablation studies to examine several key design choices in typical policy-based RL methods for the third stage. Compared to larger models trained without this stage, the proposed approach enjoys significant performance enhancement due to the online fine-tuning stage.

Strengths

+ The authors did a good job introducing the background, the problem setup, the baselines, and the details of their proposed method. + Fine-tuning large VLMs in an online fashion can be challenging; the performance improvement obtained by the proposed method, which is relatively simple, is substantial and the overall approach looks promising.

Weaknesses

The main issue is the limited comparison with online RL methods for fine-tuning LLM-based agents. The only RL method compared in the experiments is Filtered BC (besides vanilla AWR, which the proposed method is based on). Filtered BC is strictly speaking not an online RL method. Admittedly, AI agent training for device control is a relatively under-explored new area, and the authors claim that theirs is the first successful offline-to-online RL approach for device control AI agents, I believe more experiments with other online RL baselines not originally designed for device control is required to justify DigiRL's advantages. For example, the classic on-policy methods such as REINFORCE and PPO, or the more recent ones that are more sample-efficient, such as [1, 2] (which might be considered more-or-less recurrent work, though). Further comparisons also help to provide more insight into the unique challenges of the device control problem for digital agents. [1] Trial and Error: Exploration-Based Trajectory Optimization for LLM Agents [2] REBEL: Reinforcement Learning via Regressing Relative Rewards

Questions

- Will the proposed method further scale well with more online interactions? - While multi-turn interactions are a challenge of the device control problem, is there any component in the proposed framework that specifically helps to tackle it? I am willing to adjust my ratings after seeing the authors' responses.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

2

Limitations

Yes.

Reviewer JuUV2024-08-14

Raised my score

Thanks for the rebuttal. I have carefully read all the responses and reviews. I will raise my score. With that being said, I will leave it up to the AC to decide whether the contribution of developing agents is strong enough for the paper's acceptance. I also lowered my confidence as my expertise mostly lies in RL.

Authorsrebuttal2024-08-11

Dear reviewers, Apologies for bothering you! Since we are getting close to the end of the discussion period, we would be grateful and would sincerely appreciate if you could respond to our rebuttal, leaving us enough time to address any remaining questions. Thanks, Authors

Reviewer XhdC2024-08-13

Thanks for the rebuttal

The rebuttal addressed most of my previous concern. Thanks!

Authorsrebuttal2024-08-13

We thank the reviewer for recognizing our efforts in the rebuttal and additional new results to address your previous concerns, and are glad that the additional results address the concerns. Since there is still one more day, we are also wondering if there would be some other discussion or evidence that we can provide in this period to help improve your score of our paper further. Please let us know. We would be very grateful if you are willing to upgrade your score. Thanks a lot!

Authorsrebuttal2024-08-13

Thanks for the ethics review and the recognition that the benefits of our work outweigh the risks. We will definitely add additional sentences in the paper to discuss these points about ethical concerns as suggested.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC