研究:LLM 裁判在代码生成选程序时能带来多少提升
What Do Code Judges Add Beyond Public Tests and Generator Priors?
做代码生成系统的值得看:论文用 1450 道 Codeforces 题目实测 DeepSeek 裁判的真实收益,只有 4 个点,但先按公开测试过滤再裁判这个组合策略几乎不花钱就能拿到大部分收益,比直接堆裁判调用划算。
一篇新论文量化了语言模型裁判(judge)在代码生成最后选程序环节的实际价值。研究对象是 1,450 道 Codeforces 与 contest-jury 题目,在候选池固定、只更换选择方式的设定下,用隐藏测试评分。结果显示,DeepSeek 裁判把 1,057 道有公开通过程序题目的接受率从约 74% 提升到 78%。
增益有限的原因是多数候选池本身没有多少选择空间。但在池中同时包含通过和被拒程序时,DeepSeek 裁判选中正确程序的比例为 87-97%,均匀随机选择只有 56-67%。论文还发现,先把候选限制在通过公开测试的程序再交给裁判,效果不差于对整个池子裁判,而完全不过滤最多损失 17.45 个百分点。
在混合生成器的池子里,仅靠生成器公开通过率排序、不调用任何模型,就能恢复裁判收益的 61-75%,裁判仍保留约 3-4 点的配对优势。结论支持“先过滤再裁判”的工作流。
What Do Code Judges Add Beyond Public Tests and Generator Priors?
Code generation systems often write several programs for one problem, run them on public examples, and must return one. When several pass, the examples cannot separate them, yet some may fail on untried inputs, so the last choice matters. We ask what a language-model judge adds at this step, beyond the public tests and knowing which model wrote each program. We hold each candidate pool fixed, change only the chooser, and score every choice on hidden tests that no chooser sees. In a prospective study of 1,450 Codeforces and contest-jury problems, DeepSeek judging raises acceptance from about 74% to 78% on the 1,057 problems with a public passer; part of this gain depends on the time limit. The gain is small because most pools leave little choice. Where passing programs include both accepted and rejected ones, DeepSeek picks an accepted program 87-97% of the time when it judges, against 56-67% for uniform choice. In every collection where we ran this comparison, restricting the choice to public passers was not worse than judging the whole pool, and unfiltered choice lost up to 17.45 percentage points. On retrospective mixed-generator pools, preferring the generator with the best public pass rate, with no model calls, recovers 61-75% of the judge gain, and judges keep a paired advantage over this rule of about 3-4 points. These results support filtering before judging, and reading each judge gain next to the pool's remaining room and, on mixed-generator pools, the generator rule.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:DeepSeek、代码生成、LLM Judge、Codeforces,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始信息发布自一手权威信源「arXiv: DeepSeek」(Tier-1 一手发布),具备高确定性参考价值。