PACT: Paper Implementation with Artifact Consistency and Traceability

Zan Gong, Zengle Ge, Yui Lo, Linyue Pan, Bihui Yin, Guangxi Wan, Jinduo Zhang, Zhirong Zhang, Mo Zhao, Annan Li, Dou ShenarXiv 2026

TL;DR

When AI agents try to build a working codebase from a machine learning paper, they suffer from a quiet, compounding game of telephone: tiny shortcuts, dropped baselines, and formula tweaks go unnoticed because the code still runs without crashing. PACT solves this by locking every paper requirement, plan, code snippet, and experiment run into a traceable graph, pairing each step with an independent reviewer agent to catch "silent drift" the moment it happens.

What Problem Does This Paper Address?

Autonomous AI researchers are getting remarkably good at reading literature, brainstorming hypotheses, and writing manuscripts. Between the bright idea and the final paper, however, lies a grueling engineering bottleneck: paper implementation—turning a fixed research design into a runnable repository whose actual experiments back up its claims.

For coding agents, this multi-hour marathon fails for two reasons:

  1. Silent deviations: If an agent quietly swaps a complex equation for a rough approximation, forgets a baseline, or cites numbers from an outdated run, Python doesn't throw an error. The script exits cleanly and spits out numbers anyway.
  2. Delayed, confounded feedback: You only find out the numbers are wrong after hours of full-scale training. By then, you don't know if the culprit is a bug in module A, a missing hyperparameter in script B, or an undertrained model—and downstream code has already been built on top of the mistake.
Comparison of silent drift and delayed feedback in existing workflows versus PACT's linked artifacts and per-stage reviews.

Methods

Instead of letting a single agent code in one long conversation—or waiting until the very end to verify the finished repository—the authors introduce PACT (Paper Implementation with Artifact Consistency and Traceability).

PACT breaks implementation into four sequential stages: Spec (extracting exact paper requirements), Plan (designing modules and experiments), Implement (writing code and running small-scale qualification tests), and Result (comparing run logs against expectations). Once the Spec stage passes, it is frozen so agents can't move the goalposts later.

Overview of PACT's four-stage producer-reviewer architecture and underlying Implementation Traceability Graph.

Two core mechanisms hold this pipeline together:

  • Implementation Traceability Graph (ITG): Every stage writes structured text records that link specific paper passages to plan items, exact code files/functions, Git commit hashes of experiment runs, and final result claims. Nothing is allowed to exist as an unlinked, free-form promise.
  • Graph-Guided Review (GGR): Each stage pairs a Producer agent with a Reviewer agent. Crucially, the Reviewer spins up in a fresh session without the Producer’s chat history (preventing it from rationalizing shortcuts). After a deterministic formatting check, the Reviewer walks the ITG links—reading code and even running quick tests in a scratch environment—to verify internal accuracy and consistency with the previous stage. Critical bugs trigger targeted local revisions or bounded backtracking to earlier stages before any downstream agent builds on faulty work.

Datasets

The authors do not introduce a new dataset; instead, they evaluate PACT using the full PaperBench benchmark. PaperBench contains 20 ICML 2024 papers spanning 8,316 gradable requirements across Code Development, Code Execution, and Result Analysis. Agents are given the paper (with original author repositories blacklisted), 24 hours to develop the codebase from scratch on a single NVIDIA A800 GPU, and a separate 24-hour budget where the delivered repo is executed from scratch in a clean environment and graded by an LLM judge (GPT-5.4).

Key Insights and Ideas

  • Code that runs $\neq$ code that works: In one ablation without reviews, a VAE bug caused the decoder to collapse into outputting a near-constant blurry image, ruining posterior MSE (0.157 vs. 0.019). Because tensor shapes matched and the script didn't crash, an unreviewed pipeline happily marked it "completed."
  • Structure without enforcement (and vice versa) falls apart: Removing the ITG graph caused agents to plan baselines in plain text, silently drop them during coding, and still pass review because there were no hard links to enforce. Conversely, keeping the graph without stage reviews led to broken download URLs and path mismatches that cached local files hid until clean-room testing.
  • Catching "dead" and "fake" logic in place: Review logs revealed agents computing pruning masks on every forward pass without ever applying them to weights, or claiming 10,000 simulations in a report when the linked log clearly said budget=1000. Cross-checking the graph caught both immediately.

Key Results

  • Outperforming multi-agent baselines: Using the open-weight GLM-5 backbone, PACT achieved an average replication score of 43.93% across the 20 papers—beating the published multi-agent AiScientist (33.73%, leading on 16/20 papers), single-agent BasicAgent (22.58%), and a Codex (GPT-5.5) reference (29.45%).
  • Backbone generality at low cost: Paired with DeepSeek-V4-Flash, PACT scored 49.96% compared to 40.85% for BasicAgent under identical hardware and budgets (winning 15/20 papers), at an average API rollout cost of $4.30 per paper.

Limitations and Future Work

While PACT excels at preserving scope and mathematical fidelity, it scored lower than BasicAgent on 5 of the 20 papers in the DeepSeek-V4-Flash trials. The authors note that these losses stemmed from execution-stage engineering and runtime bottlenecks during the 24-hour clean-environment reproduction—such as container interruptions, filesystem limits, environment-setup failures, and resource contention—that kept valid code from finishing on time. Additionally, the authors note in their Impact Statement that while strong reproduction capabilities could theoretically be misused to generate convincing but unfaithful reimplementations, explicit artifact traceability graphs are a step toward making such deviations transparent. Future research directions are not explicitly discussed in the main text.

Summary updated

BibTeX
@misc{gong2026pact,
  author = {Zan Gong and Zengle Ge and Yui Lo and Linyue Pan and Bihui Yin and Guangxi Wan and Jinduo Zhang and Zhirong Zhang and Mo Zhao and Annan Li and Dou Shen},
  title = {{PACT: Paper Implementation with Artifact Consistency and Traceability}},
  year = {2026},
  eprint = {2611.39686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39686},
}
Figure