2025-10-09 · 进阶 · 数据科学 · 机器学习

Vibe Checker: Aligning Code Evaluation with Human Preference

该论文提出了一种名为Vibe Checker的代码评估框架,通过引入VeriCode指令分类法,评估代码在功能性正确性和指令遵循方面的表现,以更好地与人类偏好对齐。

更新于 2025-10-09。作者:Ming Zhong、Xiang Zhou、Ting-Yun Chang、Qingze Wang、Nan Xu、Xiance Si、Dan Garrette、Shyam Upadhyay、Jeremiah Liu、Jiawei Han、Benoit Schillings、Jiao Sun。

中文摘要

大型语言模型(LLMs)推动了 vibe coding 的发展,用户通过利用 LLMs 通过自然语言交互生成和迭代优化代码,直到代码通过他们的 vibe 检查。vibe 检查与真实世界中的人类偏好相关联,并超越了功能性:解决方案应感觉正确,易于阅读,保留意图,并保持正确。然而,当前的代码评估仍然依赖于 pass@k,仅捕获功能性正确性,忽略了用户经常应用的非功能性指令。在这篇论文中,我们假设遵循指令是 vibe 检查背后缺失的环节,它代表了人类在编码中对功能正确性以外的偏好。为了用可测量的信号量化模型的代码指令遵循能力,我们提出了 VeriCode,这是一个包含 30 个可验证代码指令及其相应确定性验证器的分类法。我们使用这个分类法来增强现有的评估套件,从而产生了 Vibe Checker,一个用于评估代码指令遵循和功能正确性的测试平台。在评估了 31 个领先的 LLMs 后,我们发现即使是性能最强的模型也难以遵循多个指令,并表现出明显的功能退化。最重要的是,功能正确性和指令遵循的复合得分与人类偏好相关性最高,其中后者成为实际编程任务中的主要区分因素。我们的工作确定了 vibe 检查的核心因素,为基准测试和开发更符合用户编码偏好的模型提供了具体路径。

英文摘要

Large Language Models (LLMs) have catalyzed vibe coding, where users leverage LLMs to generate and iteratively refine code through natural language interactions until it passes their vibe check. Vibe check is tied to real-world human preference and goes beyond functionality: the solution should feel right, read cleanly, preserve intent, and remain correct. However, current code evaluation remains anchored to pass@k and captures only functional correctness, overlooking the non-functional instructions that users routinely apply. In this paper, we hypothesize that instruction following is the missing piece underlying vibe check that represents human preference in coding besides functional correctness. To quantify models' code instruction following capabilities with measurable signals, we present VeriCode, a taxonomy of 30 verifiable code instructions together with corresponding deterministic verifiers. We use the taxonomy to augment established evaluation suites, resulting in Vibe Checker, a testbed to assess both code instruction following and functional correctness. Upon evaluating 31 leading LLMs, we show that even the strongest models struggle to comply with multiple instructions and exhibit clear functional regression. Most importantly, a composite score of functional correctness and instruction following correlates the best with human preference, with the latter emerging as the primary differentiator on real-world programming tasks. Our work identifies core factors of the vibe check, providing a concrete path for benchmarking and developing models that better align with user preferences in coding.

解读

一句话总结

该论文提出了一种名为Vibe Checker的代码评估框架,通过引入VeriCode指令分类法,评估代码在功能性正确性和指令遵循方面的表现,以更好地与人类偏好对齐。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt