--- 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//.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//` with a `to_actions(response, width, height)` function that parses its raw reply into pixel actions; then `python score.py --predictions replies.jsonl --adapter ` scores lines of `{"sample_id": ..., "response": ""}`. `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} } ```