Shallow Preference Signals: Large Language Model Aligns Even Better with Truncated Data?

Xuan Qi, Jiahao Qiu, Xinzhe Juan, Yue Wu, Mengdi Wang

TL;DR

Large language models (LLMs) trained for alignment often rely on preference data where the crucial signals indicating response quality are concentrated in the early tokens. Surprisingly, models trained on truncated data (keeping only the first 40-50% of tokens) perform as well as, or even better than, models trained on full responses, suggesting current alignment methods might be overly focused on initial segments.

What Problem Does This Paper Address?

Aligning large language models (LLMs) with human preferences is a critical challenge in AI. Methods like Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) use human-annotated preference datasets to guide LLMs. However, these datasets can be large and expensive to collect. This paper investigates whether the entire response is necessary for effective alignment, or if a significant portion of the valuable signal is contained in a smaller, initial segment of the text. This could lead to more efficient training and a deeper understanding of how LLMs learn preferences.

Methods

The core of the paper's methodology involves systematically truncating preference datasets at various points (e.g., retaining only 50%, 40%, 33%, or 25% of the original tokens). They then train both reward models and DPO models on these truncated datasets and compare their performance against models trained on the full, original datasets.

To further explore the implications of this "shallow preference signal" phenomenon, they also introduce and evaluate two novel decoding strategies:

  • Length Control Decoding: Samples from the DPO policy for the first t tokens and then switches to the reference policy for the remaining tokens.
  • KL Threshold Control Decoding: Dynamically samples from either the DPO or reference policy based on whether the KL divergence between the two exceeds a predefined threshold.

These decoding strategies aim to leverage the observed early-token preference signals during inference.

Datasets

The authors utilize several established datasets for their experiments:

  • Skywork-Reward-Preference-80K-v0.2: Used for training reward models and DPO models, and for evaluating DPO implicit reward accuracy.
  • Ultrafeedback-binarized: Used for training reward models across different tasks (Helpfulness, Honesty, Instruction Following, Truthfulness).
  • RLHFlow-pair-data-v2-80K-wsafety: Used for training reward models.
  • SHP dataset: Used in a follow-up experiment to investigate whether the shallow preference signal phenomenon persists with human-generated data.

No new benchmarks were introduced, but the experiments leverage existing ones to analyze the impact of data truncation.

Key Insights and Ideas

  • Shallow Preference Signals: The most surprising finding is that the critical signals for determining preference between two responses are often concentrated in the early tokens of the text. This means LLMs might not need to process the entire response to learn what humans prefer.
  • Truncation is Effective: Training alignment models (both reward models and DPO) on significantly truncated datasets (e.g., 40-50% of tokens) yields performance comparable to, or even better than, training on full datasets. This suggests a potential for substantial efficiency gains in training.
  • Implications for Alignment: Current alignment methods might be implicitly over-focusing on the initial parts of responses, potentially leading to a superficial form of alignment that doesn't fully capture nuanced human preferences across the entire output.
  • Decoding Strategies Benefit: Novel decoding strategies that prioritize early tokens can improve the reward-KL divergence tradeoff during generation, further supporting the shallow preference signal hypothesis.

Key Results

  • Reward Models: On the Skywork-Reward-Preference-80K-v0.2 dataset, a reward model trained on a 40% truncated dataset outperformed the model trained on the full dataset. Similar trends were observed across other datasets and truncation ratios, with performance only slightly degrading at very short truncations (e.g., 25%).
  • DPO Models: For DPO training on the Skywork dataset, truncating responses to 50% or 40% of their length had a minimal impact on performance, with models performing comparably to those trained on full data.
  • Decoding Strategies: Length Control and KL Threshold Control decoding strategies showed improvements in the reward-KL tradeoff compared to a baseline, confirming that focusing on early tokens can lead to better alignment during generation.
  • Human-Generated Data: The shallow preference signal phenomenon was observed to persist even when using human-generated data (SHP dataset), suggesting it's not solely an artifact of synthetic data generation.

Limitations and Future Work

  • Alternative Explanations: The authors acknowledge that other factors beyond shallow preference signals might influence the observed results, such as inherent limitations of the DPO algorithm itself.
  • Theoretical Foundation: A comprehensive theoretical explanation for why specific parts of a response contribute more to preference signals is still lacking. Future work could delve deeper into this to establish a more robust theoretical framework.
  • "Shallow" Alignment: The paper notes that alignment achieved through truncated data might be "shallow alignment," improving metric performance but potentially moving further away from true real-world human values. This suggests a need for strategies that consider entire sentences for more effective and holistic alignment.

Summary updated

BibTeX
@inproceedings{qi2025shallow,
  author = {Xuan Qi and Jiahao Qiu and Xinzhe Juan and Yue Wu and Mengdi Wang},
  title = {{Shallow Preference Signals: Large Language Model Aligns Even Better with Truncated Data?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure