强化学习的评分标准到代码信用分配

·

研究论文 · 2026/08/31

交互式网页应用生成要求模型根据自然语言请求生成可用的HTML、CSS和JavaScript应用。与常规代码生成不同,应用质量取决于多个面向用户的功能需求,每个需求通常与局部代码区域(如事件处理、状态更新、DOM片段或CSS选择器)相关。标准GRPO将这些结构化结果压缩为单一序列级奖励,并将优势均匀应用于所有token,削弱了信用分配。我们提出Rubric-to-Code Credit Assignment (RCCA),一种强化学习框架,将rubric级功能反馈转化为生成代码上的局部优化信号。RCCA围绕显式功能rubric构建训练任务,使用分层奖励区分格式、源代码、运行时和功能失败,并将评估者生成的文本归因与负责的代码片段和生成的token对齐。由此产生的模型Ling-RCCA-Flash在MiniAppBench上得分41.25,比Ling-3.0-Flash提高32.20分,并略微超过Claude Opus 4.5。在ArtifactsBench上达到76.19,比SFT模型提高4.48分,并在官方ArtifactsBench排行榜设置下以超过GPT-5 3.64分的成绩创下新高,表明可迁移的实现级改进。

该论文针对交互式网页生成中信用分配不足的问题,提出RCCA框架,通过分层奖励和文本归因对齐,显著提升模型性能,并在多个基准上超越现有最强模型,具有实际应用价值。

Interactive web application generation requires models to produce usable HTML, CSS, and JavaScript applications from natural language requests. Unlike conventional code generation, application quality depends on multiple user-facing functional requirements, each often tied to localized code regions such as event handlers, state updates, DOM fragments, or CSS selectors. Standard GRPO collapses these structured outcomes into a single sequence-level reward and applies the resulting advantage uniformly to all tokens, weakening credit assignment. We propose Rubric-to-Code Credit Assignment (RCCA), a reinforcement learning framework that converts rubric-level functional feedback into localized optimization signals over generated code. RCCA builds training tasks around explicit functional rubrics, uses a hierarchical reward to separate format, source-code, runtime, and functional failures, and aligns evaluator-generated textual attributions with responsible code spans and generated tokens. The resulting model, Ling-RCCA-Flash, scores 41.25 on MiniAppBench, improving Ling-3.0-Flash by 32.20 points and slightly surpassing Claude Opus 4.5. It also reaches 76.19 on ArtifactsBench, improving the SFT model by 4.48 points and establishing a new top score under the official ArtifactsBench leaderboard setting by surpassing the GPT-5 score by 3.64 points, suggesting transferable implementation-level gains.

阅读原文

参与讨论