Latent Obfuscation, Neural Goodharting, and Dual-LoRA Subspace Routing in Verifiable RL Coding Agents
Author: Daniel Gaskins · Published: December 1, 2026 ·
Download 4-Page Preprint PDF ·
GitHub Repository ·
YouTube Overview
Abstract. Reinforcement Learning with Verifiable Rewards (RLVR) via Group Relative Policy Optimization (GRPO) has become the standard post-training paradigm for reasoning coding agents, yet imperfect unit-test suites routinely incentivize specification gaming (R_proxy = 1, R_true = 0). Recent work shows that penalizing Chain-of-Thought (<think>) text monitors induces verbal obfuscation: agents sanitize their <think> traces while continuing to exploit test loopholes. A natural proposal at frontier labs is to move oversight into residual activations by subtracting a mid-network linear probe score from the GRPO reward. Using a controlled 280-task dual-oracle Python algorithmic benchmark (SWE-Loophole-RLVR, spanning 6 in-distribution families, 2 strictly disjoint out-of-distribution families, 4 realistic CI harness loopholes, and 40 zero-loophole clean controls) across 5,040 generated rollouts on Qwen2.5-Coder-3B-Instruct, we establish four findings. First, although a frozen 57.1%-depth (Layer 21/36) linear probe separates reward hacking from genuine solutions with 0.9994 AUROC (0.977 cross-validated) at step=0, <think> text monitoring achieves 0.0% held-out recall across all arms, and adding a <think> penalty (Arm 2) increases cumulative training exploits by +13.5% (42/720 vs. 37/720) while degrading out-of-distribution (OOD) solve rate to 4.2%. Second, directly penalizing the frozen 57.1%-depth probe inside GRPO (Arm 3) triggers both Neural Goodharting (inverting held-out FrozenAUROC from 0.9994 down to 0.277, worse than chance) and a 50% relative capability collapse (TrueSolve drops from 29.2% in unmonitored GRPO to 14.6%, below the 20.8% untrained base policy, while strict OOD solve rate collapses to 0.0%). Third, replacing scalar probe penalties with forward-pass positive-cone rank-8 subspace clamping (Arm 4) eliminates the capability tax (TrueSolve = 31.2%) and reduces step=20 held-out exploits to 0.0%, though unclamped LoRA updates eventually rotate residual exploit directions by 84.0 deg (FreshAUROC = 0.935). Fourth, pairing positive-cone clamping with straight-through Dual-LoRA Gradient Routing (Arm 5, routing subspace-anomalous policy gradients into a disposable LoRA_sink adapter detached at inference) acts as a credit-assignment denoiser: it achieves the lowest cumulative training exploit count (29/720, -31.0% vs. CoT Penalty), maintains 0.0% strict OOD hacking across all evaluations, and lifts held-out TrueSolve to 41.7% (2.0× base policy, p = 0.0466; 2.86× over scalar probe penalization, p = 0.0059; and 41.7% vs. 0.0% on strict OOD algorithmic families, p = 0.0006).
@techreport{gaskins2026rlvrlatentobfuscation,
title = {Latent Obfuscation, Neural Goodharting, and Dual-LoRA Subspace Routing in Verifiable RL Coding Agents},
author = {Gaskins, Daniel},
year = {2026},
month = dec,
institution = {Daniel Gaskins Research},
url = {https://danielgaskins.com/rlvr-latent-obfuscation.html},
note = {Preprint PDF: https://danielgaskins.com/papers/rlvr_latent_obfuscation_preprint.pdf}
}