Skip to content
DraconiticResearch
Search Sources API
277,308 studies31 sourcesUpdated 16 min ago
PreprintCC BY 4.0arXiv

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

Abstract

A growing failure mode in agent evaluation and training is that models can achieve high evaluation scores (e.g., test pass rates) by exploiting shortcuts instead of solving the intended task, making these scores deceptive. 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 score is deliberately capped below 100%. This capped-score 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.

Related

  1. Population density constrains coexistence of cooperative and cheating Kluyveromyces lactis through frequency-dependent physical interactions
    Rodrigo Zorrilla González, Michael Travisano
    PLOS OnePeer-reviewedCC BY 4.0Full textEvolutionary biologyMicrobiologyPLOS
  2. Perceived factors associated with self-reported AI-assisted academic cheating among undergraduate students: Evidence from ethical ambiguity, technological affordances, institutional gaps, academic pressure, and peer comparison
    Hanh Van Nguyen, Mai Thi-Thuy Duong
    PLOS OnePeer-reviewedCC BY 4.0Full textNeuroscienceAlgebra & number theoryPLOS
  3. Polar Carleson zeto set preventing Dirichlet cyclicity
    Bartosz Malman
    arXivPreprintCC BY 4.0Full textAnalysis & PDEsarXiv
  4. PSEUDOSPECTRAL PHENOMENA PREVENTING THE ANALYTICITY SECTOR OF A ORNSTEIN-UHLENBECK SEMIGROUP TO BE RULED BY THE SPECTRAL ANGLE OF ITS GENERATOR
    Karel Pravda-Starov
    HALPreprintCC BY 4.0Full textAnalysis & PDEsHALarXiv
  5. Preventing cycles in Lotka--Volterra systems
    Matheus C. Bortolan, Piotr Kalita, José Antonio Langa +1
    arXivPreprintarXiv licenceFull textDynamical systemsarXiv
BibTeX
@misc{lodkaew2026coding,
  title = {{Do Coding Agents Deceive Us? Detecting and Preventing Cheating via Capped Evaluation with Randomized Tests}},
  author = {Thanawat Lodkaew and Johannes Ackermann and Soichiro Nishimori and Nontawat Charoenphakdee and Masashi Sugiyama and Takashi Ishida},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2606.07379},
  eprint = {2606.07379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.07379},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Do Coding Agents Deceive Us? Detecting and Preventing Cheating via Capped Evaluation with Randomized Tests
AU  - Thanawat Lodkaew
AU  - Johannes Ackermann
AU  - Soichiro Nishimori
AU  - Nontawat Charoenphakdee
AU  - Masashi Sugiyama
AU  - Takashi Ishida
PY  - 2026
DA  - 2026/11/16
PB  - arXiv
DO  - 10.48550/arxiv.2606.07379
UR  - https://arxiv.org/abs/2606.07379
AB  - A growing failure mode in agent evaluation and training is that models can achieve high evaluation scores (e.g., test pass rates) by exploiting shortcuts instead of solving the intended task, making these scores deceptive. 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 score is deliberately capped below 100%. This capped-score 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.
ER  -