1D-Bench: A Benchmark for Iterative UI Code Generation with Visual Feedback in Real-World

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Xu, Qiao, Yu, Yipeng, Feng, Chengxiao, Liu, Xu
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915810828615680
author Xu, Qiao
Yu, Yipeng
Feng, Chengxiao
Liu, Xu
author_facet Xu, Qiao
Yu, Yipeng
Feng, Chengxiao
Liu, Xu
contents Design-to-code translates high-fidelity UI designs into executable front-end implementations, but progress remains hard to compare due to inconsistent datasets, toolchains, and evaluation protocols. We introduce 1D-Bench, a benchmark grounded in real e-commerce workflows, where each instance provides a reference rendering and an exported intermediate representation that may contain extraction errors. 1D is short for one day, representing the efficient completion of design-to-code tasks in less than one day. Models take both as input, using the intermediate representation as structural cues while being evaluated against the reference rendering, which tests robustness to intermediate representation defects rather than literal adherence. 1D-Bench requires generating an executable React codebase under a fixed toolchain with an explicit component hierarchy, and defines a multi-round setting in which models iteratively apply component-level edits using execution feedback. Experiments on commercial and open-weight multimodal models show that iterative editing generally improves final performance by increasing rendering success and often improving visual similarity. We further conduct a pilot study on post-training with synthetic repair trajectories and reinforcement learning based editing, and observe limited and unstable gains that may stem from sparse terminal rewards and high-variance file-level updates.
format Preprint
id arxiv_https___arxiv_org_abs_2602_18548
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle 1D-Bench: A Benchmark for Iterative UI Code Generation with Visual Feedback in Real-World
Xu, Qiao
Yu, Yipeng
Feng, Chengxiao
Liu, Xu
Software Engineering
Artificial Intelligence
Design-to-code translates high-fidelity UI designs into executable front-end implementations, but progress remains hard to compare due to inconsistent datasets, toolchains, and evaluation protocols. We introduce 1D-Bench, a benchmark grounded in real e-commerce workflows, where each instance provides a reference rendering and an exported intermediate representation that may contain extraction errors. 1D is short for one day, representing the efficient completion of design-to-code tasks in less than one day. Models take both as input, using the intermediate representation as structural cues while being evaluated against the reference rendering, which tests robustness to intermediate representation defects rather than literal adherence. 1D-Bench requires generating an executable React codebase under a fixed toolchain with an explicit component hierarchy, and defines a multi-round setting in which models iteratively apply component-level edits using execution feedback. Experiments on commercial and open-weight multimodal models show that iterative editing generally improves final performance by increasing rendering success and often improving visual similarity. We further conduct a pilot study on post-training with synthetic repair trajectories and reinforcement learning based editing, and observe limited and unstable gains that may stem from sparse terminal rewards and high-variance file-level updates.
title 1D-Bench: A Benchmark for Iterative UI Code Generation with Visual Feedback in Real-World
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2602.18548