High Reasoning Budget Breaks Zero Pass Rate in Program Reconstruction Benchmarks

    This article explains why program reconstruction benchmarks are more challenging than conventional code generation tasks, how they evaluate agents through black-box behavioral probing and full-task acceptance, and why increasing reasoning budget can shift results from near-zero to first-time perfect completions. It also discusses practical implications for building reproducible evaluation pipelines and managing reasoning costs in production.

    From “Writing Code” to “Reconstructing Programs”: Why Program Reconstruction Benchmarks Are a New Divide

    In code capability evaluations for large language models, common tasks typically focus on function completion, code explanation, bug fixing, or generating code snippets from natural language. These tasks cover a broad range, but the input information is relatively complete, and models can often rely on contextual clues for localized reasoning. In contrast, program reconstruction benchmarks push difficulty to the system-engineering level: the model is no longer just “writing a piece of code” — it must infer and reconstruct the overall behavior of a program under highly information-asymmetric conditions.

    The Core Setup of Program Reconstruction

    The central scenario is: an agent receives only a compiled executable file and a documentation file. It cannot access source code, cannot decompile the executable, and cannot rely on network retrieval. The model must design its own probing strategies, observe inputs and outputs, test edge conditions, analyze error messages, and gradually build an understanding of the original program’s behavioral patterns. It then chooses a programming language, designs the system architecture, writes all logic from scratch, produces a build script, and finally submits a program that can be compiled, executed, and pass acceptance tests.

    This is fundamentally different from traditional code generation. Conventional tasks are closer to “implement functionality given a specification.” Program reconstruction is closer to “reverse-construct the specification when it is incomplete, then implement it.” The former tests code organization and language capability; the latter simultaneously tests hypothesis generation, experiment design, behavioral induction, architectural trade-offs, and closed-loop testing. For this reason, it is not surprising that program reconstruction benchmarks have long seen near-zero full-task pass rates.

    1. Difficulty of Black-Box Reconstruction: Three Gaps

    Information Gap

    The model cannot see source code or obtain structural information through decompilation. The executable is treated as a black box. The model must answer questions such as: What inputs does the program accept? What is the output format? How do error paths behave? How are edge conditions handled? Are there state changes? How do different parameters combine? None of these questions have ready-made answers; they must be approximated by designing probing test cases.

    Behavioral Coverage Gap

    A program that behaves correctly on regular inputs may not remain consistent under abnormal inputs, extreme scales, special encodings, concurrency, or resource-constrained scenarios. Acceptance systems typically use agent-driven fuzzing to generate a large number of targeted behavioral test cases, covering normal paths, anomalous paths, and edge conditions. Public information mentions test volumes that can reach hundreds of thousands of cases. This means the submitted program must maintain consistency across a wide behavioral space. If a single edge test deviates even slightly, the entire task may be judged as failed.

    Engineering Implementation Gap

    The model must not only “figure it out” but also “build it.” It has to decide on the implementation language, module decomposition, dependency strategy, build approach, and runtime entry point, while ensuring the submitted artifact can be reliably compiled and executed. For larger software forms — such as compilers, multimedia processing frameworks, or relational databases — the architectural and build complexity further amplifies the difficulty. One wrong design decision can surface as a behavioral deviation in later tests.

    A simplified evaluation flow can be illustrated as:

    1. for task in benchmark_tasks:
    2. artifact = load_executable_and_docs(task)
    3. hypotheses = agent.probe_behavior(artifact)
    4. design = agent.choose_architecture(hypotheses)
    5. source = agent.implement(design)
    6. build_script = agent.write_build_script(source)
    7. result = fuzz_acceptance(build_script, task.test_cases)
    8. if result.all_pass:
    9. task_solved += 1

    The pseudocode looks simple, but the real challenge lies between probe_behavior and all_pass: the model must continuously generate hypotheses, design experiments, revise its understanding, and convert that understanding into a buildable engineering artifact.

    2. Why the Evaluation Standard Is Strict: Full-Task Completion Is Meaningful

    Program reconstruction benchmarks typically use task-level acceptance rather than simple average-score ranking. A task is considered truly solved only when all test cases in its corresponding test suite pass. If the pass rate within a task reaches a high level, say above 95%, it can be considered “near-solved,” but it is still not a full pass. This strict criterion emphasizes behavioral consistency and engineering completeness, preventing models from obtaining inflated scores through partial correctness.

    Evaluation also tracks multiple statistical dimensions: average score, median, number of tasks above a pass-rate threshold, and cumulative score histograms. Average scores are easily influenced by a few high-scoring tasks; medians better reflect typical task performance. Thresholds like 90% or 50% pass rate reveal stability under different quality requirements. Cumulative histograms show the distribution shape — whether a few tasks stand out or the entire distribution shifts right. For long-tailed tasks like program reconstruction, a single metric is rarely sufficient; distributional observations are necessary.

    This is why “first perfect completion of a single instance” carries symbolic significance. It demonstrates that the model can not only approach the target but also cross the full-test-suite threshold on one complete task. Moreover, if the number of “near-solved” tasks increases significantly, it indicates that capability improvement is not a one-off event but is distributed across a broader task range.

    3. The Impact of High Reasoning Budget: From Probing to Closed-Loop

    In program reconstruction tasks, the reasoning budget has a direct effect. Under a medium reasoning budget, a model may tend to produce an implementation scheme quickly, with insufficient probing strategies, short hypothesis-validation loops, and frequent omissions of edge conditions. When the reasoning budget is increased, the model has more room for multi-round behavioral probing, candidate solution comparison, error localization, and test-case construction, thereby forming a more complete closed loop.

    The value of a high reasoning budget manifests in four key areas:

    1. More thorough probing strategy planning: The model can design an input-space sampling scheme first, then adjust probing focus based on observed results, rather than guessing in one shot.
    2. More systematic hypothesis management: Facing black-box behavior, the model needs to maintain multiple candidate explanations and eliminate incorrect hypotheses through experiments. A higher reasoning budget helps preserve and compare candidates.
    3. More robust architectural choices: During implementation, the model must decide module boundaries, data structures, and error-handling strategies. More reasoning space reduces the probability of early design mistakes.
    4. More complete testing loops: The model can proactively construct self-test cases, simulate edge cases from the acceptance suite, and detect behavioral deviations early.

    Public evaluation information shows that under a medium reasoning budget, the advantage of the relevant model was not obvious. When a higher reasoning budget was enabled, not only did the first perfect record for a single instance appear, but the number of near-solved tasks also rose to 26, with leading performance across multiple threshold statistics. This suggests that program reconstruction capability depends not only on parameter scale or code generation quality but also on reasoning budget scheduling, agent-loop design, and test-feedback mechanisms.

    4. Engineering Implications: How to Design Reproducible Program Reconstruction Evaluations

    For enterprises and developers, this class of benchmarks offers several important lessons.

    First, evaluation should shift from “snippet correctness” to “system runnability.” Code generation tasks may only look at unit tests or syntax correctness, but program reconstruction requires build, execution, and behavioral consistency. If enterprises want to evaluate code agents internally, they should establish reproducible build environments and automated acceptance pipelines.

    Second, reasoning budget should be managed as an independent variable. The same model can show significantly different results under different reasoning budgets. In practice, allocate budget dynamically based on task complexity: use low budgets for simple completions, and high budgets for complex refactoring, migration, and black-box behavior reconstruction. Control resource usage through queues, timeouts, and cost monitoring.

    Third, fuzzing and behavioral testing should be the core of acceptance. Manual examples often miss edge conditions. Batch evaluation can be automated using container platforms, object storage, logging services, and monitoring/alerting capabilities. Automate input generation, execution isolation, result collection, and failure attribution.

    Fourth, guard against overfitting to the test set. Program reconstruction evaluation should retain hidden test sets and dynamically generated cases to prevent models from tuning against fixed samples. The acceptance criterion should emphasize behavioral equivalence, not code-shape similarity.

    5. Limitations and Best Practices

    A high reasoning budget does not come without costs. Longer reasoning chains mean higher latency and cost, and may also lead to over-exploration. For production systems, a layered strategy is recommended: first use a low-cost model for initial screening, then enable high-reasoning configurations for high-risk tasks. Keep logs of the probing process for post-mortem failure analysis. Apply security isolation and resource limits to generated programs to prevent untrusted code from affecting the evaluation environment.

    Best practices can be summarized as: define task specifications clearly, isolate execution environments, automate build and acceptance, cover edge-case testing, record reasoning budgets, compare distributional metrics, and keep hidden tests. Only by moving evaluation from “single-point code correctness” to “system-level behavioral consistency” can results from program reconstruction benchmarks carry real engineering value.

    Conclusion

    The breaking of the zero-pass-rate barrier in program reconstruction benchmarks marks a shift for code agents — from local generation to black-box behavioral reconstruction and full system engineering loops. A high reasoning budget is not the only factor, but it demonstrates a key point: when models are given more thinking space and can form a feedback loop with test results, the ability to reconstruct complex software behavior shows an observable leap.