Datasets:
File size: 6,982 Bytes
fa1c809 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | ---
license: cc-by-4.0
language:
- en
pretty_name: GUI-LongDep
size_categories:
- n<1K
task_categories:
- image-text-to-text
tags:
- gui-agent
- computer-use
- long-context
- benchmark
configs:
- config_name: default
data_files:
- split: test
path: data/test.jsonl
---
# GUI-LongDep: A Long-Range Dependency Benchmark for GUI Agents
GUI-LongDep tests whether a GUI agent uses its long interaction history. Each of the **264
samples** is one step of a real desktop trajectory. The correct action at that step needs
information that was shown **only in an earlier screenshot**, at least 5 steps back, and appears
nowhere in the recent screenshots, the instruction or the action text. Scoring is deterministic
(`score.py`, no LLM judge).
Paper: [SparseGUI: Accelerating Long-Horizon GUI Agents with Learned Sparse Attention](https://arxiv.org/pdf/2612.02762).
Code: [github.com/MichelleMa8/SparseGUI](https://github.com/MichelleMa8/SparseGUI).
See the paper for how the benchmark was built and for full results.
## Data sources
All screenshots, instructions and trajectories come from **two public datasets**. We selected the
steps, truncated each trajectory after its last benchmark step, added structured pixel actions
next to the upstream action code and added the scoring annotations. Screenshots are
byte-identical to upstream.
| Source | License | Samples | Trajectories |
|---|---|---:|---:|
| [nvidia/ProCUA-SFT](https://huggingface.co/datasets/nvidia/ProCUA-SFT) | CC BY 4.0 | 250 | 147 |
| [xlangai/AgentNet](https://huggingface.co/datasets/xlangai/AgentNet) | MIT | 14 | 9 |
## Files
```
data/test.jsonl 264 samples: traj_id, step, gold_action, requirements, evidence, ...
data/trajectories.jsonl 156 trajectories: instruction, steps
images/<traj_key>/<t>.png 4,006 screenshots, 1920x1080
gui_longdep.py loader (standard library only)
score.py scorer (standard library only)
adapters/evocua/ example adapter: EvoCUA prompt and reply parsing (prompt needs Pillow)
LICENSE, NOTICE licenses and upstream attributions
```
The data does not depend on any model's prompt or output format. Each trajectory step has:
| Field | Content |
|---|---|
| `image` | screenshot before the action |
| `description` | the action in natural language |
| `actions` | the action as a list of structured actions (below), coordinates in **pixels** |
| `code` | the upstream action code as recorded (pyautogui; AgentNet uses 0–1 coordinates) |
`gold_action` of a sample uses the same action format:
| `action` | Fields |
|---|---|
| `left_click`, `right_click`, `double_click`, `triple_click`, `mouse_move` | `coordinate` [x, y] |
| `left_click_drag` | `coordinate` (end point; starts at the current pointer position), `duration` |
| `type` | `text` |
| `key` | `keys` (pressed together, e.g. `["ctrl", "c"]`) |
| `key_down`, `key_up` | `keys` |
| `scroll` | `pixels` (amount as in `pyautogui.scroll`: positive up, negative down; at the pointer position) |
| `wait` | `time` (seconds) |
## Usage
For a sample (`traj_id`, `step` = *t*), give the model the instruction, the history of steps
0 … *t*−1 and screenshot *t*, and let it predict the action at step *t*. How the history is shown
(screenshots, descriptions, actions) is up to the model's own prompt format.
```python
from gui_longdep import GUILongDep # run from the dataset folder
bench = GUILongDep(".")
for sample in bench.samples:
task = bench.task(sample) # instruction, history (steps 0..t-1), screenshot (step t)
... # build your prompt, run the model
```
Convert each prediction to pixel actions and write one line per sample,
`{"sample_id": ..., "actions": [...]}`, then score:
```bash
python score.py --predictions preds.jsonl --out report.json
python score.py --self-check # gold actions score 264/264
```
A sample is correct if the first predicted action has the gold action type and every entry in
`requirements` passes. Only the remembered content is checked (typed text, a clicked region or
keys), not the exact wording or coordinates of the gold action.
**Adapters.** To support a model, add `adapters/<name>/` with a `to_actions(response, width,
height)` function that parses its raw reply into pixel actions; then
`python score.py --predictions replies.jsonl --adapter <name>` scores lines of
`{"sample_id": ..., "response": "<raw reply>"}`. `adapters/evocua` is the adapter for the
EvoCUA agent used in the paper. It also builds the exact EvoCUA request:
```python
from adapters.evocua import EvoCUAPrompter
prompter = EvoCUAPrompter(".")
messages = prompter.messages(prompter.bench.samples[0], history="full") # or "trunc4"
```
## License
- **Data** (`data/`, `images/`): CC BY 4.0. The AgentNet portion is used under the MIT License; its
notice is reproduced in `NOTICE`. Keep `NOTICE` with every copy.
- **Code** (`gui_longdep.py`, `score.py`, `adapters/`): Apache-2.0. `adapters/evocua/osworld/`
is vendored from OSWorld-V2.
- AgentNet asks users to respect the privacy of anyone shown in the data and not to infringe
intellectual property. These terms also apply to the AgentNet samples here.
## Citation
Please cite our paper **and the two source datasets**:
```bibtex
@misc{sparsegui2026,
title = {SparseGUI: Accelerating Long-Horizon GUI Agents with Learned Sparse Attention},
year = {2026},
eprint = {2612.02762},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2612.02762}
}
@misc{jung2026procuasfttechnicalreport,
title = {ProCUA-SFT Technical Report},
author = {Jaehun Jung and Ximing Lu and Brandon Cui and Muhammad Khalifa and Shaokun Zhang and Hao Zhang and Jin Xu and Amala Sanjay Deshmukh and Karan Sapra and Andrew Tao and Yejin Choi and Jan Kautz and Mingjie Liu and Yi Dong},
year = {2026},
eprint = {2606.17321},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2606.17321}
}
@misc{wang2025opencuaopenfoundationscomputeruse,
title = {OpenCUA: Open Foundations for Computer-Use Agents},
author = {Xinyuan Wang and Bowen Wang and Dunjie Lu and Junlin Yang and Tianbao Xie and Junli Wang and Jiaqi Deng and Xiaole Guo and Yiheng Xu and Chen Henry Wu and Zhennan Shen and Zhuokai Li and Ryan Li and Xiaochuan Li and Junda Chen and Boyuan Zheng and Peihang Li and Fangyu Lei and Ruisheng Cao and Yeqiao Fu and Dongchan Shin and Martin Shin and Jiarui Hu and Yuyan Wang and Jixuan Chen and Yuxiao Ye and Danyang Zhang and Dikang Du and Hao Hu and Huarong Chen and Zaida Zhou and Haotian Yao and Ziwei Chen and Qizheng Gu and Yipu Wang and Heng Wang and Diyi Yang and Victor Zhong and Flood Sung and Y. Charles and Zhilin Yang and Tao Yu},
year = {2025},
eprint = {2508.09123},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2508.09123}
}
```
|