# InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement Learning

DevFeed: [InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement Learning](<https://devfeed.tech/articles/interwebcoder-learning-interactive-webpage-generation-from-executable-tests-via-reinforcement-learning-93725.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.28610>)

Author: Jingyu Xiao, Dasen Dai, Yuxuan Wan, Jen-tse Huang, Yintong Huo, Hongyu Zhang, Michael R. Lyu

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [grpo](<https://devfeed.tech/topics/grpo.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-verification](<https://devfeed.tech/tags/agent-verification.md>), [appearance](<https://devfeed.tech/tags/appearance.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [data](<https://devfeed.tech/tags/data.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [errors](<https://devfeed.tech/tags/errors.md>), [execution](<https://devfeed.tech/tags/execution.md>), [external](<https://devfeed.tech/tags/external.md>), [fast](<https://devfeed.tech/tags/fast.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [generation](<https://devfeed.tech/tags/generation.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [learning](<https://devfeed.tech/tags/learning.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

InterWebCoder trains interactive webpage generation against executable tests, using recorded interaction trajectories to synthesize self-contained page code and test scripts. Runtime evidence guides iterative repair of either the page or its tests. Training combines test-ID-weighted supervised fine-tuning with group-relative policy optimization, rewarding test pass rates and visual similarity across interface states instead of relying on GUI-agent verification. The abstract reports 1,736 verified samples from 2,058 tasks (84.35% success). With a 9B backbone, it scores 48.54 on IWR-Bench and 48.42 on Vision2Web, outperforming 30B-level models and Gemini-3.7-Flash and remaining competitive with Claude-Sonnet-5. It also reports over 97% lower reward-computation latency, no external MLLM verification costs, and up to 1.4x faster end-to-end training.

## Source excerpt

arXiv:2610.28610v1 Announce Type: new Abstract: Interactive webpages underpin modern applications, but reproducing both their visual appearance and multi-step behavior remains challenging for multimodal large language models (MLLMs). Scalable training data must capture user actions, state transitions, and expected outcomes, while real-world webpage code is often entangled with irrelevant scripts and external dependencies. Moreover, existing GUI-agent-based verification provides slow and potentially unstable functional feedback. To address these challenges, we propose InterWebCoder, an efficient framework for interactive webpage code generation. InterWebCoder introduces a Test-Specification-Guided and Execution-Verified Data Synthesis pipeline that records real-world interaction trajectories and synthesizes self-contained webpage code with executable test scripts. A failureattributed repair mechanism uses runtime evidence to locate and iteratively fix errors in either the webpage code or test script. We then combine test-ID-weighted supervised fine-tuning with group-relative policy optimization, directly optimizing functional correctness and visual fidelity using test pass rates and state-level visual similarity. This replaces costly GUI-agent verification with fast, reproducible executable feedback. Our pipeline produces 1,736 verified samples from 2,058 tasks, achieving an 84.35% synthesis success rate. On IWR-Bench and Vision2Web, InterWebCoder achieves final scores of 48.54 and 48.42 with a 9B backbone, outperforming 30B-level models and Gemini-3.7-Flash while remaining competitive with Claude-Sonnet-5. It reduces reward-computation latency by over 97%, eliminates external MLLM verification costs, and accelerates end-to-end training by up to 1.4x.