Pith. sign in

REVIEW 1 cited by

Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinement

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2507.18742 v1 pith:IFMVGDYB submitted 2025-07-24 cs.CL cs.AI

Specification Self-Correction: Mitigating In-Context Reward Hacking Through Test-Time Refinement

classification cs.CL cs.AI
keywords specificationtaintedflawshackingin-contextinferencemodelmodels
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Language models (LMs) are susceptible to in-context reward hacking, where they exploit flaws in tainted or faulty written specifications or rubrics to achieve high scores without fulfilling the user's true intent. We introduce Specification Self-Correction (SSC), a novel, test-time framework that enables an LM to identify and correct flaws within its own guiding specification. SSC employs a multi-step inference process where the model first generates a response based on a potentially tainted specification, critiques its output, and then revises the specification itself to remove the exploitable loophole. A final, more robust response is then generated using this self-corrected specification. Across experiments spanning creative writing and agentic coding tasks with several LMs, we demonstrate that while models initially game tainted specifications in 50-70\% of cases, the SSC process reduces this vulnerability by over 90\%. This dynamic repair occurs at inference time, requires no weight modification, and leads to more robustly aligned model behavior. Code at https://github.com/vicgalle/specification-self-correction .

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Self-Authored Verification Is Unreliable in Heuristic Self-Improving Agents

    cs.CL 2026-07 conditional novelty 6.0

    When agents co-edit policies and self-tests, self-scores stay high while deployment fails; a sealed exogenous non-regression audit (SEAL) reliably reduces those regressions.