Research map / Reinforcement learning / RL from feedback
Learning Goal-Conditioned Representations for Language Reward Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Trains LM reward models with an added goal-conditioned contrastive loss on hidden representations (Q-function-like), improving math and HH reward AUROC/accuracy and enabling Q-value filtering and guided-decoding steering.
Problem
Reward models for RLHF on language models are trained only with a sequence-level preference loss, so their intermediate representations do not encode how likely a partial generation is to reach a good goal state; it is unclear how representation learning can help RLHF for LMs.
Approach
Jointly train the reward model with a contrastive goal-conditioned loss that pulls together representations of a source state and a future state from the preferred completion while pushing apart a source state and a state from the dispreferred completion, so the cosine similarity approximates a goal-conditioned Q-function usable for filtering and steering.
Key results
- Q-Function reward model improves math reward AUROC by roughly 0.05 (ID) to 0.09 on GSM8k/MATH and ~0.04 average on OOD datasets.
- Q-value filtering on 50 samples raises majority-vote accuracy by 1.2% on GSM8k and 3.9% on MATH, filtering up to 65.6% of generations (55.6% tokens saved on MATH).
- On Helpful-Harmless, the contrastive RM reaches 70.5% accuracy vs 68.2% for the baseline; steering Llama 3 improves helpfulness win rate by 9.6% over SFT guided decoding.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add goal-conditioned contrastive training to the reward model | Llama 3-8B-Instruct reward model · Helpful-Harmless test set | accuracy: 68.2 -> 70.5 | Helped |
| Filter generations with negative Q-values before majority voting | 50-generation majority vote · GSM8k | accuracy: 84.8 -> 86.0 | Helped |
| Filter generations with negative Q-values before majority voting | 50-generation majority vote · MATH | accuracy: 55.6 -> 59.6 | Helped |
| Use Q-Function reward model instead of preference-ranking reward model for PPO | Codellama PPO · GSM8k, MATH, algebra222, GSM-Hard, Asdiv, mawps, svamp | accuracy: 79.3 -> 80.5; 43.4 -> 45.1; 65.8 -> 70.9; 61.1 -> 62.7; 77.4 -> 79.5; 91.6 -> 93.6; 78.5 -> 81.2 | Helped |
| Steer guided decoding with the Q-Function prototype instead of SFT | Llama-3-8B-Instruct · HelpSteer helpfulness | winrate vs. SFT (%): 45.2 -> 54.8 | Helped |
| Steer guided decoding with the Q-Function prototype instead of SFT | Llama-3-8B-Instruct · HelpSteer correctness | winrate vs. SFT (%): 43.9 -> 56.1 | Helped |
| Steer guided decoding with the Q-Function prototype instead of SFT | Llama-3-8B-Instruct · HelpSteer coherence | winrate vs. SFT (%): 41.8 -> 58.3 | Helped |
| Steer guided decoding with the Q-Function prototype instead of SFT | Llama-3-8B-Instruct · HelpSteer complexity | winrate vs. SFT (%): 39.2 -> 60.8 | Helped |
| Replace preferred/dispreferred paired goal sampling with random goal-state sampling (ablation) | Q-Function reward model · GSM8k and MATH | AUROC: 0.852 -> 0.801; 0.708 -> 0.626 | Hurt |
| Use batch-averaged positive and negative goal states instead of SGS (ablation) | Q-Function reward model · GSM8k and MATH | AUROC: 0.852 -> 0.835; 0.708 -> 0.707 | Hurt |
| Use a randomly sampled completion token rather than the last token as goal state (ablation) | Q-value filtering · GSM8k and MATH | accuracy: 86.0 -> 85.9; 59.6 -> 57.3 | Hurt |
| Use a randomly sampled completion token rather than the last token as goal state (ablation) | Q-value filtering · GSM8k and MATH | proportion correct: 84.0 -> 81.8; 52.0 -> 45.3 | Hurt |
Surprising findings
- Random source/goal state sampling for the contrastive loss degraded OOD performance below the standard preference-ranking baseline.
- DPO performed on par with the contrastive-RM PPO policy on in-distribution math tasks.
Limitations
- Inference-time goal state is a mean of training preferred completions, a mismatch with the training-time goal states.
- Partial Q-values are correlated with partial reward scores, so the signals are entangled and hard to disentangle for tasks like creative writing.
- PPO gains are modest (1.7% weighted average) and the RM was trained on off-policy Mixtral generations.
Experimental setup
Datasets: OpenMathInstruct-1 GSM8k MATH MathQA Helpful-Harmless HelpSteer
Benchmarks: GSM8k MATH algebra222 GSM-Hard Asdiv mawps svamp Helpful-Harmless HelpSteer
Metrics: AUROC accuracy majority-vote accuracy win rate proportion correct tokens saved
Baselines: Codellama 7b Reward Llama 8b Reward DPO PPO with preference-ranking reward model SFT guided decoding
Builds on: Bradley-Terry preference reward modeling proximal policy optimization direct preference optimization OpenMath-CodeLlama
Closest papers by meaning
- GRAM: A Generative Foundation Reward Model for Reward Generalization (ICML 2025 · similarity 0.91)
- RM-Bench: Benchmarking Reward Models of Language Models with Subtlety and Style (ICLR 2025 · similarity 0.91)
- Regularizing Hidden States Enables Learning Generalizable Reward Model for LLMs (NeurIPS 2024 · similarity 0.90)
- Active Reward Modeling: Adaptive Preference Labeling for Large Language Model Alignment (ICML 2025 · similarity 0.90)
- Discriminative Policy Optimization for Token-Level Reward Models (ICML 2025 · similarity 0.90)
- Vanishing Gradients in Reinforcement Finetuning of Language Models (ICLR 2024 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
