File size: 6,773 Bytes
22adad9 bd56990 22adad9 2ee80d2 22adad9 bd56990 22adad9 bd56990 22adad9 59d8b56 22adad9 28179b6 22adad9 bd56990 22adad9 bd56990 22adad9 bd56990 22adad9 2ee80d2 22adad9 bd56990 22adad9 bd56990 22adad9 bd56990 | 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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | ---
pretty_name: WebChain
license: cc-by-4.0
license_link: LICENSE
size_categories:
- 10K<n<100K
tags:
- web-agent
- gui-agent
- multimodal
- trajectory
- grounding
- planning
- accessibility-tree
- screenshot
- reinforcement-learning
---
# WebChain
WebChain is a large-scale, human-annotated dataset of real-world web interaction trajectories for training and evaluating GUI agents and web agents. WebChain contains **31,725 trajectories**, **317,993 steps**, and **428 unique domains**. Its core contribution is a **Triple Alignment** of visual context, structural context, and action grounding, enabling supervision for both **spatial grounding** and **long-horizon planning**.
Paper: https://arxiv.org/abs/2603.05295
## Open access and license
WebChain is released under the [Creative Commons Attribution 4.0 International License](LICENSE). See the license and its [official legal code](https://creativecommons.org/licenses/by/4.0/legalcode) for the applicable permissions and attribution requirements. This repository is public and ungated.
## What is included
This repository contains the WebChain dataset in both raw and processed forms. Some raw modalities in the public release are partially available, especially full-page screenshots.
```text
WebChain/
├── README.md
├── LICENSE
├── .gitattributes
├── raw/
│ ├── json/
│ ├── img/
│ └── full_screenshots/
└── processed/
├── high_parquet/
└── low_parquet/
```
### Directory overview
- `raw/json/`: raw trajectory and step-level structured records.
- `raw/img/`: viewport-level images or cropped visual observations used for step grounding.
- `raw/full_screenshots/`: partial full-page screenshots aligned with step context where available. This folder is not exhaustive and does not provide full coverage for all trajectories or steps.
- `processed/high_parquet/`: processed Parquet files for high-level task formulation. Samples typically contain the user instruction, prior action history, and the current page screenshot, targeting planning and long-horizon decision-making.
- `processed/low_parquet/`: processed Parquet files for low-level step formulation. Samples typically contain the current-step instruction together with the current observation, targeting grounding and action localization.
## Dataset summary
- **31,725** human-verified trajectories
- **317,993** total interaction steps
- **428** unique domains
- Average trajectory length: **10.02** steps
- Average task duration: **1.07 minutes**
Each step may include the following modalities, depending on the release split and format:
- **Visual context**: viewport screenshots and, where available, full-page screenshots
- **Structural context**: HTML snapshots and Accessibility (AX) tree snapshots
- **Precise grounding**: element bounding boxes, CSS selectors, and pixel coordinates
- **Behavioral annotations**: action type, input text when applicable, timestamps
- **Reasoning traces**: Chain-of-Thought style rationales where included in the release
## Data construction
The paper describes a three-stage construction pipeline:
1. **Constraint-Based Task Synthesis**
- Structured functionality extraction from target websites
- Schema-constrained task generation to avoid unsupported or hallucinated tasks
2. **Human-in-the-Loop Trajectory Collection**
- Human annotators execute tasks on real websites
- Each step records state, action, and rich alignment signals
3. **Post-processing Contextual Enrichment**
- Visual grounding densification
- Synthetic rationale generation for planning supervision
## Intended use
WebChain is intended for research and education in:
- Web agents
- GUI grounding
- Vision-Language-Action (VLA) models
- Long-horizon planning
- Agentic reasoning on websites
- Dataset and benchmark research for multimodal agents
Potential use cases include:
- Supervised fine-tuning (SFT)
- Reward modeling or post-training
- Long-horizon planning experiments
- Benchmarking on held-out web interaction tasks
## Format note
This repository is not intended to be parsed as a single standardized Hugging Face dataset repository with one unified schema across all files. The recommended programmatic entry point is the processed Parquet release under `processed/high_parquet/` and `processed/low_parquet/`.
The raw folders are released as downloadable research artifacts and may require custom parsing scripts depending on the specific subdirectory and file type.
## Quick start
### Option A: load processed Parquet files directly
```python
from datasets import load_dataset
# Example: read all parquet shards in the higher-fidelity release
hf_repo = "webagentlab/webchain-legacy"
dataset = load_dataset(
"parquet",
data_files={
"train": f"hf://datasets/{hf_repo}/processed/high_parquet/*.parquet"
}
)
print(dataset)
print(dataset["train"][0])
```
### Option B: iterate over downloaded local shards
```python
import glob
import pandas as pd
files = sorted(glob.glob("processed/high_parquet/*.parquet"))
print(f"Found {len(files)} parquet shards")
sample = pd.read_parquet(files[0])
print(sample.head())
print(sample.columns.tolist())
```
### Option C: access raw files
You can clone or download the repository and work directly with:
- `raw/json/` for raw structured records
- `raw/img/` for viewport images
- `raw/full_screenshots/` for partial page-level images
## Example available fields
A step in WebChain may align the following information:
- task / instruction
- trajectory id
- step id
- action type
- action arguments
- click coordinates
- target bounding box
- input text
- CSS selector
- XPath or DOM reference
- AX tree snapshot
- screenshot path
- full screenshot path
- timestamp
- optional rationale / CoT
## Responsible use
You agree not to:
- attempt to re-identify individuals from the dataset;
- use the dataset in ways that violate privacy, platform rules, or applicable law;
- use or redistribute the dataset contrary to the LICENSE.
Please report any privacy, redaction, or policy issue to the maintainers.
## Citation
If you use WebChain in your work, please cite:
```bibtex
@article{fan2026webchain,
title = {WebChain: A Large-Scale Human-Annotated Dataset of Real-World Web Interaction Traces},
author = {Sicheng Fan and Rui Wan and Yifei Leng and Gaoning Liang and Li Ling and Yanyi Shang and Dehan Kong},
journal = {arXiv preprint arXiv:2603.05295},
year = {2026}
}
```
## Contact
For questions, please contact:
- **Fan Sicheng**
- **sicheng_fan@foxmail.com**
## Acknowledgements
We thank the annotators, collaborators, and institutions who supported the creation and release of WebChain.
|