1. Visual reference pool
Licensed templates, conventional synthetic pages, and atypically styled pages provide varied layouts, palettes, typography, components, interactions, and visual character.
RefCraft: Benchmarking Visual-Reference-Conditioned Agents develop new webpages from instructions and visual references.300 tasks · 1–5 reference webpages per task · 8 application domains
A task combines a natural-language instruction with screenshots from one to five reference webpages. The agent must selectively interpret and compose visual properties while implementing the requested functionality; reproducing a single screenshot is not the objective.
Models operate in a shared OpenCode environment. Each agent writes a self-contained HTML page and may render, inspect, and revise intermediate implementations. Browser traces and measurements expose relevant page states; programmatic checks assess deterministic criteria, while a vision-language judge evaluates semantic and perceptual requirements.
Keypoint completion
Mean normalized score across the task’s keypoints.
Core functionality
Minimum completion rate across essential functional goals.
Reference following
Mean adherence across applicable reference groups.
Each task is limited by its weakest dimension. Overall averages these task scores; R is omitted when no reference group applies.
Licensed templates, conventional synthetic pages, and atypically styled pages provide varied layouts, palettes, typography, components, interactions, and visual character.
Each design dimension can copy, adapt, or invert a reference, follow an explicit textual requirement (specify), or remain unconstrained (ignore).
Requirements are decomposed into independently assessable criteria, checked through model review and revised by ten web-development experts.
B Keypoint completion · C Core functionality · R Reference following. Overall is the mean of task-level min(B, C, R), out of 100. Tokens are provider-reported means per task; accounting can differ across providers. Bold marks the best value; underline the second best. Select a column to sort, or a model to inspect its details.
Agents transfer concrete, locally observable attributes more reliably than interactive behavior or coordinated visual character. Selectively adapting a referenced attribute is harder than reproducing, specifying, or avoiding it.
Paper §5.3.1 and Figure 3.
Task score vs. mean expert score
Keypoint label vs. median expert label
Model ranking vs. Arena.AI human preferences ↗
Paper §5.3.3 · Arena snapshot September 24, 2026. The archived comparison of seven shared models recomputes the ranking correlation to ρ = 0.786; the paper reports 0.89 without listing its matched model set. Archived ranking data ↓
If you find RefCraft useful in your research, please consider citing our work.
@misc{wang_refcraft,
title = {RefCraft: Benchmarking Visual-Reference-Conditioned
Agentic Generation through Web Development},
author = {Yuchi Wang and Rongyao Fang and Weihao Yu and
Xilin Wei and Tiancheng Gu and Dingkang Yang and
Hang Zhang and Dayiheng Liu and Hongsheng Li
and Shuai Bai},
note = {Manuscript}
}