NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

WebRenderBench: Enhancing Web Interface Generation through Layout-Style Consistency and Reinforcement Learning

Peichao Lai, Jinhui Zhuang, Kexuan Zhang, Ningchang Xiong, Shengjie Wang, Yanwei Xu, Chong Chen, Yilei Wang, Bin CuiarXiv 2025 · OpenReview

Abstract

Automating the conversion of UI images into web code is a critical task for front-end development and rapid prototyping. Advances in multimodal large language models (MLLMs) have made WebUI-to-Code increasingly feasible, yet existing benchmarks remain limited in data diversity and evaluation reliability. To address these issues, we present WebRenderBench, a large-scale benchmark of 45.1k webpages collected from real-world portal sites, offering greater diversity, complexity, and realism than prior benchmarks. We further propose a novel evaluation metric that measures layout and style consistency from the final rendered pages. Unlike vision-based methods that rely on costly LLM reasoning or structure-based comparisons vulnerable to noise and asymmetry, our approach enables more efficient, objective, and reliable UI quality assessment. Finally, we introduce the Automated Layout and Style Inspection Agent (ALISA), which integrates this metric into reinforcement learning as a reward signal to enhance training on crawled asymmetric webpages. Experiments show that ALISA significantly boosts generation performance, achieving state-of-the-art results across multiple metrics.

Introduction: The Challenge of Code Asymmetry

Converting a UI design image into functional HTML/CSS code is a long-standing goal in front-end engineering. While Multimodal Large Language Models (MLLMs) have shown promise, they are hindered by "code asymmetry." Traditional evaluation metrics like BLEU or Jaccard compare the underlying code text. However, web development allows for vast structural variation; two entirely different HTML snippets can produce identical visual outputs. Conversely, vision-based metrics like CLIP often lack the precision to detect subtle but critical layout shifts or style discrepancies.

Code asymmetry illustrates how LLM-generated code often differs structurally from ground truth code despite representing the same visual elements.

Methodology: ALISA and Visual Reward Signals

To overcome these limitations, we propose a closed-loop training and evaluation system centered on the Automated Layout and Style Inspection Agent (ALISA). Instead of relying on text-matching, ALISA evaluates the rendered output of generated code using three key metrics:

  • Relative Layout Difference (RDA): Measures spatial accuracy by checking if elements reside in the correct quadrants.
  • Group-wise Difference (GDA): Evaluates the alignment of element groups, such as navigation bars or grids.
  • Style Difference (SDA): Quantifies visual consistency in colors, fonts, and border radii.

ALISA utilizes these metrics as a reward signal within a Reinforcement Learning (RL) framework. This allows the model to learn from the visual fidelity of its output rather than merely imitating potentially noisy or "polluted" crawled code.

WebRenderBench: A Real-World Dataset

Existing benchmarks often rely on synthetic data that lacks the complexity of the live web. We introduce WebRenderBench, a dataset of 45.1k webpages crawled from real-world portal sites. These pages are categorized by "Group Count," a metric for structural complexity.

Element Group Count Distribution shows that WebRenderBench provides a much broader range of webpage complexities compared to existing datasets.

As shown in the distribution above, WebRenderBench captures a significantly higher degree of diversity and DOM depth, ranging from simple landing pages to dense, element-heavy corporate portals.

Comparative Performance Analysis

Our experiments demonstrate that prioritizing layout consistency over raw text imitation yields superior results. The ALISA-enhanced Qwen2.5-VL-7B model achieved state-of-the-art performance, notably surpassing GPT-4o-mini in layout accuracy (RDA) across various complexity tiers. On simpler pages, the RDA score improved from 13.13% to 33.55% after RL training. Human evaluations confirmed these findings, with developers rating ALISA-generated pages higher in both layout and content accuracy.

Conclusion and Future Work

WebRenderBench and the ALISA agent represent a significant step toward reliable automated web development. By shifting the focus from code-text similarity to rendered visual consistency, we bypass the noise inherent in real-world web data. Future research will address the "complexity ceiling" for extremely dense pages (Group Count > 400) and extend the framework to support dynamic content, such as interactive elements and animations.

Summary updated

BibTeX
@misc{lai2025webrenderbench,
  author = {Peichao Lai and Jinhui Zhuang and Kexuan Zhang and Ningchang Xiong and Shengjie Wang and Yanwei Xu and Chong Chen and Yilei Wang and Bin Cui},
  title = {{WebRenderBench: Enhancing Web Interface Generation through Layout-Style Consistency and Reinforcement Learning}},
  year = {2025},
  eprint = {2510.04097},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04097},
}
Figure