arXiv:2510.08697cs.SEcs.AI2025-10被引 5

通过自动执行代码评估大模型生成质量,发现真实人类偏好。

BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Execution

  • 构建可实时执行代码的开源评估平台,支持人类交互验证
  • 分析超4700组代码对话,发现执行结果显著影响人类偏好判断
  • 提出无需人工参与的自动评分基准,适合对比大模型代码能力

众包模型评估平台如Chatbot Arena能实时获取人类对模型输出的质量评价。在编程领域,人工评估大语言模型生成代码的质量极为困难,需理解长段原始代码并手动模拟执行过程。为此,我们推出BigCodeArena,一个基于即时执行环境的开放人类评估平台。该平台建立在Chatbot Arena之上,支持对模型生成代码的实时执行,并允许人类与执行过程及结果互动。我们收集了超过14,000次以代码为中心的对话会话,覆盖10种主流大模型、10种编程语言和8类执行环境。其中,识别出超过4,700个包含多轮对话的成对人类偏好样本。进一步分析揭示了在任务、语言和框架等细粒度领域中被忽视的人类偏好模式。为系统评估前沿大模型的代码理解与生成能力,我们基于收集数据构建了两个基准:BigCodeReward和AutoCodeArena。对于BigCodeReward,我们对4,700条对话进行后处理,并评估奖励模型与人类偏好的一致性。结果显示,当执行结果可用时,多数大模型在判断编码偏好方面表现更优。受此启发,我们提出AutoCodeArena,一种无需人类参与的自动埃洛评分基准,用于评估大模型的代码质量。结果显示,GPT-5、Claude-Sonnet-4和Claude-Opus-4等专有模型在近期新兴模型中仍处于领先地位。

原文摘要 · Abstract (English)

Crowdsourced model evaluation platforms, such as Chatbot Arena, enable real-time evaluation from human perspectives to assess the quality of model responses. In the coding domain, manually examining the quality of LLM-generated content is extremely challenging, as it requires understanding long chunks of raw code and deliberately simulating code execution. To this end, we introduce BigCodeArena, an open human evaluation platform for code generation backed by a comprehensive and on-the-fly execution environment. Built on top of Chatbot Arena, BigCodeArena enables the execution of LLM-generated code and allows humans to interact with the execution process and outcomes. We collected over 14,000 raw code-centric conversation sessions across 10 widely used LLMs, spanning 10 languages and 8 types of execution environments. Among these conversations, we identified more than 4,700 multi-turn samples with pairwise human preferences. Further analysis uncovers underexplored preferences of LLMs in fine-grained domains characterized by tasks, languages, and frameworks. To systematically examine code understanding and generation capabilities of frontier LLMs, we curated two benchmarks based on the collected data, namely BigCodeReward and AutoCodeArena. For BigCodeReward, we post-processed the 4,700 conversations and evaluated the consistency between reward models and human preferences. The evaluation shows that most LLMs have superior performance in judging coding preferences when the execution results are available. Inspired by these findings, we propose AutoCodeArena, an automatic Elo rating benchmark designed to assess the coding quality of LLMs without human involvement. We find that proprietary LLMs like GPT-5, Claude-Sonnet-4, and Claude-Opus-4 still lead in code generation performance among recent emerging models.

代码生成人类偏好自动评估大模型评测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。