PaperCompiler: Faithful Paper-to-Code Generation via Repository-Level Specification Compilation

Liu Yunhao, Pham Hong Phuc, Jaehong YoonOpenReview 2027 · Submission to ICLR 2027 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Faithfully translating research papers into repository-level implementations remains challenging because papers often describe methods at a high level, leave implementation assumptions implicit, and require generated repositories to preserve method logic, evaluation protocols, and cross-file consistency. Despite recent advances in paper-to-code agents, their intermediate outputs are often presented as free-form plans or summaries that downstream coding agents may ignore, reinterpret, or compress, leading to algorithmic simplification and inconsistent repository structure. To address these challenges, we introduce PaperCompiler, a paper-to-code generation framework that compiles paper-grounded evidence into explicit repository-level implementation specifications. PaperCompiler grounds implementation-relevant evidence while preserving source provenance and distinguishing paper-supported, inferred, externally delegated, and unresolved information. The resulting specifications encode non-degradation requirements, ownership assignments, cross-file dependencies, and file-level constraints. Repository generation proceeds under these compiled specifications while retaining flexibility over local engineering choices not fixed by the paper. On 90 papers from Paper2CodeBench, PaperCompiler outperforms strong baselines, achieving a 13.8\% relative improvement in reference-based fidelity (3.64$\rightarrow$4.15) and reducing high-severity evaluator critiques from 13.2\% to 6.1\%.
BibTeX
@misc{yunhao2027papercompiler,
  author = {Liu Yunhao and Pham Hong Phuc and Jaehong Yoon},
  title = {{PaperCompiler: Faithful Paper-to-Code Generation via Repository-Level Specification Compilation}},
  year = {2027},
  url = {https://openreview.net/forum?id=mZghGxinX6},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2027},
}

Loading related content...

Figure