2025-10-14 · 专家 · 计算机视觉 · 自然语言处理 · 机器学习 · 数据科学

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

ReLook通过结合视觉感知和强化学习,实现了基于多模态LLM的视觉感知强化学习框架,有效提升了前端代码生成的视觉质量和交互体验。

更新于 2025-10-17。作者:Yuhang Li、Chenchen Zhang、Ruilin Lv、Ao Liu、Ken Deng、Yuanxing Zhang、Jiaheng Liu、Wiggin Zhou、Bo Zhou。

中文摘要

尽管大型语言模型(LLMs)在算法代码生成方面表现出色,但在前端开发领域却面临挑战,因为正确性是通过渲染像素和交互来判断的。我们提出了ReLook,这是一个基于视觉的强化学习框架,通过将多模态语言模型(MLLM)作为工具,使智能体能够通过一个强大的生成-诊断-优化循环来提升自己。在训练过程中,智能体将MLLM作为视觉评论员——用截图评分代码——以及可操作、基于视觉的反馈来源;严格的零奖励规则确保了渲染的可实现性,并防止了奖励黑客行为。为了防止行为崩溃,我们引入了强制优化,这是一个严格的接受规则,只允许改进的修订,从而产生单调递增的轨迹。在推理阶段,我们将评论员与主程序解耦,运行一个轻量级的、无评论员的自我编辑循环,保持延迟与基础解码相当,同时保留大部分收益。在三个广泛使用的基准测试中,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.

解读

一句话总结

ReLook通过结合视觉感知和强化学习,实现了基于多模态LLM的视觉感知强化学习框架,有效提升了前端代码生成的视觉质量和交互体验。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt