Abstract
Autonomous agents for Graphical User Interfaces (GUIs) face significant challenges in specialized domains such as scientific computing, where both long-horizon planning and precise execution are required. Existing approaches suffer from a trade-off: generalist agents excel at planning but perform poorly in execution, while specialized agents demonstrate the opposite weakness. Recent compositional frameworks attempt to bridge this gap by combining a planner and an actor, but they are typically static and non-trainable, which prevents adaptation from experience. This is a critical limitation given the scarcity of high-quality data in scientific domains. To address these limitations, we introduce CODA, a novel and trainable compositional framework that integrates a generalist planner (Cerebrum) with a specialist executor (Cerebellum), trained via a dedicated two-stage pipeline. In the first stage, Specialization, we apply a decoupled GRPO approach to train an expert planner for each scientific application individually, bootstrapping from a small set of task trajectories. In the second stage, Generalization, we aggregate all successful trajectories from the specialized experts to build a consolidated dataset, which is then used for supervised fine-tuning of the final planner. This equips CODA with both robust execution and cross-domain generalization. Evaluated on four challenging applications from the ScienceBoard benchmark, CODA significantly outperforms baselines and establishes a new state of the art among open-source models.
Introduction
Autonomous agents designed to navigate Graphical User Interfaces (GUIs) typically fall into two distinct categories: Generalists, which excel at long-horizon strategic planning but struggle with the "pixel-perfect" precision required for dense interfaces, and Specialists, which are adept at low-level execution but lack strategic depth. This gap is particularly evident in scientific computing domains—such as molecular modeling or GIS—where interfaces are complex and tasks require dozens of precise steps.
CODA (COordinating the Cerebrum and Cerebellum) addresses this by introducing a bio-inspired "dual-brain" architecture. It decouples high-level planning from low-level execution, overcoming the traditional trade-off between reasoning and grounding. By utilizing a novel two-stage reinforcement learning pipeline, CODA sets a new state-of-the-art on the challenging ScienceBoard benchmark.
Architecture and Decoupled RL
CODA mimics the human brain's division of labor through two primary components:
- The Cerebrum (Planner): A Qwen2.5-32B-VL model that analyzes screenshots and history to generate high-level "thoughts" and strategic plans.
- The Cerebellum (Executor): A fixed UI-Tars-1.5-7B model that translates abstract plans into concrete
pyautoguicommands (coordinates and clicks).
A key innovation is Decoupled Reinforcement Learning. Rather than training the entire system end-to-end—which is computationally prohibitive and risks "catastrophic forgetting" of basic UI skills—CODA keeps the Executor fixed. This allows the learning capacity to be focused entirely on the Planner's decision-making logic. As shown in the figure above, RL refinement significantly improves the Planner's ability to notice small UI details and correct its course when sidetracked.
Training Methodology: The Two-Stage Pipeline
To overcome the scarcity of high-quality human-labeled data in scientific domains, CODA employs a dedicated two-stage training pipeline:
- Specialization: Using a modified version of Group Relative Policy Optimization (GRPO), the system trains "expert" planners for individual applications. An automated "Judge" system (a fine-tuned 72B model) provides reward signals based on action correctness and efficiency.
- Generalization: Successful trajectories from these specialized experts are aggregated into a consolidated dataset. This dataset is then used for Supervised Fine-Tuning (SFT) of a single "Generalist" planner, allowing the model to cross-pollinate reasoning strategies across different software domains.
Key Insights and Results
CODA establishes a new State-of-the-Art (SOTA) among open-source models on the ScienceBoard benchmark, which covers Algebra, Biochemistry, GIS, and Astronomy.
- Performance Gains: CODA achieved an overall 21.04% (Average@8) success rate, nearly tripling the performance of the Qwen2.5-VL-32B baseline (7.57%). In terms of best-of-8 attempts (Pass@8), CODA reached 39.96%.
- Domain Excellence: In the Biochemistry category (e.g., ChimeraX), CODA achieved a 32.23% success rate, outperforming even powerful proprietary models like Claude-3.7-Sonnet in long-horizon consistency.
- The Specialist-to-Generalist Advantage: The authors found that training specialists first and then distilling their knowledge into a generalist resulted in a model that outperformed the individual experts, proving that reasoning strategies are transferable across scientific tools.
Conclusion and Future Work
CODA demonstrates that decoupling planning from execution is a powerful paradigm for GUI agents. While highly effective, future work will focus on improving exploration efficiency for extremely complex tasks where a "random walk" rarely finds the solution. Additionally, the authors aim to incorporate multi-modal feedback—such as terminal logs and error messages—to further enhance the agent's reliability in professional scientific environments.
Summary updated