arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.13091cs.CLcs.AI
收藏

LMUnit: 通过自然语言单元测试进行细粒度评估

LMUnit: Fine-grained Evaluation with Natural Language Unit Tests

Contextual AI(Contextual AI公司);Stanford University(斯坦福大学)

Jon Saad-Falcon, Rajan Vivek, William Berrios, Nandita Shankar Naik, Matija Franklin, Bertie Vidgen, Amanpreet Singh, Douwe Kiela, Shikib Mehri

AI总结:

LMUnit通过自然语言单元测试方法提升语言模型评估的细粒度和准确性,实现评估基准中的最佳性能。

摘要:

随着语言模型成为关键工作流程的核心,评估其行为仍然是一个基本挑战——人类评估成本高且噪声大,而自动化指标只能提供粗略且难以解释的信号。我们引入了自然语言单元测试,这是一种将响应质量分解为显式、可测试标准的范式,并结合了一个统一的评分模型LMUnit,该模型通过跨偏好、直接评分和自然语言理由的多目标训练相结合。通过受控的人类研究,我们证明这种范式显著提高了标注者间的一致性,并使LLM开发流程更加有效。LMUnit在评估基准(FLASK、BigGenBench)上实现了最先进的性能,并在RewardBench上取得了具有竞争力的结果。这些结果验证了我们提出的范式和评分模型,表明了语言模型评估和开发的有前景的发展路径。

英文摘要:

As language models become integral to critical workflows, assessing their behavior remains a fundamental challenge -- human evaluation is costly and noisy, while automated metrics provide only coarse, difficult-to-interpret signals. We introduce natural language unit tests, a paradigm that decomposes response quality into explicit, testable criteria, along with a unified scoring model, LMUnit, which combines multi-objective training across preferences, direct ratings, and natural language rationales. Through controlled human studies, we show this paradigm significantly improves inter-annotator agreement and enables more effective LLM development workflows. LMUnit achieves state-of-the-art performance on evaluation benchmarks (FLASK, BigGenBench) and competitive results on RewardBench. These results validate both our proposed paradigm and scoring model, suggesting a promising path forward for language model evaluation and development.

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

↑