评测大模型生成论文代码的语义一致性,发现多数结果存在隐性偏差。
SA-Bench: Evaluating Semantic Alignment in LLM-Based Paper Reproduction

- 构建30篇顶会论文的原子化可验证实现条目,量化语义漂移
- 最强模型仅达0.301平均分,整体均值0.221,多数失败因实现错误
- 强调需优先验证语义规范,而非仅关注代码可执行性
大模型代理虽能生成论文复现代码,但常产出科学不忠实的结果。我们定义此为语义漂移,即生成代码悄然偏离论文规范。本文提出SemanticAlign-Bench(SA-Bench),覆盖ICLR、ICML和NeurIPS 2025的30篇论文。每篇论文被分解为原子且可验证的实现条目(称为语义对齐单元,SAUs),从数值、方法、协议和顺序四个维度诊断漂移。共构建1,491个SAUs,涵盖五个机器学习领域,评估12种生成配置(4个模型×3种脚手架)。即使最强组合(Claude+PaperCoder)平均得分也仅为0.301,整体均值为0.221(360次评估)。分析显示,代理多尝试满足要求但实现错误,主要失败原因为实现错配与空壳代码。进一步表明,仅优化可执行性的脚手架对提升科学复现帮助有限;缩小差距需优先考虑语义规范验证的脚手架。基准数据、标注及评估流程已公开。
原文摘要 · Abstract (English)
LLM agents can generate paper reproduction code, yet often produce scientifically unfaithful implementations. We define this failure mode as semantic drift, where generated code silently diverges from the paper's specifications. We introduce SemanticAlign-Bench(SA-Bench), a diagnostic benchmark covering 30 papers from ICLR, ICML and NeurIPS 2025. For each paper, we decompose its specifications into atomic and verifiable implementation claims, which we call Semantic Alignment Units (SAUs) and evaluate repositories along four diagnostic dimensions spanning numerical, methodological, protocol and ordering drift. In total, we construct 1,491 SAUs across five ML domains and evaluate 12 generator configurations (4 models $\times$ 3 scaffolds). Even the strongest configuration (Claude+PaperCoder) achieves a mean SAU score of only 0.301 out of 1.0, with an overall mean of 0.221 across 360 evaluations. A failure taxonomy reveals that agents attempt most requirements but implement them incorrectly, with implementation mismatch and stubs accounting for the majority of zero-scored claims. Our analysis further indicates that scaffolds optimized for executability provide limited leverage for scientific reproduction; narrowing the gap requires scaffolds that prioritize semantic specification verification. The benchmark, annotations and evaluation pipeline are publicly available.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。