arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.28886cs.CLcs.AIcs.SE
收藏

SANE:针对LLM评判器的自动评分器专用变形测试

SANE: Automated Scorer-Specific Metamorphic Testing for LLM Judges

Cisco Systems(思科系统公司);Anduril Industries(安杜里尔工业公司)

Ethan Ludwick, Yu-Chung Hsiao

AI总结:

SANE是基于智能体的框架,可自动生成评分器专用变形测试,在五个领域中生成的有效测试套件是JRH的3.7倍,能检测JRH未发现的评分器缺陷,且在评判器排名上与人类标注的FaithBench表现高度对齐。

摘要:

LLM评判器越来越多地用于基准评估、模型选择、数据整理和训练,只有当每个评判器对影响其评分标准的变化做出可靠响应时,其决策才有用。现有的可靠性测试方法会对输入进行扰动,且这些扰动对评判器分数具有已知的预期效果。主流的LLM评判器测试工具将人工编写的扰动规则与合成测试生成相结合,将评分器专用规则构思排除在自动化流程之外,这限制了它们仅能使用固定扰动和预先假设的评分器类型。我们提出SANE,这是一个基于智能体的框架,它将随机评估器的行为要求编码为可复用的智能体指令。给定评分器的规格、实现方式和代表性输入,该流程首先识别评分器专用能力,然后自动为每个能力推导扰动规则和预期分数关系。SANE还定义了一个与评分器无关的验证框架,用于生成的评判器测试,它会确定每个规则是否符合评分器意图,以及每个实例化用例是否实现了该规则并支持其预期关系。由于SANE会为每个评分器生成定制的规则清单,因此随着评分器数量的增加,对齐的规则数量也会增长。在五个领域中,SANE生成的有效测试套件数量是评判器可靠性工具(JRH)的3.7倍,且端到端有效性相当,还在每个领域都检测到了评分器缺陷,包括JRH未检测到的专业性和毒性缺陷。在忠实度方面,SANE在评判器排名上实现了较强的人类对齐:其测试套件分数对11个评判器模型的排名与人类标注的FaithBench表现一致(斯皮尔曼相关系数rho=0.852),而JRH则未实现(rho=0.100)。

英文摘要:

LLM judges increasingly mediate benchmark evaluation, model selection, data curation, and training. Their decisions are useful only when each judge responds reliably to changes affecting its scoring criterion. Existing methods for reliability testing perturb inputs with known expected effects on judge scores. Prominent LLM-judge testing harnesses combine human-authored perturbation recipes with synthetic test generation, leaving scorer-specific recipe ideation outside the automated pipeline. This limits their use to fixed perturbations and pre-assumed scorer types. We introduce SANE, an agent-based framework that encodes behavioral requirements for stochastic evaluators as reusable agent instructions. Given a scorer specification, implementation, and representative inputs, the pipeline first identifies scorer-specific capabilities, then automatically derives perturbation recipes and expected score relations for each. SANE also defines a scorer-independent validation framework for generated judge tests. It determines whether each recipe agrees with scorer intent and whether each instantiated case realizes the recipe and supports its expected relation. Because SANE generates a recipe inventory tailored to each scorer, the number of aligned recipes grows as scorers are added. Across five domains, SANE produces 3.7 times as many validated test families as the Judge Reliability Harness (JRH) at comparable end-to-end validity and detects scorer deficiencies in every domain, including professionalism and toxicity, where JRH detects none. On faithfulness, SANE achieves strong human alignment in judge ranking: its test-suite scores rank 11 judge models consistently with human-labeled FaithBench performance (Spearman rho = 0.852), while JRH does not (rho = 0.100).

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

↑