用自动化框架提升大模型对代码质量的细粒度评估能力
Automated Validation of LLM-based Evaluators for Software Engineering Artifacts
- 构建渐进降质代码数据集,模拟不同层次的质量变化
- 使大模型评分与预期排序一致性从0.7提升至0.9以上
- 适合需要精细评估代码生成质量的研发团队使用
软件工程中的自动化日益依赖大语言模型(LLMs)生成、评审和评估代码。然而,将LLM作为可靠评估者仍面临挑战:人工评估成本高、主观性强且不可扩展;现有自动化方法难以区分代码质量的细微差异。我们提出REFINE(用于细粒度微妙评估的评估者排名框架),一个用于基准测试基于LLM的评估者的方法。REFINE包含两个模块:层级数据集构建器采用创新生成技术自动合成质量逐级下降的代码样本;评估者测试器通过测量其评分排序与预期顺序的一致性来量化每个评估配置的表现。关键优势是可控性:用户可调节退化粒度,实现从粗略筛选到对细微质量差异的极限压力测试。尽管方法通用,本文聚焦于编码任务,反映实际生产需求。REFINE已集成至IBM内部开发流程,应用于COBOL语言的代码生成、翻译和摘要任务,使用工业级数据。该框架识别出若干使对齐分数从低于0.7提升至超过0.9的LLM评估配置。这些敏感捕捉细微差别的评估器现已被模型训练团队用于支持模型发布决策。
原文摘要 · Abstract (English)
Automation in software engineering increasingly relies on large language models (LLMs) to generate, review, and assess code artifacts. However, establishing LLMs as reliable evaluators remains an open challenge: human evaluations are costly, subjective and non scalable, while existing automated methods fail to discern fine grained variations in artifact quality. We introduce REFINE (Ranking Evaluators for FIne grained Nuanced Evaluation), an automated framework for benchmarking LLM based evaluators across software engineering tasks. REFINE comprises of two modules: Hierarchy Dataset Builder applies novel generation techniques to automatically synthesize artifacts with progressively reduced quality, and Evaluator Tester quantifies each candidate evaluator configuration by measuring how closely its rankings align with expected ordering. A key feature of REFINE is controllability: users can tune the granularity of degradation to progressively refine evaluator configurations, from coarse filtering to stress testing on subtle quality gaps. While the methodology is general, we focus on coding tasks reflecting the practical demands in our production setting. REFINE was integrated into IBM's internal development workflows and applied to code generation, translation, and summarization for COBOL, an enterprise critical programming language, using industrial data. It was used to identify LLM as a Judge configurations that lifted alignment scores from below $0.7$ to above $0.9$ in some coding tasks. These nuance sensitive evaluators are now actively used by model training teams to support model release decisions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。