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

Published: (June 5, 2026 at 11:20 AM EDT)
2 min read
Source: arXiv

Source: arXiv - 2606.07379v1

Overview

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.

Key Contributions

This paper presents research in the following areas:

  • cs.LG
  • cs.AI
  • cs.CL
  • stat.ME

Methodology

Please refer to the full paper for detailed methodology.

Practical Implications

This research contributes to the advancement of cs.LG.

Authors

  • Thanawat Lodkaew
  • Johannes Ackermann
  • Soichiro Nishimori
  • Nontawat Charoenphakdee
  • Masashi Sugiyama
  • Takashi Ishida

Paper Information

  • arXiv ID: 2606.07379v1
  • Categories: cs.LG, cs.AI, cs.CL, stat.ME
  • Published: June 5, 2026
  • PDF: Download PDF
0 views
Back to Blog

Related posts

Read more »