arXiv:2608.24252cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24252

SA-Bench: Evaluating Semantic Alignment in LLM-Based Paper Reproduction

Xue Hu, Zewei Pan, Zeli Su, Zhou Liu, Wentao Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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 × 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. 1^{1}

1 Introduction

Recent advances in coding agents have propelled their evolution from single-function completion (Chen et al., 2021; Austin et al., 2021) toward long-horizon repository generation (Jimenez et al., 2024; Liu et al., 2024b). A representative class of such tasks is NL2Repo (Ding et al., 2025), where agents generate complete repositories from natural language requirements. Paper-to-code reproduction represents a particularly demanding instance of NL2Repo, as the target repository is expected not merely to be executable, but to faithfully instantiate the scientific specifications of a paper, including its algorithmic logic, numerical details, experimental protocols, and execution order. This shifts the evaluation criterion beyond functional correctness toward semantic fidelity: whether the generated repository implements what the paper actually claims.

This fidelity requirement remains difficult to satisfy for two reasons. First, scientific papers are written to communicate findings, not to prescribe implementations: critical details are distributed across disparate sections, with the core algorithm in the method section and hyperparameters or preprocessing choices in appendix tables. Second, scientific code is intolerant of detail-level errors: a single misread formula or omitted step can fundamentally alter the implemented method, even if the resulting code remains fully executable. We refer to this failure mode, where generated code silently diverges from paper specifications, as semantic drift.

Evaluating semantic drift is uniquely challenging because paper reproduction lacks an executable ground-truth oracle. In software engineering benchmarks such as SWE-bench (Jimenez et al., 2024), functional correctness can be verified through reproducible test suites that specify expected program behavior. Scientific reproduction offers no comparable oracle: the authoritative specification is only the paper text itself, and even end-to-end outputs cannot serve as a reliable substitute, since they are confounded by random seeds, software environments, data processing choices and compute budgets. This motivates evaluation methodologies that assess semantic fidelity directly against paper specifications, rather than relying on executability or aggregate empirical outcomes.

1^{1}Code:https://github.com/kernel-14/SemanticAlign-Bench

Data:https://huggingface.co/datasets/kernel-14/SemanticAlign-Bench

Figure 1: Overview of SA-Bench. The benchmark consists of a curated paper collection and per-paper SAU files. Given a paper, a coding agent generates a reproduction repository, which is then scored against the paper’s SAU claims to produce a diagnostic report. Table 1: Comparison between SA-BENCH and existing benchmarks. ✓ denotes supported; — denotes not sup￾ported. Dimension PaperBench LMR-BENCH SciReplicate SciCoQA SA-Bench (Ours) Evaluation unit Rubric node Function Function QA pair Claim (SAU) Static evaluation Partial* — — ✓ ✓ Failure taxonomy — — — Partial† ✓ Graded scoring Binary Binary Binary Binary 5-level rubric * PaperBench supports a Code-Development mode use static rubric matching. † SciCoQA’s categories describe mismatch sources, not failure diagnostic. Existing benchmarks for paper-to-code repro￾duction, most notably PaperBench (Starace et al., 2025), evaluate whether generated code reproduces a paper’s results, but none offer a systematic clas￾sification of the deviation between generated code and paper specifications (Yan et al., 2025; Xiang et al., 2025; Baumgärtner and Gurevych, 2026). As a result, semantic drift remains undiagnosed when reproduction falls short. Table 1 summarizes the key differences. To bridge these gaps, we introduce SEMANTICALIGN-BENCH (SA-Bench), a specification-grounded benchmark for diagnosing semantic drift in paper-to-code reproduction. SA-Bench evaluates semantic alignment, the faithfulness with which generated code implements a paper’s verifiable claims, at the granularity of individual Semantic Alignment Units (SAUs) without executing code. SAUs are organized into a four-category diagnostic taxonomy covering numerical, methodological, protocol and ordering drift. Repositories are scored against SAU claims using dimension-specific LLM judges on a five-level rubric, producing a diagnostic report with per-dimension scores rather than a single scalar. Figure 1 provides an overview. We construct SA-Bench from 30 papers span￾ning ICLR, ICML and NeurIPS 2025 across five ML domains, yielding 1,491 human-verified SAU claims and evaluate 12 generator configurations (4 models × 3 scaffolds) for a total of 360 paper-level evaluations. The main contributions of this work are as fol￾lows: • We formulate semantic alignment as a measur￾able construct for paper-to-code reproduction, operationalized through Semantic Alignment Units (SAUs) and a four-category diagnostic taxonomy of semantic drift. • We present SEMANTICALIGN-BENCH, a pub￾lic benchmark of 30 papers with 1,491 human￾verified SAU claims, paired with an automated multi-agent scoring pipeline that enables scal￾able evaluation. • We find that semantic drift is systematic across all tested configurations, and that scaffolds op￾timized for executability provide limited lever￾age for scientific reproduction, indicating that semantic specification verification is a critical direction for paper-to-code agents. 2 Related Work Paper-to-code generation. Paper-to-code repro￾duction is a specialized subclass of NL2Repo (Ding et al., 2025). The task asks an agent to read a re-search paper and produce an executable repository that implements the paper. PaperCoder (Seo et al., 2026) decomposes the task into planning, analysis and coding stages across three agent roles. RePro (Zhou et al., 2025) introduces atomic verifiable criteria with reflective self-correction at each reproduction step. AutoP2C (Lin et al., 2025b) structures reproduction as a paper-understanding stage feeding code generation, and Lin et al. (Lin et al., 2025a) explore prompt-free collaborative multi-agent reproduction. As generation methods improve, rigorous evaluation of the resulting code becomes the bottleneck.

Benchmarks for paper-to-code evaluation. Several benchmarks measure paper-to-code reproduction quality. PaperBench (Starace et al., 2025) decomposes 20 ICML 2024 papers into author-co-developed rubric trees scored by an LLM judge against agent-generated repositories. LMR-BENCH (Yan et al., 2025) and SciReplicate-Bench (Xiang et al., 2025) evaluate function-level reproduction by executing unit tests on agent-implemented functions extracted from research papers; SciCode (Tian et al., 2024) extends this to complex scientific algorithms. PRBench (Qiu et al., 2026) broadens reproduction evaluation to physics research. CORE-Bench (Siegel et al., 2024) measures computational reproducibility by requiring agents to re-execute author-released code and recover reported results. SciCoQA (Baumgärtner and Gurevych, 2026) formulates paper-code alignment as a question-answering task. These benchmarks measure whether reproduction succeeds and produce pass/fail or scalar scores at the document or function level. None offer a systematic classification of the deviations between generated code and paper specifications, leaving semantic drift undiagnosed when reproduction fails.

SA-Bench addresses this gap by evaluating reproduction at the granularity of individual implementation claims (Semantic Alignment Units), scoring each on a five-level rubric and mapping deviations to a four-category drift taxonomy. Table 1 positions SA-Bench against existing benchmarks. This work connects to the broader literature on semantic drift in long-form generation (Spataru et al., 2024), goal drift and degradation in coding agents (Saebo et al., 2026; Orlanski et al., 2026), and LLM-based code evaluation (Tong and Zhang, 2024; Fan et al., 2024; Li et al., 2025).