arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2508.16671cs.SEcs.AI
收藏

基于细粒度验证的反思式论文到代码复现

Reflective Paper-to-Code Reproduction Enabled by Fine-Grained Verification

Tsinghua University(清华大学);Ant Group(蚂蚁集团)

Mingyang Zhou, Quanming Yao, Lun Du, Lanning Wei, Da Zheng

AI总结:

针对机器学习论文代码复现中细节还原困难的问题,本文提出RePro框架,通过自动提取论文指纹作为细粒度监督信号,并在迭代验证与修正循环中利用反思机制,在PaperBench Code-Dev上较基线提升13.0%。

摘要:

复现机器学习论文对科学进步至关重要,但对人类和自动化智能体而言仍然具有挑战性。现有的基于智能体的方法往往难以完整、准确地复现实现细节,例如数学公式和算法逻辑。先前的研究表明,带有显式反馈的反思能够提升智能体的性能。然而,当前的论文复现方法未能有效采用这一策略。这一差距主要源于研究论文中多样的论文模式、复杂的方法模块以及多变的配置。受人类使用系统化检查清单高效调试复杂代码的启发,我们提出了RePro,一个反思式论文到代码复现框架,该框架自动提取论文的“指纹”,即一组全面、准确且原子化的标准,作为高质量的监督信号。该框架首先基于提取的信息生成代码,然后在迭代验证与修正循环中利用指纹。这一方法能够系统地检测差异,并生成有针对性的修订,使生成的代码与论文的实现细节保持一致。在PaperBench Code-Dev基准上进行了大量实验,RePro相较于基线实现了13.0%的性能差距,并且在反思过程中正确修订了复杂的逻辑和数学标准,其有效性十分明显。

英文摘要:

Reproducing machine learning papers is essential for scientific progress but remains challenging for both humans and automated agents. Existing agent-based methods often struggle to fully and accurately reproduce implementation details such as mathematical formulas and algorithmic logic. Previous studies show that reflection with explicit feedback improves agent performance. However, current paper reproduction methods fail to effectively adopt this strategy. This gap mainly arises from the diverse paper patterns, complex method modules, and varied configurations encountered in research papers. Motivated by how humans use systematic checklists to efficiently debug complex code, we propose \textbf{RePro}, a \textbf{Re}flective Paper-to-Code \textbf{Repro}duction framework that automatically extracts a paper's fingerprint, referring to a comprehensive set of accurate and atomic criteria serving as high-quality supervisory signals. The framework first generates code based on the extracted information, and then leverages the fingerprint within iterative verification and refinement loop. This approach systematically detects discrepancies and produces targeted revisions to align generated code with the paper's implementation details. Extensive experiments on the PaperBench Code-Dev benchmark have been conducted, RePro achieves 13.0\% performance gap over baselines, and it correctly revises complex logical and mathematical criteria in reflecting, on which the effectiveness is obvious.

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

↑