Manuscript Offprint

arXiv:2609.02088

Rendering-in-the-Loop: An Execution-Driven Agent for Interactive Web Development

Yilong Guo, Hanqi Chen, Zixiao Ye, Guanzhong Wang, Chen Yu, Zeyu Chen

Abstract

Multimodal large language models have achieved remarkable progress in front-end web development, generating interactive webpages from multimodal references such as screenshots and interaction videos. However, existing work largely emphasizes visual metrics such as aesthetics and layout similarity, while overlooking the more critical validation of interactive functionality. We present RILA, an execution-driven agent that puts browser rendering in the loop, iteratively editing generated code from runtime interaction feedback. RILA introduces an Action Interaction Verification (AIV) module that replays the reference interaction trajectory on the generated webpage to collect grounded execution-aware observations, and an Execution-Aware Rendering Score (ERS) that jointly measures interaction correctness and visual fidelity to guide iterative optimization. We further build an execution-verified data synthesis pipeline that produces diverse, high-quality training data, offering gains complementary to inference-time optimization. On IWR-Bench, RILA consistently improves both interaction and visual fidelity across foundation models. Notably, with our training pipeline, RILA lifts the compact Qwen3.5-9B backbone from 40.40% to 57.52%, surpassing far larger one-shot generators, including the 1T-parameter Kimi-K2.6 (55.61%) and the proprietary GPT-5.5 (55.74%).

Introduction

Recent advances in multimodal large language models (MLLMs) have significantly advanced web development from diverse inputs, including textual instructions, screenshots, sketches (Li, Zhang, and Yang 2025), and interaction videos (Xiao et al. 2025; Chen et al. 2026). Powered by strong coding models (Hui et al. 2024; Guo et al. 2024), modern systems can synthesize complete web applications consisting of HTML, CSS, JavaScript, and external assets with impressive visual quality, while coding agents further improve generation through iterative tool use and environment interaction (Yang et al. 2024). These advances have made automatic web development increasingly practical for interface prototyping and application development.

Despite this progress, a usable webpage must satisfy two distinct requirements, visual fidelity (how closely the rendered page matches the reference appearance) and interaction correctness (whether the page behaves correctly under user actions), which are often optimized in isolation, and improving one does not guarantee the other. Existing multimodal

Figure

Figure 1: Final scores on IWR-Bench. RILA improves every backbone over its one-shot output. Notably, the fine-tuned Qwen3.5-9B †^{\dagger} refined by RILA (57.52) surpasses every one-shot generator, including the proprietary GPT-5.5 (55.74) and the 1T-parameter Kimi-K2.6 (55.61). Green numbers denote the gain over one-shot generation.

web development methods optimize static rendering quality through one-shot generation, and dedicated front-end repair approaches (Yuan et al. 2025) audit that rendering against design guidelines; both produce pages that look plausible but break under user actions. Software engineering agents instead repair code from compiler errors, unit tests, or textual logs; lacking any rendering feedback, they can restore functional behavior yet leave the visual result poor. Either way, the decisive failures surface only during runtime interaction, such as broken event bindings, incorrect state transitions, failed resource loading, and unexpected rendering after user operations; such failures erode interaction correctness yet stay invisible to the static screenshots or textual logs on which these methods rely.

To address this, we propose RILA (Rendering-In-the-Loop Agent), an execution-driven agent that closes the loop between browser execution and code editing through runtime interaction feedback. At its core, an Action Interaction Verification (AIV) module runs each generated webpage in a real browser, replays the reference interaction trajectory,

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

verifies every action, and records the rendering state after each step. From these observations, an Execution-Aware Rendering Score (ERS) jointly measures interaction correctness and visual fidelity, and is used to retain the historically best implementation so that unsuccessful edits do not cause degradation. In parallel, a multimodal critique model turns the runtime observations into structured fix suggestions. Guided by this critique, RILA localizes and repairs faulty code with software engineering (SWE) tools, iterating over execution–critique–edit cycles.

Beyond inference-time refinement, we build an execution-verified data synthesis pipeline that jointly samples webpage domains, interaction capabilities, and visual styles under compatibility constraints and validates every sample through browser execution, yielding diverse and reliable training data. On IWR-Bench, RILA consistently improves both interaction and visual fidelity across foundation models, and this data proves complementary. Even with only a compact critique model, RILA substantially improves the fine-tuned Qwen3.5-9B over one-shot generation; and under a stronger critique (Kimi-K2.6), this compact 9B model surpasses both the 1T-parameter Kimi-K2.6 and the proprietary GPT-5.5 that generate webpages in one shot (Figure 1), indicating that execution-driven refinement with a strong critique can offset a large gap in code-model scale.

Our contributions are summarized as follows:

  • We propose RILA, an execution-driven agent that puts browser rendering in the loop, refining webpages through an execution–critique–edit cycle driven by runtime interaction feedback rather than static screenshots or textual logs.
  • We turn browser execution into a verifiable optimization signal via an Action Interaction Verification (AIV) module that replays reference trajectories and checks each action, and an Execution-Aware Rendering Score (ERS) that measures interaction correctness and visual fidelity to guide critique generation and best-implementation selection.
  • We propose an execution-verified data synthesis pipeline that samples from a compatibility-constrained taxonomy of domains, interaction capabilities, and visual styles and retains only browser-verified pages. Extensive experiments on IWR-Bench show that RILA consistently improves webpage generation quality across backbone models, with this data providing further complementary gains.

References (31)