Sequence to Sequence Reward Modeling: Improving RLHF by Language Feedback

Jiayi Zhou, Jiaming Ji, Juntao Dai, Dong Li, Yaodong Yang

TL;DR

Traditional Reinforcement Learning from Human Feedback (RLHF) relies on "black-box" scalar rewards that often lead models to game the system—for example, by becoming overly verbose or refusing to answer safe questions. This paper introduces a sequence-to-sequence (seq2seq) reward modeling approach that provides fine-grained, token-level language feedback, significantly improving alignment and performance across multiple tasks without requiring any additional human annotations.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human values typically involves training a Reward Model (RM) to output a single number (a scalar) representing how "good" a response is. However, this coarse-grained feedback is a double-edged sword. Because the reward is sparse, models often fall into "biased local optimization."

Common symptoms include:

  • Refusal-to-response paradigm: The model becomes so afraid of being unsafe that it refuses to answer even harmless prompts (e.g., "I'm sorry, I cannot assist with that").
  • Long-response bias: The model learns that longer answers generally get higher scalar rewards, leading to unnecessary verbosity.

The authors argue that a single number cannot capture the nuance of human preference. They aim to provide the model with a "critique" in the form of language, showing the model exactly where a response went wrong.

Figure 1: The traditional sequence-to-scalar reward model provides only coarse-grained scalar feedback on the LLM’s response, making it prone to exploiting unexpected gener- alization for high rewards during the RL fine-tuning phase (Skalse and Abate 2023), e.g., falling into a refusal-to-answer paradigm (Bai et al. 2022; Dai et al. 2023). Without addi- tional annotations, we propose a novel sequence-to-sequence reward modeling method that offers richer language feed- back, improving RLHF performance.

Methods

The authors propose a two-stage pipeline: Reward Modeling and Reward Extracting.

  1. Reward Modeling as Sequence MLE: Instead of training the RM to classify which of two responses is better, they train it as a generative model using Maximum Likelihood Estimation (MLE).
  2. Correction Mapping: If the input is a "rejected" response, the RM is trained to output the "chosen" response.
  3. Identity Mapping: If the input is already the "chosen" response, the RM is trained to output it unchanged.
  4. Reward Extracting: To use this for Reinforcement Learning (like PPO), they need to turn these sequences back into numbers. They compare the LLM's generated response to the RM's "ideal" output token-by-token:
  5. Tokens that match the RM's output at the beginning receive a positive reward (+1.0).
  6. The moment the LLM's response diverges from the RM's ideal path, those diverging tokens receive a negative reward (-1.0).
Figure 2: Overview of seq2seq reward modeling pipeline. Our pipeline consists of two stages: (1) Reward Modeling: We make the seq2seq RM output the chosen response when the rejected response is input, i.e., Correction Mapping, and output the chosen response when the chosen response is input, i.e., Identity Mapping, by sequence maximum loglikelihood estimation (MLE). (2) Reward Extracting: We reward the response with a positive score until it diverges from the seq2seq RM output, after which we input the response token-by-token, assigning negative scores to those diverging tokens.

Datasets

The researchers evaluated their method using 2B and 7B parameter models (Gemma and Llama2) across three primary tasks:

  • PKU-SafeRLHF: A dataset for single-turn safety dialogues.
  • Dialogsum: A synthetic dataset for dialogue summarization.
  • TL;DR: A human-annotated dataset for text summarization.
  • Xsum: Used specifically to test Out-of-Distribution (OOD) robustness, where the model is prompted with data styles it didn't see during reward model training.

Key Insights and Ideas

  • Language is a Richer Signal: Moving from a 1D scalar space to the high-dimensional language space allows the reward model to capture fine-grained differences that scalars miss.
  • Precise Credit Assignment: By rewarding or punishing specific tokens, the model learns exactly which part of its sentence was problematic. This is much more efficient than telling a model its entire paragraph was "a 0.4 out of 1.0."
  • Mitigating "Refusal" via Guidance: Traditional RMs punish unsafe answers, but don't necessarily show the model how to be safe and helpful. The seq2seq RM provides an explicit "Identity Mapping" for safe, helpful responses, preventing the model from collapsing into a "safe but useless" state.
Figure 3: An example of extracting positive and negative scores from seq2seq RM. x denotes the prompt, y is the LLMs generated response, <BOS> is the beginning of string token, and rseq(·) is the inference function of seq2seq RM.

Key Results

  • Superior Win Rates: The proposed method (PPO-T) achieved an average win rate of 76.9% against standard SFT baselines across three NLP tasks.
  • Safety without Sacrifice: In safety tasks, the seq2seq RM significantly improved safety scores while maintaining high utility (helpfulness) scores, whereas traditional scalar RMs caused a "distribution collapse" where utility plummeted.
  • Mitigating Length Bias: In summarization tasks, the seq2seq approach effectively reduced the tendency of models to generate overly long responses just to chase rewards.
  • OOD Robustness: The model maintained strong performance even when faced with prompts from a different distribution (Xsum), outperforming standard PPO.
Comparison of utility and safety score distributions, showing how seq2seq RM prevents utility collapse.

Limitations and Future Work

  • Inference Overhead: Generating a "reference" sequence from the RM for every RL step is computationally more expensive than a single scalar forward pass.
  • RM Quality Dependency: The performance is strictly capped by the quality of the seq2seq RM. If the RM's "corrections" are hallucinated or poor, the actor model will learn those errors.
  • Future Directions: The authors suggest extending this to multi-turn dialogues and exploring more complex reasoning tasks where step-by-step language feedback could be even more transformative.

Summary updated

BibTeX
@inproceedings{zhou2025sequence,
  author = {Jiayi Zhou and Jiaming Ji and Juntao Dai and Dong Li and Yaodong Yang},
  title = {{Sequence to Sequence Reward Modeling: Improving RLHF by Language Feedback}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i26.34992},
}
Figure