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

超越盲区:用于缓解基于LLM评估缺陷的分析提示

Beyond Blind Spots: Analytic Hints for Mitigating LLM-Based Evaluation Pitfalls

Ora Nova Fandina(奥拉诺瓦·法丁纳);Eitan Farchi(埃itan·法奇);Shmulik Froimovich(什mulik·弗罗伊米奇);Raviv Gal(拉维夫·加尔);Wesam Ibraheem(韦萨姆·伊布拉希姆);Rami Katan(拉米·卡坦);Alice Podolsky(艾丽斯·波德洛斯基)

Ora Nova Fandina, Eitan Farchi, Shmulik Froimovich, Raviv Gal, Wesam Ibraheem, Rami Katan, Alice Podolsky

AI总结:

本文提出了一种分析提示方法,通过结合LLM和分析检查器,提高代码评估的可靠性,减少LLM的盲区。

摘要:

大型语言模型正越来越多地被部署为评判者(LaaJ)在代码生成管道中。尽管在可扩展性方面具有吸引力,但LaaJ倾向于忽略领域特定的问题,这引发了对其在关键评估任务中可靠性的问题。为了更好地理解这些限制,我们考察了LaaJ在具体工业用例中的行为:通过COBOL代码生成进行遗留代码现代化。在这种情况下,我们发现即使部署在生产环境中的LaaJ也可能遗漏领域关键性错误,揭示了其评估能力中的一致盲区。为了更好地理解这些盲区,我们分析了生成的COBOL程序及其相关的LaaJ判断,借助专家知识构建了一个初步的分类法。基于这一分类法,我们开发了一个轻量级的分析检查器工具,该工具可以标记超过30个在实践中观察到的领域特定问题。我们使用其输出作为分析提示,动态地将其注入到评判者的提示中,以促使LaaJ重新审视其可能忽视的方面。在对100个程序的测试集上使用四个生产级别的LaaJ进行实验,结果显示,仅LaaJ能够检测到代码中存在的错误约45-63%(在所有测试的评判者中),而单独的分析检查器缺乏解释深度。当结合使用时,LaaJ+提示配置可达到74%的覆盖率(对于表现最佳的评判者和注入提示),并产生更丰富、更准确的解释,证明了分析-LLM混合体可以显著提高部署管道中的评估可靠性。我们发布了数据集和所有使用的提示。

英文摘要:

Large Language Models are increasingly deployed as judges (LaaJ) in code generation pipelines. While attractive for scalability, LaaJs tend to overlook domain specific issues raising concerns about their reliability in critical evaluation tasks. To better understand these limitations in practice, we examine LaaJ behavior in a concrete industrial use case: legacy code modernization via COBOL code generation. In this setting, we find that even production deployed LaaJs can miss domain critical errors, revealing consistent blind spots in their evaluation capabilities. To better understand these blind spots, we analyze generated COBOL programs and associated LaaJs judgments, drawing on expert knowledge to construct a preliminary taxonomy. Based on this taxonomy, we develop a lightweight analytic checker tool that flags over 30 domain specific issues observed in practice. We use its outputs as analytic hints, dynamically injecting them into the judges prompt to encourage LaaJ to revisit aspects it may have overlooked. Experiments on a test set of 100 programs using four production level LaaJs show that LaaJ alone detects only about 45-63% of the errors present in the code (in all judges we tested), while the analytic checker alone lacks explanatory depth. When combined, the LaaJ+Hints configuration achieves up to 74% coverage (for the best performing judge and injection prompt) and produces qualitatively richer, more accurate explanations, demonstrating that analytic-LLM hybrids can substantially enhance evaluation reliability in deployed pipelines. We release the dataset and all used prompts.

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

↑