# CaptchaArena
A Large-Scale, Fine-Grained Dataset for Training Computer-Use Agents on Interactive CAPTCHAs
Zhenhao Zhang1,*, Zhaoyu Fan2, Haohan Ying3, Jingwen Hu3
Hancen Fan1, Junhao Zhou4, Zitian Chen1, Linchao Zhu2,†
1Columbia University · 2Zhejiang University
3University of Rochester · 4University of Illinois at Urbana-Champaign
*Project lead · †Corresponding author
English · 简体中文
 This repository is the code behind CaptchaArena: the Flask server that renders the 20 CAPTCHA types as live web pages at a fixed 1280x1080 viewport and grades answers, the screenshot-only computer-use agent that plays them, a gallery for browsing the dataset on its live pages, and a viewer for agent runs and trajectories. The dataset is on the Hugging Face Hub (see [Getting the data](#getting-the-data)); the CaptchaAgent weights are at [ZHEN-04/CaptchaAgent](https://huggingface.co/ZHEN-04/CaptchaAgent). The dataset design, CaptchaAgent and all results are in the [paper](https://arxiv.org/abs/2609.31957). ## Table of Contents - [Updates](#updates) - [Ground truth](#ground-truth) - [Repository layout](#repository-layout) - [Setup](#setup) - [Getting the data](#getting-the-data) - [Running it](#running-it) - [Browsing the dataset](#browsing-the-dataset) - [Release status](#release-status) - [Citation](#citation) - [License](#license) - [Credits](#credits) ## Updates - **2026-09-29** — Model release: the CaptchaAgent weights, [ZHEN-04/CaptchaAgent](https://huggingface.co/ZHEN-04/CaptchaAgent). - **2026-09-25** — Paper released on arXiv: [arXiv:2609.31957](https://arxiv.org/abs/2609.31957). - **2026-08-11** — Trajectory release: the reasoning-annotated trajectories over `Train` / `Val`, [ZHEN-04/CaptchaArena-Trajectories](https://huggingface.co/datasets/ZHEN-04/CaptchaArena-Trajectories). - **2026-08-08** — Code release: the benchmark server, the screenshot agent, the dataset gallery and the trajectory viewer, [X0X0X00/CaptchaArena](https://github.com/X0X0X00/CaptchaArena). - **2026-08-07** — Dataset release: the `Train` / `Val` / `Test` puzzles, [ZHEN-04/CaptchaArena](https://huggingface.co/datasets/ZHEN-04/CaptchaArena). ## Ground truth Every puzzle directory carries two files: - `ground_truth.json` — the answer in its raw form (indices, coordinates, text) with the `tolerance` used when grading it. Irregular targets carry a `mask_path` to a binary mask instead, relative to the puzzle directory: under `answer.valid_area` for `Geometry_Click` and `Pick_Area`, top-level for `Misleading_Click`. White (>127) marks the target — or, for `Misleading_Click`, the character to avoid. - `ground_truth_cu.json` — the same answer written out as agent actions (`answer_cu`): ```jsonc "answer_cu": [ {"action": "click", "arguments": {"x": 619, "y": 132}}, {"action": "click", "arguments": {"x": 640, "y": 924}} ] ``` `answer_cu` is what the `mock` provider replays and submits to the real grader — see [step 3](#3-check-the-data-with-the-mock-provider). An intact split scores 100%. ## Repository layout ``` CaptchaArena/ ├── app.py # Flask server: serves puzzle pages, grades answers ├── agent_frameworks/ │ └── computeruse_cli.py # the screenshot agent (anthropic / openai / google / mock) ├── templates/ static/ # the benchmark page itself ├── gallery/ │ └── app.py # dataset browser: thumbnails + live puzzle pages ├── web/ # React viewer for agent runs and trajectories ├── data/ # where the downloaded dataset goes (see data/README.md) ├── requirements.txt └── Dockerfile ``` ## Setup ```bash pip install -r requirements.txt playwright install chromium ``` The server and the agent both run on Python 3.10+. The server can also run from the bundled `Dockerfile`: the image holds the code and Chromium, and expects the dataset mounted at `/app/data`: ```bash docker build -t captcha-arena . docker run -p 7860:7860 -v "$PWD/data:/app/data" captcha-arena # serves data/Test ``` Pass `-e CAPTCHA_DATA_DIRS=data/Val` to serve another split. ## Getting the data Both datasets are on the Hugging Face Hub, gated and CC BY-NC 4.0 — request access on the dataset page, then `hf auth login`. - **Dataset** — [ZHEN-04/CaptchaArena](https://huggingface.co/datasets/ZHEN-04/CaptchaArena) · images and ground truth for `Train` / `Val` / `Test` - **Trajectories** — [ZHEN-04/CaptchaArena-Trajectories](https://huggingface.co/datasets/ZHEN-04/CaptchaArena-Trajectories) · solved chain-of-thought rollouts over `Train` / `Val`, for fine-tuning ```bash hf download ZHEN-04/CaptchaArena --repo-type dataset --local-dir data ``` One thing the dataset card does not say: the size-suffixed directory name (`Train/Bingo_2100`, `Test/Bingo_200`) is exactly what the API expects as `puzzle_type`, not `Bingo`. See [data/README.md](data/README.md). ## Running it ### 1. Serve the puzzles ```bash CAPTCHA_DATA_DIRS=data/Test python app.py # http://127.0.0.1:7860 ``` Jump straight to one puzzle: ``` http://127.0.0.1:7860/?single_puzzle=true&puzzle_type=Geometry_Click_200&puzzle_id=image1.png ```  ### 2. Point an agent at it ```bash python -m agent_frameworks.computeruse_cli \ --provider openai --model