arXiv:2610.28229cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28229

TPO: Tri-level Distributionally Robust Learning for OOD Direct Preference Optimization

Chengtao Jian, Kai Yang

Abstract

Direct Preference Optimization (DPO) minimizes empirical risk over observed preference comparisons, implicitly assuming that the training preference distribution matches the deployment preference distribution. In practice, this i.i.d. assumption often fails, as preference distribution shift exhibits a natural hierarchical structure across three levels: group-level shift, prompt-level shift, and preference-level shift. Such multi-level distributional mismatch poses a critical challenge for safe LLM deployment, yet existing robust DPO methods typically either model uncertainty over the joint preference distribution or focus on individual sources of shift, leaving the hierarchical structure of OOD preference shifts underexplored. We propose TPO, a tri-level distributionally robust framework for OOD preference alignment, which jointly models all three levels of distributional uncertainty through a hierarchically structured rectangular ambiguity set. By instantiating it with Wasserstein distance, we derive a tractable and interpretable objective that combines a closed-form preference-level margin penalty, prompt-level adversarial embedding perturbation, and worst-case group reweighting, each governed by an independent radius. We establish finite-sample convergence guarantees and empirically validate the effectiveness of TPO over existing robust DPO methods.

1 Introduction

Direct Preference Optimization (DPO) (Rafailov et al., 2023) has emerged as a prominent method for aligning large language models (LLMs) with human preferences. Unlike RLHF (Christiano et al., 2017; Stiennon et al., 2020; Ouyang et al., 2022), DPO directly optimizes a preference objective from pairwise comparison data, bypassing explicit reward modeling and improving optimization stability. However, standard DPO minimizes empirical risk over observed pairwise preference data, without explicitly accounting for distribution shifts between training and deployment. Such out-of-distribution (OOD) shifts can degrade preference alignment performance (Wu et al., 2025; Xu et al., 2025).

In preference alignment, OOD preference shift exhibits a natural hierarchical structure across multiple levels. Specifically, the preference data distribution may shift at three distinct levels. First, the distribution over groups may change between training and deployment, inducing a group-level shift, which has been studied in group robust preference alignment (Ramesh et al., 2024; Sagawa et al., 2020). Second, even within the same group, the prompt marginal distribution may vary across domains, time, or user interaction patterns, yielding a prompt-level shift, which corresponds to covariate shift in the prompt distribution and has been observed in robust prompt optimization (Li et al., 2023; Seegmiller and Preum, 2026). Third, the conditional preference distribution may also

∗^{*}Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Table 1: Comparison of robust DPO methods by the shift levels explicitly modeled in their objectives. √ denotes a dedicated robustness component, while × denotes no explicit level-specific component.

MethodsOverallGroup-levelPrompt-levelPreference-level
DPO (Rafailov et al., 2023)✕✕✕✕
WDPO / KLDPO (Xu et al., 2025)✓✕✕✕
GRPO (Ramesh et al., 2024)✕✓✕✕
rDPO (Chowdhury et al., 2024)✕✕✕✓
Dr.DPO (Wu et al., 2025)✕✕✕✓
TPO (Ours)✓✓✓✓

change due to noisy feedback or heterogeneous preferences within the same group, giving rise to a preference-level shift (Yao et al., 2025; Chowdhury et al., 2024; Poddar et al., 2024).

Recent robust DPO methods have begun to address distributional robustness, but they typically do not explicitly model the hierarchical structure of preference distribution shift. WDPO and KLDPO (Xu et al., 2025) construct Wasserstein and KL ambiguity sets over the entire preference distribution, while rDPO (Chowdhury et al., 2024) and Dr.DPO (Wu et al., 2025) focus on preference label noise and on pointwise and pairwise data noise, respectively. As summarized in Table 1, existing methods either model overall uncertainty or focus on a single robustness level. Motivated by these observations, we propose TPO, a tri-level distributionally robust framework for OOD preference alignment, which jointly models all three levels through a hierarchically structured ambiguity set instantiated with Wasserstein distances and provides interpretable robustness controls for each shift level. Overall, our main contributions are as follows:

  • Tri-level learning for OOD preference alignment. We identify that preference distribution shift exhibits a natural tri-level structure comprising group-level, prompt-level, and preference-level shifts that existing robust DPO methods do not jointly address. We propose TPO, which captures all three levels within a hierarchical rectangular ambiguity set. This decomposition is relevant to safe LLM alignment, as real-world LLMs inevitably encounter distributional mismatch at multiple levels simultaneously, while single-level robustness leaves models vulnerable to the remaining sources of shift.

  • Tractable Wasserstein robust preference objective. By instantiating the hierarchical ambiguity set with Wasserstein distances, we derive a tractable and interpretable training objective with three complementary components: a closed-form preference-level margin penalty, prompt-level adversarial embedding perturbation, and worst-case group reweighting. Each component targets a distinct source of distributional uncertainty and is governed by its own radius, enabling flexible and modular control over robustness.

  • Theoretical guarantees and empirical validation. We establish finite-sample convergence guarantees, showing that the empirical minimizer converges to the population minimizer at a rate of O~(nmin⁡−1/4)\widetilde{\mathcal{O}}(n_{\min}^{-1/4}), where nmin⁡=min⁡g∈[m]ngn_{\min} = \min_{g \in [m]} n_g is the smallest group size. Empirically, TPO achieves superior or competitive performance over standard DPO and robust DPO baselines across multiple OOD shift settings, preference poisoning attacks and downstream generalization benchmarks, demonstrating practical robustness and broader applicability to safe LLM alignment.

References (89)