File size: 2,192 Bytes
febee59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
base_model:
- meituan/EvoCUA-8B-20260105
tags:
- gui-agent
- computer-use
- sparse-attention
- long-context
datasets:
- nvidia/ProCUA-SFT
---

# SparseGUI Indexer

Learned token indexers for **decode-time sparse attention** in long-horizon GUI agents. For each
decode query, the Indexer selects which prompt tokens attention keeps: the top-B tokens by its score,
plus a few fixed always-on positions and the tokens generated in the current turn. Prefill stays
dense.

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 the method, training and results.

## Checkpoints

There is one folder per backbone. You also need the backbone model.

| Folder | Backbone | Budget B |
|---|---|---:|
| [`evocua-8b-20260105/`](evocua-8b-20260105) | [meituan/EvoCUA-8B-20260105](https://huggingface.co/meituan/EvoCUA-8B-20260105) | 2048 |

Each folder contains `model.safetensors`, `config.json` (dimensions, budget, always-on
positions) and a short `README.md`. `indexer.py` at the top level works for every folder.

## Usage

```python
from indexer import Indexer      # needs torch, safetensors, huggingface_hub
idx = Indexer.from_pretrained("M-Ma/SparseGUI-Indexer", subfolder="evocua-8b-20260105")
kt = idx.keys(k_post)                       # post-RoPE keys [L, n_kv_heads, head_dim]; cache per layer
kept = idx.select(q_post, kt, prompt_len)   # post-RoPE query [n_q_heads, head_dim] -> kept positions
```

`from_pretrained` downloads only the requested folder. The fast inference runtime (prefix cache +
CUDA graph) is in the code repository.

## License

Apache-2.0. The weights were trained on attention statistics of the backbone over ProCUA-SFT
trajectories (CC BY 4.0, NVIDIA) and contain no ProCUA-SFT data.

## Citation

```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}
}
```