arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.11498cs.LGcs.CL
收藏

ReLook:基于多模态LLM批评器的视觉强化学习用于智能体Web编码

ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding

LLM Department, Tencent(腾讯大语言模型部门);Peking University(北京大学);Nanjing University(南京大学)

Yuhang Li, Chenchen Zhang, Ruilin Lv, Ao Liu, Ken Deng, Yuanxing Zhang, Jiaheng Liu, Wiggin Zhou, Bo Zhou

AI总结:

ReLook是一个基于视觉的智能体强化学习框架,通过在训练中引入多模态LLM作为视觉批评器提供反馈并采用严格接受规则,在推理时解耦批评器,有效提升了前端代码生成的质量。

摘要:

尽管大型语言模型(LLMs)在算法代码生成方面表现出色,但它们在前端开发中却显得力不从心,因为前端的正确性是通过渲染像素和交互来评判的。我们提出了ReLook,这是一个基于视觉的智能体强化学习框架,它通过调用多模态LLM(MLLM)作为工具,使智能体能够形成一个稳健的“生成-诊断-优化”闭环。在训练过程中,智能体将循环内的MLLM既用作视觉批评器(通过截图对代码进行评分),又用作可操作的视觉反馈来源;针对无效渲染的严格零奖励规则锚定了可渲染性并防止了奖励黑客行为。为了防止行为退化,我们引入了Forced Optimization,这是一种严格的接受规则,仅允许改进性的修订,从而产生单调递增的更优轨迹。在推理阶段,我们解耦了批评器并运行轻量级的无批评器自编辑循环,在保持与基础解码相当的延迟的同时,保留了大部分收益。在三个广泛使用的基准测试中,ReLook在基于视觉的前端代码生成任务上始终优于强大的基线,凸显了智能体感知、视觉奖励以及训练-推理解耦的优势。

英文摘要:

While Large Language Models (LLMs) excel at algorithmic code generation, they struggle with front-end development, where correctness is judged on rendered pixels and interaction. We present ReLook, an agentic, vision-grounded reinforcement learning framework that empowers an agent to close a robust generate--diagnose--refine loop by invoking a multimodal LLM (MLLM) as a tool. During training, the agent uses the MLLM-in-the-loop both as a visual critic--scoring code with screenshots--and as a source of actionable, vision-grounded feedback; a strict zero-reward rule for invalid renders anchors renderability and prevents reward hacking. To prevent behavioral collapse, we introduce Forced Optimization, a strict acceptance rule that admits only improving revisions, yielding monotonically better trajectories. At inference, we decouple the critic and run a lightweight, critic-free self-edit cycle, keeping latency comparable to base decoding while retaining most of the gains. Across three widely used benchmarks, ReLook consistently outperforms strong baselines in vision-grounded front-end code generation, highlighting the benefits of agentic perception, visual rewards, and training-inference decoupling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑