Leveraging Robust Optimization for LLM Alignment under Distribution Shifts

Mingye Zhu, Yi Liu, Junbo Guo, Quan Wang, Yong-Dong Zhang, Zhendong Mao · DOI

Aligning Large Large Models (LLMs) with human values is a critical step in making them useful and safe. Traditionally, this process relies on "golden" human-annotated preference data. However, as the demand for aligned models grows, researchers increasingly turn to synthetic data generated by other LLMs to scale training. While efficient, this approach introduces a significant challenge: synthetic data often contains subtle biases and "distribution shifts" that differ from genuine human intent.

In the paper "Leveraging Robust Optimization for LLM Alignment under Distribution Shifts," researchers from the University of Science and Technology of China and People’s Daily Online introduce DoRA (Distribution-aware optimization for Robust Alignment). DoRA is a modular framework designed to make alignment algorithms resilient to imperfect, mixed-source training data.

The Challenge: Mixture Response Shift

Most alignment techniques, such as Direct Preference Optimization (DPO), are built on the principle of Empirical Risk Minimization (ERM). ERM assumes that the training data distribution ($P$) is a perfect proxy for the target human-preference distribution ($Q_0$). In practice, training sets are often a mixture: $P = \alpha Q_0 + \beta Q_1$, where $Q_1$ represents a shifted distribution from a synthetic generator.

This Mixture Response Shift can lead models to overfit to the artifacts of the synthetic generator rather than learning the underlying human preferences. Standard robust optimization techniques often suffer from "over-pessimism," where they focus too heavily on difficult outliers that may simply be noise, leading to poor generalization.

Figure 1: Illustration of Mixture Response Shift and the conceptual difference between standard ERM training and the proposed DoRA framework.

The DoRA Framework

To address these shifts, the authors propose DoRA, a two-phase optimization strategy that identifies and prioritizes high-quality samples.

1. Sample-Level Calibration

The first phase involves training simple, distribution-aware classifiers (e.g., based on BERT) to distinguish between the target human data and various synthetic sources. For any given sample $z$, these classifiers produce a calibration score $\tilde{h}(z)$. This score quantifies how likely a specific response is to have originated from the target human-preferred distribution rather than a biased synthetic source.

2. Calibrated Robust Optimization

In the second phase, these calibration scores are integrated into a Distributionally Robust Optimization (DRO) objective. Instead of treating all training samples equally, DoRA uses the scores to reweight the loss function.

If a sample has a high training loss but a low calibration score—indicating it is likely a noisy outlier from a shifted distribution—DoRA "downweights" its influence. Conversely, samples that align well with the target distribution are prioritized. This mechanism allows DoRA to minimize the "worst-case loss" specifically within the regions of the data space most relevant to human preferences, effectively mitigating the over-pessimism of traditional DRO.

Figure 4: The complete DoRA pipeline, from identifying preferences across different distributions to training distribution-aware classifiers and applying the calibrated alignment objective.

Experimental Evaluation

The researchers evaluated DoRA as a "plug-in" for several popular alignment algorithms, including DPO, RRHF, and LIRE, across multiple benchmarks:

  • HH-RLHF & Summarization: On the "Helpful and Harmless" dataset, a Mistral-7B model trained with DoRA-enhanced DPO achieved a lower "lose rate" (21.4%) compared to vanilla DPO (23.5%).
  • UltraFeedback: In listwise preference settings (comparing multiple responses), the LIRE algorithm saw a dramatic win rate increase from 72.8% to 84.0% when using DoRA.
  • Robustness to Noise: To test resilience, the authors intentionally flipped labels in the training data (making 60% of the preferences "wrong"). DoRA remained significantly more stable than standard ERM-based methods, demonstrating its ability to filter out misleading signals.

Conclusion and Future Directions

DoRA represents a significant step forward in making LLM alignment more robust to the realities of modern data pipelines. Its modular nature allows it to be integrated into existing workflows with minimal friction.

A current limitation is the requirement for source labels (e.g., knowing which data is human vs. synthetic) to train the initial classifiers. Future work may focus on unsupervised methods to derive these signals. Nonetheless, DoRA provides a powerful tool for ensuring that as we scale LLM training with synthetic data, we do not lose sight of the human values we intend to align with.

Summary updated

BibTeX
@inproceedings{zhu2025leveraging,
  author = {Mingye Zhu and Yi Liu and Junbo Guo and Quan Wang and Yong-Dong Zhang and Zhendong Mao},
  title = {{Leveraging Robust Optimization for LLM Alignment under Distribution Shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=pdc0yEoOj6},
}
Figure