arXiv:2610.28610cs.SEOct 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2610.28610

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

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

JINGYU XIAO, The Chinese University of Hong Kong, China

DASEN DAI, The Chinese University of Hong Kong, China

YUXUAN WAN, The Chinese University of Hong Kong, China

JEN-TSE HUANG, Johns Hopkins University, USA

YINTONG HUO*, Singapore Management University, Singapore

HONGYU ZHANG, Chongqing University, China

MICHAEL R. LYU, The Chinese University of Hong Kong, China

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 failure-attributed 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.4×.

CCS Concepts: • Software and its engineering → Automatic programming; • Computing methodologies → Artificial intelligence.

Additional Key Words and Phrases: Multimodal Large Language Models, Code Generation, Web Development

*Yintong Huo is the corresponding author.

Authors' Contact Information: Jingyu Xiao, The Chinese University of Hong Kong, Hong Kong, China, jyxiao@link.cuhk.edu.hk; Dasen Dai, The Chinese University of Hong Kong, Hong Kong, China, daidasen@link.cuhk.edu.hk; Yuxuan Wan, The Chinese University of Hong Kong, Hong Kong, China, yxwan9@cse.cuhk.edu.hk; Jen-tse Huang, Johns Hopkins University, Baltimore, USA, jhuan236@jh.edu; Yintong Huo, Singapore Management University, Singapore, Singapore, ythuo@smu.edu.sg; Hongyu Zhang, Chongqing University, Chongqing, China, hongyujohn@gmail.com; Michael R. Lyu, The Chinese University of Hong Kong, Hong Kong, China, lyu@cse.cuhk.edu.hk.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

Conference acronym 'XX, Woodstock, NY

© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM ISBN 978-1-4503-XXXX-X/2018/06

https://doi.org/XXXXXXX.XXXXXXX

Jingyu Xiao et al.

ACM Reference Format:

Jingyu Xiao, Dasen Dai, Yuxuan Wan, Jen-tse Huang, Yintong Huo, Hongyu Zhang, and Michael R. Lyu. 2018. InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement Learning. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 21 pages. https://doi.org/XXXXXXX.XXXXXXX

References (18)