Hack-Verifiable Environments: Towards Evaluating Reward Hacking at Scale

Amit Roth, Ankur Samanta, Matan Halevy, Yoav Levine, Yonathan Efroni
5/20/2026
cs.LGcs.AI

Official code: MajoRoth/hack-verifiable-environments (9 stars, MIT, last commit 2026-05-20).

Abstract

Aligning autonomous agents with human intent remains a central challenge in modern AI. A key manifestation of this challenge is reward hacking, whereby agents appear successful under the evaluation signal while violating the intended objective. Reward hacking has been observed across a wide range of settings, yet methods for reliably measuring it at scale remain lacking. In this work, we introduce a new evaluation paradigm for measuring reward hacking. Whereas prior studies have primarily analyzed it post hoc by inspecting agent trajectories, we instead embed detectable reward hacking opportunities directly into environments. This makes their exploitation verifiable by design, enabling deterministic and automated measurement of whether and how agents exploit such vulnerabilities. We instantiate this approach in $\textit{TextArena}$ and release $\textit{Hack-Verifiable TextArena}$, a testbed in which reward hacking can be measured reliably. Using this benchmark, we analyze reward hacking behavior across language models in diverse environments and settings. We open source the code at https://github.com/MajoRoth/hack-verifiable-environments/.

View on arXivView PDF

Code Implementations(1)

MIT

A GitHub page for hack-verifiable-environments paper

92PythonMay 12, 20265 months agoMIT

Similar Papers

Cite this paper

@article{roth2026hackverifiable,
  title  = {Hack-Verifiable Environments: Towards Evaluating Reward Hacking at Scale},
  author = {Amit Roth and Ankur Samanta and Matan Halevy and Yoav Levine and Yonathan Efroni},
  year   = {2026},
  eprint = {2605.20744},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.20744v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.20744.svg)](https://codeofpaper.com/paper/2605.20744)

Discussion