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

FlowEval: Reference-based Evaluation of Generated User Interfaces

Jason Wu, Priyan Vaithilingam, Eldon Schoop, Jeffrey Nichols, Titus BarikarXiv 2026

TL;DR

FlowEval is an automated, reference-based framework for evaluating AI-generated user interfaces (UIs) by comparing their interaction flows against real-world reference websites. By deploying a vision-based computer-use agent to execute tasks on both UIs and calculating trajectory similarity via Word Mover's Distance, FlowEval achieves a near-perfect correlation ($\rho = 0.96$) with human expert judgments, outperforming expensive LLM-as-a-judge baselines.

What Problem Does This Paper Address?

Large Language Models (LLMs) and specialized coding agents are now capable of generating complex, interactive user interfaces from simple text prompts. However, evaluating the quality of these generated UIs remains a massive bottleneck.

Traditional human expert reviews (like usability testing) are highly accurate but slow, expensive, and impossible to scale. Conversely, automated "LLM-as-a-judge" approaches are scalable but suffer from model biases, opacity, and high API costs when processing thousands of lines of code. Crucially, existing automated metrics often evaluate static code or single screenshots, failing to assess whether a UI actually works—meaning, whether a user can successfully complete multi-step interaction flows like ordering food or booking a flight.

Methods

Figure 1: An overview of our evaluation approach. A coding agent generates an output, which is compared against a reference website. A computer use agent (CUA) produces and compares traces between gener- ated and reference UIs.

FlowEval introduces a reference-based evaluation pipeline that tests functionality through execution traces:

  1. UI Generation: Coding agents generate a target UI based on a prompt describing a known reference website.
  2. Trace Generation: Instead of a human tester, FlowEval uses a vision-based Computer Use Agent (CUA)—specifically UI-TARS-1.5-7B—to execute predefined tasks on both the reference website and the AI-generated website. The CUA interacts via mouse and keyboard, recording a sequence of screenshots (interaction traces) up to 50 steps.
  3. Featurization: Screenshots from the traces are converted into low-dimensional embeddings using a UI-tuned CLIP model (UiClip).
  4. Similarity Scoring: The generated trace is compared against the reference trace using three NLP-inspired sequence metrics:
  5. Alignment-based: Dynamic Time Warping (DTW) to map optimal alignment paths.
  6. Overlap-based: eBLEU, a continuous-valued variant of the popular translation metric.
  7. Distribution-based: Word Mover's Distance (WMD), which evaluates the minimal transport cost to transform one trace's distribution of states into another.

Datasets

The authors sourced tasks and reference sites from two prominent autonomous agent navigation benchmarks:

  • WebVoyager: Contains live websites; distilled down to 147 unique, non-overlapping tasks.
  • REAL v2: Provides 12 high-fidelity replicas of stateful websites (essential for reproducible testing of authenticated or transaction-dependent flows), filtered down to 116 final tasks.

Using these tasks, they generated 945 UI outputs across 7 different LLM/coding agent models (including Claude Sonnet 4.5, GPT 5 Codex, Gemini Pro 2.5, and open-source alternatives) to test their evaluation framework.

Key Insights and Ideas

  • Ground-Truth Anchoring: By comparing generated UIs directly to a known good reference rather than letting an LLM judge evaluate in a vacuum, FlowEval bypasses the internal biases, drift, and "hallucinations" typical of reference-free LLM judges.
  • Action Over Aesthetics: Evaluating UIs via vision-based agents interacting with the page captures functional correctness and usability issues that static code analysis or single-screenshot evaluations completely miss.
  • The Power of WMD: Treating interaction traces as a distribution of states and applying Word Mover's Distance (WMD) proved incredibly robust. It captures the essence of whether a task was completed successfully regardless of minor layout variations or differences in step order.

Key Results

The authors conducted an arena-style evaluation, collecting 429 unique pairwise comparisons from human HCI experts to establish a ground-truth Elo ranking of the code generation models.

Models Elo score and rank compared across human ratings, reference-based metrics, and an MLLM judge.
  • Near-Perfect Correlation: FlowEval paired with the WMD metric achieved a remarkable Spearman rank correlation of 0.96 relative to human expert rankings.
  • Outperforming LLM Judges: WMD comfortably beat the state-of-the-art reference-free judge baseline (Claude Opus 4.5), which scored a 0.71 Spearman correlation.
  • Agreement Rate: WMD achieved a 73.0% binary agreement rate with human experts, which is comparable to typical inter-rater reliability among human judges for subjective UI tasks.

Limitations and Future Work

  • Dimensionality of UI Quality: FlowEval focuses strictly on task support (functionality). It does not explicitly measure visual aesthetics, accessibility compliance (e.g., screen-reader compatibility), or performance latency.
  • CUA Dependency: The framework's accuracy relies heavily on the capability of the underlying Computer Use Agent. If a CUA fails a task on a perfectly functional UI due to its own cognitive limitations, it introduces noise into the metric. Future work will explore robustness across diverse, stronger CUA models.
  • One-Shot Constraint: The evaluation currently looks at one-shot UI generation, whereas real-world development involves multi-turn human-in-the-loop iteration.

Summary updated

BibTeX
@misc{wu2026floweval,
  author = {Jason Wu and Priyan Vaithilingam and Eldon Schoop and Jeffrey Nichols and Titus Barik},
  title = {{FlowEval: Reference-based Evaluation of Generated User Interfaces}},
  year = {2026},
  eprint = {2605.04165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.04165},
}
Figure