1. Introduction

Core Problem:

  • The agent can complete a real work, but the it takes too much time. The action latency is too high.

Quantify the problem:

  • This work proposes new metrics to benchmark CUA’s work efficiency.

Most time-cost step:

  • The planning step accounts for more than half, sometimes close to 75% of the total task latency.
  • The judging (GTA1) and reflection (S2) steps account for the second biggest time sink, accounting for 22.5% and 33.6% of total task time, respectively.

Agent Mainly Used:

  • Agent S2
  • GTA1

2. Analysis

Collect detailed timing and token traces.

Agent Max Step VLM Test Set Grounding Model Inference Engine
Agent S2 50 GPT-4.1 39 Tasks of OSWorld UI-TARS-7B-DPO NVIDIA A6000
GTA1 100 o3 39 Tasks of OSWorld GTA1-7B NVIDIA A6000

2.1 Agent S2

2.2 GTA1

2.3 Task Latency Analysis

For a same task:

  • Agent S2:
    • Completes this task in 50 steps.
    • Per-step Planning and Reflection is responsible for the bulk of the end-to-end latency of over 40 minutes.
  • GTA1:
    • Completes this task successfully in 54 steps.
    • The end-to-end latency is almost twice that of Agent S2.
    • The parallel rollout planning phase and subsequent repetitive judging phase of GTA1 were the main reasons for its extended duration.

Average percentage breakdown of time spent performing a certain sub-task grouped by agent:

Agent Screenshot Action Planning Judging Reflection Retrieval Grounding
S2 1.72 ± 0.73% 1.61 ± 0.35% 53.47 ± 3.18% - 33.56 ± 7.77% 3.08 ± 2.14% 3.91 ± 0.83%
GTA1 0.36 ± 0.35% 0.7 ± 0.36% 74.59 ± 2.55% 22.53 ± 2.85% - - 1.82 ± 0.84%
  • Agent S2:

    • Planning and Reflection makes up 76% to 96% of the total task latency.
    • Planning takes more time than reflection overall because planning takes place at each step and after the completion of a sub-task, while reflection only takes place at each step.
    • Retrieval accounts for 0.7% to 8.9% of the overall latency. While retrieval does leverage the large model, it only occurs once at the beginning of the task, which means its overhead is constant.
    • Grounding invokes a much smaller model and is served using a popular and efficient inference engine, SGLang (Zheng et al., 2023).
  • GTA1:

    • GTA1 exhibits a similar phenomenon.
    • Planning and Judging accounting for 91-96% of total task latency.
    • The planner model retains the ability to retry 3 times if no valid plan within the action space is generated.
  • Screenshot and Action Execution are the least intensive for both agents since neither of them require significant GPU resources like large models do.

  • It is clear that gen-AI model calling dominates the latency for a task, hence we conduct a more thorough per-step breakdown.

2.4 Model Call Analysis

With double the step limit (GTA1’s maximum is 100 turns, as opposed to Agent S2’s 50) and parallel planning calls, GTA1 achieves higher overall accuracy at the cost of a larger prompt token range (28.5% higher) and higher latency per step.

The figure 2 showing above shows the comparison of prompt tokens, completion tokens, and latency for different types of LLM calls for Agent S2 (top row) and GTA1 (bottom row).

  • Agent S2:
    • Upper row, grounding maintains a constant and small number of prompt and output tokens because it only receives a single screenshot, as opposed to the entire history being sent to planning, reflection, and retrieval models.
    • The output of the grounding model is a set of coordinates, which is always fixed at 12 tokens in this framework.
  • GTA1:
    • Bottom row plots the same metrics for GTA1, showing a similar pattern.

2.5 Observation Types Analysis

There are three observation types:

  • Screenshot
  • Accessibility Tree (A11y Tree)
  • Set-of-Marks (SoM)

Test Agent:

  • Agent S2

Task Sample:

  • One task per application

  • Dashed box: Screenshot as only observation
  • Grey bar and Red bar, case mixing the screenshot and a11y tree:
  • Grey bar: Latency cost of LLM.
  • Red bar: Latency cost of a11y tree.

By and large, inclusion of the A11y tree drastically increases the per-task latency for two reasons:

  • First, generating the tree itself takes time and is dependent on the elements that exist in the current window, including hidden and visible elements.
    • Applications that have more elements, such as the LibreOffice suite, incur a much higher latency from generating the tree.
  • Second, the tokenized tree is included in each prompt to the model, which can be thousands more tokens per step.

The work also study on the number of steps taken for each task across observation types:

Application SS SS+A11y SS+A11y+SoM
OS 8 5 5
Thunderbird 14 20 8
VS Code 9 13 16
LibreOffice Writer 21 50 16
VLC 3 3 2
GIMP 49 17 12
LibreOffice Impress 32 50 50
Chrome 11 8 17
LibreOffice Calc 14 50 10
  • Adding A11y trees to screenshots (SS) increases the number of steps for most applications. Visually rich applications like the LibreOffice Suite see a particularly high increase because trees can contain thousands of nodes for such applications.
  • Adding A11y tree decreases the number of steps for OS, GIMP (The GIMP Development Team, 1995), and Chrome (The Chromium Project, 2008), because either the application contains fewer distinct visual elements or the tree assists the CUA in completing the task faster.

2.6 Detailed Cost Analysis on GTA1

3. OSWorld-Human

The team constructed OSWorld-Human, a manually annotated version of OSWorld that lists the minimal humanly-perceived steps required to successfully complete a task.

3.1 Human Trajectory Construction

The original task OSWorld only validates the results.

This work build Human Trajectory including necessary steps.

For all applications besides OS, the authors refrain from using any programmatic methods (unless mentioned in the source method) solve the task because the Human user won’t work in this way. Additionally, the steps including some application-specific information such as keyboard shortcuts.

OSWorld-Human contains the same number of examples (369) as the original OSWorld.

3.2 Action Grouping

The authors find that multiple actions can often be performed consecutively in sequence without any change in observation or prediction in between.

e.g. click on a text field, type text, and press <enter>. This is a common action combination.

This means CUA systems can potentially perform one observation and model call for a group of actions.

The authors construct a single-action trajectory as well as a grouped-action trajectory for each task in OSWorld-Human.

These actions can be grouped together because the UI elements (and the coordinates) needed for all actions are present in a single screenshot.

Overall, all applications benefit from grouping;

4. Evaluation

4.1 \(\text{WES}^+\) ( Weighted Efficiency Score)

The OSWorld-Human’s goal is to evaluate CUA systems’ temporal performance.

The authors want to approximate end-to-end latency by measuring how closely an agent performs compared to ground-truth human trajectories.

An easy way to measure this is to compare the minimum expected, human-performed number of steps across all possible trajectories (\(t_{human}\)) to the actual, agent-generated number of steps (\(t_{agent}\)) for a task.

Only looking at efficiency favors an agent that fails a task with fewer steps over one that succeeds with more steps.

The authors propose a new metric for evaluating CUAs: Weighted Efficiency Score (WES):

  • For a task \(t\) that was completed successfully (\(r_t = 1\)), we weight the result based on its efficiency (i.e. \(\frac{t_{human}}{t_{agent}}\)). This is based on the premise that a success in fewer steps is strictly preferable to a success that takes more steps.
  • For a task \(t\) that was completed unsuccessful (\(r_t = 0\)), , this efficiency term is zero.

We compute the per-task efficiency over all n tasks in the dataset to obtain \(\text{WES}^+\): \[ \text{WES}^+ = {\frac{1}{n}}\sum_{t}^n r_t \cdot \frac{t_{human}}{t_{agent}} \] \(\text{WES}^+\) typically ranges from 0 to 1, though it is possible for an agent to complete a task faster than a human (i.e. by leveraging its latent capabilities instead of performing actions on-screen).

  • A score of 0 can mean an agent fails to complete most tasks or it is very inefficient.

  • An agent that scores closer to 1 is both successful and efficient.

4.2 \(\text{WES}\) (I Object)

To penalize agents that waste steps on failed tasks, we apply a global penalty multiplier.

  • Average number of steps taken across all failed tasks: $t_{fail} $
  • Maximum steps allowed: \(S\)
  • The extra penalty multiplier: \(1-\frac{t_{fail}}{S}\) ranges from 0 to 1.
    • Agent stops and outputs FAIL or DONE. If the stop condition is DONE but the answer is incorrect, the \(1 - \frac {t_{fail}}{S}\) represent the extent of how many step is used in vain.
    • A multiplier of 1 means that the agent completes most tasks successfully or fails very quickly.
    • A multiplier approaching 0 means the agent fails to complete most tasks and is very inefficient, exhausting its full step budget on failures.
  • \[ \text{WES} = \text{WES}^+ \cdot \left(1 - \frac{t_{fail}}{S}\right) \]

[!NOTE]

Personal Opinion:

I agree with design of \(\text{WES}^+\) which shows the efficiency of Agent but I disagree with the \(\text{WES}\), because the coefficient is to penalty the agent who fail the task and cost a lot. But what if a task is nearly completed but reaches the turn limits?

I think the penalty coefficient can be more detailed.

5. Conclusion

Motivation:

  • Using Agent to solve real problem is too slowly, for instance:
    • Changing the line spacing of two paragraphs in a document to double-spaced takes 12 minutes for a computer-use agent.
    • However, for a human user with introductory computer experience, this task should take under 30 seconds.

Attribution:

  1. Agent spends too many times on Planning, Reflection and Judging.
  2. As time goes by, the prompt is expanding which influence the latency.
  3. Observation is a influence factor but not the only one.

Metric:

  1. Build a new metric to evaluate the agent’s efficiency.

  2. \[ \begin{aligned} \text{WES}^+ &= {\frac{1}{n}}\sum_{t}^n r_t \cdot \frac{t_{human}}{t_{agent}} \\ \text{WES} &= \text{WES}^+ \cdot \left(1 - \frac{t_{fail}}{S}\right) \end{aligned} \]

Work:

  • Human Trajectory Construction (Single-Action & Group Action); OSWorld-Human contains the same number of examples (369) as the original OSWorld.
  • Action Grouping: The OSWorld-Human notices the phenomenon that some action combination is used frequently. So they introduce the concept of the grouped actions:
    • The action set that can be implemented in single Screenshot, e.g. click on a text field, type text, and press <enter>. This is a common action combination.

Evaluation: