TL;DR
While large language models (LLMs) have become remarkably adept at generating code that compiles and looks pristine, do the buttons and sliders actually work? This paper introduces I-WebGenBench, a first-of-its-kind benchmark designed to evaluate whether LLM-generated scientific web applications possess true, event-driven interactivity. The authors reveal a stark "compilation–interaction gap," showing that code that runs perfectly often produces completely non-responsive user interfaces.
What Problem Does This Paper Address?
Complex scientific concepts—like optimization dynamics, chemical kinetics, or economic equilibria—are inherently parameter-sensitive and best understood through hands-on, real-time exploration. While frontier LLMs can generate complete web applications from natural language descriptions, existing evaluation frameworks fall short. Code benchmarks like HumanEval or SWE-bench focus purely on algorithmic correctness or bug-fixing, while front-end design-to-code benchmarks only assess static visual reconstruction.
Consequently, there has been no systematic, reliable method to evaluate whether an LLM-generated interface actually responds to user events. This paper addresses this gap by decoupling an application's ability to compile from its ability to interact dynamically with a user.
Methods
The authors design an automated evaluation pipeline that moves beyond static code analysis into dynamic runtime verification:
- Controlled Build & Launch: The generated application is built and deployed in an isolated environment to compute the Build Success Rate (BSR).
- Rendered Page Analysis: A headless browser (Playwright) traverses the DOM to enumerate all interactive elements (buttons, sliders, text inputs).
- Interaction Probe: The probe executes semantically valid user actions on these elements. Simultaneously, a
MutationObservermonitors the DOM for any structural or attribute mutations, computing the Interaction Rate (IR). - VLM-as-a-Judge: To evaluate higher-level semantic properties, a Vision-Language Model reviews the interaction specification alongside a chronological sequence of screenshots to score the app on a 100-point scale across dimensions like semantic alignment, visual aesthetics, and interaction fidelity.
Datasets
The paper introduces the I-WebGenBench dataset, which consists of 201 curated tasks spanning five scientific domains: Biology, Chemistry, Computer Science, Economics, and Human-Computer Interaction (HCI).
Unlike repository-patching benchmarks, I-WebGenBench requires models to construct complete, multi-file applications from scratch based on paper-derived specifications. The dataset was seeded by PhD-level annotators and scaled using a calibrated prompting pipeline followed by a rigorous expert-review stage.
Key Insights and Ideas
- The Illusion of Functionality: Visual quality and functional interactivity are orthogonal. Models frequently generate highly polished, structurally complete dashboards featuring complex charts and sliders that are completely "dead inside" (0% Interaction Rate).
- The Goldilocks Zone of State Management: Interactivity correlates strongly with state complexity. Applications with 3–8 reactive state variables achieve the highest scores. Too few variables mean the app lacks dynamic bindings; too many variables overwhelm the LLM's reasoning, causing state-tracking failures.
- Architectural Affordances: The choice of layout heavily influences functional success. Applications utilizing a sidebar layout consistently outperform non-sidebar alternatives, as the sidebar structure naturally guides the LLM to implement clean view-switching and state-management logic.
- Visual Habits vs. Logic: LLMs exhibit a strong "visual habit," defaulting to light-themed academic aesthetics in up to 97% of cases (e.g., GPT-5.4). However, this stylistic preference is purely cosmetic and does not correlate with the model's ability to implement sound underlying interaction logic.
Key Results
The authors benchmarked a diverse suite of proprietary models, open-source code models, and agent frameworks:
- The Compilation-Interaction Gap: Across almost all models, there is a massive drop-off from BSR to IR. For instance, while models like Qwen-3.5 achieve a near-perfect 100% Build Success Rate, their Interaction Rate plummets significantly lower, highlighting a failure to translate structural generation into event-driven behavior.
- GPT-5.4 Dominates: GPT-5.4 achieved the highest overall performance across all domains with an average score of 79.4, demonstrating superior capabilities in generating visually coherent and functionally reactive applications.
- Agents Bridge the Gap: The API-based agent PaperVoyager (powered by Gemini-3.1) demonstrated a highly balanced profile (65.9 overall score), proving that system-level orchestration and modular code assembly help mitigate interaction failures.
Limitations and Future Work
While I-WebGenBench establishes a robust foundation for interactive code evaluation, the authors note several limitations:
- Scope of Applications: The benchmark currently excludes highly complex web environments, such as collaborative multi-user systems, long-running backend simulations, and highly specialized scientific workflows.
- Evaluation Bias: The qualitative scoring relies on a VLM-as-a-judge protocol, which may introduce subtle, subjective biases regarding visual aesthetics and educational value.
- Model Coverage: Due to budget and API constraints, certain frontier models (such as the Claude 3.5 suite) were not included in the initial evaluation.
Summary updated