Manuscript Offprint

arXiv:2610.06329

Dynamic Minimax Regret Optimization for Robust LLM Post-Training

Chengbo Zang, Haoyu Dong, Mehmet Kerem Turkcan, Gil Zussman, Zoran Kostic, Javad Ghaderi

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

ABSTRACT

Modern LLM training increasingly relies on heterogeneous data sources spanning different domains, tasks, preference distributions, and difficulty levels. We study dynamic minimax regret for group-distributionally robust LLM post-training under instantaneous mini-batch-only bandit feedback. The framework views the training as a two-player sampler-optimizer process: a sampler adaptively selects among data sources using bandit feedback, while an optimizer updates the model parameters using stochastic gradients from the selected source. We focus on the practically restrictive setting where source losses evolve with model training but historical data are not re-evaluated, requiring the sampler to track instantaneous worst-sources from stale partial feedback. We propose DUCB-OGD, a simple and scalable algorithm that couples a Discounted Upper-Confidence-Bound sampler with an Online Gradient Descent optimizer. The sampler maintains exponential moving average loss estimates and confidence radii based on discounted effective sample sizes, avoiding costly re-evaluation of past data or intrusive changes to standard training pipelines. For K data sources and T training steps, we prove that DUCB-OGD achieves a dynamic minimax regret of O~(K1/4T3/4)\tilde{O}(K^{1/4}T^{3/4}), which is optimal up to logarithmic factors for the undiscounted objective under our feedback model. Extensive experiments across supervised fine-tuning, preference optimization, and reinforcement learning show that DUCB-OGD integrates seamlessly into modern LLM training pipelines and improves worst-group robustness with negligible computational overhead compared with standard sampling baselines.

1 INTRODUCTION

Diverse data mixtures are central to modern Large Language Model (LLM) post-training. For example, supervised fine-tuning data may combine instruction-following, coding, mathematical reasoning, safety, and domain-specific examples; preference datasets may reflect different annotator populations or task families; and reinforcement learning objectives may expose the model to prompts whose rewards evolve unevenly during training (Ouyang et al., 2022; Rafailov et al., 2023; Schulman et al., 2017; Shao et al., 2024). As a result, post-training is not merely an average-loss minimization problem. A model can improve substantially on common or easy sources, while remaining weak on smaller, harder, or temporarily under-trained groups. This makes robust performance across data sources a central objective in LLM post-training. In practical deployment, worst-source robustness is a complementary and equally important criterion to the commonly reported mean performance, but often under-emphasized in aggregate evaluations.

Group-distributionally robust optimization (GDRO) provides a principled formulation for this goal by minimizing the worst-case expected loss over a predefined set of data sources (Duchi & Namkoong, 2021; Sagawa* et al., 2020; Oren et al., 2019). Informally, GDRO seeks model parameters that perform well on the most challenging source rather than the average performance across sources. However, the standard GDRO viewpoint is essentially static: robustness is typically evaluated with respect to the worst-performing source at the final or time-averaged solution, or determined in

Table 1: GDRO formulations of LLM post-training objectives and estimated worst-source (WS) switching. The final column reports the mean number of switches per 1,000 steps, with the range across experiments in brackets. The worst source has the largest exponentially smoothed loss for SFT/DPO or the lowest exponentially smoothed reward for GRPO. Additional optimization dynamics are reported in Sections 4 and D.5.

Objective−ℓ(θ,⋅)-\ell(\theta,\cdot)WS Switches / 1k Steps
SFTEo∼Dk(⋅∣q)[log⁡πθ(o∣q)]\mathbb{E}_{o\sim\mathcal{D}^{k}(\cdot|q)}\left[\log \pi_{\theta}(o\mid q)\right]41 [3,124]
DPOE(o+,o−)∼Dk(⋅∣q)[log⁡pθBT(o+≻o−∣q)]\mathbb{E}_{(o^{+},o^{-})\sim\mathcal{D}^{k}(\cdot|q)}\left[\log p_{\theta}^{\mathrm{BT}}(o^{+}\succ o^{-}\mid q)\right]31 [13,53]
RL (GRPO)Eo∼πθ(⋅∣q)[r(q,o)]\mathbb{E}_{o\sim\pi_{\theta}(\cdot|q)}\left[r(q,o)\right]20 [0,32]

hindsight over the training trajectory (Zhang et al., 2023; Soma et al., 2025). This static benchmark does not fully capture the shift of the worst-performing source as the model evolves in LLM post-training. A robust algorithm should therefore track and respond to the evolving worst source, rather than optimize against a fixed source chosen in hindsight.

Recent work has shown that mixture proportions can strongly affect pretraining and post-training performance, motivating both offline mixture optimization and online adaptive sampling methods (Xie et al., 2023; Chen et al., 2023; Ye et al., 2025; Corrado et al., 2025; Shin et al., 2025). Such mechanisms can be expensive or intrusive in large-scale post-training systems, where throughput, memory efficiency, and compatibility with distributed training libraries are critical. This creates a gap between the theoretical appeal of GDRO and the practical constraints of LLM post-training: we need adaptive algorithms that are robust, theoretically grounded, and lightweight enough to integrate into standard training pipelines relying on well-optimized deep learning libraries. We discuss related work in detail in Appendix A.

In this paper, we study dynamic minimax regret for group-distributionally robust LLM post-training under instantaneous mini-batch-only bandit feedback. The training trajectory can be naturally decomposed into a sampler, which selects a source using only its observed mini-batch loss, and an optimizer, which updates the model using the corresponding stochastic gradient. We propose DUCB-OGD, a simple algorithm that combines a Discounted Upper-Confidence-Bound (DUCB) (Garivier & Moulines, 2011) sampler with an Online Gradient Descent (OGD) (Hazan, 2016) optimizer. In contrast, while Zang et al. (2025) already study dynamic worst-source tracking, they refresh source-loss estimates by re-evaluating accumulated historical samples. Our replay-free formulation instead uses fresh mini-batches as unbiased stochastic estimates of population loss, adds no auxiliary model evaluations, and requires only O(K)O(K) scalar state, at the cost of tracking unobserved sources from stale feedback. We show that this simple sampler-optimizer design achieves dynamic minimax regret of O~(K1/4T3/4)\tilde{O}(K^{1/4}T^{3/4}) for KK data sources over TT training steps, which is optimal for the undiscounted objective up to logarithmic factors under our feedback model.

Our main contributions are summarized as follows:

  1. We formulate robust LLM post-training under instantaneous mini-batch-only feedback, where evolving source losses must be tracked from stale observations without historical replay or auxiliary model evaluations.

  2. We propose DUCB-OGD, an efficient algorithm that combines DUCB sampling with OGD optimization, and prove that it achieves a dynamic minimax regret of O~(K1/4T3/4)\tilde{O}(K^{1/4}T^{3/4}), matching the optimal rate up to O(log⁡T)O(\log T) factors for the undiscounted objective under our feedback model.

  3. We evaluate the method across supervised fine-tuning, preference optimization, and reinforcement learning, showing improved worst-source robustness under negligible computational overhead against standard and heuristic sampling baselines.

References (65)