A New Research-Grade Coding Benchmark: Can AI Recover Core Code Removed from Papers

    A new research-grade programming benchmark asks AI coding agents to restore the deleted core of published papers from incomplete repositories. This article explains why closed-book exams miss real research work, what capabilities the tasks measure, and what current pass rates imply for models and teams.

    A demanding test of research-level coding

    Picture an onboarding assignment: a mentor hands you a published paper and the authors’ code repository, but the core of the work—the actual innovation—has been deleted. Dependencies, tests, and supporting tools remain. Your job is to fill the hole. Scoring is a direct comparison against the authors’ original implementation.

    That scenario is the core of a new generation of benchmarks designed by researchers at multiple well-known universities. It asks a sharp question: can today’s general-purpose AI coding agents enter an unfamiliar research codebase, understand the paper, reconstruct the missing contribution, and match the original implementation?

    The current answer is sobering. Even the strongest frontier models pass only about 60% of tasks. On a few tasks, no competing agent succeeds even once.

    Why older benchmarks miss the mark

    Limits of the closed-book exam

    Mainstream evaluations, including contest-style suites, typically give a problem statement, ask the model to write a program, run it once, and score it. That is a closed-book exam: one submission, one grade.

    Computer science research rarely works that way. Researchers usually improve a component of an existing system, re-run the paper’s evaluation, and compare against the original implementation. The process is more like an open-book exam: you have the repository, iterate, and submit until you are satisfied. One-shot scoring underestimates that loop.

    From engineering evals to research-grade evals

    Recent benchmarks place models in real engineering settings—for example, fixing real bugs in open-source repos, or scoring machine-learning contest results. The direction is right, but two gaps remain:

    • Narrow task shape: many tasks are small bug fixes, or they judge leaderboard rank and unit tests instead of a head-to-head match with the authors’ real implementation.
    • Narrow domain coverage: even setups that ask models to improve a specified component often stay inside machine learning and do not represent broader computer science research.

    The new benchmark aims to close both gaps: restore a research contribution, across a wider range of CS areas.

    What the benchmark actually measures

    From an engineering view, the tasks stack several skills:

    1. Aligning paper and code. Agents must map methods, pseudocode, and experimental setup in the paper onto interfaces and data structures in a incomplete repo. Academic writing is often incomplete or imprecise; details must be inferred from context.

    2. Respecting an existing system. Dependencies, tests, and tooling stay unchanged. New code must fit the original architecture: naming, error handling, module boundaries, and the full original test suite. The bar is not “it runs” but “it belongs.”

    3. Iterative debugging and self-checks. Unlike one-shot submit, agents may rerun tests, inspect output, and revise hypotheses. Evaluation shifts from “right on the first try” to quality of convergence.

    4. Quality vs. the original implementation. Final judgment is not only external tests but comparison with the authors’ code: functional equivalence, numerical agreement, and performance.

    What current results mean

    Top models pass roughly 30–60% of tasks, depending on the setup; some tasks fail for every agent. That suggests:

    • Paper-to-code remains a weak spot. Patterned coding and bug fixing are easier than turning academic text into a precise implementation, including unstated assumptions—core human research skill.
    • Clustered failures matter. Tasks where every agent fails may hinge on details never written in the paper, needing deeper domain reasoning or correctly guessing author intent—a hard capability boundary.
    • Iterative scoring separates models. One-shot scoring can compress differences; open-book iteration magnifies gaps in convergence speed and debugging strategy.

    Practical takeaways for engineers and researchers

    For agent developers: Shift evaluation from single-turn answers to multi-turn workflows. Retrieval, understanding, and self-correction in long-context codebases matter more than more contest-style training data.

    For engineering teams: Similar setups can serve as internal capability checks—for example, removing a module during onboarding or handoff and asking an agent to restore it from design docs, scored with a shared test harness, rather than marketing claims.

    For researchers: Treating “reproducible contribution” as a measurable goal upgrades evaluation. When review means alignment with a reference implementation, AI-assisted science becomes more auditable.

    Closing

    A deleted core module measures where AI actually sits on research-grade programming. Strong everyday coding assistance is not the same as researcher-level abstraction, inference, and reconstruction. An open-book, head-to-head, iterative evaluation is a useful pattern for both model improvement and team-level AI capability checks.