RefCraft: Benchmarking Visual-Reference-Conditioned Agentic Generation through Web Development
Organizations: MMLab, CUHK · Alibaba Token Foundry · The Chinese Univerity of Hong Kong · Fudan University ·
Abstract
Beyond basic tool use and coding skills, effectively incorporating visual references into agentic generation is equally essential for applying AI agents to real-world productivity tasks. We study this crucial capability through webpage development, a practical and readily evaluable setting in which existing benchmarks remain largely idealized: they typically focus on reconstructing visual targets or generating webpages from textual instructions alone, overlooking the more common workflow of developing from visual examples. Specifically, we introduce RefCraft, a benchmark comprising 300 realistic multimodal webpage-development tasks that combine natural-language instructions with screenshots from one to five reference webpages. Agents must selectively interpret and utilize these references while rendering, visually inspecting, and iteratively refining their outputs. We evaluate the resulting open-ended artifacts using independently verifiable keypoints and complementary programmatic and VLM judges. Across nine frontier (M)LLMs, the strongest system achieves an overall score of only 52.12 out of 100, revealing that visual-reference-conditioned agentic generation remains a substantial challenge for current models in practical webpage-development settings.
Figures & tables
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Model A | Model B | A win (%) | Tie (%) | B win (%) | |
|---|---|---|---|---|---|
| GPT-6 Astra | Qwen3.8-Max | 3.17 | 38.3 | 24.7 | 37.0 |
| GPT-6 Astra | Grok 4.6 | 3.29 | 42.7 | 21.7 | 35.7 |
| GPT-6 Astra | Kimi K3 | 4.57 | 44.0 | 20.7 | 35.3 |
| GPT-6 Astra | Claude Fable 5 | 7.51 | 46.7 | 20.7 | 32.7 |
| GPT-6 Astra | GLM-5.3 | 9.52 | 47.3 | 23.7 | 29.0 |
| GPT-6 Astra | DeepSeek-V4-Pro | 15.03 | 51.0 | 25.3 | 23.7 |
| Model | Harness | Overall score |
|---|---|---|
| GPT-6 Astra | OpenCode (released) | |
| GPT-6 Astra | Claude Code | |
| GPT-6 Astra | Codex | |
| Kimi K3 | OpenCode (released) | |
| Kimi K3 | Claude Code | |
| Kimi K3 | Codex |
AI Agent Benchmarks
AI agent benchmarks measure how reliably autonomous systems plan, use tools, interact, and complete tasks across controlled and real-world settings.
See all 1,486 papers