arXiv:2610.26826cs.CLOct 2026

Manuscript Offprint

arXiv:2610.26826

RefCraft: Benchmarking Visual-Reference-Conditioned Agentic Generation through Web Development

Yuchi Wang, Rongyao Fang, Weihao Yu, Xilin Wei, Tiancheng Gu, Dingkang Yang, Hang Zhang, Dayiheng Liu, Hongsheng Li, Shuai Bai

Yuchi Wang 12∗^{12*}, Rongyao Fang 2^{2}, Weihao Yu 23^{23}, Xilin Wei 24^{24}, Tiancheng Gu 25^{25}, Dingkang Yang 14^{14}, Hang Zhang 2^{2}, Dayiheng Liu 2^{2}, Hongsheng Li 1†^{1\dagger}, Shuai Bai 2†^{2\dagger}

1^{1}MMLab, CUHK 2^{2}Alibaba Token Foundry 3^{3}The Chinese University of Hong Kong

4^{4}Fudan University 5^{5}The University of Sydney

wangyuchi369@gmail.com hslie@ee.cuhk.edu.hk

baishuai.bs@alibaba-inc.com

https://wangyuchi369.github.io/refcraft/

(a) Benchmark Composition

Figure

Reference-use intensity

LoosePartialStrongNear-copy
7.3%37.0%34.3%21.3%

Reference webpages per task

12345
10.0%20.0%26.0%24.0%20.0%

(b) Reference-Guided Task Example

Illustrative task: create a news timeline from A + B

A Color palette

New webpage

B Split layout

A new view of the city.

Local views are changing the places we share.

Read the story ...

Coding agent

Code

Inspect

Revise

(c) Model Score vs. Token Use

Figure 1: Overview of RefCraft. (a) RefCraft spans a broad spectrum of practical web development domains and features visual references that vary in intensity and source. (b) An example task in which a new webpage borrows the color palette from source webpage A and the layout from source webpage B. The agent may iteratively render, inspect, and revise the webpage. (c) Overall score versus reported token usage for nine frontier models. The dashed line denotes the Pareto frontier. The results show that the task remains far from solved.

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 gener-

  • Work done during an internship at Alibaba ATH.

†^{\dagger} Hongsheng Li and Shuai Bai are corresponding authors.

ating 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.

1 INTRODUCTION

“Creativity is just connecting things.”

— Steve Jobs

Recently, as coding and co-working assistants, (M)LLMs have transformed numerous fields and substantially improved productivity (OpenAI, 2026b; Anthropic, 2026a; Qwen Team, 2026b; Kimi et al., 2026). This success has further fueled growing enthusiasm among researchers and practitioners for extending large models to an even broader range of practical tasks, as exemplified by GPT-6 Astra (OpenAI, 2026d) and Claude Fable 5.1 (Anthropic, 2026b). When we scrutinize some common productivity tasks, we find that visual references play an important role: designers may first study successful examples before developing new proposals and then continuously refine their designs through visual inspection, while CAD engineers examine existing parts to design new ones that fit and function properly. This observation highlights that, for both human experts and AI agents, basic tool use and coding skills alone do not encompass the full spectrum of productive capabilities—effectively incorporating visual reference and inspection into agentic generation is equally essential.

To evaluate this important yet subtle capability, we ground it in a focused and readily verifiable testbed: webpage development, which is ubiquitous in everyday digital life and produces highly visual, easily assessable outputs. In fact, a growing body of benchmarks has investigated general webpage-related tasks, but most either use natural-language instructions without visual references (Lu et al., 2026; Zhu et al., 2025) or focus solely on reconstruction tasks, such as reconstructing webpages from screenshots (Yun et al., 2024; Wang et al., 2026) or videos (Chen et al., 2026). More recent studies have broadened the evaluation setting by incorporating interactive operations (Xiao et al., 2025a) or introducing webpage editing and repair tasks (Lei et al., 2026). Nevertheless, we argue that these prior efforts remain academically idealized and differ considerably from common real-world development workflows. In practice, frontend developers and users often begin with a rough design idea and browse existing websites for inspiration. For instance, a user may adopt the appealing layout of a reference website while redesigning its fonts, content, and other elements for a new purpose. Fully reconstructing an existing website is a far less common or representative task. To bridge this gap and, more importantly, evaluate whether AI agents can effectively conduct such a visual-reference-conditioned agentic generation process, we introduce RefCraft.

RefCraft comprises 300 diverse and realistic multimodal queries spanning a broad range of web development scenarios. Each query combines a natural-language user instruction with screenshots from one to five reference webpages, and models solve the task in an inspect-and-iterate setting where they can render and refine intermediate outputs. As shown in Fig. 1, RefCraft varies substantially in domains, reference composition, and the intended degree of reference utilization—from closely following a reference to selectively adapting its overall style or specific local elements. Evaluating such tasks requires moving beyond conventional target-based evaluation: a query may admit multiple valid solutions, and visual similarity alone cannot determine whether the references have been used appropriately. We therefore decompose each complex and subtle query into a verified set of key points, turning open-ended requirements into independently assessable criteria. Moreover, webpages are both visual and interactive artifacts, encompassing subjective perceptual qualities as well as objective executable behaviors. We thus adopt a dual-track evaluation protocol that uses programmatic judges for deterministic requirements and a VLM judge for perceptual and semantic ones. Together, these designs enable reliable evaluation of whether a generated webpage fulfills the user's intended use of visual references, rather than merely resembling them.

We benchmark 9 frontier (M)LLMs on RefCraft under a unified harness. Despite access to visual references and an inspect-and-iterate workflow, the best-performing system, GPT-6 Astra (OpenAI, 2026d), achieves an overall score of only 52.12, leaving substantial room for improvement. Component-level results reveal that models often satisfy many individual requirements but fail to realize an essential reference relationship or core behavior. To assess the reliability of RefCraft, we compare its model ranking with both our expert human study and the human-preference leaderboard of Arena.AI 1^{1}, finding strong agreement with both. These findings indicate that current agents can reproduce salient visual attributes but still struggle to translate instruction-dependent reference relationships into coherent designs—precisely the capability that matters to human users.

References (39)