arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.04665

Harness-agnostic detection and immunization of reward hacking in self-evolving language models

Rongxin Yang, Yang Liu, Shang Luo, Haoxuan Jia, Chongyang Zhang, Hao Zheng, Yingguang Yang, Yulin Huang, Jianshen Zhang, Yongzhi Qi, Kefu Xu, Congjing Ran, Bin Chong

ABSTRACT

Self-evolving language models improve by proposing candidate updates and keeping whatever raises a visible score. When that score is an imperfect proxy for the capability one actually wants, sustained selection widens the gap between the two. This is reward hacking. We introduce HackProbe, a monitor that attaches to an arbitrary self-evolving loop through two black-box hooks, with no access to weights or activations. It keeps a secret, distribution-fixed comparison core, whose frozen distribution makes its capability proxy comparable across generations, alongside a rotated fresh layer that hardens the bank against co-adaptation. Four tests built on that proxy cover the level gap, a scale-aligned divergence with online changepoint detection, capability stagnation, and a conditional confidently-wrong rate; a Šidák correction turns them into a calibrated family-wise pp-value. Diagnosis alone recovers nothing, so a risk-aware immunization layer reselects an honest candidate from the proposal pool using the core together with a purely structural gaming footprint, disclosing at most log⁡2II\log_2 II bits per generation to the host. We prove a detectability bound that converts a target error rate into an explicit probe-size budget, and we delimit what probe rotation does and does not buy. On a controlled prompt-level host with four injected hacking channels and ground-truth labels, HackProbe reaches 0.763 AUROC against 0.663 for the strongest baseline and cuts the false-positive rate from 0.706 to 0.434. Its bandwidth-limited reselection is the only immunization level that returns more true capability under hacking, 5.2 points on average, than it forfeits on clean runs, 4.7; per-channel effects are mostly not individually significant.

1 INTRODUCTION

A growing family of language-model systems improves itself through a closed optimization loop: at each generation it proposes candidate updates to prompts, code, weights, or generated tasks, scores each candidate with a visible evaluator MM, and keeps the candidates that score highest (Yuan et al., 2024; Huang et al., 2026; Agrawal et al., 2026). The very thing that makes the loop powerful, relentless selection pressure on MM, is also what breaks it. Whenever MM is only a proxy for the target capability CC that we actually care about, optimizing MM hard and repeatedly tends to inflate MM without a matching gain in CC. This is reward hacking, an acute instance of Goodhart's law: once a measure becomes a target it ceases to be a good measure (Manheim & Garrabrant, 2018; Amodei et al., 2016; Skalse et al., 2022). Self-evolution is arguably the purest form of the strong optimization pressure under which Goodhart effects are most severe, because the same pressure is applied cumulatively across tens or hundreds of generations.

The assumption that a rising MM implies a rising CC is fragile in exactly the systems we care about. Verifier and solver are often the same model updated in lockstep, so self-rewarding training watches its own judge saturate rather than the policy improve (Yuan et al., 2024), and label-free schemes that reward self-consistency pay for confidently agreeing on wrong answers (Huang et al., 2026). Fixed benchmarks degrade under repeated selection too, and measurably so: held-out reconstructions of grade-school math show accuracy drops of up to eight points (Zhang et al., 2024a), one irrelevant clause dropped into a symbolic template can cost 65% of performance (Mirzadeh et al., 2025), and adversarial perturbation exposes scores resting on shallow behavior (Li et al., 2024). Frontier models go further, editing tests or reading answer files once the scoring function is visible (Wang et al., 2026). Responses so far are fragmented and harness-bound: patches built into one system, or monitors assuming access to weights and activations that a black-box setting does not provide. The closest precedent is reward-model overoptimization (Gao et al., 2023), where a held-out gold reward model shows a proxy eventually degrading true performance; but that diagnosis is computed once, offline, and reported rather than acted upon. What is missing is a capability coordinate orthogonal to MM, immune to the same pressure, and usable while the loop still runs. Appendix A places HackProbe against the fuller literature.

HackProbe supplies that coordinate. It attaches through two minimal hooks, observing each generation's visible score and querying the current candidate on held-out probes, and rests on a dual-layer probe bank (Figure 1). A secret, distribution-fixed comparison core provides a capability proxy C^\widehat{C} whose first differences track genuine capability change rather than shifting test difficulty, precisely because the distribution is frozen; a rotated, online-generated fresh layer behind an air gap hardens the bank against co-adaptation. Four statistics with different blind spots read off that proxy: a level-gap test for hacking present from the outset, the scale-aligned divergence Dt=ΔMt−λΔC^tD_t = \Delta M_t - \lambda \Delta \widehat{C}_t with online change-point detection, a stagnation test, and a conditional confidently-wrong-rate test aimed at self-consistency bias. Since a diagnosis arriving after the host has discarded the honest candidate recovers nothing, a risk-aware immunization layer reselects from the pool using the core and a purely structural gaming footprint, returning only a coarsely quantized signal.

The comparison-core estimator is what makes the rest work. Its distribution is fixed, so differences across generations mean something, and the detector we build on it reports a calibrated family-wise pp-value rather than an uncalibrated heuristic. Diagnosis by itself changes nothing, though, so we turn it into protection: a reselection rule that discloses at most log⁡2Π\log_2 \Pi bits per generation to the host. That cap does real work. It is the reason the feedback never becomes a second score to optimize. On the theory side a target error rate converts into a probe-size budget growing as 1/δ21/\delta^2 in the divergence gap, and we are equally explicit about what rotation does not buy, since it stops memorization but leaves the covering number of the probe generator as the real ceiling. Empirically, on a controlled injection protocol with ground-truth labels, HackProbe beats the strongest baseline on AUROC and cuts its false-positive rate by nearly two fifths; of the four immunization levels, only the bandwidth-limited one returns more true capability than it costs. Calibrating on three hacking channels and testing on the withheld fourth retains most of that quality on three of them.

References (38)

  • Reflective prompt evolution can outperform reinforcement learning
  • Concrete Problems in AI Safety
  • Training Verifiers to Solve Math Word Problems
  • Scaling laws for reward model overoptimization
  • Measuring Mathematical Problem Solving With the MATH Dataset
  • R-zero: Self-evolving reasoning llm from zero data
  • Compiling declarative language model calls into self-improving pipelines (opens arXiv in a new tab)
  • Gsm-plus: A comprehensive benchmark for evaluating the robustness of llms as mathematical problem solvers
  • Categorizing variants of goodhart's law (opens arXiv in a new tab)
  • Gsm-symbolic: Understanding the limitations of mathematical reasoning in large language models
  • Defining and characterizing reward gaming
  • Mechanisms, emergent misalignment, challenges (opens arXiv in a new tab)
  • Self-rewarding language models (opens arXiv in a new tab)
  • *Advances in Neural Information Processing Systems*, 37: 46819–46836, 2024a
  • Pacost: Paired confidence significance testing for benchmark contamination detection in large language models
  • self-rewarding training whose judge saturates (Yuan et al., 2024), label-free co-evolution rewarding self-consistency (Huang et al., 2026), reflective prompt evolution (Agrawal et al., 2026), and declarative program pipelines (Khattab et al., 2023)
  • This conditioning matters: unconditionally, $\Delta M_t$ and $\Delta \hat{C}_t$
  • All variance statements below refer to the conditional object
  • Each generation's fresh probes are drawn uniformly at random, with or without replacement, from a pool of effective size $N$, and are invisible to the host before scoring
  • Hence $D_t = \Delta M_t - \lambda \Delta\widehat{C}_t$ is sub-Gaussian with variance proxy
  • Under an honest generation, $\mu_t \leq 0$ and hence $\mathbb{E}[D_t \mid \text{honest}] \leq \mu_H$; under a hacking generation, $\mu_t \geq \delta$ and hence $\mathbb{E}[D_t \mid \text{hacking}] \geq \mu_H + \delta$
  • (4) then suffices
  • Since $(1 - \alpha_{\text{atk}})^{1/n_f} \to 1$ as $n_f \to \infty$, the required coverage tends to $N$; when the pool is generated online, $N$ grows without bound and no finite memorized set suffices
  • essentially the entire pool
  • A structural attacker instead models the response surface
  • Figure 2 contrasts the two regimes schematically, and the lemma below formalizes why the first-difference statistics are blind in the second while J3 is not
  • (a) The two track together until the marked generation and then decouple, $M_t$ climbing on while capability $\widehat{C}_t$ flattens
  • Let $\text{acc} = \frac{1}{n} \sum_i y_i$ and let $\text{cwr}$ be the sample mean of $s_i$ over the $n_w$ items with $y_i = 0$, and recall $g^{(3)} = \text{cwr} - (a_3 + b_3 \text{acc})$ with the honest affine coefficients $(a_3, b_3)$ fixed by calibration
  • Refusing the independence assumption costs us a little tightness, since adding sub-Gaussian parameters is conservative whenever the two noise sources are close to orthogonal
  • (a) Detection rate against core size at a fixed false-positive rate of 0.10, with 95% intervals, against the curve $1 - \exp(-n\delta^2/8V)$ implied by Eq
  • If the attack elevates $M$ relative to the calibrated honest relation $a + \lambda_{\mathrm{lv1}}\widehat{C}$, then the level residual $g^{(0)}$ is positive too and J0 is not blind here; the distinction between J0 and J3 in this regime is one of power, not of consistency
  • Detection rises from 0.13 to 0.81 and tracks the overlaid prediction to within 0.035 throughout, and that prediction is not a fit: its constants come from calibration runs and stay fixed across the sweep
  • Clean-run cost grows monotonically with bandwidth, from 0.031 at $L = 2$ to 0.103 once the quantizer is removed
  • Each row removes one statistic and its Page–Hinkley companion where it has one, then recalibrates
  • To test it we need a host that is allowed to fit the probe layer, so we grant the adversary the outputs of every probe it has been scored on and let it optimize against them for $T$ generations
  • >Fresh layer</td><td colspan=
  • Rotation caps inflation at 0.07 over four times as many generations
  • It fits the honest affine relations for J0 and J3, estimates the honest null moments of $D_t$, initializes $\lambda$, fits the fusion, and calibrates $\tau$ to a target false-positive rate