Subgoals as Checkable Predicates for Training Hierarchical Computer-Use Agents

Agents that operate scientific desktop software rarely receive a useful training signal. A task such as "load this protein in ChimeraX, color chain A by hydrophobicity and export the image" may take dozens of clicks, and the only feedback is pass or fail at the end. The strongest recent agents split the work in two. A large vision-language planner decides what to do next, and a smaller frozen model, the executor, turns each instruction into clicks and keystrokes. The planner is then trained by reinforcement learning against an LLM judge. Even so, these agents succeed on only about a fifth of tasks, and none complete the hardest ones. We propose a simple change to the interface between planner and executor. The planner must write each subgoal as a predicate: a small set of (object, attribute, value) facts that should hold once the executor finishes. A separate vision-language model reads the screen after execution and reports which facts actually hold. The planner then receives a reward for each subgoal that genuinely changed the world as promised. A failed subgoal is relabeled, without any oracle, as whatever predicate was achieved. This turns failures into training data about what the frozen executor can and cannot do.

The point is not that a text description of the screen helps the planner reason. The diagnostic literature on multimodal models argues the opposite. When annotators give models flawless transcriptions of diagrams, the models still fail the reasoning (GeoSQA), and competition-math errors mostly occur after every visual element has been correctly identified (MATH-Vision). The bottleneck is multi-step reasoning, and multi-step reasoning is exactly what sparse outcome rewards train poorly. We therefore use semantic state abstraction as a reward interface: a compact, checkable vocabulary in which the planner states its intentions and is held to them. We do not use it as an inference-time crutch.

Core Claim

The claim is that a hierarchical computer-use agent trained with planner-authored, perception-checked subgoal predicates will learn more per rollout than the same agent trained with an LLM judge. The reward has three components: a dense reward for verified state changes, oracle-free hindsight relabeling of failed subgoals, and the sparse task outcome. The gains should appear in two places. The planner should issue fewer subgoals the executor cannot achieve. It should also make more reasoning-level corrections on long tasks.

Concretely, at subgoal $k$ the planner emits a predicate $\varphi_k$, a conjunction of triples. A frozen extractor $E$ maps the screenshot (and accessibility tree when available) to a set of triples. Write $s_k^-$ and $s_k^+$ for the screens before and after execution. The planner's episode reward is

$$ R = R_{\text{out}} + \lambda \sum_k \mathbb{1}\big[\neg\varphi_k(E(s_k^-)) \wedge \varphi_k(E(s_k^+))\big], $$

where $R_{\text{out}}$ is the benchmark's binary task success and $\lambda$ weights subgoal credit. The "false before, true after" condition is the key guard against reward hacking. A planner cannot earn credit by restating facts that already hold. It must cause a change it predicted.

Relation to Prior Work

The closest work is GLARE. GLARE extracts (subject, category, value) triples from text observations. A critic LLM hypothesizes milestones from groups of trajectories, and those milestones are compiled into temporal-logic automata that issue step rewards. GLARE supplies our triple representation, but it differs from this proposal in three ways. It is text-only (ALFWorld, WebShop). Its milestones come from an external critic rather than from the policy's own plan. And it reports a 12% mismatch between generated logic formulas and intended milestones, an error source our design removes by having no compilation step. Because the planner authors its own milestones, the reward is tied to the planner's plan rather than to a critic's guess about it.

The hierarchy comes from CODA, which trains a Qwen2.5-VL-32B planner with group-relative policy optimization against fine-tuned judge models, using a frozen UI-TARS-1.5-7B executor on ScienceBoard. We keep CODA's architecture and frozen executor exactly and change only the subgoal format and the reward. CODA's acknowledged weakness motivates this choice. When the frozen executor cannot ground an action, the planner has no signal telling it so. Relabeling gives it that signal.

Hindsight relabeling has two ancestors. HAL relabels failed language instructions with the instruction actually achieved, but it needs an oracle supervisor and a fixed template vocabulary. AgentHER removes the oracle using multi-judge LLM relabeling of text web trajectories, reporting 97.1% precision, but only offline and only for text. We relabel online, from screenshots, at the level of individual subgoals. PIPER is the conceptual source for the feasibility argument. It regularizes the manager by the worker's value function so that it proposes only achievable subgoals, but it works over coordinate vectors. Relabeled predicates play the same role in language: they show the planner what the executor actually achieves.

Two papers constrain the design. VLAC's pairwise progress critic assumes that elapsed time tracks progress. Scientific GUI work often backtracks (closing dialogs, undoing), so we avoid any monotone progress model. Plot Twist shows that multimodal models misread exact chart values while scoring well on high-level questions. Our extractor is therefore asked only for discrete, categorical facts such as "chain A colored = hydrophobicity" or "dialog open = true", never metric readings. Its errors are measured directly, as described below.

Research Program

The system has three parts. The first is a predicate-writing planner, initialized from Qwen2.5-VL-32B. It emits a natural-language instruction for the executor plus a predicate in an open triple schema. The schema has no hand-designed ontology per application, which addresses the object-centric brittleness noted for GLARE and SymVAE. The second is the frozen UI-TARS-1.5-7B executor, run unchanged. The third is a frozen extractor, Qwen2.5-VL-7B prompted with the predicate's subjects. It answers only about the entities the planner mentioned, which keeps cost bounded and avoids exhaustive scene description, the latency problem raised for PPO-Lang.

Where an accessibility tree exists, the predicate is checked against both screenshot and tree, and credit is granted only when they agree. This cross-modal agreement is cheap and is the main defense against extractor hallucination.

When a subgoal fails, the extractor's diff between $s_k^-$ and $s_k^+$ becomes a relabeled predicate. The tuple (context, relabeled instruction-predicate pair) enters the planner's group-relative update as a successful sample. It is down-weighted relative to on-policy successes, following AgentHER's confidence gating.

Training follows CODA's specialization-then-generalization schedule on the same ScienceBoard training split. ScienceBoard's internal VM state checker is never used for training. It is held out as ground truth for diagnosis, which is what makes the study informative about the multimodal reasoning gap.

Using the VM checker, every failed episode can be attributed to one of three causes. In a perception failure, the extractor reported a fact the VM contradicts. In an execution failure, the predicate was sensible but the executor did not achieve it. In a reasoning failure, extracted facts were correct and achieved, yet the plan led nowhere. The multimodal-gap literature predicts that reasoning failures dominate. Our method should shrink the second and third categories, but not the first.

Baselines

The naive reference point is the untrained Qwen2.5-VL-32B planner with the same executor. CODA reports 7.57% Average@8 for this configuration on ScienceBoard. We also report the training-free planner-plus-actor pipeline from ScienceBoard, GPT-4o with GUI-Actor-7B, at 20.44% success. This tells us how much any training adds over a strong prompted planner.

The strongest competitor is CODA itself, at 21.04% Average@8 and 39.96% Pass@8 on ScienceBoard (CODA). It is the right opponent because it uses the identical planner, executor and RL algorithm, so any difference isolates the reward. We will rerun CODA from its released recipe rather than rely only on the reported number. Both systems will use the same task split, the same number of rollouts per group, the same number of policy updates and three seeds each. The judge models' inference tokens and our extractor's inference tokens will be counted against a common per-step compute budget. Beating CODA means a higher Average@8 than our reproduced CODA, with non-overlapping seed intervals. As a secondary criterion, the advantage should be largest on long tasks, where sparse rewards hurt most. Human performance on ScienceBoard is 60.27%, which bounds the headroom.

Three ablations isolate the key ingredient. The first removes the "false before" condition, so the planner is rewarded whenever its predicate holds afterward. This should produce trivially satisfied predicates and measures how much the state-change guard matters. The second removes relabeling and keeps only verified subgoal credit. This separates the dense-reward effect from the executor-feasibility effect. The third replaces the extractor with the VM ground-truth checker, a privileged-information upper bound that tells us how much performance is lost to perception error.

For a secondary comparison against GLARE in its home setting, we run the text-only variant on ALFWorld against vanilla GRPO and GLARE. GLARE reports 12.1% above vanilla GRPO and 8.1% above direct LLM-as-judge in success rate, but the file gives no absolute ALFWorld success figure for it. Both will be rerun.

Why not just…?

Why not just give the planner the accessibility tree, since that is already a free semantic abstraction? ScienceBoard's hybrid screenshot-plus-tree mode is precisely this, and Claude-3.7-Sonnet reaches only 15.79% with it. More importantly, the reasoning-gap evidence from GeoSQA says that a better state description alone does not fix multi-step reasoning. We test this directly by training CODA with the tree added to the planner's input but with the judge reward unchanged. If that matches our method, the reward interface adds nothing and the proposal fails.

Why not just use a stronger step-level LLM judge? CODA already uses fine-tuned 72B judges. GLARE documents that such judges spot errors in their own reasoning and still award high scores. A compute-matched step-level judge baseline is included. Our expected advantage comes from verifying a predicate the planner committed to before acting, which is a narrower question than "was this step good". This is a real threat if judges are well calibrated on ScienceBoard. The judge baseline's agreement with the VM checker, compared with our extractor's agreement, will settle it.

Why not just relabel failures offline and fine-tune, as AgentHER does? Offline relabeling is cheaper and reportedly doubles data efficiency on text tasks (AgentHER). However, it relabels whole trajectories into alternative goals. That teaches the agent tasks it was not asked to do, not which subgoals the frozen executor can achieve. We run AgentHER-style trajectory-level relabeling with supervised fine-tuning on our own ScienceBoard rollouts at matched data. If it equals online subgoal-level relabeling, we will report that the online machinery is unnecessary.

Proposed Experiments and Decisive Checks

The main experiment is ScienceBoard Average@8 and Pass@8 for all baselines and ablations, broken down by the six applications and by difficulty. The text-only variant is evaluated on ALFWorld. Four diagnostic checks decide whether the mechanism works as claimed.

The first check measures the rate at which the planner's predicates are judged satisfied by the extractor but contradicted by the VM checker, tracked over training. If this rate climbs, the planner is learning to fool the extractor, and the result is not trustworthy regardless of the headline score.

The second check measures the rate of unachievable subgoals, meaning predicates the executor fails on, across training. Relabeling should drive this rate down faster than in the no-relabeling ablation.

The third check is the three-way failure attribution. Our claim predicts that reasoning and execution failures fall while perception failures stay roughly flat. If instead the gains come entirely from reduced perception failures, the method is a perception fix, not a reasoning-training fix.

The fourth check is the gap between the learned extractor and the VM-oracle extractor. A small gap means the approach transfers to settings without privileged state. A large gap means perception is still the binding constraint and should be the next target.