Metraipolis › archive › dc_d0f5c020c696
hacktrace: behavior-supervised detection of reward hacking during code generation — arXiv:2610.03055
- Source
- arXiv
- Original
- https://arxiv.org/abs/2610.03055
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-05T22:49:29.020Z
- SHA-256 of the archived text
a409c18c05979ebdffc8c60bded23078e52add43b3537b29812d0305ad6b9ada- Stable URL of this page
https://metraipolis.com/documento/dc_d0f5c020c696
How to cite
hacktrace: behavior-supervised detection of reward hacking during code generation — arXiv:2610.03055 — arXiv, https://arxiv.org/abs/2610.03055 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d0f5c020c696 (Metraipolis archive dc_d0f5c020c696, sha256 a409c18c05979ebdffc8c60bded23078e52add43b3537b29812d0305ad6b9ada)
BibTeX
@misc{dcd0f5c020c696,
title = {hacktrace: behavior-supervised detection of reward hacking during code generation — arXiv:2610.03055},
howpublished = {arXiv},
url = {https://arxiv.org/abs/2610.03055},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d0f5c020c696; sha256 a409c18c05979ebdffc8c60bded23078e52add43b3537b29812d0305ad6b9ada},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.03055. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
A coding agent can earn a passing grade by fixing its code, or by deleting the test that exposes the bug. Detecting such reward hacking requires recognizing attempted shortcuts, including those that fail. We release 173,561 annotated multi-turn coding trajectories from Qwen3-8B and show that supervising shortcut behavior independently of exploit success substantially improves detection. We introduce HACKTRACE, a behavior-supervised monitor that reads the internal states the agent already computes while generating code. Reusing these states enables monitoring before a turn is complete, without additional language-model tokens or passes. Combining this evidence with static features of the final files achieves a mean per-problem AUC of 0.997 with 8 ms of monitoring overhead, improving both accuracy and latency over monitors that run the model again on an honesty question and answer. The same generation states also provide an inexpensive monitoring signal for reinforcement learning. With strong GRPO penalties, HACKTRACE reduces the cheating share of passing solutions from 82-91% to 1-5%, while retaining honest, correct solutions and maintaining high detection accuracy as the policy evolves. Our results show that both the supervision target and the source of monitoring evidence matter for turning accurate detection into a useful training signal. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.03055 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-05T22:45:55.671Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).