Manuscript Offprint

arXiv:2611.12763

PORT: Preference Optimization via Robust Token-Level Reweighting

Ding Zhu, Xiukun Wei, Tian Xie, Zhihui Zhu, Xueru Zhang, Mohammad Mahdi Khalili

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Preference optimization has become a central approach for aligning large language models with human values, but its effectiveness depends heavily on the quality of preference annotations. In practice, preference data is often noisy due to annotation errors and ambiguity. Existing robust preference optimization methods primarily operate at the sequence level, implicitly treating entire responses as uniformly correct or incorrect. However, rejected responses may still contain informative reasoning steps, while preferred responses can include subtle errors. In this work, we propose Preference Optimization via Robust Token-level reweighting (PORT), a fine-grained framework for robust alignment under noisy preferences. PORT performs token-level reweighting using the empirical cumulative distribution function (CDF) of token log-probabilities, yielding an efficient forward-pass-only proxy to gradient-norm penalization that selectively suppresses corrupted tokens without additional backward-pass computation. We provide theoretical analysis showing that PORT reduces the gradient bias from noisy preference labels by minimizing an upper bound on the bias term. Extensive experiments across diverse noise settings demonstrate that PORT consistently improves robustness and outperforms existing sequence-level baselines. The code is available at https://github.com/osu-srml/PORT.

1 Introduction

Preference optimization has emerged as a leading method for aligning large language models (LLMs) with human values, ensuring their outputs are useful, safe, and consistent with user intent [2]. Unlike Reinforcement Learning from Human Feedback (RLHF) [18], which trains an explicit reward model and then applies reinforcement learning to guide the policy toward high-reward responses, preference optimization methods such as Direct Preference Optimization (DPO) [20] and Identity Preference Optimization (IPO) [7] directly optimize the implicit reward margin between preferred and rejected responses within a stable, supervised learning paradigm.

Despite their success, preference optimization methods share a key vulnerability: their effectiveness depends critically on the quality of preference annotations. In practice, however, preference data is rarely clean, and acquiring high-quality data at scale is often costly and even infeasible. Annotator disagreement, intrinsic ambiguity in hard-to-distinguish pairs, and labeling errors all introduce noise into the training signal, which biases gradient estimates and degrades alignment performance. To address this, recent work has explored mitigation techniques such as label smoothing [4, 13, 16], regularization [15, 27], and heuristic data filtering [8, 17] (see Appendix A for a discussion of each).

However, these approaches are fundamentally limited by their reliance on sequence-level modeling of preference noise. Existing preference optimization objectives and their noise-mitigation variants aggregate per-token log-ratios uniformly across an entire response, implicitly treating all token positions as equally reliable. This assumption is often violated in practice: a preferred response

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

Figure

Figure 1: Overview of the PORT training pipeline: 1) Given a batch B={(x~,y~w[b],y~l[b])}b=1∣B∣\mathcal{B} = \{(\tilde{x}, \tilde{y}_w^{[b]}, \tilde{y}_l^{[b]})\}_{b=1}^{|\mathcal{B}|} of preference pairs, where y~w[b]\tilde{y}_w^{[b]} and y~l[b]\tilde{y}_l^{[b]} denote chosen and rejected responses. 2) Forward pass: the policy πθ\pi_\theta and reference policy πref\pi_{\text{ref}} are evaluated to obtain per-token log-ratios δt[b](θ)\delta_t^{[b]}(\theta) and token-level logits s~w,t[b],s~l,t[b]\tilde{s}_{w,t}^{[b]}, \tilde{s}_{l,t}^{[b]}. 3) Δ\DeltaCDF estimation: token log-probabilities are pooled across the batch to form a global empirical CDF F(⋅)F(\cdot), which gives percentile ranks Fw,t[b]F_{w,t}^{[b]} and Fl,t[b]F_{l,t}^{[b]} for the chosen and rejected tokens. A large gap indicates that the rejected token is assigned anomalously high probability relative to the chosen token, signaling potential token-level label noise. 4) Weight conversion: gap Δt[b]=Fl,t[b]−Fw,t[b]\Delta_t^{[b]} = F_{l,t}^{[b]} - F_{w,t}^{[b]} is mapped to a weight wt[b]=γexp⁡(ρΔt[b])w_t^{[b]} = \gamma \exp(\rho \Delta_t^{[b]}). 5) Weighted token-level update: these weights are incorporated into the preference objective L~w\widetilde{\mathcal{L}}_w, yielding a robust gradient update that suppresses corrupted tokens. The procedure uses only a single forward pass and introduces no extra backward-pass overhead.

may contain localized hallucinations or reasoning errors, while a rejected response may still include correct intermediate reasoning steps.

Consider a preference pair where the preferred response is “The capital of Australia is Canberra, which was purpose-built as a compromise between Sydney and Melbourne,” while the rejected response is “The capital of Australia is Sydney, as it is the largest city.” If the preference label is flipped due to noise, sequence-level methods would penalize all tokens in the rejected response equally. However, this treatment is overly coarse: although the response is factually incorrect, many tokens (e.g., “as it is the largest city”) are locally fluent and not directly responsible for the error. Penalizing all tokens uniformly therefore introduces unnecessary bias into the learning signal, allowing noisy or uninformative tokens to disproportionately influence the gradient.

Unfortunately, existing noise mitigation strategies fail to resolve this mismatch. Label smoothing methods such as Conservative-DPO (cDPO) [16] apply uniform shrinkage to the entire objective, effectively scaling all token contributions equally. Pair-level reweighting methods such as Distributionally Robustifying DPO (Dr.DPO) [27] assign a single scalar weight to each preference pair, leaving within-sequence variation unmodeled. Even token-level importance sampling methods such as Token-Level Importance Sampling (TIS-DPO) [14] introduce finer granularity but rely on external reward models, thereby reintroducing risks of reward misgeneralization and additional computational overhead. Collectively, these limitations highlight a key gap: existing methods either operate at too coarse a granularity or depend on external supervision to achieve token-level adaptivity.

Motivated by this, we explore token-level noise mitigation under instance-dependent preference noise and propose Preference Optimization via Robust Token-level reweighting (PORT), a framework that performs token-level reweighting without requiring external reward models or additional backward passes. The key idea is to assign a weight to each token position such that solving a weighted preference optimization on noisy data yields a solution that aligns with true human preferences.

To ground this design in theory, we analyze the effect of noise on the gradient of preference optimization and derive an upper bound on the resulting gradient bias. Minimizing this bound yields a closed-form optimal token-level weighting function, which characterizes how each token should be reweighted according to its sensitivity to noise and its contribution to the learning signal.

However, this optimal solution is not directly computable in practice, as it depends on unknown noise statistics and the norm of the gradient with respect to all the model parameters which is computationally expensive. To bridge this gap, we identify a practical surrogate that preserves the structure of the optimal solution. In particular, we show that the relative ordering of token probabilities within a batch provides a sufficient signal for approximating the optimal weights. This leads to a CDF-based weighting scheme computed from model log-probabilities, which serves as an efficient and fully forward-pass-based proxy for the theoretically optimal solution.

Our main contributions are as follows:

  • We propose PORT, a robust alignment framework that introduces a token-level CDF reweighting objective that requires zero additional backward-pass overhead and no external reward model.

  • We provide theoretical guarantees showing that our weighting scheme minimizes an upper bound on gradient bias under instance-dependent noise, and characterize the conditions under which it strictly reduces the bias.

  • We conduct extensive experiments on Anthropic HH and Alpaca Farm benchmarks, demonstrating consistent and significant improvements over sequence-level baselines across diverse noise settings.

References (30)