arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.00754cs.SEcs.LG
收藏

Themis: 训练鲁棒的多语言代码奖励模型以实现灵活的多标准评分

Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoring

UKP Lab, TU Darmstadt and National Research Center for Applied Cybersecurity ATHENE(UKP实验室,德累斯顿理工大学及应用网络安全国家研究中心ATHENE)

Indraneil Paul, Goran Glavaš, Iryna Gurevych

AI总结:

本文提出Themis-CodeRewardBench基准,评估多语言多标准代码奖励模型,训练了Themis-RM系列模型,展示了其在多语言迁移和多标准训练中的优势。

摘要:

奖励模型(RMs)已成为语言模型(LM)后训练流程中的不可或缺部分,用于政策对齐和测试时扩展。然而,现有研究在代码生成中的应用较为有限,主要集中在执行反馈。本文探讨了多语言、多标准代码RMs的训练和评估。我们首先编译了Themis-CodeRewardBench基准,用于评估代码RMs在五个偏好维度和八种编程语言上的性能,其中我们对50多种代码、数学和通用RMs进行了分析。观察到当前RMs在功能性正确性评分之外的有限能力,我们开发了Themis-CodePreference,这是目前最大的开源代码偏好集合(超过350万对偏好),并用其训练Themis-RM,即一系列多语言代码奖励模型,用于灵活的多标准评分,参数规模从6亿到320亿不等。我们的实验和消融研究显示了积极的扩展趋势,以及在训练多样化偏好时的强跨语言迁移能力,以及多标准训练在可靠代码奖励建模中的重要性。

英文摘要:

Reward models (RMs) have become an indispensable fixture of the language model (LM) post-training playbook, enabling policy alignment and test-time scaling. Research on the application of RMs in code generation, however, has been comparatively sparse, with existing work largely focusing on execution feedback. This choice constrains post-training to optimizing functional correctness over self-contained executable code. In this work, we examine the training and evaluation of multilingual, multi-criteria code RMs. To this end, we first compile Themis-CodeRewardBench, a benchmark to evaluate code RMs across five preference dimensions (i.e., criteria) and eight programming languages, on which we profile 50+ code, math, and general-purpose RMs. Observing the limited proficiency of current RMs beyond scoring for functional correctness, we develop Themis-CodePreference, the largest open-source collection of code preferences to date (more than 350k preference pairs), and use it to train Themis-RM, a suite of multilingual code reward models for flexible multi-criteria scoring, ranging in size from 600M to 32B parameters. Our experiments and ablations demonstrate positive scaling trends, strong cross-lingual transfer when training on diverse preferences, and the importance of multi-criteria training for reliable code reward modeling.

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

↑