IR
3: Contrastive Inverse Reinforcement Learning for Interpretable Detection and Mitigation of Reward Hacking
IR3 (Interpretable Reward Reconstruction and Rectification) explains and repairs reward hacking in RLHF-tuned LLMs via Contrastive Inverse Reinforcement Learning (C-IRL). C-IRL reconstructs the implicit reward function by contrasting post-alignment and policy outputs, then sparse autoencoders decompose it into interpretable features whose contribution analysis identifies hacking signatures. Mitigation strategies (clean reward optimization, adversarial shaping, constrained optimization, feature-guided distillation) target problematic features, achieving 0.89 correlation with ground-truth rewards, over 90% precision in hacking feature identification, and reducing hacking while maintaining capabilities within 3% of the original model.