UI2App: Benchmarking Visual Interaction Inference in Executable Web Application Generation
Summary
UI2App is introduced as the first benchmark specifically designed to evaluate "interaction inference" in executable web application generation from image-only UI screenshots. Comprising 327 screenshots organized into 45 state-coherent sets for multi-route web applications, UI2App assesses generated artifacts across four dimensions: executability, navigation reachability, visual fidelity, and interaction inference (IIS). Experiments with six frontier vision-language models revealed a significant capability mismatch; the visual-fidelity leader scored only 7.5 on IIS, ranking fourth and trailing the IIS leader by 5.2x. High-complexity interactions, particularly cross-page state management, remain a pervasive bottleneck, with half of the models scoring exactly zero in this dimension. Overall, the benchmark highlights that inferring complete interaction behavior from static screenshots is a major challenge for current models.
Key takeaway
For Machine Learning Engineers developing or evaluating vision-language models for UI-to-code generation, you must move beyond visual fidelity metrics. Your models should be rigorously tested for interaction inference, particularly for complex cross-route state management, which is a frontier-wide challenge. Prioritize improving functional correctness and state-management complexity to build truly dynamic and usable web applications, rather than just pixel-perfect static facades.
Key insights
Interaction inference from static UI screenshots is a distinct, challenging capability for VLMs, separate from visual fidelity.
Principles
- Visual fidelity does not imply interaction inference capability in web application generation.
- Cross-route state persistence is a critical and widespread bottleneck for current VLMs.
- Admin applications consistently present the highest interaction inference difficulty for models.
Method
UI2App employs an end-to-end pipeline evaluating executability, navigation, visual fidelity, and interaction inference (IIS) via a rubric-based taxonomy across seven interaction categories and three state-management scopes.
In practice
- Prioritize interaction inference capabilities over visual fidelity in VLM development.
- Focus VLM training on complex state management, especially cross-route persistence.
- Implement robust self-debug mechanisms to address scaffold-respect and factuality errors.
Topics
- Web Application Generation
- Vision-Language Models
- Interaction Inference
- UI-to-Code Benchmarking
- Cross-Route State
- Code Generation Evaluation
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.