arXiv:2608.22390cs.CLAug 2026

Manuscript Offprint

arXiv:2608.22390

SchemaGUI: A Schema-Driven Benchmark for Controllable GUI Generation Evaluation

Jiarui Dong, Yin Cai, Zhouhong Gu, Chenmou Wu, Ci Tao, Yiran Chen, Jialing Li, Xiaoran Shi, Juntao Zhang, Zhijun Fang

Abstract

Large language models (LLMs) have demonstrated strong potential in graphical user interface (GUI) generation, but reliable evaluation remains challenging due to uncontrolled data distributions, noisy annotations, and limited layout scenario coverage. To address this, we propose SchemaGUI, a template-based benchmark for controllable GUI generation evaluation. By synthesizing paired natural language instructions and deterministic functional references from parameterized interface schemas, SchemaGUI can generate thousands of deterministically annotated tasks in seconds without human labeling. Based on 1,000 evaluated instances per scenario and language across six representative bilingual scenarios, we benchmark five mainstream models, including the Qwen3.5 family, Qwen3-Coder-30B, and DeepSeek-R1. Our extensive analysis reveals three key insights. First, precise geometric spatial control remains an important bottleneck; while scaling Qwen3.5 from 4B to 27B improves Schema Feasibility from 91.56% to 99.63%, the Geometry score improves more modestly (from 67.05% to 75.30%). Second, generation difficulty is highly sensitive to layout complexity, with current LLMs excelling at simple sequential arrangements but suffering severe coordinate drift in dense grids and multi-region compositions. Third, thinking mode increases token consumption while generally reducing GUI Score, particularly for smaller models. Our code is available at github.com/xdong2002/SchemaGUI.

1 Introduction

Large Language Models (LLMs) have achieved substantial progress in Graphical User Interface (GUI) generation. Early frameworks, such as pix2code (Beltramelli, 2017) and Sketch2Code (Robinson, 2019), demonstrated the feasibility of end-to-end generation by translating screenshots or hand-drawn sketches into code. With the advent of modern multimodal models, approaches like Design2Code (Si et al., 2025) and LayoutGPT (Feng et al., 2023) have pushed the generation targets toward high-fidelity web pages and layouts, while WAFFLE (Liang et al., 2026), ScreenCoder (Jiang et al., 2025), and UICopilot (Gui et al., 2025) have advanced structural alignment, modular reasoning, and functional synthesis. Consequently, generated outputs have evolved from visually similar mockups to fully structured, interactive interfaces that can be rendered in a browser.

Evaluating the GUI generation model requires a benchmark dataset that satisfies two fundamental criteria: comprehensive scenario coverage and clean individual samples. As illustrated in Figure 1, current benchmarks fall short on both counts. One approach relies on web crawling and manual annotation, which produces uncontrolled samples, limited scenario diversity, and high annotation costs, making large-scale evaluation uncontrolled. Furthermore, the high manual annotation costs make scaling this approach unsustainable (Gu et al., 2024). However, these synthetic samples inherit model hallucinations and biases, leading to unreliable evaluation results. Another approach uses LLMs to generate data at scale, but the synthetic samples inherit model noise, hallucinations, and biases, making the evaluation targets inherently unclean. This unstable data quality and coverage ultimately make the model comparisons unreliable. What GUI evaluation lacks is a dataset that

Figure

Figure 1: Comparison of different data construction paradigms for GUI generation evaluation. (Left) Web-Crawled: data distribution is uncontrolled with expensive manual annotations. (Middle) LLM-Synthesized: the data distribution remains unknown while outputs suffer from model noise and hallucinated references. (Right) SchemaGUI (Ours): parametric slot configurations enable enumerable distributions and deterministic, exact annotations.

is coverage-controlled, clean per sample, and scalable. Figure 1 contrasts existing data-construction paradigms with SchemaGUI.

To address this, we propose SchemaGUI, a template-based framework for automatically generating GUI evaluation data. SchemaGUI covers six common interface types, including calculator, login form, music player, document editor, image editor, and information card, with adjustable layouts, components, and text. Each configuration produces two paired outputs: a natural language task description and a component-wise annotation listing positions, sizes, and text. Using this method, we generated a dataset of 1,000 tasks with bilingual (Chinese-English) instructions and cross-backend validation. Models are asked to produce outputs in the same structured format, allowing line-by-line comparison with the reference. The process can generate more than 10,000 samples in seconds, with all annotations derived directly from the template, without relying on human labeling or model outputs.

Based on this dataset, comprising 6,000 evaluation instances per language and 12,000 bilingual instances for each evaluated model, we conducted a systematic evaluation of five mainstream large language models: Qwen3.5-4B, Qwen3.5-9B, Qwen3.5-27B, Qwen3-Coder-30B, and DeepSeek-R1. The experimental results reveal three key insights. First, precise geometric spatial control remains an important challenge for current models. As the model size scales from Qwen3.5-4B to 27B, its average Schema Feasibility increases from 91.56% to 99.63%, while its average Geometry score improves more modestly from 67.05% to 75.30%. Second, generation difficulty is highly sensitive to layout complexity. Existing models perform better on simple linear layouts but experience substantial performance degradation in scenarios involving dense components (e.g., calculators) or multi-region combinations. Finally, thinking mode negatively affects GUI generation performance in the evaluated Qwen3.5 models. Enabling thinking mode for Qwen3.5-27B reduces the Overall GUI Score by 9.72 percentage points in EN and 12.36 percentage points in ZH while substantially increasing response-token consumption.

References (19)