Manuscript Offprint
arXiv:2610.06329Dynamic Minimax Regret Optimization for Robust LLM Post-Training
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 , 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 | WS Switches / 1k Steps | |
|---|---|---|
| SFT | 41 [3,124] | |
| DPO | 31 [13,53] | |
| RL (GRPO) | 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 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 for data sources over training steps, which is optimal for the undiscounted objective up to logarithmic factors under our feedback model.
Our main contributions are summarized as follows:
-
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.
-
We propose DUCB-OGD, an efficient algorithm that combines DUCB sampling with OGD optimization, and prove that it achieves a dynamic minimax regret of , matching the optimal rate up to factors for the undiscounted objective under our feedback model.
-
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.
This formulation captures a broad class of LLM post-training objectives through appropriate choices of the source distributions and loss functions as described in Tab. 1. Let be an LLM, and , be a pair of prompt and response. Then is the probability that the LLM generates the response given the prompt . In supervised fine-tuning (SFT), each source generates prompt-response pairs, and the loss is the negative log-likelihood of the target response (Ouyang et al., 2022). For direct preference optimization (DPO), let denote a preferred and dispreferred response pair. Let denote the Bradley-Terry probability (Rafailov et al., 2023; Bradley & Terry, 1952) that the model prefers to , and the loss is the negative Bradley-Terry preference probability. For reinforcement learning (RL), let denote the reward assigned to the response for the prompt . Each source generates prompts, the model induces the response distribution, and the loss is the negative reward (Schulman et al., 2017; Shao et al., 2024). For simplicity, Tab. 1 presents these objectives at the sequence level, omitting token-wise factorization, reference-model regularization, and implementation-specific normalization terms.
We consider an iterative training algorithm , consisting of a sampler and an optimizer, that runs for steps. At each step , the sampler specifies a distribution over the data-source indices . A source is then selected, and a mini-batch of samples is drawn from the corresponding distribution . The model observes and calculates the empirical loss based on the current model parameter . Then the optimizer updates the parameter to obtain for the next step. The sampler observes only ; it neither observes the current losses of unselected sources nor re-evaluates historical mini-batches. After steps, the algorithm generates a trajectory of data source indices and model parameters . Our goal is to evaluate this trajectory by how well it controls the adaptive sequence of maximum source-wise losses throughout the training. Following the notion of dynamic regret in online learning, the (undiscounted) dynamic minimax regret is defined as follows.
Definition 1 (Undiscounted Dynamic Minimax Regret). Let be the global minimax optimum in Eq. (1). The undiscounted dynamic minimax regret of an algorithm A after T steps is defined as
This definition compares the worst-case loss incurred by with the best achievable minimax loss. Crucially, the maximizing source in may vary with , which makes the regret dynamic (Zang et al., 2025), i.e., at each step, it reflects the source that is currently under-performing, rather than a single fixed source chosen in hindsight (Zhang et al., 2023; Soma et al., 2025). To analyze the sampler-optimizer structure, we decompose the regret into an optimization component and a bandit component. The optimization component measures how well the optimizer competes with the minimax solution on the sampled sources. The bandit component measures how well the sampler tracks the instantaneous worst-performing source. We also introduce discount factors to emphasize recent observations, which is natural in post-training because source-wise losses evolve as the model changes.
Definition 2 (Optimization Regret and Dynamic Bandit Regret). Let . The discounted optimization regret of an algorithm A after T steps is defined as
and the discounted dynamic bandit regret is defined as
The optimization regret captures the loss incurred by following the optimizer trajectory instead of using the minimax solution on the sampled sources. The bandit regret captures the loss incurred by sampling instead of the instantaneous worst-performing source at time . The following decomposition connects these quantities to the original undiscounted regret. Its proof simply follows from the fact that for all and and is provided in Appendix C.1.
Proposition 1 (Regret Decomposition). Any trajectory satisfies .
Finally, we define the normalized discounted dynamic minimax regret as follows.
Definition 3 (Dynamic Minimax Regret). For any , the normalized -discounted dynamic minimax regret of an algorithm A after T steps is defined as
where for any .
The normalization converts each discounted sum to the scale of a length-T horizon, making regret bounds comparable across choices of and . Here, and separately discount the optimization and bandit components, whereas will be selected by the analyses. When , the normalized regret reduces to the undiscounted sampler-optimizer decomposition, and by Proposition 1, . For , the discounted statistics used in our analysis can be viewed as exponential moving-average (EMA) estimates of past observations. This connects our theoretical quantities to EMA-based state tracking, which is widely used in deep learning optimization and training diagnostics Polyak & Juditsky (1992); Kingma & Ba (2014).
We make the following standard assumptions for the theoretical analysis. Specifically, Assumptions 1 and 2 are required for analyzing gradient descent, and Assumption 3 is required to ensure that the empirical loss and gradient estimators are unbiased.
Assumption 1 (Finite Optimization Domain). There exists a closed convex and such that, for any , generated by the algorithm, there is , and .
Assumption 2 (Bounded Lipschitz Loss). There exists such that, for all and , and is -Lipschitz in .
Assumption 3 (Source-Wise IID Sampling). All data (i.e., prompts and responses, if applicable) collected by querying are sampled i.i.d. for all .
We interpret the Lipschitz assumption as a regularity condition along the realized training trajectory rather than as a claim over the entire parameter space. Standard implementation techniques such as gradient clipping, KL regularization, and bounded reward design help control the observed loss variation as is illustrated in Appendix D.5, providing empirical evidence consistent with the assumptions. Furthermore, the low-epoch regime of LLM post-training ensures that most training samples are observed at most once, which is aligned with the source-wise i.i.d. assumption.
3 METHOD
3.1 DUCB-OGD: HIGH-LEVEL DESCRIPTION
The training of modern deep neural networks, especially LLMs, relies heavily on well-optimized libraries. A standard pipeline typically involves a sampler, which selects a mini-batch of data samples as the model inputs, and an optimizer, which updates the model parameters using gradients computed from those mini-batches. Thus, we consider a two-player sampler-optimizer framework for seamless deployment in real-world training systems.
Optimizer. Recall that in each step , the sampler generates a mini-batch of training samples from . The optimizer updates the model parameters according to
where is the learning rate and is the average empirical loss. When each data source corresponds to a distinct task or domain (e.g., verbal reasoning v.s., math reasoning), the loss function depends on the data source selected at the current step. Thus the optimizer is an instance of online gradient descent (OGD) Hazan (2016). We analyze unprojected OGD under Assumption 1, which explicitly requires the iterates to remain in the optimization domain.
Sampler. At the beginning of each step , the sampler observes the algorithm trajectory and the historical empirical losses . Selecting which data source to query is challenging for three reasons. First, empirical mini-batch losses are stochastic estimates of the corresponding source-wise expected losses. Second, the sampling environment is non-stationary because the source-wise losses change as the optimizer updates the model parameters. Third, the sampler faces an exploration-exploitation tradeoff: it must collect enough observations from all sources to estimate their losses accurately, while also allocating samples to sources that appear to be currently worst-performing.
However, unlike the adversarial bandit settings, where losses could change arbitrarily over time, the variation in source-wise losses between consecutive steps is controlled by the OGD learning rate in Eq. (6) together with the Lipschitz condition in Assumption 2. Thus, the sampling problem is naturally related to slowly-varying non-stationary bandits (Krishnamurthy & Gopalan, 2025). While the classical upper-confidence-bound (UCB) algorithm suits stationary environments, we use Discounted UCB (or DUCB) (Garivier & Moulines, 2011), a simple UCB variant with a discounting mechanism.
Specifically, let be the indicator function. For a discount factor , define the EMA estimate of the empirical loss of source at step as
Here, reflects the effective sample size of source . Let for (known as the effective horizon of a discounted sequence) and set for undiscounted case.
During the first steps, DUCB performs initial exploration by selecting each source once, i.e., for . Then for , it selects the source as
where is a constant controlling the aggressiveness of exploration and bounds the loss as in Assumption 2. Equivalently, this sampling rule can be represented as a categorical distribution over , with probabilities for each . We discuss the implementation details of DUCB using practical LLM post-training libraries in Appendix B.
Intuitively, the DUCB index simply couples the normalized EMA estimated empirical loss with an optimistic confidence radius of for each . Due to the recursive identity of , the effective sample size of each data source decays by a factor of whenever it is not selected at the current step. This naturally reflects a loss of confidence in over time, as the current model parameter drifts further away from the states in which the historical losses were observed.
3.2 MAIN THEORETICAL RESULTS
Now we present the theoretical guarantees of DUCB-OGD. While the milestones of the proof are outlined below, we provide the complete version in Appendix C.
Theorem 2 (Dynamic Minimax Regret of DUCB-OGD). Suppose is convex in for all . Then with in Eq. (6) and in Eq. (7), DUCB-OGD satisfies
for any .
In other words, the dynamic minimax regret achieves the rate of in both undiscounted and discounted scheme . To prove this, we first present the OGD optimization regret and the DUCB bandit regret respectively, and then combine them to obtain the overall dynamic minimax regret.
Proposition 3 (Optimization Regret of OGD). Suppose is convex in for all . OGD satisfies
for any .
Remark. In the standard analysis of undiscounted and discounted OGD, the RHS of Eq. (10) can be minimized by choosing , which gives the rate of .
The proof of Proposition 3 follows the standard OGD analysis for convex Lipschitz functions, with modifications to account for the stochasticity in the empirical loss observations. The full version is provided in Appendix C.2. Crucially, while for any in Eq. (10) yields an optimization regret sublinear in , we defer the choice of here since it dictates the rate that the sampling environment changes for DUCB, dramatically affecting its behavior. Instead, we first present the bandit regret with also an factor, then jointly tune to optimize both regrets.
Proposition 4 (Bandit Regret of DUCB). Suppose for some . Then with , DUCB satisfies
for any and any independent of .
Remark. Note that when , matches the standard regret of slowly-varying non-stationary bandits by Krishnamurthy & Gopalan (2025). Alternatively, let be the total variation budget of the sampling environment over steps. Then Proposition 4 can be rewritten as , matching the result of Besbes et al. (2014).
We provide a proof outline of Proposition 4. While standard DUCB analysis focuses on abruptly changing environments Garivier & Moulines (2011), we adapt the proof to our slowly-varying environment based on the following decomposition. Denote . Let be the expected EMA estimated loss of the source at step . Then by Definition 2, we have , and for any ,
We prove in Proposition 7 in Appendix C.4 that the DUCB update rule guarantees that Term 1 is bounded by with high probability, where is the confidence radius defined in Eq. (8). Terms 2 and 3 reflect the bias of the EMA estimated loss w.r.t. the true loss, which are shown to be bounded by in Proposition 8 in Appendix C.5. The complete proof of Proposition 4 is provided in Appendix C.3. Now we can prove Theorem 2.
Proof of Theorem 2. Recall that the optimization regret in Proposition 3 is sublinear only when for some , which satisfies the condition of Proposition 4. Then by Definition 3, and using Proposition 3 and Proposition 4, we have
The RHS is minimized (order-wise) by taking , which concludes the proof.
Further note that when , the average dynamic minimax regret gives the minimax optimality gap measured by the EMA estimated worst-case loss. Then the following result is a direct consequence of Theorem 2.
Corollary 5. Under the conditions of Theorem 2, the expected minimax optimality gap at the EMA-weighted iterate of DUCB-OGD , for any discount factor , satisfies
where .
Specifically when , the results in Propositions 3 and 4 are shown to be optimal up to logarithmic factors. This follows from the lower bounds for the optimization regret and the dynamic bandit regret, by Hazan (2016) and Krishnamurthy & Gopalan (2025) respectively, based on constructing a hard instance where the loss landscape is non-smooth, and the worst-performing data source alters periodically over time. Then it immediately follows that, in the undiscounted setting, the bound in Theorem 2 is also optimal.
Theorem 6 (Lower Bound). For every admissible sampler-optimizer algorithm , there exists a problem instance for which the undiscounted regret satisfies .
3.3 IMPLICATIONS
We highlight two implications following the theoretical analysis.
Comparison to Pseudo-Regret GDRO. Other GDRO frameworks proposed by Zhang et al. (2023) and Soma et al. (2025) adopt the notion of pseudo regret, defined as , which can be bounded by . The pseudo regret is fundamentally easier to analyze than our dynamic regret in Definition 1, since it always holds that (and by Proposition 1). In real-world learning problems such as LLM post-training, the worst-case data source may vary as the training progresses, and dynamic regret captures this by tracking the gap w.r.t. the worst-case loss in each step (we provide an example in Section 4.3). Moreover, pseudo regret controls only the uniform time-average of algorithm performance, while our dynamic-regret formulation yields guarantees for exponentially weighted trajectory averages emphasizing on later iterates as shown in Corollary 5. This better matches the practical deep learning workflows, where training dynamics are often monitored through EMA-style statistics and final checkpoints are selected from the later stage of model training.
Scope of the Lower Bound. We further note that Theorem 6 establishes optimality for the undiscounted objective under the instantaneous mini-batch-only feedback oracle, and does not imply optimality for discounted objectives or when richer feedback is available. Indeed, Zang et al. (2025) re-evaluate historically collected samples under the current model and obtain a dynamic-regret rate of . Yet this stronger oracle requires expensive model evaluations over a linearly growing replay-buffer, and a generalization step from replay-based empirical losses to population losses.
4 EXPERIMENTS
4.1 OBJECTIVES AND DATASETS
We evaluate DUCB-OGD across three LLM post-training objectives:
• SFT: We train base models for 32k samples on the Math and Orca sources of Tulu-v2 (Ivison et al., 2023) using TRL (von Werra et al., 2020). We evaluate the minimum of GSM8k accuracy (Cobbe et al., 2021) and IFEval prompt accuracy (Zhou et al., 2023).
• DPO: We train instruction-tuned models for 16k samples on the Code, Multilingual, and Stem sources of HelpSteer3 (Wang et al., 2025c;e;d) using TRL. The primary metric is minimum source-wise test preference accuracy.
• GRPO: We consider (i) Reasoning, comprising Arc, Countdown, and Zebra as three sources (Chollet, 2019; Katz et al., 2025; Lin et al., 2025), with a 10k-sample budget using Verl (Sheng et al., 2024); and (ii) CommonsenseQA (Talmor et al., 2019), partitioned into Social, Physical, Causal-Temporal, and General sources, with a 6.4k-sample budget using TRL. We report the minimum source-wise test accuracy.
For each objective, we train models of different sizes from the Qwen2.5 (Yang et al., 2024; Team, 2024), Qwen3 (Team, 2025), Llama3 (AI@Meta, 2024), and GLM4 (GLM et al., 2024) families using different sampling algorithms.
Table 2: Main results of different sampling algorithms on various LLM post-training objectives across different model scales and families. The primary metric is minimum source-wise accuracy.
| Objective | Dataset | Model | Sampler | Accuracy | ||
|---|---|---|---|---|---|---|
| Train | Test | Min | Avg | |||
| SFT | Tulu-v2 (subset) | GSM8k + IFEval | Qwen2.5-7B (Base) | Uniform | 27.15 | 39.36 |
| Exp3-style* | 27.73 | 40.72 | ||||
| DUCB (Ours) | 28.52 | 37.89 | ||||
| Llama3.1-8B (Base) | Uniform | 22.07 | 25.98 | |||
| Exp3-style* | 21.48 | 27.93 | ||||
| DUCB (Ours) | 24.22 | 25.29 | ||||
| DPO | HelpSteer3 (subset) | Qwen2.5-3B (Instruct) | Uniform | 76.76 | 80.53 | |
| AMA-R | 78.19 | 79.45 | ||||
| AMA-S | 80.25 | 82.35 | ||||
| DUCB (Ours) | 79.33 | 81.59 | ||||
| Llama3.2-3B (Instruct) | Uniform | 73.79 | 81.06 | |||
| AMA-R | 74.22 | 78.00 | ||||
| AMA-S | 77.37 | 80.48 | ||||
| DUCB (Ours) | 77.42 | 81.88 | ||||
| GRPO | Reasoning | Qwen2.5-1.5B (Instruct) | Uniform | 18.89 | 28.98 | |
| Exp3-style* | 20.91 | 28.78 | ||||
| DUMP | 19.45 | 29.70 | ||||
| DUCB (Ours) | 21.81 | 28.74 | ||||
| CommonsenseQA | GLM4-9B (Instruct) | Uniform | 77.91 | 84.08 | ||
| Exp3-style* | 82.56 | 85.55 | ||||
| DUMP | 81.40 | 85.55 | ||||
| DUCB (Ours) | 84.88 | 87.74 | ||||
Corrado et al. (2025), requires training K specialist models; Wang et al. (2025b).
*Sampler-only proxies of Shin et al. (2025); Ramesh et al. (2026).
4.2 ROBUSTNESS ACROSS POST-TRAINING OBJECTIVES AND MODEL FAMILIES
Tab. 2 reports minimum source-wise accuracy as the primary metric and unweighted average accuracy as a reference. All metrics are evaluated at the final training checkpoint. Additional models and metrics are reported in Appendix D.
For SFT, we evaluate an adapted Exp3-style proxy based on DynamixSFT (Shin et al., 2025). A faithful implementation requires virtual parameter updates to estimate anticipated source-wise loss decreases and is not directly compatible with our training pipeline, and our proxy instead uses observed source-wise loss decreases. DUCB achieves the highest minimum accuracy for both models, whereas the Exp3-style sampler obtains higher average accuracy, illustrating the robustness-average performance trade-off.
For DPO, we compare against faithful implementations of AutoMixAlign Corrado et al. (2025), including both AMA-R and AMA-S. AutoMixAlign uses source-specific specialist models to compute excess-loss-based sampling signals, which requires training K additional specialists before the generalist model. DUCB achieves competitive or better worst-source performance without this auxiliary training cost. These results further support the robustness of DUCB under a substantially lighter feedback and computational requirement. Specifically, across three Qwen2.5-3B runs, DUCB obtains minimum accuracy versus for Uniform, corresponding to a paired gain of percentage points.
For GRPO, we compare against an Exp3-style sampler-only proxy of MT-GRPO Ramesh et al. (2026) and a faithful implementation of DUMP Wang et al. (2025b) which adopts a switching-window UCB sampler. We use the source-wise training reward with improvement correction and the training

(a) Uniform
(b) DUCB
(c) Exp3
Figure 1: GRPO training rewards and sampling weights for uniform sampling, DUCB (guided by dynamic regret), and Exp3 (guided by pseudo regret) on two data sources (Arc and Countdown).
advantage as the sampling signal, respectively. We omit additional components of MT-GRPO such as rollout filtering and only implement the sampler in order to maintain uniformity with other samplers and compatibility between the TRL and Verl libraries. The results show clear margins of DUCB over other uniform and adaptive sampling baselines on the minimum accuracies across both datasets.
Across the six main settings, DUCB achieves the highest minimum accuracy in five and remains competitive with AMA-S in the remaining DPO setting. Detailed discussions of the results are also provided in Appendix D.
4.3 COMPUTATION EFFICIENCY AND DYNAMIC WORST-SOURCE ADAPTATION
We specifically discuss the following two aspects of the proposed DUCB-OGD algorithm compared with other evaluated baselines.
Training Overhead. We measure per-step runtime across three Qwen2.5-3B DPO runs, with full results reported in Appendix D.4. DUCB requires seconds per step, compared with for Uniform; the difference is small relative to the observed run-to-run variation. Its sampler adds no auxiliary model evaluations and maintains only scalar state. By comparison, AMA additionally trains K source-specific specialists before training the generalist model. Thus, DUCB introduces little measurable online overhead beyond the underlying LLM training step and avoids AMA's auxiliary specialist-training cost.
Adaptation to Evolving Source Difficulty. We further compare DUCB's instantaneous tracking with the cumulative-reward updates of Exp3 on the Arc and Countdown sources of the Reasoning task in Fig. 1. Arc initially has higher reward than Countdown, but this ordering later reverses, making Arc the new worst-performing source. DUCB shifts its sampling priority toward Arc shortly after the crossover, whereas Exp3 continues to favor Countdown until later observations outweigh its accumulated history. This representative example, together with the switching frequencies in Tab. 1, illustrates DUCB's ability to adapt to changing source difficulty. Because instantaneous tracking is also more sensitive to short-term reward variation, we use DEMA smoothing and forced exploration as practical stabilizers, detailed in Appendix B.
5 CONCLUSION
We study dynamic minimax regret for robust multi-source LLM post-training under instantaneous mini-batch-only bandit feedback. We propose DUCB-OGD, which couples discounted UCB sampling with online gradient descent and requires neither historical re-evaluation nor auxiliary model evaluations. Across SFT, DPO, and GRPO, DUCB-OGD achieves the highest minimum source-wise accuracy in the majority of the settings and remains competitive with contemporary baselines but avoids expensive model re-evaluations. Frequent worst-source switching is observed across all three objectives, while DUCB’s per-step runtime remains close to Uniform, supporting the relevance and practical efficiency of instantaneous dynamic tracking.
It is shown that DUCB-OGD is most applicable when worst-source robustness is the primary objective, source difficulty changes during training, and only instantaneous mini-batch feedback is available or affordable due to practical constraints. Trade-offs may occur between worst-source and average performances. The guarantees involving optimization also do not cover non-convex loss landscapes. Our comparisons include both faithful baseline implementations and explicitly adapted sampler-only proxies, which avoid objective-specific training modifications. The evaluation is limited to 0.5B-9B models and unimodal datasets with relatively few sources. The performance on larger models and datasets with more complicated distributional characteristics remains to be studied.
ACKNOWLEDGMENTS
This work was supported in part by NSF grant CNS-2450567 and EEC-2133516, NSF grant CNS-2038984 and corresponding support from the Federal Highway Administration (FHA), MediaTek Inc USA, NSF grant CNS-2148128 and by funds from federal agency and industry partners as specified in the Resilient & Intelligent NextG Systems (RINGS) program, and ARO grant W911NF2210031. We gratefully acknowledge use of the research computing resources of the Empire AI Consortium, Inc, with support from Empire State Development of the State of New York, the Simons Foundation, and the Secunda Family Foundation.
AI Use STATEMENT
In this work, we did not use generative AI tools to generate datasets, develop theoretical models or methods, formulate or prove mathematical claims, design experiments, implement methods, process data, or interpret experimental results. We used generative AI tools only to polish writing and improve readability. We reviewed the accuracy and consistency of all AI-assisted work, including revised text, equations, and descriptions of experimental results. We take responsibility for the final content of this work, including all text, claims, and artifacts produced with the aid of generative AI.
REPRODUCIBILITY STATEMENT
We provide the complete DUCB-OGD algorithm and theoretical assumptions in the main text, with full proofs in Appendix C. Appendix B and D document the implementation, practical stabilizers, key training configurations, and hyperparameters. The datasets, pretrained models, sample budgets, evaluation metrics, final-checkpoint protocol, multi-seed results, and hardware used for runtime measurements are described in Section 4 and Appendix D. All datasets and model checkpoints are publicly available and cited. We intend to release the training and evaluation code, full configurations, and scripts upon publication.
REFERENCES
Alekh Agarwal and Tong Zhang. Minimax Regret Optimization for Robust Machine Learning under Distribution Shift. In Po-Ling Loh and Maxim Raginsky (eds.), Proceedings of Thirty Fifth Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pp. 2704–2729. PMLR, July 2022.
AI@Meta. The Llama 3 Herd of Models, 2024. URL https://doi.org/10.48550/arXiv.2407.21783.
Peter Auer, Nicolò Cesa-Bianchi, and Paul Fischer. Finite-time Analysis of the Multiarmed Bandit Problem. Machine Learning, 47(2/3):235–256, 2002a. ISSN 08856125. doi: 10.1023/A:1013689704352.
Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund, and Robert E. Schapire. The Nonstochastic Multiarmed Bandit Problem. SIAM Journal on Computing, 32(1):48–77, January 2002b. ISSN 0097-5397, 1095-7111. doi: 10.1137/S0097539701398375.
Jiamu Bai, Daoyuan Chen, Bingchen Qian, Liuyi Yao, and Yaliang Li. Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (eds.), Advances in Neural Information Processing Systems, volume 37, pp. 14457–14483. Curran Associates, Inc., 2024. doi:10.52202/079017-0461.
Omar Besbes, Yonatan Gur, and Assaf Zeevi. Stochastic Multi-Armed-Bandit Problem with Non-stationary Rewards. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Weinberger (eds.), Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc., 2014.
Stacie Bloom, Joshua C. Brumberg, Ian Fisk, Robert J. Harrison, Robert Hull, Melur Ramasubramanian, Krystyn Van Vliet, and Jeannette Wing. Empire AI: A new model for provisioning AI and HPC for academic research in the public good. In Practice and Experience in Advanced Research Computing (PEARC '25), pp. 4, Columbus, OH, USA, July 2025. ACM. doi:10.1145/3708035.3736070. URL https://doi.org/10.1145/3708035.3736070.
Ralph Allan Bradley and Milton E. Terry. Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons. Biometrika, 39(3/4):324, December 1952. ISSN 00063444. doi:10.2307/2334029.
J. S. Butler and Robert Moffitt. A Computationally Efficient Quadrature Procedure for the One-Factor Multinomial Probit Model. Econometrica, 50(3):761, May 1982. ISSN 00129682. doi:10.2307/1912613.
Mayee Chen, Nicholas Roberts, Kush Bhatia, Jue WANG, Ce Zhang, Frederic Sala, and Christopher Ré. Skill-it! A data-driven skills framework for understanding and training language models. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 36000–36040. Curran Associates, Inc., 2023.
Xiaoyin Chen, Jiarui Lu, Minsu Kim, Dinghuai Zhang, Jian Tang, Alexandre Piché, Nicolas Gontier, Yoshua Bengio, and Ehsan Kamalloo. Self-Evolving Curriculum for LLM Reasoning, 2025. Version Number: 4.
François Chollet. On the Measure of Intelligence, 2019. Version Number: 2.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training Verifiers to Solve Math Word Problems. arXiv preprint arXiv:2110.14168, 2021.
Nicholas E. Corrado, Julian Katz-Samuels, Adithya M Devraj, Hyokun Yun, Chao Zhang, Yi Xu, Yi Pan, Bing Yin, and Trishul Chilimbi. AutoMixAlign: Adaptive Data Mixing for Multi-Task Preference Optimization in LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 20234–20258, Vienna, Austria, 2025. Association for Computational Linguistics. doi: 10.18653/v1/2025.acl-long.990.
John C. Duchi and Hongseok Namkoong. Learning models with uniform performance via distributionally robust optimization. The Annals of Statistics, 49(3), June 2021. ISSN 0090-5364. doi:10.1214/20-AOS2004.
Aurélien Garivier and Eric Moulines. On Upper-Confidence Bound Policies for Switching Bandit Problems. In Jyrki Kivinen, Csaba Szepesvári, Esko Ukkonen, and Thomas Zeugmann (eds.), Algorithmic Learning Theory, volume 6925, pp. 174–188. Springer Berlin Heidelberg, Berlin, Heidelberg, 2011. ISBN 978-3-642-24411-7 978-3-642-24412-4. doi: 10.1007/978-3-642-24412-4_16. Series Title: Lecture Notes in Computer Science.
Soumya Suvra Ghosal and Yixuan Li. Distributionally Robust Optimization with Probabilistic Group. Proceedings of the AAAI Conference on Artificial Intelligence, 37(10):11809–11817, June 2023. ISSN 2374-3468, 2159-5399. doi: 10.1609/aaai.v37i10.26394.
Team GLM, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Diego Rojas, Guanyu Feng, Hanlin Zhao, Hanyu Lai, Hao Yu, Hongning Wang, Jiadai Sun, Jiajie Zhang, Jiale Cheng, Jiayi Gui, Jie Tang, Jing Zhang, Juanzi Li, Lei Zhao, Lindong Wu, Lucen Zhong, Mingdao Liu, Minlie Huang, Peng Zhang, Qinkai Zheng, Rui Lu, Shuaiqi Duan, Shudan Zhang, Shulin Cao, Shuxun Yang, Weng Lam Tam, Wenyi Zhao, Xiao Liu, Xiao Xia, Xiaohan Zhang, Xiaotao Gu, Xin Lv, Xinghan Liu, Xinyi Liu, Xinyue Yang, Xixuan Song, Xunkai Zhang, Yifan An, Yifan Xu, Yilin Niu, Yuantao Yang, Yueyan Li, Yushi Bai, Yuxiao Dong, Zehan Qi, Zhaoyu Wang, Zhen Yang, Zhengxiao Du, Zhenyu Hou, and Zihan Wang. ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools, 2024.
Nika Haghtalab, Michael Jordan, and Eric Zhao. On-Demand Sampling: Learning Optimally from Multiple Distributions. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 406–419. Curran Associates, Inc., 2022.
Elad Hazan. Introduction to Online Convex Optimization. Foundations and Trends® in Optimization, 2(3-4):157–325, August 2016. ISSN 2167-3888, 2167-3918. doi: 10.1561/2400000013.
Weihua Hu, Gang Niu, Issei Sato, and Masashi Sugiyama. Does Distributionally Robust Supervised Learning Give Robust Classifiers? In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 2029–2037. PMLR, July 2018.
Hamish Ivison, Yizhong Wang, Valentina Pyatkin, Nathan Lambert, Matthew Peters, Pradeep Dasigi, Joel Jang, David Wadden, Noah A. Smith, Iz Beltagy, and Hannaneh Hajishirzi. Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2, 2023. Version Number: 2.
Liuyuan Jiang, Quan Xiao, Lisha Chen, and Tianyi Chen. Beyond Value Functions: Single-Loop Bilevel Optimization under Flatness Conditions. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 52003–52040. Curran Associates, Inc., 2025. doi: 10.52202/085713-1733.
Jikai Jin, Bohang Zhang, Haiyang Wang, and Liwei Wang. Non-convex Distributionally Robust Optimization: Non-asymptotic Analysis. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P. S. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, volume 34, pp. 2771–2782. Curran Associates, Inc., 2021.
Michael Katz, Harsha Kokel, and Sarath Sreedharan. Seemingly Simple Planning Problems are Computationally Challenging: The Countdown Game, 2025. Version Number: 2.
Diederik P. Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization, 2014. Version Number: 9.
Woosung Koh, Jeyoung Jeon, Youngjin Song, Yujin Cheon, Soowon Oh, Jaehyeong Choi, and Se-Young Yun. mSFT: Addressing Dataset Mixtures Overfitting Heterogeneously in Multi-task SFT, 2026. Version Number: 5.
Ramakrishnan Krishnamurthy and Aditya Gopalan. On Slowly-varying Non-stationary Bandits. In Reinforcement Learning Conference, 2025.
Zeman Li, Yuan Deng, Peilin Zhong, Meisam Razaviyayn, and Vahab Mirrokni. PiKE: Adaptive Data Mixing for Large-Scale Multi-Task Learning Under Low Gradient Conflicts. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026.
Bill Yuchen Lin, Ronan Le Bras, Kyle Richardson, Ashish Sabharwal, Radha Poovendran, Peter Clark, and Yejin Choi. ZebraLogic: On the Scaling Limits of LLMs for Logical Reasoning, 2025. Version Number: 2.
Xinyu Lin, Wenjie Wang, Yongqi Li, Shuo Yang, Fuli Feng, Yinwei Wei, and Tat-Seng Chua. Data-efficient Fine-tuning for LLM-based Recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 365–374, Washington DC USA, July 2024. ACM. ISBN 979-8-4007-0431-4. doi: 10.1145/3626772.3657807.
Weijie Lv, Xuan Xia, and Sheng-Jun Huang. Data-efficient LLM Fine-tuning for Code Generation. In 2025 International Joint Conference on Neural Networks (IJCNN), pp. 1–8, Rome, Italy, June 2025. IEEE. ISBN 979-8-3315-1042-8. doi: 10.1109/IJCNN64981.2025.11227906.
Sadhika Malladi, Tianyu Gao, Eshaan Nichani, Alex Damian, Jason D Lee, Danqi Chen, and Sanjeev Arora. Fine-Tuning Language Models with Just Forward Passes. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 53038–53075. Curran Associates, Inc., 2023. doi: 10.52202/075280-2308.
Patrick G. Mulloy. Smoothing Data With Faster Moving Averages. Technical Analysis of Stocks & Commodities, 12(1):11–19, January 1994.
Yonatan Oren, Shiori Sagawa, Tatsunori Hashimoto, and Percy Liang. Distributionally Robust Language Modeling. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 4226–4236, Hong Kong, China, 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1432.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 27730–27744. Curran Associates, Inc., 2022.
Kishan Panaganti, Zhenwen Liang, Wenhao Yu, Haitao Mi, and Dong Yu. Group Distributionally Robust Optimization-Driven Reinforcement Learning for LLM Reasoning, 2026. Version Number: 1.
B. T. Polyak and A. B. Juditsky. Acceleration of Stochastic Approximation by Averaging. SIAM Journal on Control and Optimization, 30(4):838–855, July 1992. ISSN 0363-0129, 1095-7138. doi: 10.1137/0330046.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 53728–53741. Curran Associates, Inc., 2023.
Shyam Sundhar Ramesh, Xiaotong Ji, Matthieu Zimmer, Sangwoong Yoon, Zhiyong Wang, Haitham Bou Ammar, Aurelien Lucchi, and Ilija Bogunovic. Multi-Task GRPO: Reliable LLM Reasoning Across Tasks, 2026. Version Number: 1.
Dipankar Raychaudhuri, Ivan Seskar, Gil Zussman, Thanasis Korakis, Dan Kilper, Tingjun Chen, Jakub Kolodziejski, Michael Sherman, Zoran Kostic, Xiaoxiong Gu, Harish Krishnaswamy, Sumit Maheshwari, Panagiotis Skrimponis, and Craig Gutterman. COSMOS: A city-scale programmable testbed for experimentation with advanced wireless. In Proceedings of the 26th Annual International Conference on Mobile Computing and Networking, MobiCom '20, New York, NY, USA, 2020. Association for Computing Machinery. ISBN 978-1-4503-7085-1. doi:10.1145/3372224.3380891.
Noveen Sachdeva, Benjamin Coleman, Wang-Cheng Kang, Jianmo Ni, Lichan Hong, Ed H. Chi, James Caverlee, Julian McAuley, and Derek Zhiyuan Cheng. How to train data-efficient LLMs. In The Fourteenth International Conference on Learning Representations, 2026.
Shiori Sagawa*, Pang Wei Koh*, Tatsunori B. Hashimoto, and Percy Liang. Distributionally Robust Neural Networks. In International Conference on Learning Representations, 2020.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms, 2017. Version Number: 2.
Pengyang Shao, Naixin Zhai, Lei Chen, Yonghui Yang, Fengbin Zhu, Xun Yang, and Meng Wang. BalDRO: A Distributionally Robust Optimization based Framework for Large Language Model Unlearning. In Proceedings of the ACM Web Conference 2026, pp. 8874–8884, Dubai United Arab Emirates, April 2026. ACM. ISBN 979-8-4007-2307-0. doi: 10.1145/3774904.3792975.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models, 2024. Version Number: 3.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A Flexible and Efficient RLHF Framework. arXiv preprint arXiv: 2409.19256, 2024.
Haebin Shin, Lei Ji, Xiao Liu, Zhiwei Yu, Qi Chen, and Yeyun Gong. DynamixSFT: Dynamic Mixture Optimization of Instruction Tuning Collections, 2025. Version Number: 1.
Tasuku Soma, Khashayar Gatmiry, Sharut Gupta, and Stefanie Jegelka. Near-Optimal Algorithms for Group Distributionally Robust Optimization and Beyond, January 2025. arXiv:2212.13669 [cs].
Yifan Sun, Jingyan Shen, Yibin Wang, Tianyu Chen, Zhendong Wang, Mingyuan Zhou, and Huan Zhang. Improving Data Efficiency for LLM Reinforcement Fine-tuning Through Difficulty-targeted Online Data Selection and Rollout Replay. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026.
Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4149–4158, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1421.
Qwen Team. Qwen2.5: A Party of Foundation Models, September 2024. URL https://qwenlm.github.io/blog/qwen2.5/.
Qwen Team. Qwen3 Technical Report, 2025. URL https://arxiv.org/abs/2505.09388.
Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, Shengyi Huang, Kashif Rasul, and Quentin Gallouédec. TRL: Transformers Reinforcement Learning, 2020. URL https://github.com/huggingface/trl.
Weixuan Wang, Minghao Wu, Barry Haddow, and Alexandra Birch. HBO: Hierarchical Balancing Optimization for Fine-Tuning Large Language Models. In The Fourteenth International Conference on Learning Representations, 2026.
Yudong Wang, Zixuan Fu, Jie Cai, Peijun Tang, Hongya Lyu, Yewei Fang, Zhi Zheng, Jie Zhou, Guoyang Zeng, Chaojun Xiao, Xu Han, and Zhiyuan Liu. Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Data. CoRR, abs/2505.05427, May 2025a.
Zhenting Wang, Guofeng Cui, Kun Wan, and Wentian Zhao. DUMP: Automated Distribution-Level Curriculum Learning for RL-based LLM Post-training. CoRR, abs/2504.09710, April 2025b.
Zhilin Wang, Jiaqi Zeng, Olivier Delalleau, Daniel Egert, Ellie Evans, Hoo-Chang Shin, Felipe Soares, Yi Dong, and Oleksii Kuchaiev. HelpSteer3: Human-Annotated Feedback and Edit Data to Empower Inference-Time Scaling in Open-Ended General-Domain Tasks, 2025c. URL https://arxiv.org/abs/2503.04378.
Zhilin Wang, Jiaqi Zeng, Olivier Delalleau, Ellie Evans, Daniel Egert, Hoo-Chang Shin, Felipe Soares, Yi Dong, and Oleksii Kuchaiev. RLBFF: Binary Flexible Feedback to bridge between Human Feedback & Verifiable Rewards, 2025d. URL https://arxiv.org/abs/2509.21319.
Zhilin Wang, Jiaqi Zeng, Olivier Delalleau, Hoo-Chang Shin, Felipe Soares, Alexander Bukharin, Ellie Evans, Yi Dong, and Oleksii Kuchaiev. HelpSteer3-Preference: Open Human-Annotated Preference Data across Diverse Tasks and Languages, 2025e. URL https://arxiv.org/abs/2505.11475.
Runzhe Wu, Ankur Samanta, Ayush Jain, Scott Fujimoto, Jeongyeol Kwon, Ben Kretzu, Youliang Yu, Kaveh Hassani, Boris Vidolov, and Yonathan Efroni. Imbalanced Gradients in RL Post-Training of Multi-Task LLMs. In Findings of the Association for Computational Linguistics: EACL 2026, pp. 3137–3150, Rabat, Morocco, 2026. Association for Computational Linguistics. doi: 10.18653/v1/2026.findings-eacl.164.
Sang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du, Hanxiao Liu, Yifeng Lu, Percy S Liang, Quoc V Le, Tengyu Ma, and Adams Wei Yu. DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 69798–69818. Curran Associates, Inc., 2023.
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zhihao Fan. Qwen2 Technical Report. arXiv preprint arXiv:2407.10671, 2024.
Wenhao Yang, Sifan Yang, and Lijun Zhang. Discounted Online Convex Optimization: Uniform Regret Across a Continuous Interval. In The Fourteenth International Conference on Learning Representations, 2026.
Jiasheng Ye, Peiju Liu, Tianxiang Sun, Jun Zhan, Yunhua Zhou, and Xipeng Qiu. Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance. In The Thirteenth International Conference on Learning Representations, 2025.
Chengbo Zang, Mehmet Kerem Turkcan, Gil Zussman, Zoran Kostic, and Javad Ghaderi. Adaptive Data Collection for Robust Learning Across Multiple Distributions. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 73974–73994. PMLR, July 2025.
Lijun Zhang, Peng Zhao, Zhen-Hua Zhuang, Tianbao Yang, and Zhi-Hua Zhou. Stochastic Approximation Approaches to Group Distributionally Robust Optimization. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 52490–52522. Curran Associates, Inc., 2023.
Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-Following Evaluation for Large Language Models, 2023. URL https://arxiv.org/abs/2311.07911.
APPENDIX
A RELATED WORK
Distributionally Robust Optimization. Distributionally Robust Optimization studies learning algorithms that optimize model performance under worst-case shifts or uncertainty in the data distribution Hu et al. (2018); Duchi & Namkoong (2021); Jin et al. (2021); Agarwal & Zhang (2022). Based on this formulation, GDRO explicitly minimizes the worst-case loss across predefined distribution groups Sagawa* et al. (2020); Haghtalab et al. (2022); Ghosal & Li (2023); Zhang et al. (2023). Recent theoretical work formulates GDRO as a stochastic convex-concave saddle-point problem and studies algorithms that combine data sampling with parameter optimization. For example, Zhang et al. (2023) use Exp3-style sampling Auer et al. (2002a) to track the fixed worst-performing data source in hindsight, and bound the minimax optimality gap for the time-averaged model parameters, but does not account for the evolving nature of the training process. Closest to our setting, Zang et al. (2025) propose to track the adaptive sequence of worst-performing data sources using UCB-style sampling Auer et al. (2002a). However, their approach requires repeatedly re-evaluating the current model on previously collected samples to maintain up-to-date source-wise loss estimates. This introduces substantial computational overhead and requires intrusive modifications to the standard training pipeline, limiting its practicability and compatibility with modern LLM training libraries.
Non-stationary Bandits. Multi-armed bandit algorithms provide a natural framework for adaptive data-source selection. Classical stochastic bandits assume fixed reward distributions Auer et al. (2002a), while adversarial bandits allow arbitrary reward sequences Auer et al. (2002b). Non-stationary bandits interpolate between these extremes by imposing structure on how rewards evolve over time Garivier & Moulines (2011); Besbes et al. (2014); Krishnamurthy & Gopalan (2025). Discounted-UCB methods were originally designed for environments with abrupt changes Garivier & Moulines (2011), while variation-budget and slowly-varying models provide alternative ways to quantify non-stationarity Besbes et al. (2014); Krishnamurthy & Gopalan (2025). Our setting differs from standard non-stationary bandits because the non-stationarity is endogenous: source-wise losses change because the optimizer updates the model parameters. Thus, the sampler and optimizer are coupled. We exploit this structure by combining discounted bandit estimation with online gradient descent and analyzing the resulting sampler-optimizer behavior through dynamic minimax regret.
Adaptive Sampling for LLM Training. Adaptive sampling has become increasingly important in LLM training and post-training because data sources vary widely in quality, difficulty, and relevance. Some methods estimate mixture weights offline using data-value models, filtering scores, or proxy evaluations Lin et al. (2024); Lv et al. (2025); Wang et al. (2025a); Sachdeva et al. (2026). Others update sampling probabilities online using training losses, gradient statistics, task difficulty, or model feedback Shin et al. (2025); Koh et al. (2026); Chen et al. (2025); Wang et al. (2025b); Sun et al. (2026); Panaganti et al. (2026). Recent work on multi-task post-training also studies how to balance heterogeneous reasoning, coding, safety, and instruction-following data so that easier or larger sources do not dominate the training Li et al. (2026); Ramesh et al. (2026); Wu et al. (2026); Panaganti et al. (2026). DRO-inspired objectives have also been explored for improving worst-case performance across groups or domains Oren et al. (2019); Corrado et al. (2025); Wang et al. (2026); Shao et al. (2026). However, existing approaches typically optimize static or heuristic objectives and lack a principled dynamic minimax regret formulation that explicitly accounts for the non-stationary nature of LLM training while providing provable theoretical guarantees.
B IMPLEMENTATION DETAILS
Algorithm 1 Adaptive Sampling for Robust Multi-Source LLM Post-Training.
Require: Data sources , initial parameter , horizon
1: Set
2: Initialize for all
3: for do
4: If , set ; otherwise, generate sampling probabilities
5: Sample the mini-batch
6: Parameter update
7: Update and by Eq. (7) for all
8: end for
9: return
The training process is outlined in Algorithm 1. We further adopt the following techniques during implementation.
Batch Sampling. Instead of selecting only one data source in each step, we propose a sampling version of DUCB, defined as
Due to the stochasticity of , the selection rule induces a non-degenerate categorical distribution over with probabilities s.t. , as opposed to the deterministic rule in Eq. (8). Therefore, every mini-batch may contain a mixture of samples from multiple data sources shown by Algorithm 1. This is especially important when using a large batch size, since training on a large amount of samples from a single data source increases the risk of catastrophic forgetting or mode collapse. We further prove in Appendix C.6 that the bandit regret of the sampling version of DUCB is only a constant factor worse than that of the standard DUCB in Proposition 4. Since does not admit a closed-form expression, we approximate it using the Gauss-Hermite quadrature (Butler & Moffitt, 1982). At the end of each training step, we update and using the empirical loss and sample proportion in the mini-batch for each data source.
Double-EMA. Traditional EMA is known to have a delayed response to changing inputs due to the discounting mechanism. Thus we employ double-EMA Mulloy (1994) to track the training losses in the implementation of all samplers, defined as
As shown in Fig. 1, the DEMA reward is able to closely track the trend of raw reward while providing sufficient denoising ability.
Enforced Exploration. In the early stage of training, the sampling weights of DUCB can be affected by noisy initial observations and experience fluctuations. Inspired by Exp3 (and its variants), we augment the sampling weights by
This enforces uniform exploration across all data sources in the early stage of training, and exponentially decays as the training progresses and becomes more stable. It is worth noting that the extra regret incurred by the enforced exploration is at most , which is dominated by the standard DUCB regret given the choice of in Proposition 4.
C PROOFS
C.1 PROOF OF PROPOSITION 1
Proof of Proposition 1. Recall that . By Definition 2,
,
where the last inequality follows from the fact that for all and . Further recalling Definition 1 concludes the proof.
C.2 PROOF OF PROPOSITION 3
The proof follows from standard results for undiscounted and discounted OGD. Suppose a player of an online game observes a sequence of losses for steps, and updates the parameter using OGD defined in Eq. (6). Then the following lemmas hold. Note that we defer the choice of in both cases.
Lemma 1 (Undiscounted OGD (Hazan, 2016)). For any , OGD satisfies
Lemma 2 (Discounted OGD (Yang et al., 2026)). Let be a discount factor. For any , OGD satisfies
Now we can prove the optimization regret.
Proof of Proposition 3. Let . Recall that i.i.d. for all according to Assumption 3, i.e.,
Since is fixed, we have, by Lemma 1,
and similarly by Lemma 2,
Further note that . Combining together, we have
for any , which concludes the proof.
C.3 PROOF OF PROPOSITION 4
We first present the following results, proved respectively in Sections C.4 and C.5. As opposed to stationary bandits, the explorations for non-stationary bandits conducted in distant steps gradually expire due to changing environments. Therefore, continuous re-exploration is needed to ensure reliable concentration results, i.e., we need to keep above some threshold .
Proposition 7 (Bandit Gap of DUCB). Suppose DUCB picks in step as in Eq. (8). Then for any ,
Proposition 8 (EMA Bias). Suppose is generated by OGD with learning rate as in Eq. (6). Then for any and s.t. ,
where and is the effective horizon as in Eq. (8).
We further state following lemmas.
Lemma 3. For any and constant ,
Proof. We first write
By Garivier & Moulines (2011) (Lemma 25 and Corollary 26),
Further note that
Plugging back to the first equation concludes the proof.
Lemma 4. For all ,
Proof. Recall that
Thus we can write
For the first term, note that
Since and whenever , we have
For the second term, note that for all . Thus
Combining together gives the statement of the lemma.
Now we can prove the dynamic bandit regret. In fact, we prove a more explicit version as follows.
Proposition 9 (Unnormalized Dynamic Bandit Regret of DUCB). For any , DUCB satisfies
Proof. Let be a constant. We start by writing
Denote . By Lemma 3, the first sum writes
Letting , we have
Thus for all , and
For the second sum, recall by Eq. (12) that
By Proposition 7, the first term on the RHS satisfies
with probability at least , where by construction. Thus it follows from a union bound that
By the Cauchy-Schwarz inequality, we have . Thus
where the first inequality follows from Lemma 4. Further combining with Proposition 8, we have
with probability at least . And when the bound fails, the additional regret incurred is at most . Putting together,
Setting a sufficiently large (e.g., s.t. ) concludes the proof.
Proposition 10 (Normalized Dynamic Bandit Regret of DUCB). The normalized dynamic bandit regret of DUCB satisfies
for any .
Proof. First write
Note that when , we have
since as . Then it follows that
Now we discuss the choice of over different values of . When , i.e., the environment is almost stationary, the last term is negligible since . Thus we can choose s.t. , and
When , i.e., the environment is slowly changing, we have for any fixed independent of . Let s.t. . We have
Note that if , i.e., the environment is abruptly changing, no algorithm can achieve a sublinear regret given our setting where changes in all steps Garivier & Moulines (2011).
This proves Proposition 4.
C.4 PROOF OF PROPOSITION 7
First we state a discounted version of Azuma's inequality. Consider the sequence
Note that is -measurable by the design of OGD. Further since
the sequence is a martingale difference sequence for all fixed . We have the following lemma.
Proposition 11 (Discounted Azuma's Inequality). For any constant and ,
where is defined in Eq. (7) and is defined in Eq. (8).
Proof. The proof is an adaptation of the standard proof of Azuma’s inequality, where we specifically deal with the randomness of . Following Garivier & Moulines (2011), we apply a union bound over its possible values using the peeling technique. Specifically, let
Note that since , we have
Define the intervals for each , where we set and . Then
and there exists a unique s.t. . Then for any ,
For each event where , there is , and thus
Then applying Chernoff's bound to the RHS gives
Recall by Hoeffding's lemma that
Then
Therefore,
where the RHS of the inequality is minimized by taking . Since for any , we have
Combining together, we have
Finally, we choose s.t. , i.e., as ,
This concludes the proof.
Then we immediately have the following result.
Lemma 5. For any ,
Proof. Note that
Since for all , we have
for all . Then
where the last inequality follows from Proposition 11.
Now we can prove the DUCB bandit gap.
Proof of Proposition 7. By the rule of DUCB,
Specifically for , there is
When , we have
where the last inequality is due to . Thus
Then by the standard UCB argument,
\begin{align*}\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{*}}-\tilde{\mu}_{t-1}^{k_{t}}&>2r_{t}^{k_{t}}\sqrt{1+A^{-1}},N_{t-1}^{k_{t}}(\beta)\geq A\right]\\&\leq\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{*}}-\tilde{\mu}_{t-1}^{k_{t}}>2r_{t-1}^{k_{t}}\right]\\&=\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{*}}-\tilde{\mu}_{t-1}^{k_{t}}-\hat{\Delta}_{t-1}^{k_{t}}>2r_{t-1}^{k_{t}}-\hat{\Delta}_{t-1}^{k_{t}}\right]\\&\leq\Pr\left[\left(\tilde{\mu}_{t-1}^{k_{t}^{*}}-\hat{\mu}_{t-1}^{k_{t}^{*}}\right)-\left(\tilde{\mu}_{t-1}^{k_{t}}-\hat{\mu}_{t-1}^{k_{t}}\right)>r_{t-1}^{k_{t}^{*}}+r_{t-1}^{k_{t}}\right]\\&\leq\Pr\left[\hat{\mu}_{t-1}^{k_{t}^{*}}-\tilde{\mu}_{t-1}^{k_{t}^{*}}<-r_{t-1}^{k_{t}^{*}}\right]+\Pr\left[\hat{\mu}_{t-1}^{k_{t}}-\tilde{\mu}_{t-1}^{k_{t}}>r_{t-1}^{k_{t}}\right]\end{align*}Applying Lemma 5 respectively on each term concludes the proof.
C.5 PROOF OF PROPOSITION 8
We prove this by splitting the EMA summands by a horizon at each step . Note that the early summands for inherits more bias, since they are calculated based on some model parameter drastically different from the current parameter . Thus we simply apply the boundedness condition. On the other hand, more recent summands for are calculated based on the model parameters much closer to the current . Thus we bound them using the Lipschitz condition in Assumption 2. Finally, we optimize the choice of to obtain Proposition 8.
Proof of Proposition 8. Suppose there exists some for . We can write
For the first sum, since for all , we have
For the second sum, by the Lipschitz condition and the rule of OGD, we have
Then
To choose the optimal , let
i.e.,
Further note that the LHS is convex in . Thus the assumption that can be alleviated, and
Finally, since , we conclude the proof by realizing that the RHS above is monotonically decreasing w.r.t. , and for all .
C.6 ANALYSIS OF SAMPLING DUCB
To show that the bandit regret of the sampling version of DUCB is a constant factor away from the standard DUCB, we only need to show that the bandit gap is a constant factor away from Proposition 7, and the rest naturally follows.
Proposition 12 (Bandit Gap of Sampling DUCB). Suppose sampling DUCB picks in step as in Section B. Then for any ,
Proof. By the rule of sampling DUCB, we have
And specifically for (recall that ),
According to the Gaussian tail bound,
Recall by Proposition 7 that . Then
\begin{align*}\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{\star}}-\tilde{\mu}_{t-1}^{k_{t}}&>4r_{t}^{k_{t}}\sqrt{1+A^{-1}},N_{t-1}^{k_{t}}(\beta)\geq A\right]\\\leq\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{\star}}-\tilde{\mu}_{t-1}^{k_{t}}&>4r_{t-1}^{k_{t}}\right]\\\ =\Pr\left[\tilde{\mu}_{t-1}^{k_{t}^{\star}}-\tilde{\mu}_{t-1}^{k_{t}}-\hat{\Delta}_{t}^{k_{t}}+\hat{\Delta}_{t}^{k_{t}}&>4r_{t-1}^{k_{t}}\right]\\\leq\Pr\left[\left(\tilde{\mu}_{t-1}^{k_{t}^{\star}}-\hat{\mu}_{t-1}^{k_{t}^{\star}}\right)-\left(\tilde{\mu}_{t-1}^{k_{t}}-\hat{\mu}_{t-1}^{k_{t}}\right)+\phi_{t-1}^{k_{t}}-\phi_{t-1}^{k_{t}^{\star}}&>4r_{t-1}^{k_{t}}+r_{t-1}^{k_{t}^{\star}}-r_{t-1}^{k_{t}^{\star}}\right]^{\prime}\\\leq\Pr\left[\hat{\mu}_{t-1}^{k_{t}^{\star}}-\tilde{\mu}_{t-1}^{k_{t}^{\star}}<-r_{t-1}^{k_{t}^{\star}}\right]+\Pr\left[\hat{\mu}_{t-1}^{k_{t}}-\tilde{\mu}_{t-1}^{k_{t}}(\theta_{t})>r_{t-1}^{k_{t}}\right]\\&+\Pr\left[\phi_{t-1}^{k_{t}}>3r_{t-1}^{k_{t}}\right]+\Pr\left[\phi_{t-1}^{k_{t}^{\star}}<r_{t-1}^{k_{t}^{\star}}\right]\end{align*}where the last inequality follows from a union bound. Applying Lemma 5 and the Gaussian tail bound respectively on each term concludes the proof.
D ADDITIONAL EXPERIMENTAL RESULTS
This section provides additional results beyond the compact Tab. 2. The goal is two-fold. First, we evaluate whether the behavior of DUCB transfers across model families and parameter scales. Second, we report auxiliary metrics, including mean token accuracy for SFT and reward margin for DPO, to verify that improvements in the primary robustness metric do not arise from degenerate behavior on secondary measures.
All models are trained either on a single 80G or two 40G NVIDIA A100 GPU(s), using the AdamW optimizer with 8-bit LoRA quantization and bfloat-16 mixed precision. The training was conducted using the NSF COSMOS Testbed (Raychaudhuri et al., 2020) and the Empire AI (Bloom et al., 2025) resources. For each set of experiments, we set a uniform sample budget and explicitly avoid training for multiple epochs. The goal is to ensure that every training mini-batch is non-repetitive and aligns with Assumption 3. Detailed configurations and scripts will be released with the code upon publication.
D.1 SFT
Table 3: SFT results on the GSM8k + IFEval datasets with a budget of 32k samples.
| Model | Sampler | Signal | Accuracy | Mean Token Accuracy | ||
|---|---|---|---|---|---|---|
| Min | Avg | Min | Avg | |||
| Qwen2.5-3B (Base) | Uniform | Loss | 22.85 | 29.79 | 81.23 | 84.97 |
| Exp3 | Loss | 23.63 | 25.68 | 78.82 | 82.35 | |
| Exp3 | Loss Difference | 23.63 | 27.24 | 81.46 | 84.78 | |
| DUCB (Ours) | Loss | 24.02 | 26.95 | 81.35 | 84.71 | |
| Qwen2.5-7B (Base) | Uniform | Loss | 27.15 | 39.36 | 78.79 | 82.34 |
| Exp3 | Loss | 27.54 | 37.60 | 81.42 | 84.76 | |
| Exp3 | Loss Difference | 27.73 | 40.72 | 78.87 | 82.35 | |
| DUCB (Ours) | Loss | 28.52 | 37.89 | 78.82 | 82.35 | |
| Llama3.1-8B (Base) | Uniform | Loss | 22.07 | 25.98 | 70.31 | 73.66 |
| Exp3 | Loss | 23.24 | 26.27 | 71.27 | 73.63 | |
| Exp3 | Loss Difference | 21.48 | 27.93 | 71.08 | 73.57 | |
| DUCB (Ours) | Loss | 24.22 | 25.29 | 71.22 | 73.61 | |
Follows from Shin et al. (2025).
We evaluate the SFT performance on a heterogeneous dataset comprising GSM8k Cobbe et al. (2021) and IFEval Zhou et al. (2023), evaluating the model's ability to balance mathematical reasoning with instruction-following. We compare against Exp3 utilizing standard SFT loss and the DynamixSFT-style stepwise loss difference proposed by Shin et al. (2025). We approximate their forward anticipated loss probing using virtual parameter update (followed parameter reset) with backward observed loss subtraction.
The observations confirm that DUCB consistently fulfills its theoretical promise of robustness, achieving the highest minimum source-wise across all model architectures and sizes. Note that the DynamixSFT-style proxy tends to achieve higher average accuracy, which aligns with their goal of optimizing the average performance.
D.2 DPO
We evaluate the DPO performance on the HelpSteer3 Wang et al. (2025c;e) dataset in Tab. 4. We compare against compare against faithful implementations of AutoMixAlign Corrado et al. (2025) including both AMA-R and AMA-S, and Exp3-style samplers based on excess loss. Specifically, we train the model using uniform sampling for 100 steps, and utilize the (smoothed) training loss as a proxy to the loss of a specialist model for each data source. Then we use the difference between the
Table 4: DPO results on the Helpsteer3 dataset with a budget of 16k samples.
| Model | Sampler | Signal | Accuracy | Margin | ||
|---|---|---|---|---|---|---|
| Min | Avg | Min | Avg | |||
| Qwen2.5-3B (Instruct) | Fixed-Weight | - | 75.00 | 80.57 | 0.96 | 1.28 |
| Uniform | Loss | 76.76 | 80.53 | 1.08 | 1.31 | |
| Exp3 | Excess Loss | 77.78 | 79.98 | 1.12 | 1.40 | |
| AMA-R | Excess Loss | 78.19 | 79.45 | 1.03 | 1.30 | |
| AMA-S | Excess Loss | 80.25 | 82.35 | 1.07 | 1.31 | |
| DUCB (Ours) | Loss | 79.33 | 81.59 | 1.10 | 1.33 | |
| Llama3.2-3B (Instruct) | Fixed-Weight | - | 80.24 | 81.75 | 1.24 | 1.33 |
| Uniform | Loss | 73.79 | 81.06 | 0.98 | 1.29 | |
| Exp3 | Excess Loss | 71.37 | 79.94 | 0.93 | 1.32 | |
| AMA-R | Excess Loss | 74.22 | 78.00 | 0.77 | 1.15 | |
| AMA-S | Excess Loss | 77.37 | 80.48 | 0.90 | 1.20 | |
| DUCB (Ours) | Loss | 77.42 | 81.88 | 1.04 | 1.30 | |
Faithful implementations of Corrado et al. (2025).
instantaneous training losses and the specialist loss proxies as the Exp3 sampling signal. Additionally, we also compare against a fixed weight sampler, which assigns a deterministic weight based on the specialist loss proxies for each model, respectively.
The results reveal that DUCB outperforms AMA-R on both models and remains competitive with AMA-S, which achieves higher minimum accuracy on Qwen2.5-3B. It is also worth noting that the simple fixed-weight sampler performs exceptionally well for Llama3.2-3B, while failing to beat the uniform sampling baseline for Qwen2.5-3B. This suggests that a relatively stationary data mixture method is not uniformly applicable for all model families without case-specific tunings. On the other hand, DUCB demonstrates its capacity to automatically detect and adapt to these varying levels of non-stationarity.
Table 5: Three-seed DPO results on HelpSteer3 with Qwen2.5-3B-Instruct. We report final-checkpoint mean accuracy standard deviation. The paired gain compares DUCB and Uniform under matched seeds.
| Sampler | Runs | Min Acc. | Avg Acc. |
|---|---|---|---|
| Uniform | 3 | 76.76±1.65 | 80.53±0.70 |
| DUCB (Ours) | 3 | 79.33±0.62 | 81.59±0.40 |
| Paired gain | 3 | +2.57±1.04 | - |
We further evaluate the performance of Qwen2.5-3B-Instruct on the Helpsteer3 dataset over three random seeds. Under the original sample budget, hyperparameters, and evaluation protocol, DUCB outperforms Uniform in minimum accuracy in all three matched Qwen2.5-3B DPO runs. As shown in Tab. 5, DUCB improves the final-checkpoint minimum accuracy by percentage points while exhibiting lower variation across seeds. This provides controlled seed-level evidence of improved worst-source robustness without relying on aggregation across different datasets or model families.
D.3 GRPO
We evaluate GRPO under a broader set of model families, scales, and sampling signals inspired by different baselines. Specifically, Ramesh et al. (2026) utilize Exp3 guided by training reward with stepwise reward improvement correction; Wang et al. (2025b) adopt switching-window UCB (SWUCB) guided by training advantages. We focus on the Reasoning Chollet (2019); Katz et al. (2025); Lin et al. (2025) dataset and the CommonsenseQA Talmor et al. (2019) dataset.
Table 6: GRPO results on the Reasoning dataset with a budget of 10k samples.
| Model | Sampler | Signal | Accuracy | |
|---|---|---|---|---|
| Min | Avg | |||
| Qwen2.5-0.5B (Instruct) | Uniform | Reward | 14.73 | 23.01 |
| Exp3 | Reward | 16.01 | 22.82 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 16.30 | 23.23 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 13.83 | 22.61 | |
| DUCB (Ours) | Reward | 16.53 | 22.88 | |
| Qwen2.5-1.5B (Instruct) | Uniform | Reward | 18.89 | 28.98 |
| Exp3 | Reward | 21.70 | 29.75 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 20.91 | 28.78 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 19.45 | 29.70 | |
| DUCB (Ours) | Reward | 21.81 | 28.74 | |
| Llama3.2-1B (Instruct) | Uniform | Reward | 10.79 | 21.87 |
| Exp3 | Reward | 11.13 | 22.70 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 11.01 | 18.19 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 11.58 | 23.88 | |
| DUCB (Ours) | Reward | 15.40 | 25.07 | |
Table 7: GRPO results on the CommonsenseQA dataset with a budget of 6.4k samples.
| Model | Sampler | Signal | Accuracy | |
|---|---|---|---|---|
| Min | Avg | |||
| Qwen3-8B (Instruct) | Uniform | Reward | 81.40 | 83.50 |
| Exp3 | Reward | 77.22 | 85.52 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 79.75 | 82.81 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 73.26 | 76.17 | |
| DUCB (Ours) | Reward | 81.40 | 87.20 | |
| Qwen2.5-3B (Instruct) | Uniform | Reward | 65.38 | 72.27 |
| Exp3 | Reward | 67.44 | 75.78 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 61.54 | 66.41 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 65.38 | 71.88 | |
| DUCB (Ours) | Reward | 69.77 | 75.39 | |
| Llama3.2-3B (Instruct) | Uniform | Reward | 69.23 | 73.44 |
| Exp3 | Reward | 72.09 | 74.22 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 69.23 | 72.66 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 69.23 | 71.88 | |
| DUCB (Ours) | Reward | 74.41 | 75.78 | |
| GLM4-9B (Instruct) | Uniform | Reward | 77.91 | 84.08 |
| Exp3 | Reward | 79.07 | 84.36 | |
| Exp3 | Reward + Difference Ramesh et al. (2026) | 82.56 | 85.55 | |
| SWUCB (DUMP) | Advantage Wang et al. (2025b) | 81.40 | 85.55 | |
| DUCB (Ours) | Reward | 84.88 | 87.74 | |
For Reasoning shown in Tab. 6, DUCB consistently provides the strongest robustness guarantees, achieving the highest minimum source-wise accuracies across all tested models. For CommonsenseQA shown in Tab. 7, DUCB achieves the best or tied-best minimum source-wise accuracy across all four models. This suggests that the robustness of DUCB is not tied to a specific architecture, tokenizer, or pretraining recipe.
The comparison with Exp3-style Ramesh et al. (2026) and DUMP Wang et al. (2025b) baselines further highlights the importance of using a sampling signal aligned with worst-source robustness.
Specifically, samplers that are based on reward difference or advantage does not consistently improve worst-source accuracy, affirming the findings of Ramesh et al. (2026). We also observe that the gains are comparably clearer on the smaller models, indicating that they may be more vulnerable to source-wise imbalance during GRPO. On the other hand, larger models may already possess stronger prior knowledge and thus exhibit more robustness.
D.4 TRAINING OVERHEAD
Table 8: Training overhead on HelpSteer3 with Qwen2.5-3B-Instruct using the same A100 GPU, sample budget, and hyperparameters. Per-step time is reported as mean ± standard deviation. AMA runtimes cover generalist training but exclude the cost of training specialists. The overhead for Zang et al. (2025) is analytical rather than a wall-clock measurement.
| Sampler | Time/Step (s) | Additional Cost |
|---|---|---|
| Uniform | 21.90 ± 1.29 | None |
| AMA-R | 21.47 ± 1.24 | Training K source-specific specialists |
| AMA-S | 21.72 ± 1.36 | Training K source-specific specialists |
| Zang et al. | 21 + 0.36 ×BufSize | O(t) replay evaluations at step t |
| DUCB (Ours) | 21.94 ± 1.14 | O(K) scalar state |
The reported runtime excludes specialist training;
Complexity under a history that grows linearly with the training step.
We measure per-step runtime on the same A100 GPU using the three Qwen2.5-3B DPO runs. DUCB requires seconds per step, compared with for Uniform, with the difference falling within the observed variations. DUCB uses losses already computed during optimization, adds no auxiliary model evaluations, and maintains only scalar state. The generalist-training runtimes of AMA-R and AMA-S are similarly close to Uniform, but exclude their additional cost of training source-specific specialists. By contrast, the oracle of Zang et al. (2025) re-evaluates a growing history of collected samples under the current model. Thus, DUCB introduces little measurable online overhead while avoiding both auxiliary specialist training and replay-based model evaluations.
D.5 OPTIMIZATION DYNAMICS AND ASSUMPTION DIAGNOSTICS
Lipschitz regularity with respect to model parameters is commonly adopted in theoretical analyses of LLM optimization (Malladi et al., 2023; Bai et al., 2024; Jiang et al., 2025). In our analysis, its primary role is to control changes in source losses between successive iterates visited by the optimization trajectory; we do not characterize a global Lipschitz constant for a transformer over its entire parameter space. We interpret Assumption 2 accordingly as a trajectory-level regularity condition.
Table 9: Optimization dynamics across the SFT, DPO, and GRPO experiments. For gradient norms and per-source signal variation, we report the mean and maximum of the run-level maxima. Worst-source variation is measured using exponentially smoothed training loss for SFT/DPO and reward for GRPO. Estimated worst-source (WS) switches are normalized per 1,000 steps.
| Task | Max LR | Max Grad. Norm mean / max | Max Signal Variation mean / max | WS Switches / 1k mean [min, max] |
|---|---|---|---|---|
| SFT | 2e-5 | 190.24 / 298.79 | 0.07 / 0.13 | 41 [3,124] |
| DPO | 1e-5 | 3.94 / 5.14 | 0.15 / 0.17 | 31 [13,53] |
| GRPO | 1e-5 | 0.22 / 0.24 | 0.03 / 0.06 | 20 [0,32] |
In practice, small learning rates, gradient clipping, learning-rate schedules, and, where applicable, KL regularization help control parameter updates during LLM post-training. To examine whether the slowly varying loss environment assumed by our analysis is representative of our experiments, we record the learning rate and gradient norm reported by TRL or veRL, together with the maximum absolute change in each source’s exponentially smoothed training signal between consecutive steps. We also report the frequency with which the empirically worst source changes during training.
As shown in Tab. 9, the experiments use maximum learning rates of at most , and the observed source-wise training signals change modestly between consecutive steps. At the same time, the identity of the worst source changes repeatedly across all three objectives, indicating a slowly varying but nonstationary environment. These observations are consistent with the trajectory-level regularity and slow-variation assumptions used in our analysis. They do not prove global Lipschitzness or estimate a global Lipschitz constant for the underlying neural networks.