Enhancing Language Model Alignment: A Confidence-Based Approach to Label Smoothing

Baihe Huang, Hiteshi Sharma, Yi MaoEMNLP 2024

Abstract

Aligning Large Language Models (LLMs) with human preferences typically involves Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO). However, these methods often treat noisy human labels as absolute ground truth, leading to potential overfitting and training instability. We introduce Confidence Aware Label Smoothing (CALS), a principled method that adaptively adjusts label smoothing parameters based on estimated label confidence. By dynamically weighting the learning signal, CALS achieves superior performance and more stable training dynamics. Evaluations on Zephyr-7B and Starchat2-15B show that CALS consistently outperforms standard DPO in human preference win rates.

Introduction

The final stage of LLM training often utilizes DPO to align model outputs with human values. DPO simplifies alignment into a classification task where the model learns to prefer one response over another. A significant challenge arises from the inherent noise in human preference data; annotators frequently disagree or provide inconsistent labels. While standard label smoothing can mitigate overfitting, selecting a fixed smoothing parameter is often arbitrary. CALS addresses this by providing a data-driven, iterative approach to label smoothing that adjusts to the reliability of the training signal.

Methodology

CALS moves beyond static smoothing by updating the smoothing parameter $\alpha$ based on the model's own forecasts and observed human labels. The theoretical foundation of CALS rests on optimizing the bias-variance trade-off of the gradient. Specifically, the optimal $\alpha$ is shown to be a function of the ground-truth confidence of the label.

Comparison of standard DPO (a) vs. Confidence-Aware Label Smoothing (b), illustrating how CALS adjusts update speeds based on label confidence.

The algorithm discretizes predicted probabilities into bins and tracks the frequency of contradictions between model predictions and human labels. If the model is overconfident relative to the data's reliability in a specific bin, CALS increases the smoothing parameter, resulting in a more conservative update. This process requires no additional model passes, maintaining computational efficiency during the training loop.

Experimental Results

The effectiveness of CALS was evaluated using the Ultrafeedback and Orca datasets on Zephyr-7B and Starchat2-15B models. Performance was measured using high-end evaluators such as GPT-4 and ArmoRM.

Mean test loss over training steps for standard MLE vs. CALS variants, demonstrating improved stability and lower final loss for CALS.

Key findings include:

  • Higher Win Rates: CALS-trained models consistently achieved higher win rates against DPO baselines. For Zephyr-7B, GPT-4 preferred CALS-trained responses significantly more often than the baseline.
  • Robustness to Initialization: The method is robust to the initial choice of the smoothing parameter ($\alpha_0$), as iterative updates guide it toward an optimal level even from poor starting points.
  • Training Stability: Synthetic experiments confirmed that CALS (specifically the CALS-0 variant) achieves lower test loss and more stable convergence compared to standard maximum likelihood estimation (MLE).

Discussion and Conclusion

CALS introduces a "conservative equilibrium" where the model is encouraged to hedge its bets in the face of ambiguous data. By weighting gradients by both error and confidence, CALS prevents noisy labels from disproportionately affecting model weights. While future work is needed to address data sparsity in high-dimensional tasks and generalize to larger batch sizes, CALS represents a significant step toward more robust and reliable LLM alignment through principled label smoothing.

Summary updated

BibTeX
@inproceedings{huang2024enhancing,
  author = {Baihe Huang and Hiteshi Sharma and Yi Mao},
  title = {{Enhancing Language Model Alignment: A Confidence-Based Approach to Label Smoothing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.1189},
}
Figure