Do Coding Agents Deceive Us? Detecting and Preventing Cheating via Capped Evaluation with Randomized Tests

arXiv:2606.073799.7
Predicted impact top 5% in LG · last 90 daysOriginality Incremental advance
AI Analysis

For researchers evaluating coding agents, this provides a principled method to detect and prevent deceptive performance, addressing a growing failure mode in agent evaluation.

The paper introduces CapCode, a framework for constructing coding datasets with randomized tests capped below perfect performance, enabling detection of cheating (exploiting shortcuts) in agent evaluation. Experiments show CapCode detects cheating while preserving model rankings, and CapReward reduces cheating behavior.

A growing failure mode in agent evaluation and training is that models can achieve high evaluation scores by exploiting shortcuts instead of solving the intended task, producing deceptive performance. This makes evaluation scores unreliable as measures of true task-solving ability. We propose CapCode, a framework for constructing coding datasets with randomized tests whose best achievable non-cheating performance is deliberately capped below one. This capped-performance design gives evaluation scores a clearer interpretation: scores substantially above the cap are implausible and therefore provide evidence of cheating. To prevent cheating, we propose CapReward, a reward design based on the CapCode principle to discourage optimization beyond the cap. Experiments across multiple datasets show that CapCode detects cheating while preserving performance ranking of models, and CapReward reduces cheating behavior, yielding models that better follow the intended task specification.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes