TL;DR
Reward models used to align Large Language Models (LLMs) often fall victim to "reward hacking" by favoring superficial traits like long-windedness or an overly agreeable tone. This paper introduces CARP, a framework that trains a prompt decoder to reconstruct the original prompt's intent from a sparse representation of the response. By using this reconstruction error as a regularization signal during training, the reward model is forced to prioritize genuine semantic alignment over superficial shortcuts.
What Problem Does This Paper Address?
Reinforcement Learning from Human Feedback (RLHF) relies heavily on reward models (RMs) to score LLM outputs based on human preferences. However, these models are notorious for exploiting imperfections in the training data—a phenomenon known as reward hacking. RMs frequently develop a strong verbosity bias (preferring longer answers) or sycophancy bias (preferring overly polite, praise-heavy answers), even if the response fails to accurately answer the prompt.
While prior methods attempt to mitigate this by directly penalizing specific artifacts or using data augmentation, they do not explicitly measure or enforce how well a response grounds itself in the user's actual intent. The authors address this gap by quantifying prompt intention directly from the response using a causal framework.
Methods
The authors introduce CARP (Causal Alignment through Response to Prompt prediction), which utilizes a novel Semantic Alignment Score (SAS) to regularize reward model training.
The methodology consists of several key steps:
- Causal Modeling: The authors model reward training using a Directed Acyclic Graph (DAG) to mathematically separate the latent prompt intention from context-free artifacts (like length or style).
- Sparse Representation Extraction: For any given response, a pre-trained Sparse Autoencoder (SAE) on LLaMA-3-8B extracts a sparse semantic vector from the model's hidden layers.
- Prompt Decoder Training: A decoder is trained to map this sparse response representation back to the dense embedding of the original prompt. Crucially, it uses a one-to-many training paradigm (one prompt matched with multiple diverse AI responses). This forces the decoder to focus on the shared semantic intent while ignoring idiosyncratic stylistic variations.
- SAS Regularization: The reconstruction error of the prompt decoder serves as the SAS. A lower score indicates the response faithfully preserves the prompt's intent. This score is integrated directly into the standard Bradley-Terry preference loss function to penalize responses that drift off-topic or bloat unnecessarily.
Datasets
The study leverages several distinct datasets for training and evaluation:
- Decoder Training: A hybrid dataset of 20,000 prompts drawn from Smoltalk (for reasoning and code) and AlpacaFarm (for daily dialogues). Each prompt is augmented with completions from DeepSeek-V3-Base, LLaMA3-72B, and Qwen3-235B to create a stylistically diverse "20K_augmented" dataset.
- Reward Model Training: A randomly sampled 70,000 subset from a massive 700,000 pairwise RLHF preference dataset.
- Evaluation:
- RewardBench: Used to evaluate the final RMs across chat, chat-hard, safety, and reasoning dimensions.
- AlpacaEval-2: Used for downstream Best-of-N policy selection testing.
- Controlled Rewrite Subsets: A custom 300-sample evaluation set built using GPT-4o-mini to generate controlled variations (lengthened, shortened, and off-topic) to explicitly test robustness against verbosity and topical drift.
Key Insights and Ideas
- Anti-Causal Engineering: Instead of predicting a reward directly from a response, CARP works backward. It asks: Does this response contain enough information to reconstruct the prompt that caused it? If it does, it's a strong indicator of faithful alignment.
- The Power of One-to-Many Training: By training the prompt decoder on multiple distinct responses to the exact same prompt, the idiosyncratic artifacts (like length or sycophancy) vary and cancel out in expectation. The common denominator remains the core prompt intent.
- Orthogonality to Preference Labels: Interestingly, the SAS alone achieves near-random accuracy (~50%) when trying to distinguish human-chosen responses from rejected ones. This proves that SAS captures a purely semantic signal that is orthogonal to standard preference labels, making it an excellent independent regularizer.
Key Results
- RewardBench Boosts: Incorporating CARP into Gemma-2-9B-it increased its overall RewardBench accuracy from 83.22% to 86.83%. Notably, the challenging "Chat-Hard" category saw a consistent gain of over 4% across both 2B and 9B model scales.
- Mitigating Verbosity Bias: During Best-of-N selection on AlpacaEval-2, CARP improved the length-controlled win rate while actually decreasing the average character length of the selected outputs (from 1667 to 1611 characters).
- Robustness to Topic Drift: In controlled rewrite tests, CARP-regularized models successfully penalized long, off-topic responses, achieving 64.2% accuracy compared to a random-guess level of 50.0% from the vanilla RM.
Limitations and Future Work
- Safety Alignment Conflicts: CARP can occasionally penalize safe responses. In safety-critical scenarios, a proper response (e.g., refusing to answer a harmful query) deliberately deviates from the literal intent of the prompt. This makes the refusal look "off-topic" to the decoder. The authors introduce a safety threshold ($\tau$) to disable regularization in extreme cases, but a more integrated solution is needed.
- Single-Turn Constraints: The current framework is trained and evaluated strictly on single-turn prompt-response pairs, meaning it does not yet capture evolving user intentions or cross-turn dependencies in multi-turn dialogues.
- Factuality vs. Topicality: SAS rewards responses that are topically relevant but does not explicitly measure factual correctness. The authors suggest that integrating CARP with Retrieval-Augmented Generation (RAG) frameworks could help bridge this gap for knowledge-intensive tasks.
Summary updated