ULMA: Unified Language Model Alignment with Human Demonstration and Point-wise Preference

Tianchi Cai, Xierui Song, Jiyan Jiang, Fei Teng, Jinjie Gu, Guannan ZhangarXiv 2023

TL;DR

ULMA (Unified Language Model Alignment) introduces a single-step framework that unifies supervised fine-tuning (SFT) and preference learning using point-wise (absolute) human feedback. By bypassing the need for pairwise comparisons, ULMA prevents information loss, handles datasets with only a single response per prompt, and significantly outperforms standard methods like DPO and RLHF.

What Problem Does This Paper Address?

To ensure Large Language Models (LLMs) are helpful and harmless, researchers typically follow a two-step alignment process: Supervised Fine-Tuning (SFT) on high-quality demonstrations, followed by preference learning (like RLHF or Direct Preference Optimization, DPO).

However, popular preference learning methods fundamentally rely on pairwise data—explicitly comparing a "winning" response to a "losing" one. This introduces two major challenges in real-world scenarios:

  1. Information Loss: Many real-world datasets use point-wise feedback, such as absolute upvote counts on forums or numerical safety ratings. Forcing these absolute scores into binary pairs discards valuable context about the magnitude of the quality difference.
  2. Inapplicability to Single-Response Data: In scenarios like red-teaming (where safety testers try to break a model), datasets often contain only a single response per prompt. Because there is no alternative response to compare it against, pairwise methods like DPO and RLHF fail entirely.

The authors address this gap by developing a point-wise preference learning framework that natively handles absolute binary or continuous scores.

Methods

The paper introduces two core techniques:

1. Point-wise Direct Preference Optimization (Point-wise DPO)

The authors formulate a point-wise alternative to DPO. For binary labels ($z_i \in \{0, 1\}$), they assume the probability of a response being good follows a Bernoulli distribution determined by an implicit latent reward. By leveraging the same mathematical trick as vanilla DPO, they derive a closed-form solution that optimizes the policy directly from absolute scores, completely bypassing explicit reward modeling. They also extend this to continuous labels using a Mean Squared Error (MSE) loss formulation.

2. Unified Language Model Alignment (ULMA)

By analyzing the gradients of Point-wise DPO, the authors discovered a striking connection to SFT: the gradient components for positive and negative samples are completely decoupled. Specifically, optimizing for positive samples in Point-wise DPO looks exactly like SFT, just distorted by adaptive weights from a KL-divergence regularizer.

Armed with this insight, they created ULMA, a hybrid objective function that treats data parts differently:

  • Positive Samples: Optimized using a vanilla negative log-likelihood loss (pure SFT), allowing the model to fully exploit high-quality demonstrations without restrictive regularization.
  • Negative Samples: Optimized using Point-wise DPO with a KL regularizer, which prevents the model from overfitting to bad responses and controls gradient coefficients.

Datasets

The authors evaluated their methods on four distinct datasets:

  • Anthropic HH (Helpful and Harmless): A standard pairwise dataset, converted to a point-wise format by assigning $r=1$ to chosen responses and $r=0$ to rejected ones.
  • QA-feedback: A binary point-wise dataset where incorrect LLM answers are labeled as negative ($0$) and human-corrected answers are positive ($1$).
  • Red-team: A continuous point-wise dataset measuring model robustness against adversarial attacks, with human ratings ranging from $0$ to $4$.
  • Golden HH (Newly Introduced): A high-quality variant of the Anthropic HH dataset created by the authors. They replaced the original human-chosen responses with superior, safer responses generated by GPT-4 to test how well alignment algorithms scale with data quality.

Key Insights and Ideas

  • Decoupled Gradients: Unlike pairwise DPO, where the update to a winning response is mathematically bound to the losing response, Point-wise DPO separates them. This allows independent analysis and unique treatments for positive vs. negative data.
  • The Regularization Trade-off: The authors show that applying a KL penalty to positive data actually hurts performance if the data is pristine. Pure SFT loss is better for gold-standard demonstrations. Conversely, applying a KL penalty to negative data is vital to prevent the model from drifting into uncalibrated territory.

Key Results

ULMA consistently achieved the lowest perplexity (better language modeling) and the highest harmlessness/helpfulness scores across the board.

Figure 1: Win/tie/loss rates on Golden HH. The results on other datasets are given in Appendix B.

As shown in the performance summary below, on the Red-team dataset—where pairwise RLHF and DPO cannot run—Point-wise DPO and ULMA successfully aligned the model, with ULMA achieving the top safety score ($0.92$).

Table 1: Performance comparison of different methods on various datasets. The perplexity (ppl.; the lower, the better) and the harmless score (in win&tie rate; the higher, the better) as evaluated by GPT4 are presented. Note that pair-wise methods (RLHF and DPO) cannot be applied to the red-team dataset, as we have discussed.

Additionally, the authors found that ULMA scales exceptionally well with data quality. When evaluating the transition from standard HH data to the high-quality Golden HH data, ULMA demonstrated a much steeper performance gain than any other baseline.

Limitations and Future Work

The primary limitation acknowledged by the authors is their exclusive focus on the standard KL-divergence regularizer for preference data. They note that exploring alternative regularization techniques within the ULMA framework remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{cai2023ulma,
  author = {Tianchi Cai and Xierui Song and Jiyan Jiang and Fei Teng and Jinjie Gu and Guannan Zhang},
  title = {{ULMA: Unified Language Model Alignment with Human Demonstration and Point-wise Preference}},
  year = {2023},
  eprint = {2312.02554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.02554},
}
Figure