TL;DR
Imagine grading a 500-word essay with a single "B+" and asking the student to figure out which exact letters earned that grade—that is essentially how standard Reinforcement Learning from Human Feedback (RLHF) trains language models. While recent fixes try to grade every individual word, this paper shows that doing so actually amplifies noise and destabilizes training. Instead, the authors introduce S2T-RLHF, a hierarchical framework that mirrors how humans read: first dividing credit fairly among complete sentences, and then zeroing in on the specific words that matter most.
What Problem Does This Paper Address?
When we align Large Language Models (LLMs) with human preferences using standard RLHF, the reward model reads an entire generated response and spits out a single number—one scalar score for the whole sequence. Yet, the LLM generates text one token (word or word-piece) at a time. Propagating one global score backward across hundreds of tokens leaves credit assignment wildly ambiguous, leading to high-variance gradients, length bias, and sudden "reward collapse."
Recently, researchers have tried to fix this by breaking that single score down into dense, token-level rewards. The implicit assumption was simple: finer-grained supervision equals better optimization.
The authors challenge this assumption. Humans don't judge text by isolated sub-word tokens; we judge coherent thoughts—claims, refusals, tone—which live at the sentence level. When a noisy, response-level score is forced directly down to individual tokens, it amplifies reward model quirks and destabilizes training. The real challenge isn't maximizing credit precision, but matching the granularity of the reward to the natural semantic structure of language.
Methods
To bridge the gap between global preferences and local token generation without retraining the reward model or collecting expensive human annotations, the authors propose Sentence-to-Token RLHF (S2T-RLHF), a two-stage hierarchical pipeline integrated into standard PPO training:
- Stage I: Sentence-Level Allocation (Aiming for Fairness). First, the response is split into sentences. To figure out how much each sentence matters, the system slightly perturbs each sentence's meaning and observes how the fixed reward model's score changes, estimating a "semantic influence vector" via ridge regression. Sentences then "negotiate" their share of the global reward using Nash Bargaining—a cooperative game theory concept. Here, the goal is fairness: preventing one flashy sentence from hogging all the reward so essential logical setup sentences aren't suppressed, nor longer sentences unfairly favored.
- Stage II: Token-Level Refinement (Aiming for Importance). Within a single sentence, fairness is no longer the goal—key nouns, numbers, or negations ("not") carry way more weight than filler words ("the"). A lightweight neural network called the Dirichlet Token Allocation Network (DTAN)—trained alongside the policy—takes token hidden states and predicts weights on a probability simplex (summing to 1 within each sentence). This deterministically redistributes each sentence's allotted reward to its most decisive tokens.
Datasets
- Primary Training & Analysis: HH-RLHF (Anthropic's Helpfulness and Harmlessness dataset).
- Zero-Shot Robustness & Cross-Dataset Generalization: AdvBench, RealToxicityPrompts, ToxiGen, and SafeRLHF.
- No new benchmarks were introduced in this work.
Key Insights and Ideas
- Precision $\neq$ Stability: Chasing finer token-level credit assignment from a coarse human preference label is ill-posed. Pushing directly to tokens acts like a noise amplifier, especially under aggressive learning rates where pure token-level methods can collapse early in training.
- Asymmetric Goals Across Scales: Language has a natural hierarchy that requires two opposite philosophies. Across sentences, credit should be cooperative and balanced so multi-step reasoning stays intact. Within a sentence, credit should be selective and sparse so critical words aren't diluted by grammar glue.
- Productive Policy Drift: Usually, if an RLHF model drifts too far from its starting reference model (measured by KL divergence), it's a red flag for reward hacking or collapse. Because S2T-RLHF stabilizes early learning via sentence grounding, it allows the policy to safely explore further in later stages—turning larger KL divergence into genuine reward gains rather than gibberish.
Key Results
Using Gemma-2-9B as the policy model and RM-Gemma-2B as the training reward model, S2T-RLHF consistently outperformed vanilla RLHF and modern token-level credit assignment baselines—ABC (attention-based) and SCAR (Shapley-value-based):
- Pairwise Preference Wins (GPT-4o-mini Judge): S2T-RLHF beat standard RLHF (53.0% win vs. 36.5% loss), ABC (51.5% vs. 38.0%), and SCAR (48.1% vs. 43.1%).
- Evaluator Robustness (RM-Gemma-7B Judge): The win advantage held up under an independent reward model judge against RLHF (51.1% vs. 39.5%), ABC (48.7% vs. 43.8%), and SCAR (45.8% vs. 44.1%).
- Hierarchy Ablations: Under GPT-4o-mini, the full two-stage S2T hierarchy outperformed both Sentence-only (54.5% vs. 35.4%) and Token-only (48.6% vs. 41.6%) variants, proving that sentence stability and token precision work best together.
Limitations and Future Work
- Computational Overhead: While the Nash bargaining solver and the DTAN network are very lightweight, S2T-RLHF introduces extra compute overhead during training from the perturbation-based step needed to estimate how each sentence influences the reward model.
- Alternative Realizations: The authors note that S2T-RLHF is just one practical instantiation of their broader "granularity-aware" design principle; Nash bargaining is used for its smooth mathematical properties rather than strict game-theoretic optimality, meaning alternative cooperative allocation mechanisms could be explored in future designs.
Summary updated