Preference-grounded Token-level Guidance for Language Model Fine-tuning

Shentao Yang, Shujian Zhang, Congying Xia, Yihao Feng, Caiming Xiong, Mingyuan Zhou

Summary

This work addresses the "granularity mismatch" inherent in language model (LM) alignment: while human feedback is typically provided on entire sequences, models learn and generate at the level of individual tokens. By grounding sequence-level preferences into dense, token-level guidance through an alternating training process, the authors achieve competitive results in prompt generation and text summarization, alongside significantly more stable learning dynamics.

The Granularity Mismatch Problem

When fine-tuning a Language Model using human feedback (such as in RLHF), evaluators usually rank full sentences or paragraphs. This creates a fundamental granularity mismatch. The feedback is "coarse-grained" (sequence-level), but the model’s training loss and generation processes are "fine-grained" (token-level).

This dynamic presents a severe credit assignment problem. If a model generates a 50-word summary and a human rates it poorly, which specific words caused the failure? Was it a misleading opening sentence, a factual error in the middle, or a repetitive conclusion? Standard Reinforcement Learning (RL) approaches often treat the reward as a single, delayed "win/loss" signal at the very end of the sequence. This leads to high gradient variance and low sample efficiency, making it difficult for the model to isolate exactly what it did right or wrong.

Proposed Methodology

To bridge this gap, the authors propose an alternate training process that iterates between two distinct stages: learning token-level guidance and utilizing that guidance to update the LM.

Overview of the proposed alternating training framework, iterating between token-level guidance learning and LM fine-tuning.

1. Token-level Guidance Learning

Instead of relying solely on a sequence-level score, the framework trains a reward model ($r_\phi$) to predict a score for every single token.

  • Beyond Pairwise Comparisons: While most alignment methods compare only two sequences, this framework utilizes the Plackett-Luce model to learn from a ranking of multiple ($K \ge 2$) generations simultaneously.
  • Custom Aggregation Functions: The authors argue that simply "summing" token rewards (the standard in RL) is suboptimal for many tasks. For instance, in prompt generation, a single "key token" might dictate the success of the entire prompt. To address this, they introduce flexible aggregation functions—such as Average, Soft Maximum, and Soft Minimum—to better reflect task-specific quality definitions.

2. LM Fine-tuning (Guidance Utilization)

Once dense token-level guidance is established, "minimalist" objectives are used to update the LM ($\pi_\theta$):

  • Without Supervised Data: The model uses a REINFORCE-style update augmented with an entropy gradient, encouraging the discovery of diverse, high-quality generations.
  • With Supervised Data: The model employs Token-weighted MLE. Rather than treating every word in a target sequence as equally important, the LM pays more attention to tokens that the guidance model identifies as high-value.

To mitigate distribution shifts as the LM evolves, the reward model is periodically retrained during the first half of the training process.

Experimental Setup

The researchers evaluated their method on two distinct natural language generation tasks:

  • Discrete-prompt Generation: Finding the optimal 5-token "instruction" to trigger a frozen LM to classify text. Datasets included SST-2 (sentiment), Yelp Polarity, and AG News (topic classification).
  • Text Summarization: Generating concise summaries using the CNN/DailyMail and XSum datasets.

Key Insights and Results

The "Key Token" Hypothesis and Length Bias

In tasks like prompt generation, the "Maximum" aggregation function frequently outperformed the standard "Sum." This supports the hypothesis that for certain tasks, success depends on generating one or two critical words rather than maintaining a high average quality across the whole string. Furthermore, standard RL rewards often favor longer sequences simply because they accumulate more token-level rewards. By using Average or Soft-Max aggregation, the authors successfully decoupled sequence quality from sequence length.

Performance on Discrete Prompts

As prompts grow longer (e.g., 20 tokens), standard RL methods like RLPrompt suffer massive performance drops due to delayed feedback. The proposed method maintained much higher accuracy, proving that grounding preferences at the token level is vital for longer sequences.

Performance comparison on discrete prompt generation tasks (SST-2, Yelp Polarity, AG News).

On the SST-2 dataset, the method achieved 92.6% accuracy, outperforming the previous state-of-the-art discrete prompt method (RLPrompt at 90.5%) and even surpassing several continuous (soft) prompt tuning baselines.

Performance on Summarization

On the CNN/DailyMail dataset, the "Average" variant of the proposed method beat standard supervised fine-tuning and RL baselines (such as PPO and NLPO) across ROUGE-1, ROUGE-2, and ROUGE-L metrics. In blind human evaluations, annotators preferred the summaries generated by this method over those from standard RL-based models, noting distinct improvements in overall coherence and quality.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Ranking Complexity: Obtaining high-quality human or metric rankings for more than seven sequences simultaneously is computationally expensive and practically challenging.
  • Noisy Preferences: The token-level grounding relies heavily on the accuracy of the initial preference ordering. Flawed initial feedback will result in flawed token-level guidance.
  • Compute Overhead: Periodically retraining the reward model adds computational cost, though empirical results show retraining can be halted halfway through the process without significant performance degradation.

Future work may explore combining this token-level grounding with more complex RL architectures or extending the framework to open-ended, multi-turn dialogue tasks.

Summary updated

BibTeX
@inproceedings{yang2023preference,
  author = {Shentao Yang and Shujian Zhang and Congying Xia and Yihao Feng and Caiming Xiong and Mingyuan Zhou},
  title = {{Preference-grounded Token-level Guidance for Language Model Fine-tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=6SRE9GZ9s6},
}
Figure