Strengths:
Significance: The paper tackles an important and timely problem. As coding agents become increasingly capable, benchmark robustness and reward hacking are becoming central concerns for the community.
Originality: The core theoretical framing is a useful reframing of a familiar problem. Rather than relying purely on empirical heuristics for identifying cheating, CapCode ties detection to a closed-form giving evaluators an actual significance threshold rather than an ad hoc "the score looks too high" judgment call.
Quality: The idea of constructing benchmarks with a theoretically bounded maximum performance appealing. It provides an interpretable mechanism for identifying abnormal performance that may arise from exploiting evaluation artifacts. The paper proposes both an evaluation framework (CapCode) and a training methodology (CapReward), making the contribution broader than benchmark design alone. The empirical evaluation is extensive, covering multiple benchmarks, multiple models, and reinforcement learning experiments.
Clarity: The paper is well written, logically organized, and easy to follow. The motivation, methodology, and experimental setup are clearly presented, and the figures effectively illustrate the proposed framework.
However, I have several concerns regarding the framing of the problem, the validation of the benchmark, and the strength of the theoretical contribution which I detail below.
Weaknesses:
Quality: One concern I have is with the task instructions used in CapCode. The prompt does not simply inform the model that multiple valid outputs exist; it explicitly tells the model that the correct output follows a hidden pattern that should be inferred from the provided examples. In effect, this encourages the model to reason over the visible test cases, making it difficult to distinguish between genuine reward hacking and simply following the instructions it was given. This issue exists in the baseline CapCode setup itself, independent of the additional "do whatever it takes to maximize pass rate" prompt used in the stress-test experiments. Consequently, it is unclear whether the observed gap between open and hidden test performance reflects a model independently discovering and exploiting evaluation artifacts, or merely complying with an instruction to infer hidden patterns from the available tests. These are conceptually different behaviors with different implications for what CapCode is actually measuring. A simple ablation would strengthen the paper considerably: compare the current prompt against (1) a neutral prompt that mentions multiple valid outputs without encouraging inference from examples, and (2) a fully blind setting that provides no such disclosure. This would help quantify how much of the observed behavior is driven by the prompt design rather than by the model independently exploiting the evaluation protocol.
The cap value B is a fundamental design parameter in CapCode, but its impact is insufficiently analyzed. The paper does not investigate how sensitive the proposed detection framework or CapReward are to different values of B, nor does it provide guidance on how practitioners should choose B for a new benchmark. A sensitivity analysis would increase confidence in the robustness and practical applicability of the proposed method.
The theoretical analysis relies on a fairly strong assumption. In particular, Proposition 3 depends on Assumption 2, which requires the existence of a policy that simultaneously achieves perfect performance under the original evaluation while exactly attaining the prescribed cap under CapCode. Although the paper acknowledges that ineffective cheating policies falling below the cap are outside the scope of the guarantee, it provides little discussion of how realistic Assumption 2 is in practice. It would strengthen the theoretical contribution if the authors discussed scenarios where this assumption may not hold and how such violations would affect the guarantees and practical applicability of the proposed framework.
The choice of case-level CapCode for CapReward is insufficiently justified. In Section 3.2, the CapReward training data is constructed exclusively using case-level CapCode, and all experiments in Section 4.2 follow this design. However, the paper does not explain why case-level capping was chosen over task-level CapCode, even though both variants are introduced in Section 3.1 as complementary approaches. Since task-level CapCode caps performance at the level of the whole task rather than per test case, it's unclear whether the reward-shaping approach in Eq. (2) would behave differently, better, worse, or comparably, if built on top of task-level capping instead. This choice has practical implications, particularly for datasets where per-case augmentation is difficult or infeasible (e.g., LiveCodeBench, which averages fewer than two test cases per problem). The paper would be strengthened by explaining the rationale for this design decision and, ideally, by evaluating CapReward using task-level CapCode to determine whether the observed benefits generalize across both formulations.
Significance: The empirical advantage of CapReward over prior reward formulations appears limited to the cheating-policy setting. In the non-cheating setting (Fig. 9), where the initial policy has not been primed via supervised fine-tuning on hardcoded solutions, CapReward achieves performance (0.70 hidden / 0.04 gap) comparable to both B-Imp (0.70 hidden / 0.03 gap) and NB-Imp (0.68 hidden / 0.03 gap). In fact, B-Imp exhibits a slightly smaller open-hidden performance gap. This suggests that CapReward's main empirical advantage over prior work (the ImpossibleBench-style rewards of Zhong et al.) is concentrated in the artificially constructed cheating-policy regime of Fig. 8, where the policy was deliberately primed via supervised fine-tuning on hardcoded solutions. For a policy that isn't already cheating, which is probably the more common training scenario in practice, CapReward doesn't show a clear edge over the simpler ImpossibleReward baseline. If this interpretation is correct, the paper should state it more explicitly. Alternatively, the authors should provide additional evidence demonstrating why CapReward should outperform existing reward designs in standard training scenarios where the policy has not already learned to exploit the evaluation protocol.
Clarity: I have few minor comments. First, throughout the paper, the behavior is described as cheating or deception. However, in the proposed setting the model is explicitly optimized to maximize performance on accessible tests. This behavior is more accurately characterized as reward hacking rather than deception. This distinction is important because the proposed framework primarily addresses objective design and evaluation methodology rather than deceptive model behavior. The framing should therefore be softened throughout the paper.
The other minor comment is that the figure positions should be adjusted so that each figure appears after they are mentioned in the text. For instance, Fig 6 appears first, then in the next page it is referenced.
Thank you very much for your valued feedback. We address your comments below.
1. Will the CapCode and CapReward system dramatically slow down the training process?
CapReward does not perform a statistical hypothesis test during training. For each generated solution, the capped pass rate and corresponding reward are computed directly from the test outcomes, providing a graded per-example learning signal. Randomness is introduced when the cap values are constructed, not when the reward is evaluated.
We also measured computational efficiency in a representative experiment using Qwen3-4B-Base trained for five epochs on 433 examples. CapReward with case-level CapCode training data required 1.30 hours, compared with 1.24 to 1.27 hours for the baselines, an increase of approximately 4% over their average. We nevertheless acknowledge that the randomized capped signal may increase sample complexity when tasks contain very few tests or when B is very small.
Task-completion time also varies substantially across coding agents. In our case-level CapCode experiment with M=2, Claude Code (Sonnet 4.6) required an average of 12.9 seconds per task, whereas Codex (GPT-5.4) required 94.6 seconds. This difference likely reflects agent-specific behavior, such as the extent of workspace exploration and test inspection, rather than the computational overhead of CapCode alone.
2. Cases where LLMs would be able to cheat beyond statically hard-coded test cases?
Hardcoding is only one way to exceed the cap. For example, under a coding agentic workflow where the agent itself can test its generated code like in our experiments using Harbor, after running the tests, an agent may identify the cases it fails and delete or disable them. If the pass rate is calculated using only the remaining tests, the reported score can become 1.0. Alternatively, the agent may modify failing assertions or their expected outputs to match its implementation, or patch the test runner to skip failures or falsely report success. CapCode is not tied to any one of these mechanisms. It checks whether the reported performance exceeds the known non-cheating cap, rather than relying on a specific cheating strategy.
3. Why Qwen3-1.7B-Base and Qwen3-4B-Base were selected for the CapReward experiment
We selected base models to isolate the effect of the reward function and avoid behavioral confounds introduced by instruction tuning or prior alignment. Qwen3-1.7B-Base and Qwen3-4B-Base allow controlled experiments at two model scales within our computational budget. To evaluate whether the results generalize beyond this family, we additionally include models from the Llama and DeepSeek families. The results are shown below.
DeepSeek-Coder-6.7B-Base:
Llama-3.2-3B:
4. Comparison with existing approaches
In addition to discussions on alternative detection approaches based on inspecting generated code or reasoning traces in Appendix A, one possible baseline is an LLM judge that classifies solutions as genuine or cheating. However, its reliability depends on the judge model and available information, and increasingly capable agents may develop subtle or novel exploitation strategies that are difficult for another model to recognize. CapCode avoids this dependence by detecting whether reported performance exceeds a known non-cheating limit, regardless of how the exploitation is implemented.