S2T-RLHF: Hierarchical Credit Assignment for Stable Preference-Based RLHF

Wei Chen, Guanghui Zhu, Yafei Li, Limin Wang, Yihua HuangNeurIPS 2026

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:

Figure 1: Overview of S2T-RLHF. A global sequence-level reward is first decomposed into sentence- level credits via inter-sentence bargaining (Stage I), and then refined into token-level rewards through Dirichlet posterior inference (Stage II), enabling stable and interpretable credit assignment in RLHF without modifying the reward model.
  1. 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.
  2. 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):

Mean reward trajectories over training steps showing S2T-RLHF achieving higher final rewards.
  • 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

Abstract

Reinforcement learning from human feedback (RLHF) with preference-based reward models often exhibits unstable training dynamics. A key contributing factor is that standard RLHF relies on a single sequence-level scalar reward, which is propagated to token-level policy updates and leaves credit assignment within a response inherently ambiguous. Recent work has attempted to address this issue by refining rewards into denser token-level supervision, often relying on the implicit assumption that finer-grained credit assignment improves optimization. We argue that this assumption is incomplete: when preference signals are noisy and only defined at the response level, overly fine-grained reward refinement can amplify reward uncertainty and destabilize learning. To address this problem, we propose a granularity-aware principle for hierarchical credit assignment, emphasizing stability-oriented reward design rather than maximal allocation precision. Under this principle, sentences serve as a natural intermediate granularity, balancing semantic coherence with robustness to token-level noise. Guided by this view, we introduce S2T-RLHF. This sentence-to-token reward decomposition framework first allocates sequence-level preference rewards across sentences and then applies bounded token-level refinement within each sentence, without reward-model retraining or token-level supervision. Experiments across multiple datasets and optimization settings show that S2T-RLHF improves training stability and robustness while maintaining competitive preference alignment.
BibTeX
@inproceedings{chen2026s,
  author = {Wei Chen and Guanghui Zhu and Yafei Li and Limin Wang and Yihua Huang},
  title = {{S2T-RLHF: Hierarchical Credit Assignment for Stable Preference-Based RLHF}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=s0T8MQbeRk},
}
Figure