SA-Bench: Evaluating Semantic Alignment in LLM-Based Paper Reproduction
Organizations: Beihang University · Shanghai Jiao Tong University · Minzu University of China · Peking University ·
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.
Figures & tables
| 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 |
| Score | Label | Criterion |
|---|---|---|
| 1.0 | Faithful | All semantic content correctly implemented. |
| 0.75 | Minor deviation | Core correct; deviation is an optimization variant or implementation detail. |
| 0.5 | Key omission | Main logic present but a material step or component missing. |
| 0.25 | Core substitution | Core mechanism replaced by a different approach. |
| 0 | Absent | No implementation or logic directly contradicts paper. |
| Model | BasicAgent | PaperCoder | OpenHands |
|---|---|---|---|
| Claude-Sonnet-4.6 | 0.272 | 0.301 (+0.029) | 0.277 (+0.005) |
| DeepSeek-V4-Pro | 0.268 | 0.241 ( 0.027) | 0.282 (+0.014) |
| Gemini-2.5-Flash | 0.150 | 0.256 (+0.106) | 0.243 (+0.093) |
| GPT-4o | 0.081 | 0.197 (+0.116) | 0.082 (+0.001) |
| Factor | Overall | D1 | D2 | D3 | D4 |
|---|---|---|---|---|---|
| By Model | |||||
| Claude-Sonnet-4.6 | 0.283 | 0.413 | 0.293 | 0.201 | 0.225 |
| DeepSeek-V4-Pro | 0.263 | 0.358 | 0.294 | 0.186 | 0.216 |
| Gemini-2.5-Flash | 0.217 | 0.268 | 0.248 | 0.161 | 0.189 |
| GPT-4o | 0.120 | 0.120 | 0.140 | 0.092 | 0.130 |
| By Scaffold | |||||
| Scaffold | Model | Overall | D1 | D2 | D3 | D4 |
|---|---|---|---|---|---|---|
| Claude-Sonnet-4.6 | 0.272 | 0.391 | 0.307 | 0.169 | 0.219 | |
| BasicAgent | DeepSeek-V4-Pro | 0.268 | 0.379 | 0.308 | 0.180 | 0.204 |
| Gemini-2.5-Flash | 0.150 | 0.134 | 0.210 | 0.099 | 0.158 | |
| GPT-4o | 0.081 | 0.047 | 0.121 | 0.058 | 0.100 | |
| Claude-Sonnet-4.6 | 0.301 | 0.470 | 0.299 | 0.209 | 0.226 | |
| PaperCoder | DeepSeek-V4-Pro | 0.241 | 0.339 | 0.278 | 0.148 | 0.200 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Paper ID | Title | Venue | Total | D1 | D2 | D3 | D4 |
| adjoint-matching | Adjoint Matching: Fine-tuning Flow and Diffusion Generative Models with Memoryless Stochastic Optimal Control | ICLR 2025 | 47 | 17 | 20 | 7 | 3 |
| avg-reward-pg | Global Convergence of Policy Gradient in Average Reward MDPs | ICLR 2025 | 22 | 9 | 7 | 3 | 3 |
| ca2-vdm | Ca2-VDM: Efficient Autoregressive Video Diffusion Model with Causal Generation and Cache Sharing | ICML 2025 | 48 | 22 | 10 | 8 | 8 |
| cara | Canonical Rank Adaptation: An Efficient Fine-Tuning Strategy for Vision Transformers | ICML 2025 | 41 | 19 | 11 | 10 | 1 |
| conformal-bayesian-quadrature | Conformal Prediction as Bayesian Quadrature | ICML 2025 | 38 | 25 | 6 | 3 | 4 |
| diffusion-convergence-rate | Instance-dependent Convergence Theory for Diffusion Models | ICLR 2025 | 42 | 22 | 12 | 4 | 4 |
| Statistic | D1 | D2 | D3 | D4 | Total |
|---|---|---|---|---|---|
| Total claims | 523 | 503 | 300 | 165 | 1,491 |
| % of total | 35.1% | 33.7% | 20.1% | 11.1% | 100% |
| Mean per paper | 17.4 | 16.8 | 10.0 | 5.5 | 49.7 |
| Paper | Score | Pass | Total | Steps | Time (s) | Cost |
|---|---|---|---|---|---|---|
| fre | 0.331 | 113 | 306 | 24 | 909.1 | $2.11 |
| sample-specific-masks | 0.603 | 66 | 87 | 81 | 652.4 | $6.10 |
| mechanistic-understanding | 0.238 | 29 | 36 | 37 | 1252.5 | $5.81 |
| pinn | 0.482 | 112 | 126 | 35 | 909.4 | $4.10 |
| all-in-one | 0.117 | 15 | 92 | 81 | 478.1 | $3.41 |
| Total/Avg. | 0.581 | 335 | 647 | 52 | 840.3 | $21.53 |
| Paper | Judge verdict (abridged, verbatim) |
|---|---|
| all-in-one | “The submission lacks any explicit implementation of the [Euler-Maruyama] discretization process, and no reference to the number of steps (500) is observable in the provided files. The absence of such code means the submission does not meet the resolution criteria.” |
| fre | “The submission does not meet the resolution criteria. Although it partially implements reward functions and describes the evaluation tasks for the walker domain, there is no actual code to set up or interact with the ExORL walker environment. The absence of integration with the custom_dmc_tasks repository… indicates a failure to satisfy the criterion.” |
| sample-specific-masks | “Instead of 32 output channels, the third layer implements 64 output channels. The required BatchNorm operation immediately following the third convolution is missing.” |
| mechanistic-understanding | “The code processes only a subset of 295 prompts instead of the required 1199 prompts from the RealToxicityPrompts challenge set. There is no clear integration showing measurement across all 20 token generations for every prompt.” |
| pinn | “While it has implemented the ability to extract the s , y , and rho vectors with the function extract_lbfgs_state … it does not integrate this functionality into the training pipeline to actually save these vectors at the end of training. Without saving the L-BFGS state, the criterion is not fully resolved.” |
| Dimension | PaperBench | Ours |
|---|---|---|
| Taxonomy | Free-form rubric tree | D1–D4 diagnostic |
| Extraction | Author-paired manual | Multi-agent section-level |
| Filtering | Implicit (author judgment) | Code-first hard rules |
| Granularity control | Human rubric tree | Rule-constrained human review |
| Effort per paper | Author-time intensive | Multi-agent parallel 1–2 h human |
| Paper | Before | After | Del | Mod | Add | Merge | Dominant Issue |
|---|---|---|---|---|---|---|---|
| diffusion-convergence-rate | 12 | 6 | 6 | 1 | 2 | 2 | Baseline contamination |
| conformal-bayesian-quadrature | 18 | 15 | 0 | 0 | 1 | 5 | Over-splitting |
| navil | 35 | 31 | 2 | 10 | 1 | 1 | Type misclassification |
| luno | 19 | 25 | 0 | 9 | 5 | 0 | Omissions, source fixes |
| moe-pot | 32 | 35 | 7 | 13 | 10 | 0 | Mixed: result values retypes |
| SAU Claim | Repo Implementation | Type | Score | Rationale |
|---|---|---|---|---|
| “Adam optimizer, lr=0.001” | AdamW(lr=0.001) | D1 | 0.75 | Optimization variant: Adam AdamW is a functional improvement; does not alter experimental conclusions. |
| “Adam optimizer, lr=0.001” | SGD(lr=0.1) | D1 | 0.25 | Core violation: different optimizer family + order-of-magnitude lr error; training dynamics fundamentally altered. |
| “Adam optimizer, lr=0.001” | Adam(lr=0.003) | D1 | 0.75 | Minor deviation: order-of-magnitude consistent; specific value within . |
| “Score matching loss (Eq. 5)” | Code implements KL divergence | D2 | 0.25 | Core violation: different algorithm family; paper’s core claim no longer holds. |
| “Score matching loss (Eq. 5)” | Correct score matching but missing regularization term | D2 | 0.5 | Key omission: core algorithm present but incomplete. |
| “Compare against PPO, SAC, TD3” | Only PPO and SAC implemented | D3 | 0.5 | Key omission: 1 of 3 baselines missing. |
| Dim. | Paper Specification | Agent Output / Root Cause | Failure Type |
|---|---|---|---|
| D1 | Training: 900K levels, 250M transitions; UNet: ch_mult=[1,2,4,8] | Uses 10K levels, ch_mult=[1,1,2,4]. Specs in appendix, defaults not overridden | Impl. mismatch |
| D2 | Adjoint matching loss with correction term; SCoRe: two-turn RL with asymmetric reward | Standard flow matching without correction; single-turn RL. Mathematical distinctions missed | Wrong impl. |
| D3 | 17 datasets (DAVIS, YT-VOS, MOSE, etc.); 5 baselines (PPO, SAC, TD3, Dreamer-v3, MPC) | Data loading for 3 datasets; only PPO implemented | External knowledge |
| D4 | 4-phase pipeline; warmup cosine decay eval | All phases merged; flat LR schedule. Training recipe as prose | Ordering collapse |
| Paper | Overall | Std | D1 | D2 | D3 | D4 |
|---|---|---|---|---|---|---|
| conformal-bayesian-quadrature | 0.304 | 0.113 | 0.524 | 0.306 | 0.194 | 0.193 |
| mrq | 0.271 | 0.073 | 0.331 | 0.306 | 0.167 | 0.281 |
| olmoe | 0.260 | 0.096 | 0.277 | 0.296 | 0.201 | 0.264 |
| sc-fno | 0.257 | 0.094 | 0.319 | 0.255 | 0.196 | 0.257 |
| neural-operator-flow-matching-pde | 0.255 | 0.100 | 0.285 | 0.236 | 0.222 | 0.276 |
| ca2-vdm | 0.248 | 0.109 | 0.419 | 0.227 | 0.148 | 0.198 |
| Paper | Scaff | Model | Overall | D1 | D2 | D3 | D4 | Time(s) | .py |
|---|---|---|---|---|---|---|---|---|---|
| adjoint | BasicAgent | Claude-Sonnet-4.6 | 0.208 | 0.382 | 0.225 | 0.143 | 0.083 | 938 | 12 |
| DeepSeek-V4-Pro | 0.208 | 0.279 | 0.138 | 0.250 | 0.167 | 861 | 9 | ||
| Gemini-2.5-Flash | 0.136 | 0.029 | 0.287 | 0.143 | 0.083 | 678 | 3 | ||
| GPT-4o | 0.110 | 0.015 | 0.138 | 0.036 | 0.250 | 189 | 4 | ||
| PaperCoder | Claude-Sonnet-4.6 | 0.304 | 0.632 | 0.250 | 0.250 | 0.083 | 2408 | 12 | |
| DeepSeek-V4-Pro | 0.303 | 0.471 | 0.113 | 0.214 | 0.417 | 2342 | 6 |
ML Reproducibility
Machine learning reproducibility studies whether model results and scientific claims can be independently checked and reliably repeated.
See all 130 papers