Uncertainty Aware Learning for Language Model Alignment

Yikun Wang, Rui Zheng, Liang Ding, Qi Zhang, Dahua Lin, Dacheng Tao

Introduction

Standard Supervised Fine-Tuning (SFT) for Large Language Models (LLMs) typically treats all training examples as absolute ground truths. However, this approach ignores the intrinsic ambiguity present in diverse datasets. While a mathematical proof has low entropy and requires precise replication, a social dialogue is high-entropy, with numerous valid responses. Applying uniform supervision across these disparate tasks can lead to model degradation and catastrophic forgetting, as the model is forced to be overly confident in naturally ambiguous scenarios.

Methodology: Uncertainty-Aware Learning (UAL)

To address these limitations, this paper introduces Uncertainty-Aware Learning (UAL), a two-stage framework designed to adaptively adjust training constraints based on task ambiguity.

  1. Uncertainty Estimation: A teacher model (GPT-4) acts as an autonomous judge, scoring training samples on a scale of 0 to 99 based on their inherent need for diversity and ambiguity.
  2. Uncertainty Mapping: These scores are converted into label smoothing values. Low-uncertainty samples (e.g., reasoning) receive minimal smoothing to ensure precision, while high-uncertainty samples (e.g., creative writing) receive higher smoothing to preserve the model's pre-trained linguistic flexibility.

Feature Organization and the Uncertainty Hypothesis

The core hypothesis of UAL is that alignment should focus on learning the appropriate level of trust for a given label. By relaxing constraints on uncertain data, UAL prevents over-fitting to specific phrasings in creative tasks.

Conceptual comparison of feature organization between SFT and UAL

Visual analysis using Principal Component Analysis (PCA) reveals that UAL leads to superior feature clustering. In the internal representation space, tokens of the same class are grouped more distinctly compared to standard SFT, suggesting a more organized and robust internal model of language.

Performance Evaluation

UAL was evaluated across several benchmarks, including the Open LLM Leaderboard and AlpacaEval, using models like Llama-2-7B and Mistral-7B.

Performance improvements of UAL over SFT in high and low entropy scenarios

In mixed-task scenarios, UAL demonstrated significant gains over standard SFT. For instance, on a Mistral-7B model, UAL achieved a 10.62% improvement in high-entropy tasks (AlpacaEval) and a 1.81% boost in complex low-entropy reasoning tasks. Furthermore, models tuned with UAL on minimal data (e.g., 1k LIMA samples) outperformed models trained on much larger datasets, such as Alpaca-7B (52k samples).

Conclusion and Future Work

UAL effectively mitigates the performance drops often associated with SFT by respecting the natural ambiguity of language. While the current implementation relies on GPT-4 for uncertainty scoring, future work will explore more cost-effective proxies like Perplexity (PPL) and the application of UAL to full-parameter fine-tuning and larger model scales.

Summary updated

BibTeX
@inproceedings{wang2024uncertainty,
  author = {Yikun Wang and Rui Zheng and Liang Ding and Qi Zhang and Dahua Lin and Dacheng Tao},
  title = {{Uncertainty Aware Learning for Language Model Alignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.597},
}
Figure