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

比较开发者与LLM在代码评估中的偏见

Comparing Developer and LLM Biases in Code Evaluation

Carnegie Mellon University(卡内基梅隆大学)

Aditya Mittal, Ryan Shar, Zichu Wu, Shyam Agarwal, Tongshuang Wu, Chris Donahue, Ameet Talwalkar, Wayne Chi, Valerie Chen

AI总结:

本文提出TRACE框架,评估LLM在代码评估中的偏见,发现LLM在与开发者偏好对齐方面表现不佳,揭示了人类与模型在代码质量标准上的系统性差异。

摘要:

随着LLM在代码应用中被越来越多地用作裁判,它们应在现实互动环境中进行评估,以捕捉部分上下文和模糊意图。我们提出了TRACE(代码评估裁判分析工具)框架,该框架评估LLM裁判预测人类偏好的能力,并自动提取裁判项以揭示人类和模型在每个项上权重的系统性偏见。在三种模式——基于聊天的编程、IDE自动补全和指导性代码编辑中,我们使用TRACE测量LLM裁判与开发者偏好的匹配程度。在13种不同模型中,最佳裁判在人类标注者面前表现不佳,差距为12-23%。TRACE识别了35个显著的匹配偏差源,大多数对应现有的软件工程代码质量标准。例如,在基于聊天的编码中,裁判倾向于更长的代码解释,而人类则更偏好较短的解释。我们发现大多数现有代码质量维度存在显著的不匹配,显示LLM裁判与人类偏好的现实编码应用中的不一致。

英文摘要:

As LLMs are increasingly used as judges in code applications, they should be evaluated in realistic interactive settings that capture partial context and ambiguous intent. We present TRACE (Tool for Rubric Analysis in Code Evaluation), a framework that evaluates LLM judges' ability to predict human preferences and automatically extracts rubric items to reveal systematic biases in how humans and models weigh each item. Across three modalities -- chat-based programming, IDE autocompletion, and instructed code editing -- we use TRACE to measure how well LLM judges align with developer preferences. Among 13 different models, the best judges underperform human annotators by 12-23%. TRACE identifies 35 significant sources of misalignment between humans and judges across interaction modalities, the majority of which correspond to existing software engineering code quality criteria. For example, in chat-based coding, judges are biased towards longer code explanations while humans prefer shorter ones. We find significant misalignment on the majority of existing code quality dimensions, showing alignment gaps between LLM judges and human preference in realistic coding applications.

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

↑