Datasets:
|
Download README.md from sc3484/macbench: direct link, hf CLI and curl.
- Browser
- Download file 8.6 kB
-
https://huggingface.co/datasets/sc3484/macbench/resolve/main/README.md
- Command line
-
hf download hf://datasets/sc3484/macbench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/sc3484/macbench/resolve/main/README.md
8.6 kB
| license: cc-by-nc-4.0 | |
| language: | |
| - en | |
| pretty_name: MacBench | |
| size_categories: | |
| - 10K<n<100K | |
| task_categories: | |
| - image-text-to-text | |
| tags: | |
| - gui-grounding | |
| - computer-use | |
| - gui-agents | |
| - accessibility | |
| - macos | |
| - benchmark | |
| configs: | |
| - config_name: commands | |
| data_files: | |
| - split: test | |
| path: commands.jsonl | |
| default: true | |
| - config_name: screens | |
| data_files: | |
| - split: test | |
| path: screens.jsonl | |
| # MacBench | |
| A grounding benchmark for macOS. Each item gives a screenshot and a command, such as "hit the little plus at the top". The task is to pick the element to act on, or to say the target isn't on screen. | |
| - **Scale:** 20,752 commands on 1,583 screens. 791 screens come from 25 native apps and 792 from 25 websites in Safari. | |
| - **Inputs:** every screen ships with its screenshot, the window's and menu bar's accessibility (AX) tree, reference OCR and reference detector boxes. | |
| - **Tracks:** the same commands are scored *pixels only* and *AX + pixels*. | |
| ## What's in it | |
| | | | | |
| |---|---| | |
| | Screens (native / web) | 1,583 (791 / 792) | | |
| | Commands | 20,752 | | |
| | Target is an AX element | 14,422 | | |
| | Target is OCR text with no AX element | 1,412 | | |
| | Target is an icon only a detector finds | 2,511 | | |
| | Target is a menu-bar item | 86 | | |
| | Target not on screen ("none") | 2,321 | | |
| | Ambiguous (should ask the user) | 910 | | |
| | Irreversible (send, delete, buy, ...) | 98 | | |
| | Human-checked sample (stratified, 60 per target kind) | 287 (of 300; the rest were removed by later filters), all judged correct | | |
| | Cross-checked by a model from another family (OpenAI, via Codex CLI) | every command; 362 flagged commands removed | | |
| **Apps:** | |
| - Native: Audio MIDI Setup, Blender, Cyberduck, Disk Utility, Firefox, Font Book, GIMP, GnuCash, Godot, HandBrake, Hex Fiend, IINA, Journal, Keka, Krita, MuseScore 4, Music, Notes, Photo Booth, Pinta, Print Center, Safari, Sequel Ace, Transmission, Weather. | |
| - Sites: apnews.com, bbc.com, bestbuy.com, britannica.com, coursera.org, gutenberg.org, irs.gov, khanacademy.org, medlineplus.gov, merriam-webster.com, nih.gov, noaa.gov, npr.org, nps.gov, pbs.org, reddit.com, smithsonianmag.com, ssa.gov, ted.com, theguardian.com, w3schools.com, wikihow.com, wikipedia.org, ycombinator.com, youtube.com. | |
| **Collection:** | |
| - Screens were captured on throwaway cloud Macs seeded with made-up people, notes and mail (`@example.com`, 555 numbers). | |
| - Websites were browsed logged out. | |
| - These apps are the held-out split of an app-level split, so a model trained on the other apps has seen none of them. | |
| ## Files | |
| - `images/<screen>.jpg`: the frontmost window, composited with any sheet, popover and the menu bar. | |
| - `screens.jsonl`, one row per screen: | |
| - app, kind (native/web), title, URL, window frame, scale, light/dark mode; | |
| - `ax`: role, label, context, enabled, box; | |
| - `ocr`: reference Apple Vision lines; | |
| - `detector`: reference GUI-detector boxes; | |
| - `options`: the merged reference list. | |
| - `commands.jsonl`, one row per command: | |
| - `targets`: every acceptable option id; | |
| - `target_boxes`: in screen points and `box_px` image pixels; | |
| - `target_kind`, `action`, `text`, `text_source`; | |
| - `absent`, `ambiguous`, `irreversible`; | |
| - `tracks`, `verified`. | |
| - `list_ax.jsonl`, `list_pixels.jsonl`: ready-made option lists for list-picking models. Each item is a state plus choice questions. | |
| - `captions_deployed.jsonl`: the deployed captioner's name for every detector box, used in the lists. | |
| - `annotations_icon_captions.jsonl`: the labelling pass's icon captions. These are annotations only, not inputs. | |
| - `tools/score.py`: the scorer. | |
| - `tools/label_guide.txt`: the labelling guide. | |
| **Boxes** are `[x, y, w, h]`. Screen points map to image pixels as `((x - frame_x) * scale, (y - frame_y) * scale, w * scale, h * scale)`, and `box_px` is precomputed. | |
| ## Tracks and scoring | |
| 1. **Pixels only:** screenshot plus command. The reference OCR and detector output may be used, but not AX. This covers 20,666 commands; menu-bar targets are left out because a closed menu has no pixels. | |
| 2. **AX + pixels:** screenshot plus command plus the AX tree. All 20,752 commands. | |
| A system answers with an image point, an option id, or "none". | |
| - A **point** is right if it falls inside any target box. | |
| - An **option id** is right if it is in `targets`. | |
| - On an absent command, only "none" is right. | |
| Every command in a track counts. Commands a system gives no answer for count as wrong, and so do pixels-track targets that the ready-made list doesn't contain (1,249 commands). This way, list and point systems share one denominator. | |
| ``` | |
| python tools/score.py --bench . --track ax --pred predictions.jsonl | |
| ``` | |
| Predictions can take any of these shapes, one per line: | |
| - `{"id", "option"}` | |
| - `{"id", "point": [x, y] | null}` | |
| - Kev/Jev's `{"id", "prediction": {"probabilities": {"element": {...}}}}` | |
| Report: | |
| - element accuracy, overall and by target kind; | |
| - abstention accuracy on absent commands, and the false-abstain rate; | |
| - accuracy on ambiguous and irreversible commands; | |
| - calibration, if your system gives a confidence. | |
| Icon items in the ready-made lists are named by a deployed captioner (`captions_deployed.jsonl`), not by the labelling pass. The labelling pass's icon captions are in `annotations_icon_captions.jsonl`; they echo the commands, so never feed them to a system. If you use your own captioner, say so. | |
| ## Baselines | |
| Element accuracy (%). List models use the ready-made lists; screenshot models answer with points and are scored on a 4,342-command subset drawn at random within each target kind (ids in the code repo, `results/v1.2/screenshot_subset_ids.txt`). Fine-tuned models were trained on the 80 training apps, none of which is in MacBench. | |
| | Track | Model | All | AX | OCR | Icon | None | | |
| |---|---|---|---|---|---|---| | |
| | AX + pixels | Kev-0.8B | 53.9 | 60.8 | 70.3 | 16.8 | 40.5 | | |
| | AX + pixels | Kev-0.8B fine-tuned | 81.4 | 87.2 | 73.7 | 46.3 | 87.9 | | |
| | Pixels only | Kev-0.8B | 46.1 | 52.4 | 53.0 | 19.5 | 31.5 | | |
| | Pixels only | Kev-0.8B fine-tuned | 65.2 | 65.3 | 58.6 | 46.0 | 89.1 | | |
| | Pixels only (subset) | Qwen3-VL-2B-Instruct | 60.3 | 70.4 | 59.7 | 54.3 | 4.7 | | |
| | Pixels only (subset) | Qwen3-VL-2B fine-tuned (LoRA) | 84.6 | 90.0 | 58.3 | 84.9 | 66.7 | | |
| | Pixels only (subset) | UI-Venus-1.5-2B | 82.0 | 90.1 | 66.1 | 85.6 | 37.6 | | |
| | Pixels only (subset) | UI-Venus-1.5-2B fine-tuned (LoRA) | 85.3 | 90.5 | 62.7 | 87.0 | 64.9 | | |
| Code for collection, building, scoring and fine-tuning: https://github.com/akhilc08/macbench | |
| ## Privacy | |
| Before release every string and screenshot was scanned for emails, phone numbers, IP addresses, cloud host names, UUIDs, serial numbers, names and faces. | |
| **Redacted** (text replaced, boxes blurred): | |
| - browser (Safari, Firefox) tab, sidebar and suggestion entries that could point at a private person or place: every search-results tab, user-profile tab and address-bar suggestion, plus street addresses, real-estate listings and @handles; | |
| - volume and snapshot UUIDs; | |
| - cloud host names and the sandbox account name; | |
| - public IP addresses. | |
| **Removed:** screens showing personal profiles with emails, a system dialog naming the collection machine, an adult forum page, bot-check and error pages, and screens where another window covered the app. | |
| **Left as on the live site:** public figures in news content, public business phone numbers, and public usernames on public pages. If you find something that should not be here, open an issue and it will be removed in a point release. | |
| ## Versions | |
| - **v1.2**: 17 new held-out apps and sites (Hex Fiend, Pinta, Sequel Ace and 14 websites) from a fifth collection run; 1,583 screens (791 native / 792 web), 20,752 commands; the 46 new commands the cross-check flagged removed. | |
| - **v1.1**: 10 more apps and sites (moved from the never-trained validation split), 1,350 screens, 17,432 commands; screens whose sheet or toolbar was not captured and targets not drawn in the image removed; 316 commands removed after the cross-model check; stricter browser redaction. | |
| - **v1.0**: 1,045 screens, 14,369 commands, 23 apps and sites. | |
| ## License | |
| - Labels, metadata and lists: CC BY-NC 4.0. | |
| - Scorer: MIT. | |
| - Screenshots show Apple's interface and third-party websites. Those rights stay with their owners, and the screenshots are included for non-commercial research only. | |
| ## Citation | |
| ``` | |
| @inproceedings{macbench2027, | |
| title = {MacBench: Grounding Commands on macOS Apps and the Web, with Accessibility and Pixel Tracks}, | |
| author = {Chilaka, Saiakhil}, | |
| booktitle = {Companion Proceedings of the ACM Web Conference 2027}, | |
| year = {2027} | |
| } | |
| ``` | |