Abstract
Automating complex computer tasks across diverse operating systems remains a significant challenge for artificial intelligence. While Multimodal Large Language Models (MLLMs) show promise, they are often hindered by high latency, cost, and privacy concerns. This paper introduces ComputerAgent, a lightweight hierarchical reinforcement learning (HRL) framework designed for precise OS control. With only 15 million parameters—four orders of magnitude smaller than state-of-the-art MLLMs—ComputerAgent matches or exceeds their performance on complex multi-step tasks by leveraging a structured action space and a triple-modal state representation.
Introduction
The goal of general computer control—enabling an agent to execute natural language instructions like "rename the latest invoice and email it"—is a cornerstone of AI automation. Current approaches rely heavily on cloud-based MLLMs. However, these models face three critical hurdles: high latency and cost due to screenshot streaming, difficulty learning from sparse rewards in long-horizon tasks, and significant privacy risks for enterprise users.
The authors propose that instead of a massive general-purpose model, OS automation requires a specialized, efficient agent capable of understanding the inherent hierarchy of computer interactions.
Methodology: The ComputerAgent Framework
ComputerAgent employs a "Manager-Worker" architecture to decompose complex tasks into manageable sub-goals.
Hierarchical Control and Action Spaces
Rather than predicting raw mouse movements directly, a high-level Manager selects macro-actions (e.g., "Mouse Control" or "Hotkey"). A low-level Subpolicy then executes the fine-grained details, such as specific (x, y) coordinates. This approach reduces a 20-step interaction into a sequence of 3–5 high-level "options." The framework also introduces Meta-Actions like Wait, Stop, and Text_Input to handle page loading, task termination, and efficient typing.
Triple-Modal State Embedding
To maintain situational awareness, the agent fuses three distinct input modalities into a single state representation $s_t$:
- Visual: Screenshots of the desktop view ($v_t$).
- Textual: Natural language task descriptions ($\tau_t$).
- Numeric: System features ($f_t$) such as cursor position and step count.
Training Strategies
The agent is trained using Curriculum Learning, starting with 90 "easy" tasks (under 8 steps) before progressing to 45 "hard" tasks. This staged approach, combined with a smooth-decay strategy, ensures stable convergence.
Experimental Results
The researchers evaluated ComputerAgent on a custom suite of 135 tasks across Windows, Ubuntu, and macOS, as well as the rigorous OSWorld benchmark.
Performance and Efficiency
ComputerAgent demonstrated remarkable efficacy, achieving a 92.1% success rate on simple tasks and 58.8% on hard tasks. Notably, the DQN-based variant significantly outperformed MLLM baselines like GPT-4o in terms of precision and efficiency.
Key findings include:
- DQN Superiority: Deep Q-Networks proved more stable than on-policy methods (PPO, A2C) for GUI control, particularly on complex tasks.
- Scale vs. Structure: A 0.015B parameter model can outperform a 200B+ parameter model by utilizing an intelligent action hierarchy.
- Human-Like Intent: The agent's action count was only 1.15x that of a human expert, indicating purposeful movement rather than random exploration.
Discussion and Future Work
The success of ComputerAgent highlights the potential of specialized "small models" in domain-specific automation. By focusing on the structural properties of computer interfaces, the framework achieves high precision with minimal computational overhead.
Future research will focus on:
- Enhanced Vision: Integrating UI-focused transformers to better interpret visually complex applications.
- Generalization: Scaling training to thousands of diverse, unseen applications to achieve "General Computer Control."
- Fluid Control: Moving from discretized mouse movements to continuous control for more human-like interaction.
Summary updated