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

UI2App: Benchmarking Visual Interaction Inference in Executable Web Application Generation

Grace Man Chen, Litao Guo, Yifan Wu, Yiyu Chen, Yenchi Tseng, Sicheng Liu, Yuyu Luo, Ying-Cong ChenarXiv 2026

TL;DR

UI2App is a novel benchmark designed to evaluate whether Vision-Language Models (VLMs) can infer and implement underlying application behavior and state management purely from static screenshots. The paper reveals a stark capability mismatch in current frontier models: being able to perfectly replicate a user interface's visual appearance does not mean the model can make that interface functionally interactive.

What Problem Does This Paper Address?

While large language models have become remarkably good at generating code, text-driven development requires highly detailed prompts to specify complex layouts and cross-page logic. Image-to-code paradigms offer a cleaner workflow by allowing models to generate code directly from UI mockups or screenshots.

However, existing benchmarks for image-to-code generation suffer from a major blind spot: they primarily measure visual fidelity (how closely the output matches the pixels or DOM structure of the target). This creates a "frozen façade" problem, where a model generates a visually flawless application that is completely inert under the hood. For example, clicking an "Add to Cart" button might look responsive, but it fails to update the global state or propagate data to the checkout page. UI2App introduces the concept of interaction inference—the ability to recover dynamic application behavior from static visual evidence alone, without any textual or behavioral guidance.

Figure 1: UI2App task overview: visual fidelity and interaction inference are independent capabilities. Same e-commerce screenshots, same action sequence (Add to Cart twice, then navigate to /cart). Claude Sonnet 4.6 reconstructs a fully dynamic application (cart counter increments, cross-route state propagates); Gemini 3.1 Pro Preview produces a higher-fidelity but frozen façade in which every interaction is a no-op. Only IIS catches this dichotomy.

Methods

The authors developed an end-to-end evaluation pipeline that tests generated React + TypeScript applications across four distinct dimensions:

  1. Executability (EXEC): Checks if the codebase successfully builds and renders the home route, including a multi-round self-debug loop to fix compilation errors.
  2. Navigation Reachability (NRS): Measures the fraction of expected routes that are actually reachable via the application's navigation elements.
  3. Visual Fidelity Score (VFS): Uses a judge-free, block-level bipartite matching algorithm to compare the rendered DOM elements against the reference screenshots based on size, text, position, and color.
  4. Interaction Inference Score (IIS): The core novelty of the paper. Instead of checking for exact code matches, IIS uses a rubric-based protocol to evaluate functional correctness across a taxonomy of 7 interaction categories (e.g., toggles, data CRUD, form validation) and 3 architectural scopes:
  5. S1 (UI-state): Local component changes (e.g., expanding a dropdown).
  6. S2 (Data-state): Collection-level transformations (e.g., filtering a list).
  7. S3 (Cross-route persistence): Global state that survives page navigation (e.g., a persistent shopping cart).
Figure 3: The evaluation protocol of UI2App.

Datasets

The paper introduces the UI2App benchmark, which consists of 327 screenshots organized into 45 state-coherent screenshot sets representing runnable, multi-route web applications. These applications were carefully curated from open-source GitHub repositories across 12 diverse categories, including E-commerce, Admin Dashboards, Crypto Exchanges, and Portfolios. Unlike prior benchmarks that use isolated pages or pair images with text/video demonstrations, UI2App provides only static screenshots, forcing the model to deduce the application's state machine implicitly.

Key Insights and Ideas

  • The "Frozen Façade" Dichotomy: Visual reconstruction and interaction realization are completely independent capabilities. Models optimized for visual alignment often fail entirely at backend logic.
  • Cross-Route State is the Frontier Bottleneck: Managing state across client-side route changes (S3 scope) is a massive hurdle. Most models fail to implement global stores (like React Context or Zustand) when prompted with images alone.
  • Non-Gradual Scaling Transitions: When evaluating model scaling (using the Qwen2.5-VL family), code executability doesn't improve linearly. Instead, it exhibits a sharp "phase transition," jumping from near-total failure at 32B parameters to functional competence at 72B.

Key Results

The authors benchmarked six frontier models, revealing a massive gap between the visual leaders and the interaction leaders:

  • Claude Sonnet 4.6 dominated the interaction metrics, leading the pack with an overall IIS of 39.3 and demonstrating a strong ability to wire up functional state machines (e.g., CartContext).
  • Gemini 3.1 Pro Preview won on visual fidelity (78.1 VFS), yet it achieved an IIS of only 7.5 (trailing Claude by 5.2×). It consistently produced beautiful but completely non-functional "no-op" interfaces.
  • Pervasive S3 Failures: Half of the evaluated models (Gemini, Qwen3.5, and GLM-4.6V) scored exactly zero on cross-route state persistence, proving that tracking data across pages remains an unsolved challenge for current VLMs.
Figure 4: IIS per-cell heatmap. Per-(category, model) success rate (×100, capped, zero-imputation) over 7 categories × 6 baselines; rows grouped by typical scope (S1/S2/S3); columns ordered by overall IIS.

Limitations and Future Work

The primary limitation of UI2App is its reliance on human annotation for the final behavioral judgments (NRS and IIS). Because automated runtime probes cannot reliably determine if structurally diverse code satisfies the same semantic interaction rubric, expert verification is still required. The authors note that developing fully automated, interaction-aware visual evaluation tools is a critical direction for future work.

Summary updated

BibTeX
@misc{chen2026ui,
  author = {Grace Man Chen and Litao Guo and Yifan Wu and Yiyu Chen and Yenchi Tseng and Sicheng Liu and Yuyu Luo and Ying-Cong Chen},
  title = {{UI2App: Benchmarking Visual Interaction Inference in Executable Web Application Generation}},
  year = {2026},
  eprint = {2607.06306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.06306},
}
Figure