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 temporally 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 ([15 ] (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 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 ([10 , 14 ] (Xie et al. 2023; Ye 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 § 9 .
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, [16 ] ) 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) 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 ~ ( K 1 / 4 T 3 / 4 ) \widetilde{O}(K^{1/4}T^{3/4}) O ( K 1/4 T 3/4 ) for K K K data sources over T T T 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 O ~ ( K 1 / 4 T 3 / 4 ) \widetilde{O}(K^{1/4}T^{3/4}) O ( K 1/4 T 3/4 ) , matching the optimal rate up to O ( log T ) O(\log T) O ( log T ) 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.
Problem Setup
Let X \mathcal{X} X be a data space with K K K data sources indexed by [ K ] : = { 1 , … , K } [K]:=\{1,\ldots,K\} [ K ] := { 1 , … , K } . Each source k ∈ [ K ] k\in[K] k ∈ [ K ] is associated with a distribution D k \mathcal{D}^{k} D k supported on X \mathcal{X} X , and each query to source k k k returns i . i . d . i.i.d. i . i . d . samples from D k \mathcal{D}^{k} D k . Let θ \theta θ be the learnable parameter from a parameter space Θ \Theta Θ . Let ℓ : Θ × X → R \ell:\Theta\times\mathcal{X}\to\mathbb{R} ℓ : Θ × X → R be a differentiable loss function. The expected loss of source k k k at the model parameter θ \theta θ is defined as μ k ( θ ) : = E X ∼ D k [ ℓ ( θ , X ) ] \mu^k(\theta) := \mathbb{E}_{X \sim\mathcal{D}^k}[\ell(\theta, X)] μ k ( θ ) := E X ∼ D k [ ℓ ( θ , X )] . A global minimax solution is any optimizer of the GDRO objective, i.e.,
θ ⋆ ∈ arg min θ ∈ Θ max k ∈ [ K ] μ k ( θ ) . (1) \theta^\star\in\underset{\theta\in\Theta}{\arg\min}\ \max_{k \in[K]} \mu^k(\theta). \tag*{(1)} θ ⋆ ∈ θ ∈ Θ arg min k ∈ [ K ] max μ k ( θ ) . (1)
This formulation captures a broad class of LLM post-training objectives through appropriate choices of the source distributions and loss functions as described in Table 1 . Let π θ \pi_\theta π θ be an LLM, and q , o q, o q , o be a pair of prompt and response. Then π θ ( o ∣ q ) \pi_\theta(o \mid q) π θ ( o ∣ q ) is the probability that the LLM generates the response o o o given the prompt q q q . 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 ( o + , o − ) (o^+, o^-) ( o + , o − ) denote a preferred and dispreferred response pair. Let p θ B T ( o + ≻ o − ∣ q ) p_\theta^{\mathrm{BT}}(o^+ \succ o^- \mid q) p θ BT ( o + ≻ o − ∣ q ) denote the Bradley-Terry probability ([8 ] (Rafailov et al. 2023)) that the model prefers o + o^+ o + to o − o^- o − , and the loss is the negative Bradley-Terry preference probability. For reinforcement learning (RL), let r ( q , o ) r(q, o) r ( q , o ) denote the reward assigned to the response o o o for the prompt q q q . 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, Table 1 presents these objectives at the sequence level, omitting token-wise factorization, reference-model regularization, and implementation-specific normalization terms.
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 § 4 and D.5.
We consider an iterative training algorithm A \mathcal{A} A , consisting of a sampler and an optimizer , that runs for T T T steps. At each step t ∈ [ T ] t \in[T] t ∈ [ T ] , the sampler specifies a distribution P t \mathcal{P}_t P t over the data-source indices [ K ] [K] [ K ] . A source k t ∼ P t k_t \sim\mathcal{P}_t k t ∼ P t is then selected, and a mini-batch B t ⊆ X k t \mathcal{B}_t \subseteq\mathcal{X}^{k_t} B t ⊆ X k t of i.i.d. samples is drawn from the corresponding distribution D k t \mathcal{D}^{k_t} D k t . The model observes B t \mathcal{B}_t B t and calculates the empirical loss μ ^ k t ( θ t ; B t ) : = ∑ X ∈ B t ℓ ( θ t , X ) / ∣ B t ∣ \hat{\mu}^{k_t}(\theta_t; \mathcal{B}_t) := \sum_{X \in\mathcal{B}_t} \ell(\theta_t, X)/|\mathcal{B}_t| μ ^ k t ( θ t ; B t ) := ∑ X ∈ B t ℓ ( θ t , X ) /∣ B t ∣ based on the current model parameter θ t \theta_t θ t . Then the optimizer updates the parameter to obtain θ t + 1 \theta_{t+1} θ t + 1 for the next step. The sampler observes only μ ^ k t ( θ t ; B t ) \hat{\mu}^{k_t}(\theta_t; \mathcal{B}_t) μ ^ k t ( θ t ; B t ) ; it neither observes the current losses of unselected sources nor re-evaluates historical mini-batches. After T T T steps, the algorithm generates a trajectory of data source indices and model parameters A T : = { ( k t , θ t ) , t = 1 , … , T } \mathcal{A}_T := \{(k_t, \theta_t), t = 1, \ldots, T\} A T := {( k t , θ t ) , t = 1 , … , T } . 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 θ ⋆ \theta^\star θ ⋆ be the global minimax optimum in Eq. (1) . The undiscounted dynamic minimax regret of an algorithm A \mathcal{A} A after T T T steps is defined as
R ( A T ) : = ∑ t = 1 T max k ∈ [ K ] μ k ( θ t ) − T max k ∈ [ K ] μ k ( θ ⋆ ) . (2) R(\mathcal{A}_T) := \sum_{t=1}^{T} \max_{k \in[K]} \mu^k(\theta_t) - T \max_{k \in[K]} \mu^k(\theta^\star). \tag*{(2)} R ( A T ) := t = 1 ∑ T k ∈ [ K ] max μ k ( θ t ) − T k ∈ [ K ] max μ k ( θ ⋆ ) . (2)
This definition compares the worst-case loss incurred by A T \mathcal{A}_T A T with the best achievable minimax loss. Crucially, the maximizing source in max k μ k ( θ t ) \max_k \mu^k(\theta_t) max k μ k ( θ t ) may vary with t t t , which makes the 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 ρ , γ ∈ [ 0 , 1 ] \rho, \gamma\in[0, 1] ρ , γ ∈ [ 0 , 1 ] 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 ρ , γ ∈ [ 0 , 1 ] \rho, \gamma\in[0, 1] ρ , γ ∈ [ 0 , 1 ] . The discounted optimization regret of an algorithm A \mathcal{A} A after T T T steps is defined as
R ρ o ( A T ) : = ∑ t = 1 T ρ T − t ( μ k t ( θ t ) − μ k t ( θ ⋆ ) ) , (3) R_{\rho}^{o}(\mathcal{A}_T) := \sum_{t=1}^{T} \rho^{T-t}\left(\mu^{k_t}(\theta_t) - \mu^{k_t}(\theta^\star)\right), \tag*{(3)} R ρ o ( A T ) := t = 1 ∑ T ρ T − t ( μ k t ( θ t ) − μ k t ( θ ⋆ ) ) , (3) and the discounted dynamic bandit regret is defined as
R γ b ( A T ) : = ∑ t = 1 T γ T − t ( max k ∈ [ K ] μ k ( θ t ) − μ k t ( θ t ) ) . (4) R_{\gamma}^{b}(\mathcal{A}_T) := \sum_{t=1}^{T} \gamma^{T-t}\left(\max_{k \in[K]} \mu^k(\theta_t) - \mu^{k_t}(\theta_t)\right). \tag*{(4)} R γ b ( A T ) := t = 1 ∑ T γ T − t ( k ∈ [ K ] max μ k ( θ t ) − μ k t ( θ t ) ) . (4)
The optimization regret R o ρ R^\rho_o R o ρ captures the loss incurred by following the optimizer trajectory instead of using the minimax solution on the sampled sources. The bandit regret R b γ R^\gamma_b R b γ captures the loss incurred by sampling k t k_t k t instead of the instantaneous worst-performing source at time t t t . The following decomposition connects these quantities to the original undiscounted regret. Its proof simply follows from the fact that max k μ k ( θ ) ≥ μ k t ( θ ) \max_k \mu^k(\theta) \ge\mu^{k_t}(\theta) max k μ k ( θ ) ≥ μ k t ( θ ) for all θ \theta θ and t t t and is provided in Appendix § 11 .§ 1 .
Proposition 1 (Regret Decomposition). Any trajectory A T A_T A T satisfies R ( A T ) ≤ R o 1 ( A T ) + R b 1 ( A T ) R(A_T) \le R^1_o(A_T) + R^1_b(A_T) R ( A T ) ≤ R o 1 ( A T ) + R b 1 ( A T ) .
Finally, we define the normalized discounted dynamic minimax regret as follows.
Definition 3 (Dynamic Minimax Regret). For any ρ , γ ∈ [ 0 , 1 ] \rho, \gamma\in[0,1] ρ , γ ∈ [ 0 , 1 ] , the normalized ( ρ , γ ) (\rho,\gamma) ( ρ , γ ) -discounted dynamic minimax regret of an algorithm A A A after T T T steps is defined as
R ρ , γ ( A T ) : = T N T ( ρ ) R o ρ ( A T ) + T N T ( γ ) R b γ ( A T ) , (5) R^{\rho,\gamma}(A_T) := \frac{T}{N_T(\rho)}R^\rho_o(A_T) + \frac{T}{N_T(\gamma)}R^\gamma_b(A_T), \tag*{(5)} R ρ , γ ( A T ) := N T ( ρ ) T R o ρ ( A T ) + N T ( γ ) T R b γ ( A T ) , (5) where N T ( β ) : = ∑ t = 1 T β T − t N_T(\beta) := \sum_{t=1}^{T}\beta^{T-t} N T ( β ) := ∑ t = 1 T β T − t for any β ∈ [ 0 , 1 ] \beta\in[0,1] β ∈ [ 0 , 1 ] .
The normalization converts each discounted sum to the scale of a length-T T T horizon, making regret bounds comparable across choices of ρ \rho ρ and γ \gamma γ . Here, ρ \rho ρ and γ \gamma γ separately discount the optimization and bandit components, whereas β \beta β will be selected by the analyses. When ρ = γ = 1 \rho= \gamma= 1 ρ = γ = 1 , the normalized regret reduces to the undiscounted sampler-optimizer decomposition, and by Proposition 1, R ( A T ) ≤ R 1 , 1 ( A T ) R(A_T) \le R^{1,1}(A_T) R ( A T ) ≤ R 1 , 1 ( A T ) . For ρ , γ < 1 \rho,\gamma< 1 ρ , γ < 1 , 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 Θ ′ \Theta' Θ ′ and D > 0 D > 0 D > 0 such that, for any θ , θ ′ \theta, \theta' θ , θ ′ generated by the algorithm, there is θ , θ ′ ∈ Θ ′ \theta, \theta' \in\Theta' θ , θ ′ ∈ Θ ′ and ∥ θ − θ ′ ∥ ≤ D \lVert\theta- \theta' \rVert\le D ∥ θ − θ ′ ∥ ≤ D .
Assumption 2 (Bounded Lipschitz Loss). There exists C , G > 0 C, G > 0 C , G > 0 such that, for all θ ∈ Θ ′ \theta\in\Theta' θ ∈ Θ ′ and X ∈ X X \in\mathcal{X} X ∈ X , ℓ ( θ , X ) ∈ [ 0 , C ] \ell(\theta, X) \in[0,C] ℓ ( θ , X ) ∈ [ 0 , C ] and ℓ \ell ℓ is G G G -Lipschitz in θ \theta θ .
Assumption 3 (Source-Wise IID Sampling). All data (i.e., prompts and responses, if applicable) collected by querying D k \mathcal{D}^k D k are sampled i.i.d. for all k ∈ [ K ] k \in[K] k ∈ [ K ] .
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 § 12 .§ 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.
Method
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 t t t , the sampler generates a mini-batch of training samples B t \mathcal{B}_t B t from D k t \mathcal{D}^{k_t} D k t . The optimizer updates the model parameters according to
θ t + 1 ← θ t − η ∇ μ ^ k t ( θ t ; B t ) , (6) \theta_{t+1} \leftarrow\theta_t - \eta\nabla\hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t), \tag*{(6)} θ t + 1 ← θ t − η ∇ μ ^ k t ( θ t ; B t ) , (6)
where η \eta η is the learning rate and μ ^ k t ( θ t ; B t ) \hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t) μ ^ k t ( θ t ; B t ) 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 t t t , the sampler observes the algorithm trajectory A t − 1 \mathcal{A}_{t-1} A t − 1 and the historical empirical losses { μ ^ τ k τ ( θ τ ; B τ ) , τ = 1 , … , t − 1 } \{\widehat{\mu}^{k_\tau}_{\tau}(\theta_\tau; B_\tau), \tau= 1, \ldots, t-1\} { μ τ k τ ( θ τ ; B τ ) , τ = 1 , … , t − 1 } . 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 η \eta η 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) [16 ] , a simple UCB variant with a discounting mechanism.
Specifically, let 1 { ⋅ } \mathbb{1}\{\cdot\} 1 { ⋅ } be the indicator function. For a discount factor β ∈ [ 0 , 1 ) \beta\in[0,1) β ∈ [ 0 , 1 ) , define the EMA estimate of the empirical loss of source k k k at step t t t as
μ ^ t k : = 1 N t k ( β ) ∑ τ = 1 t 1 { k τ = k } ⋅ β t − τ μ ^ τ k ( θ τ ; B τ ) , N t k ( β ) : = ∑ τ = 1 t 1 { k τ = k } ⋅ β t − τ . (7) \widehat{\mu}^{k}_{t} := \frac{1}{N^{k}_{t}(\beta)} \sum_{\tau=1}^{t} \mathbb{1}\{k_\tau= k\} \cdot\beta^{t-\tau}\widehat{\mu}^{k}_{\tau}(\theta_\tau; B_\tau), \qquad N^{k}_{t}(\beta) := \sum_{\tau=1}^{t} \mathbb{1}\{k_\tau= k\} \cdot\beta^{t-\tau}. \tag*{(7)} μ t k := N t k ( β ) 1 τ = 1 ∑ t 1 { k τ = k } ⋅ β t − τ μ τ k ( θ τ ; B τ ) , N t k ( β ) := τ = 1 ∑ t 1 { k τ = k } ⋅ β t − τ . (7)
Here, N t k ( β ) N^{k}_{t}(\beta) N t k ( β ) reflects the effective sample size of source k k k . Let H ( β ) : = 1 / ( 1 − β ) H(\beta) := 1/(1-\beta) H ( β ) := 1/ ( 1 − β ) for β ∈ [ 0 , 1 ) \beta\in[0,1) β ∈ [ 0 , 1 ) (known as the effective horizon of a discounted sequence) and set H ( 1 ) = T H(1) = T H ( 1 ) = T for undiscounted case.
During the first K K K steps, DUCB performs initial exploration by selecting each source once, i.e., k t = t k_t = t k t = t for t = 1 , … , K t = 1,\ldots,K t = 1 , … , K . Then for t ≥ K + 1 t \ge K+1 t ≥ K + 1 , it selects the source k t k_t k t as
k t ← arg max k ( μ ^ t − 1 k + r t − 1 k ) , r t − 1 k : = 2 C 2 α ln H ( β ) N t − 1 k ( β ) . (8) k_t \leftarrow\arg\max_k \left(\widehat{\mu}^{k}_{t-1} + r^{k}_{t-1}\right), \qquad r^{k}_{t-1} := 2C\sqrt{\frac{2\alpha\ln H(\beta)}{N^{k}_{t-1}(\beta)}}. \tag*{(8)} k t ← arg k max ( μ t − 1 k + r t − 1 k ) , r t − 1 k := 2 C N t − 1 k ( β ) 2 α ln H ( β ) . (8)
where α > 0 \alpha> 0 α > 0 is a constant controlling the aggressiveness of exploration and C C C bounds the loss as in Assumption 2. Equivalently, this sampling rule can be represented as a categorical distribution k t ∼ Cat ( p t ) k_t \sim\operatorname{Cat}(p_t) k t ∼ Cat ( p t ) over [ K ] [K] [ K ] , with probabilities p t , k = 1 { k = k t } p_{t,k} = \mathbb{1}\{k = k_t\} p t , k = 1 { k = k t } for each k ∈ [ K ] k \in[K] k ∈ [ K ] . 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 μ ^ t k \widehat{\mu}^{k}_{t} μ t k with an optimistic confidence radius of O ( ( N t k ( β ) ) − 1 / 2 ) O((N^{k}_{t}(\beta))^{-1/2}) O (( N t k ( β ) ) − 1/2 ) for each k ∈ [ K ] k \in[K] k ∈ [ K ] . Due to the recursive identity of N t k ( β ) = β N t − 1 k ( β ) + 1 { k t = k } N^{k}_{t}(\beta) = \beta N^{k}_{t-1}(\beta) + \mathbb{1}\{k_t = k\} N t k ( β ) = β N t − 1 k ( β ) + 1 { k t = k } , the effective sample size of each data source decays by a factor of β \beta β whenever it is not selected at the current step. This naturally reflects a loss of confidence in μ ^ t k \widehat{\mu}^{k}_{t} μ t k over time, as the current model parameter θ t \theta_t θ t drifts further away from the states in which the historical losses were observed.
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 μ k \mu^{k} μ k is convex in θ \theta θ for all k k k . Then with η = K − 1 / 4 T − 3 / 4 \eta= K^{-1/4}T^{-3/4} η = K − 1/4 T − 3/4 in Eq. (6) and β = 1 − K − 1 / 2 T − 1 / 2 \beta= 1-K^{-1/2}T^{-1/2} β = 1 − K − 1/2 T − 1/2 in Eq. (7) , DUCB-OGD satisfies
E [ R ρ , γ ( D U C B - O G D T ) ] ≤ O ~ ( K 1 / 4 T 3 / 4 ) , (9) \mathbb{E}[R^{\rho,\gamma}(\mathrm{DUCB\text{-}OGD}_{T})] \le\widetilde{O}\left(K^{1/4}T^{3/4}\right), \tag*{(9)} E [ R ρ , γ ( DUCB - OGD T )] ≤ O ( K 1/4 T 3/4 ) , (9) for any ρ , γ ∈ [ 1 − T − 1 , 1 ] \rho,\gamma\in[1-T^{-1},1] ρ , γ ∈ [ 1 − T − 1 , 1 ] .
In other words, the dynamic minimax regret achieves the rate of O ~ ( K 1 / 4 T 3 / 4 ) \widetilde{O}(K^{1/4}T^{3/4}) O ( K 1/4 T 3/4 ) in both undiscounted (ρ = γ = 1 \rho= \gamma= 1 ρ = γ = 1 ) and discounted scheme (1 − T − 1 ≤ ρ , γ < 1 1-T^{-1} \le\rho,\gamma< 1 1 − T − 1 ≤ ρ , γ < 1 ). 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 μ k \mu^k μ k is convex in θ \theta θ for all k k k . OGD satisfies
T N T ( ρ ) E [ R o ρ ( O G D T ) ] ≤ O ( η − 1 ) + O ( η T ) , (10) \frac{T}{N_T(\rho)}\mathbb{E}\left[R_o^\rho(\mathrm{OGD}_T)\right] \leq O(\eta^{-1}) + O(\eta T), \tag*{(10)} N T ( ρ ) T E [ R o ρ ( OGD T ) ] ≤ O ( η − 1 ) + O ( η T ) , (10) for any ρ ∈ [ 1 − T − 1 , 1 ] \rho\in[1-T^{-1},1] ρ ∈ [ 1 − T − 1 , 1 ] .
Remark. In the standard analysis of undiscounted and discounted OGD, the RHS of Eq. (10) can be minimized by choosing η = O ( T − 1 / 2 ) \eta=O(T^{-1/2}) η = O ( T − 1/2 ) , which gives the rate of O ( T 1 / 2 ) O(T^{1/2}) O ( T 1/2 ) .
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 η = O ( T ξ ) \eta=O(T^\xi) η = O ( T ξ ) for any ξ ∈ ( − 1 , 0 ) \xi\in(-1,0) ξ ∈ ( − 1 , 0 ) in Eq. (10) yields an optimization regret sublinear in T T T , we defer the choice of η \eta η 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 η \eta η factor, then jointly tune η \eta η to optimize both regrets.
Proposition 4 (Bandit Regret of DUCB). Suppose η = O ( T ξ ) \eta=O(T^\xi) η = O ( T ξ ) for some ξ ∈ [ − 3 / 2 , 0 ) \xi\in[-3/2,0) ξ ∈ [ − 3/2 , 0 ) . Then with β = 1 − η 2 / 3 K − 1 / 3 \beta=1-\eta^{2/3}K^{-1/3} β = 1 − η 2/3 K − 1/3 , DUCB satisfies
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ O ~ ( η 1 / 3 K 1 / 3 T ) , (11) \frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right] \leq\widetilde{O}\left(\eta^{1/3}K^{1/3}T\right), \tag*{(11)} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ O ( η 1/3 K 1/3 T ) , (11) for any γ ∈ [ 1 − T − 1 , 1 ] \gamma\in[1-T^{-1},1] γ ∈ [ 1 − T − 1 , 1 ] and any K K K independent of T T T .
Remark. Note that when γ = 1 \gamma=1 γ = 1 , R b 1 ( D U C B ) R_b^1(\mathrm{DUCB}) R b 1 ( DUCB ) matches the standard regret of slowly-varying nonstationary bandits by Krishnamurthy & Gopalan (2025). Alternatively, let V : = O ( η T ) V:=O(\eta T) V := O ( η T ) be the total variation budget of the sampling environment over T T T steps. Then Proposition 4 can be rewritten as R b 1 ( D U C B ) ≤ O ~ ( K 1 / 3 T 2 / 3 V 1 / 3 ) R_b^1(\mathrm{DUCB})\leq\widetilde{O}(K^{1/3}T^{2/3}V^{1/3}) R b 1 ( DUCB ) ≤ O ( K 1/3 T 2/3 V 1/3 ) , matching the result of Besbes et al. [6 ] .
We provide a proof outline of Proposition 4. While standard DUCB analysis focuses on abruptly changing environments Garivier & Moulines [16 ] , we adapt the proof to our slowly-varying environment based on the following decomposition. Denote k t ∗ : = arg max k μ k ( θ t ) k_t^*:=\arg\max_k\mu^k(\theta_t) k t ∗ := arg max k μ k ( θ t ) . Let μ ~ t k : = E [ μ ^ t k ∣ A t ] \widetilde{\mu}_t^k:=\mathbb{E}[\widehat{\mu}_t^k\mid A_t] μ t k := E [ μ t k ∣ A t ] be the expected EMA estimated loss of the source k k k at step t t t . Then by Definition 2, we have R b γ ( A T ) = ∑ t = 1 T γ T − t ( μ k t ∗ ( θ t ) − μ k t ( θ t ) ) R_b^\gamma(A_T)=\sum_{t=1}^T\gamma^{T-t}(\mu^{k_t^*}(\theta_t)-\mu^{k_t}(\theta_t)) R b γ ( A T ) = ∑ t = 1 T γ T − t ( μ k t ∗ ( θ t ) − μ k t ( θ t )) , and for any t ∈ [ T ] t\in[T] t ∈ [ T ] ,
μ t k t ∗ ( θ t ) − μ t k t ( θ t ) = ( μ ~ t − 1 k t ∗ − μ ~ t − 1 k t ) ⏟ Term 1 − ( μ ~ t − 1 k t ∗ − μ t k t ∗ ( θ t ) ) ⏟ Term 2 + ( μ ~ t − 1 k t − μ t k t ( θ t ) ) ⏟ Term 3 . (12) \mu_t^{k_t^*}(\theta_t)-\mu_t^{k_t}(\theta_t)
=
\underbrace{(\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t})}_{\text{Term 1}}
-
\underbrace{(\widetilde{\mu}_{t-1}^{k_t^*}-\mu_t^{k_t^*}(\theta_t))}_{\text{Term 2}}
+
\underbrace{(\widetilde{\mu}_{t-1}^{k_t}-\mu_t^{k_t}(\theta_t))}_{\text{Term 3}}. \tag*{(12)} μ t k t ∗ ( θ t ) − μ t k t ( θ t ) = Term 1 ( μ t − 1 k t ∗ − μ t − 1 k t ) − Term 2 ( μ t − 1 k t ∗ − μ t k t ∗ ( θ t )) + Term 3 ( μ t − 1 k t − μ t k t ( θ t )) . (12)
We prove in Proposition 7 in Appendix C.4 that the DUCB update rule guarantees that Term 1 is bounded by O ( r t − 1 k ) O(r_{t-1}^k) O ( r t − 1 k ) with high probability , where r t − 1 k r_{t-1}^k r t − 1 k 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 O ~ ( η G 2 H ( β ) ) \widetilde{O}(\eta G^2H(\beta)) O ( η G 2 H ( β )) 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 η = O ( T ξ ) \eta=O(T^\xi) η = O ( T ξ ) for some ξ ∈ ( − 1 , 0 ) \xi\in(-1,0) ξ ∈ ( − 1 , 0 ) , which satisfies the condition of Proposition 4. Then by Definition 3, and using Proposition 3 and Proposition 4, we have
E [ R ρ , γ ( D U C B - O G D T ) ] ≤ O ( η − 1 ) + O ( η T ) + O ~ ( η 1 / 3 K 1 / 3 T ) . (13) \mathbb{E}\left[R^{\rho,\gamma}(\mathrm{DUCB}\text{-}\mathrm{OGD}_T)\right]\leq O(\eta^{-1})+O(\eta T)+\widetilde{O}(\eta^{1/3}K^{1/3}T). \tag*{(13)} E [ R ρ , γ ( DUCB - OGD T ) ] ≤ O ( η − 1 ) + O ( η T ) + O ( η 1/3 K 1/3 T ) . (13)
The RHS is minimized (order-wise) by taking η = K − 1 / 4 T − 3 / 4 \eta=K^{-1/4}T^{-3/4} η = K − 1/4 T − 3/4 , which concludes the proof. □ \square □
Further note that when ρ = γ \rho=\gamma ρ = γ , the average dynamic minimax regret R ρ , γ / T R^{\rho,\gamma}/T R ρ , γ / T 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-OGDT _T T , for any discount factor γ ∈ [ 1 − T − 1 , 1 ] \gamma\in[1-T^{-1},1] γ ∈ [ 1 − T − 1 , 1 ] , satisfies
E [ max k ∈ [ K ] μ k ( θ ~ T γ ) − max k ∈ [ K ] μ k ( θ ∗ ) ] ≤ O ~ ( K 1 / 4 T − 1 / 4 ) , (14) \mathbb{E}\left[\max_{k\in[K]}\mu^k(\widetilde{\theta}_T^\gamma)-\max_{k\in[K]}\mu^k(\theta^*)\right]\leq\widetilde{O}(K^{1/4}T^{-1/4}), \tag*{(14)} E [ k ∈ [ K ] max μ k ( θ T γ ) − k ∈ [ K ] max μ k ( θ ∗ ) ] ≤ O ( K 1/4 T − 1/4 ) , (14) where θ ~ T γ : = ∑ t = 1 T γ T − t θ t / N T ( γ ) \widetilde{\theta}_T^\gamma:=\sum_{t=1}^T\gamma^{T-t}\theta_t/N_T(\gamma) θ T γ := ∑ t = 1 T γ T − t θ t / N T ( γ ) .
Specifically when ρ = γ = 1 \rho= \gamma= 1 ρ = γ = 1 , 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 A T \mathcal{A}_{T} A T , there exsits a problem instance for which the undiscounted regret satisfies E [ R 1 , 1 ( A T ) ] ≥ Ω ~ ( K 1 4 T 3 4 ) \mathbb{E}[R^{1,1}(\mathcal{A}_{T})] \geq\widetilde{\Omega}(K^{\frac{1}{4}}T^{\frac{3}{4}}) E [ R 1 , 1 ( A T )] ≥ Ω ( K 4 1 T 4 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 R ~ ( A T ) : = max k ∑ t = 1 T μ k ( θ t ) − T max k μ k ( θ ⋆ ) \widetilde{R}(\mathcal{A}_{T}) := \max_{k}\sum_{t=1}^{T}\mu^{k}(\theta_{t}) - T\max_{k}\mu^{k}(\theta^{\star}) R ( A T ) := max k ∑ t = 1 T μ k ( θ t ) − T max k μ k ( θ ⋆ ) , which can be bounded by O ~ ( K 1 / 2 T 1 / 2 ) \widetilde{O}(K^{1/2}T^{1/2}) O ( K 1/2 T 1/2 ) . The pseudo regret is fundamentally easier to analyze than our dynamic regret in Definition 1, since it always holds that R ~ ≤ R \widetilde{R} \leq R R ≤ R (and R ≤ R 1 , 1 R \leq R^{1,1} R ≤ R 1 , 1 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 § 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 O ~ ( K 1 / 2 T 1 / 2 ) \widetilde{O}(K^{1/2}T^{1/2}) O ( K 1/2 T 1/2 ) . 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.
Experiments
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 {citet}Werr et al. (2020)). We evaluate the minimum of GSM8k accuracy ({citep}Cobbe et al., 2021) and IFEval prompt accuracy ({citep}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 ([12 ] (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 ([2 ] ), 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.
*Sampler-only proxies of Shin et al. (2025); Ramesh et al. (2026).
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. [14 ] , including both AMA-R and AMA-S. AutoMixAlign uses source-specific specialist models to compute excess-loss-based sampling signals, which requires training K K 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 79.33 ± 0.62 79.33 \pm0.62 79.33 ± 0.62 minimum accuracy versus 76.76 ± 1.65 76.76 \pm1.65 76.76 ± 1.65 for Uniform, corresponding to a paired gain of 2.57 ± 1.04 2.57 \pm1.04 2.57 ± 1.04 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 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 § 12 .
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 § 12 .§ 4 . DUCB requires 21.94 ± 1.14 seconds per step, compared with 21.90 ± 1.29 for Uniform; the difference is small relative to the observed run-to-run variation. Its sampler adds no auxiliary model evaluations and maintains only O ( K ) O(K) O ( K ) scalar state. By comparison, AMA additionally trains K K 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 Figure 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 Table 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 § 10 .
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 ).
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 § 11 . Appendix § 10 and Appendix § 12 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 § 4 and Appendix § 12 . 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.
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 [15 , 1 ] (Hu et al. 2018; ); Jin et al. 2021). Based on this formulation, GDRO explicitly minimizes the worst-case loss across predefined distribution groups [17 ] (Sagawa* et al. 2020; ); Haghtalab et al. 2022; ); Zhang et al. 2023). Recent theoretical work formulates GDRO as a stochastic convex-concave saddlepoint problem and studies algorithms that combine data sampling with parameter optimization. For example, Zhang et al. (2023) use Exp3-style sampling [3 ] 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 [3 ] . 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 [3 ] , while adversarial bandits allow arbitrary reward sequences [4 ] . Non-stationary bandits interpolate between these extremes by imposing structure on how rewards evolve over time [16 , 6 ] (); Krishnamurthy & Gopalan 2025). Discounted-UCB methods were originally designed for environments with abrupt changes [16 ] , while variation-budget and slowly-varying models provide alternative ways to quantify non-stationarity [6 ] (); 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 [11 ] (Shin et al. 2025; ); Koh et al. 2026; ); 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 [14 ] (Oren et al. 2019; ); 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.
Implementation Details
Algorithm 1 Adaptive Sampling for Robust Multi-Source LLM Post-Training.
Require: Data sources { D k } k = 1 K \{\mathcal{D}^{k}\}_{k=1}^{K} { D k } k = 1 K , initial parameter θ 1 \theta_{1} θ 1 , horizon T T T
Set β ← 1 − K − 1 / 2 T − 1 / 2 \beta\leftarrow1-K^{-1/2}T^{-1/2} β ← 1 − K − 1/2 T − 1/2
Initialize μ ^ t k \hat{\mu}^{k}_{t} μ ^ t k , N t k ( β ) ← 0 N^{k}_{t}(\beta) \leftarrow0 N t k ( β ) ← 0 for all k ∈ [ K ] k \in[K] k ∈ [ K ]
for t = 1 , … , T t=1,\ldots,T t = 1 , … , T do
If t ≤ K t \le K t ≤ K , set k t ← t k_{t} \leftarrow t k t ← t ; otherwise, generate sampling probabilities
p t ← SAMPLER ( { D k , μ ^ t − 1 k , N t − 1 k ( β ) } k = 1 K ) p_{t} \leftarrow\operatorname{SAMPLER}\left(\{\mathcal{D}^{k},\hat{\mu}^{k}_{t-1},N^{k}_{t-1}(\beta)\}_{k=1}^{K}\right) p t ← SAMPLER ( { D k , μ ^ t − 1 k , N t − 1 k ( β ) } k = 1 K )
Sample the mini-batch
B t ∼ { X ∼ D k t , i : k t , i ∼ Cat ( p t ) , i = 1 , 2 , … } \mathcal{B}_{t} \sim\{X \sim\mathcal{D}^{k_{t,i}}: k_{t,i} \sim\operatorname{Cat}(p_{t}), i=1,2,\ldots\} B t ∼ { X ∼ D k t , i : k t , i ∼ Cat ( p t ) , i = 1 , 2 , … }
Parameter update
θ t + 1 ← OPTIMIZER ( θ t , B t ) \theta_{t+1} \leftarrow\operatorname{OPTIMIZER}(\theta_{t},\mathcal{B}_{t}) θ t + 1 ← OPTIMIZER ( θ t , B t )
Update μ ^ t k \hat{\mu}^{k}_{t} μ ^ t k and N t k ( β ) N^{k}_{t}(\beta) N t k ( β ) by Eq. (7) for all k ∈ [ K ] k \in[K] k ∈ [ K ]
end for
return θ T + 1 \theta_{T+1} θ T + 1
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
k t ← arg max k ∈ [ K ] μ ^ t − 1 k + ϕ t − 1 k , ϕ t − 1 k ∼ N ( 2 r t − 1 k , C 2 2 N t − 1 k ( β ) ) . k_{t} \leftarrow\underset{k \in[K]}{\arg\max}\ \hat{\mu}^{k}_{t-1}+\phi^{k}_{t-1},\qquad\phi^{k}_{t-1}\sim\mathcal{N}\left(2r^{k}_{t-1},\frac{C^{2}}{2N^{k}_{t-1}(\beta)}\right). k t ← k ∈ [ K ] arg max μ ^ t − 1 k + ϕ t − 1 k , ϕ t − 1 k ∼ N ( 2 r t − 1 k , 2 N t − 1 k ( β ) C 2 ) .
Due to the stochasticity of ϕ t − 1 k \phi^{k}_{t-1} ϕ t − 1 k , the selection rule induces a non-degenerate categorical distribution over [ K ] [K] [ K ] with probabilities p t p_{t} p t s.t. k t ∼ Cat ( p t ) k_{t}\sim\operatorname{Cat}(p_{t}) k t ∼ Cat ( p 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 § 11 .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 p t p_{t} p t does not admit a closed-form expression, we approximate it using the Gauss-Hermite quadrature [9 ] . At the end of each training step, we update μ ^ t k \hat{\mu}^{k}_{t} μ ^ t k and N t k ( β ) N^{k}_{t}(\beta) N t k ( β ) 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
DOUBLEEMA ( x ) ← 2 ⋅ EMA ( x ) − EMA ( EMA ( x ) ) . \operatorname{DOUBLEEMA}(x) \leftarrow2\cdot\operatorname{EMA}(x)-\operatorname{EMA}(\operatorname{EMA}(x)). DOUBLEEMA ( x ) ← 2 ⋅ EMA ( x ) − EMA ( EMA ( x )) .
As shown in Figure 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
p t k ← ( 1 − β t ) p t k + β t K , ∀ k ∈ [ K ] . p^{k}_{t} \leftarrow(1-\beta^{t})p^{k}_{t}+\frac{\beta^{t}}{K},\qquad\forall k\in[K]. p t k ← ( 1 − β t ) p t k + K β t , ∀ k ∈ [ K ] .
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 O ( H ( β ) ) O(H(\beta)) O ( H ( β )) , which is dominated by the standard DUCB regret given the choice of β \beta β in Proposition 4.
Proofs
Proof of Proposition 1
Proof of Proposition 1. Recall that k t ⋆ = max k μ k ( θ ) k_t^\star= \max_k \mu^k(\theta) k t ⋆ = max k μ k ( θ ) . By Definition 2,
R o 1 ( A T ) + R b 1 ( A T ) = ∑ t = 1 T ( μ k t ( θ t ) − μ k t ( θ ⋆ ) ) + ∑ t = 1 T ( μ k t ⋆ ( θ t ) − μ k t ( θ t ) ) = ∑ t = 1 T ( μ k t ⋆ ( θ t ) − μ k t ( θ ⋆ ) ) , ≥ ∑ t = 1 T μ k t ⋆ ( θ t ) − T max k ∈ [ K ] μ k ( θ ⋆ ) \begin{aligned}
R_{\mathrm{o}}^1(\mathcal{A}_T) + R_{\mathrm{b}}^1(\mathcal{A}_T)
&= \sum_{t=1}^{T}\left(\mu^{k_t}(\theta_t)-\mu^{k_t}(\theta^\star)\right)+\sum_{t=1}^{T}\left(\mu^{k_t^\star}(\theta_t)-\mu^{k_t}(\theta_t)\right)\\
&= \sum_{t=1}^{T}\left(\mu^{k_t^\star}(\theta_t)-\mu^{k_t}(\theta^\star)\right),\\
&\ge\sum_{t=1}^{T}\mu^{k_t^\star}(\theta_t)-T\max_{k\in[K]}\mu^k(\theta^\star)
\end{aligned} R o 1 ( A T ) + R b 1 ( A T ) = t = 1 ∑ T ( μ k t ( θ t ) − μ k t ( θ ⋆ ) ) + t = 1 ∑ T ( μ k t ⋆ ( θ t ) − μ k t ( θ t ) ) = t = 1 ∑ T ( μ k t ⋆ ( θ t ) − μ k t ( θ ⋆ ) ) , ≥ t = 1 ∑ T μ k t ⋆ ( θ t ) − T k ∈ [ K ] max μ k ( θ ⋆ )
where the last inequality follows from the fact that max k μ k ( θ ) ≥ μ k t ( θ ) \max_k \mu^k(\theta) \ge\mu^{k_t}(\theta) max k μ k ( θ ) ≥ μ k t ( θ ) for all θ \theta θ and t t t . Further recalling Definition 1 concludes the proof. □
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 { f t ( θ t ) , t = 1 , … , T } \{f_t(\theta_t),t=1,\ldots,T\} { f t ( θ t ) , t = 1 , … , T } for T T T steps, and updates the parameter using OGD defined in Eq. (6) . Then the following lemmas hold. Note that we defer the choice of η \eta η in both cases.
Lemma 1 (Undiscounted OGD (Hazan, 2016)). For any θ ∈ Θ \theta\in\Theta θ ∈ Θ , OGD satisfies
∑ t = 1 T f t ( θ t ) − ∑ t = 1 T f t ( θ ) ≤ D 2 η + η G 2 T . \sum_{t=1}^{T}f_t(\theta_t)-\sum_{t=1}^{T}f_t(\theta)\le\frac{D^2}{\eta}+\eta G^2T. t = 1 ∑ T f t ( θ t ) − t = 1 ∑ T f t ( θ ) ≤ η D 2 + η G 2 T .
Lemma 2 (Discounted OGD (Yang et al., 2026)). Let ρ ∈ [ 0 , 1 ) \rho\in[0,1) ρ ∈ [ 0 , 1 ) be a discount factor. For any θ ∈ Θ \theta\in\Theta θ ∈ Θ , OGD satisfies
∑ t = 1 T ρ T − t f t ( θ t ) − ∑ t = 1 T ρ T − t f t ( θ ) ≤ ( ( 1 − ρ ) D 2 η + η G 2 2 ) N T ( ρ ) . \sum_{t=1}^{T}\rho^{T-t}f_t(\theta_t)-\sum_{t=1}^{T}\rho^{T-t}f_t(\theta)\le\left(\frac{(1-\rho)D^2}{\eta}+\frac{\eta G^2}{2}\right)N_T(\rho). t = 1 ∑ T ρ T − t f t ( θ t ) − t = 1 ∑ T ρ T − t f t ( θ ) ≤ ( η ( 1 − ρ ) D 2 + 2 η G 2 ) N T ( ρ ) .
Now we can prove the optimization regret.
Proof of Proposition 3. Let f t ( θ t ) = μ ^ k t ( θ t ; B t ) f_t(\theta_t)=\hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t) f t ( θ t ) = μ ^ k t ( θ t ; B t ) . Recall that X ∼ D k t X\sim\mathcal{D}^{k_t} X ∼ D k t i.i.d. for all X ∈ B t X\in\mathcal{B}_t X ∈ B t according to Assumption 3, i.e.,
E [ μ ^ k t ( θ t ; B t ) ∣ k t , θ t ] = μ k t ( θ t ) . \mathbb{E}\left[\hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t)\mid k_t,\theta_t\right]=\mu^{k_t}(\theta_t). E [ μ ^ k t ( θ t ; B t ) ∣ k t , θ t ] = μ k t ( θ t ) .
Since θ ⋆ ∈ Θ \theta^\star\in\Theta θ ⋆ ∈ Θ is fixed, we have, by Lemma 1,
E [ R o 1 ( A T ) ] = ∑ t = 1 T E [ μ k t ( θ t ) − μ k t ( θ ⋆ ) ] = ∑ t = 1 T E [ E [ μ ^ k t ( θ t ; B t ) − μ ^ k t ( θ ⋆ ; B t ) ∣ k t , θ t ] ] = E [ ∑ t = 1 T μ ^ k t ( θ t ; B t ) − ∑ t = 1 T μ ^ k t ( θ ⋆ ; B t ) ] ≤ D 2 η + η G 2 T \begin{aligned}
\mathbb{E}\left[R_{\mathrm{o}}^1(\mathcal{A}_T)\right]
&=\sum_{t=1}^{T}\mathbb{E}\left[\mu^{k_t}(\theta_t)-\mu^{k_t}(\theta^\star)\right]\\
&=\sum_{t=1}^{T}\mathbb{E}\left[\mathbb{E}\left[\hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t)-\hat{\mu}^{k_t}(\theta^\star;\mathcal{B}_t)\mid k_t,\theta_t\right]\right]\\
&=\mathbb{E}\left[\sum_{t=1}^{T}\hat{\mu}^{k_t}(\theta_t;\mathcal{B}_t)-\sum_{t=1}^{T}\hat{\mu}^{k_t}(\theta^\star;\mathcal{B}_t)\right]\\
&\le\frac{D^2}{\eta}+\eta G^2T
\end{aligned} E [ R o 1 ( A T ) ] = t = 1 ∑ T E [ μ k t ( θ t ) − μ k t ( θ ⋆ ) ] = t = 1 ∑ T E [ E [ μ ^ k t ( θ t ; B t ) − μ ^ k t ( θ ⋆ ; B t ) ∣ k t , θ t ] ] = E [ t = 1 ∑ T μ ^ k t ( θ t ; B t ) − t = 1 ∑ T μ ^ k t ( θ ⋆ ; B t ) ] ≤ η D 2 + η G 2 T
and similarly by Lemma 2,
E [ R o P ( A T ) ] ≤ ( ( 1 − ρ ) D 2 η + η G 2 2 ) N T ( ρ ) , ∀ ρ ∈ [ 0 , 1 ) . \mathbb{E}\left[R_o^P(\mathcal{A}_T)\right] \le\left(\frac{(1-\rho)D^2}{\eta}+\frac{\eta G^2}{2}\right)N_T(\rho), \quad\forall\rho\in[0,1). E [ R o P ( A T ) ] ≤ ( η ( 1 − ρ ) D 2 + 2 η G 2 ) N T ( ρ ) , ∀ ρ ∈ [ 0 , 1 ) .
Further note that N T ( 1 ) = T N_T(1)=T N T ( 1 ) = T . Combining together, we have
T N T ( ρ ) E [ R o P ( A T ) ] ≤ O ( η − 1 ( 1 − ρ ) T ) + O ( η T ) ≤ O ( η − 1 ) + O ( η T ) , \frac{T}{N_T(\rho)}\mathbb{E}\left[R_o^P(\mathcal{A}_T)\right] \le O\left(\eta^{-1}(1-\rho)T\right)+O(\eta T) \le O(\eta^{-1})+O(\eta T), N T ( ρ ) T E [ R o P ( A T ) ] ≤ O ( η − 1 ( 1 − ρ ) T ) + O ( η T ) ≤ O ( η − 1 ) + O ( η T ) ,
for any ρ ∈ [ 1 − T − 1 , 1 ] \rho\in[1-T^{-1},1] ρ ∈ [ 1 − T − 1 , 1 ] , which concludes the proof.
Proof of Dynamic Bandit Regret
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 N t k ( β ) N_t^k(\beta) N t k ( β ) above some threshold A > 0 A>0 A > 0 .
Proposition 7 (Bandit Gap of DUCB). Suppose DUCB picks k t k_t k t in step t ≥ K + 1 t \ge K+1 t ≥ K + 1 as in Eq. (8) . Then for any A > 0 A>0 A > 0 ,
Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 2 r t k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ 2 H ( β ) − α . \Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}>2r_t^{k_t}\sqrt{1+A^{-1}},N_{t-1}^{k_t}(\beta)\ge A\right]\le2H(\beta)^{-\alpha}. Pr [ μ t − 1 k t ∗ − μ t − 1 k t > 2 r t k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ 2 H ( β ) − α .
Proposition 8 (EMA Bias). Suppose { θ t , t = 1 , … , T } \{\theta_t,t=1,\ldots,T\} { θ t , t = 1 , … , T } is generated by OGD with learning rate η \eta η as in Eq. (6) . Then for any t ∈ [ T ] t\in[T] t ∈ [ T ] and A > 0 A>0 A > 0 s.t. N t k ( β ) ≥ A N_t^k(\beta)\ge A N t k ( β ) ≥ A ,
∣ μ ~ t k − μ k ( θ t + 1 ) ∣ ≤ η G 2 H ( β ) ln ( 2 C e η A G 2 ) , \left|\widetilde{\mu}_t^k-\mu^k(\theta_{t+1})\right|\le\eta G^2H(\beta)\ln\left(\frac{2\mathcal{C}e}{\eta AG^2}\right), μ t k − μ k ( θ t + 1 ) ≤ η G 2 H ( β ) ln ( η A G 2 2 C e ) , where β ≥ 1 / 2 \beta\ge1/2 β ≥ 1/2 and H ( β ) H(\beta) H ( β ) is the effective horizon as in Eq. (8) .
We further state following lemmas.
Lemma 3. For any τ ∈ [ T ] \tau\in[T] τ ∈ [ T ] and constant A > 0 A>0 A > 0 ,
∑ t = K + 1 T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ ⌈ T / τ ⌉ N β − τ A k ( γ ) . \sum_{t=K+1}^{T}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\cdot\gamma^{T-t}\le\lceil T/\tau\rceil N_{\beta-\tau A}^k(\gamma). t = K + 1 ∑ T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ ⌈ T / τ ⌉ N β − τ A k ( γ ) .
Proof. We first write
∑ t = K + 1 T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ ∑ m = 1 ⌈ T / τ ⌉ ∑ t = ( m − 1 ) τ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t . \sum_{t=K+1}^{T}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\cdot\gamma^{T-t}\le\sum_{m=1}^{\lceil T/\tau\rceil}\sum_{t=(m-1)\tau}^{m\tau}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\cdot\gamma^{T-t}. t = K + 1 ∑ T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ m = 1 ∑ ⌈ T / τ ⌉ t = ( m − 1 ) τ ∑ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t .
By Garivier & Moulines [16 ] (Lemma 25 and Corollary 26),
∑ t = ( m − 1 ) τ m τ 1 { k t = k , N t − 1 k ( β ) < A } ≤ β − τ A . \sum_{t=(m-1)\tau}^{m\tau}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\le\beta^{-\tau}A. t = ( m − 1 ) τ ∑ m τ 1 { k t = k , N t − 1 k ( β ) < A } ≤ β − τ A .
Further note that
∑ t = ( m − 1 ) τ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t = γ T − m τ ∑ t = ( m − 1 ) τ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ m τ − t ≤ γ T − m τ N β − τ A k ( γ ) ≤ N β − τ A k ( γ ) . \begin{aligned}
\sum_{t=(m-1)\tau}^{m\tau}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\cdot\gamma^{T-t}
&=\gamma^{T-m\tau}\sum_{t=(m-1)\tau}^{m\tau}\mathbb{1}\{k_t=k,N_{t-1}^k(\beta)<A\}\cdot\gamma^{m\tau-t}\\
&\le\gamma^{T-m\tau}N_{\beta-\tau A}^k(\gamma)\\
&\le N_{\beta-\tau A}^k(\gamma).
\end{aligned} t = ( m − 1 ) τ ∑ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t = γ T − m τ t = ( m − 1 ) τ ∑ m τ 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ m τ − t ≤ γ T − m τ N β − τ A k ( γ ) ≤ N β − τ A k ( γ ) .
Plugging back to the first equation concludes the proof.
Lemma 4. For all T ≥ K + 1 T \ge K+1 T ≥ K + 1 ,
∑ t = K + 1 T 1 { k t = k } ⋅ γ T − t N t k ( β ) ≤ 2 N T k ( β ) 1 2 + N T k ( γ ) H ( β ) − 1 2 . \sum_{t=K+1}^{T}\frac{\mathbb{1}\{k_t=k\}\cdot\gamma^{T-t}}{\sqrt{N_t^k(\beta)}}\le2N_T^k(\beta)^{\frac{1}{2}}+N_T^k(\gamma)H(\beta)^{-\frac{1}{2}}. t = K + 1 ∑ T N t k ( β ) 1 { k t = k } ⋅ γ T − t ≤ 2 N T k ( β ) 2 1 + N T k ( γ ) H ( β ) − 2 1 . Proof. Recall that
1 { k t = k } = N t k ( β ) − β N t − 1 k ( β ) = N t k ( β ) − N t − 1 k ( β ) + ( 1 − β ) N t − 1 k ( β ) . \mathbb{1}\{k_t=k\}=N_t^k(\beta)-\beta N_{t-1}^k(\beta)=N_t^k(\beta)-N_{t-1}^k(\beta)+(1-\beta)N_{t-1}^k(\beta). 1 { k t = k } = N t k ( β ) − β N t − 1 k ( β ) = N t k ( β ) − N t − 1 k ( β ) + ( 1 − β ) N t − 1 k ( β ) . Thus we can write
1 { k t = k } N t k ( β ) = 1 { k t = k } 2 N t k ( β ) \frac{\mathbb{1}\{k_t=k\}}{\sqrt{N_t^k(\beta)}}=\frac{\mathbb{1}\{k_t=k\}^2}{\sqrt{N_t^k(\beta)}} N t k ( β ) 1 { k t = k } = N t k ( β ) 1 { k t = k } 2 = 1 { k t = k } ⋅ N t k ( β ) − N t − 1 k ( β ) N t k ( β ) + 1 { k t = k } ⋅ ( 1 − β ) N t − 1 k ( β ) N t k ( β ) . =\mathbb{1}\{k_t=k\}\cdot\frac{N_t^k(\beta)-N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}+\mathbb{1}\{k_t=k\}\cdot\frac{(1-\beta)N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}. = 1 { k t = k } ⋅ N t k ( β ) N t k ( β ) − N t − 1 k ( β ) + 1 { k t = k } ⋅ N t k ( β ) ( 1 − β ) N t − 1 k ( β ) . For the first term, note that
N t k ( β ) − N t − 1 k ( β ) N t k ( β ) ≤ 2 ( N t k ( β ) − N t − 1 k ( β ) ) . \frac{N_t^k(\beta)-N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}\le2\left(\sqrt{N_t^k(\beta)}-\sqrt{N_{t-1}^k(\beta)}\right). N t k ( β ) N t k ( β ) − N t − 1 k ( β ) ≤ 2 ( N t k ( β ) − N t − 1 k ( β ) ) . Since γ ≤ 1 \gamma\le1 γ ≤ 1 and N t k ( β ) ≥ N t − 1 k ( β ) N_t^k(\beta)\ge N_{t-1}^k(\beta) N t k ( β ) ≥ N t − 1 k ( β ) whenever k t = k k_t=k k t = k , we have
∑ t = K + 1 T 1 { k t = k } ⋅ γ T − t ( N t k ( β ) − N t − 1 k ( β ) N t k ( β ) ) ≤ ∑ t = K + 1 T ( N t k ( β ) − N t − 1 k ( β ) N t k ( β ) ) \sum_{t=K+1}^{T}\mathbb{1}\{k_t=k\}\cdot\gamma^{T-t}\left(\frac{N_t^k(\beta)-N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}\right)\le\sum_{t=K+1}^{T}\left(\frac{N_t^k(\beta)-N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}\right) t = K + 1 ∑ T 1 { k t = k } ⋅ γ T − t ( N t k ( β ) N t k ( β ) − N t − 1 k ( β ) ) ≤ t = K + 1 ∑ T ( N t k ( β ) N t k ( β ) − N t − 1 k ( β ) ) ≤ 2 ∑ t = K + 1 T ( N t k ( β ) − N t − 1 k ( β ) ) \le2\sum_{t=K+1}^{T}\left(\sqrt{N_t^k(\beta)}-\sqrt{N_{t-1}^k(\beta)}\right) ≤ 2 t = K + 1 ∑ T ( N t k ( β ) − N t − 1 k ( β ) ) ≤ 2 N T k ( β ) 1 2 . \le2N_T^k(\beta)^{\frac{1}{2}}. ≤ 2 N T k ( β ) 2 1 . For the second term, note that N t k ( β ) ≤ H ( β ) = 1 / ( 1 − β ) N_t^k(\beta)\le H(\beta)=1/(1-\beta) N t k ( β ) ≤ H ( β ) = 1/ ( 1 − β ) for all t t t . Thus
∑ t = K + 1 T 1 { k t = k } ⋅ γ T − t ( ( 1 − β ) N t − 1 k ( β ) N t k ( β ) ) ≤ ( 1 − β ) ∑ t = K + 1 T γ T − t N t − 1 k ( β ) \sum_{t=K+1}^{T}\mathbb{1}\{k_t=k\}\cdot\gamma^{T-t}\left(\frac{(1-\beta)N_{t-1}^k(\beta)}{\sqrt{N_t^k(\beta)}}\right)\le(1-\beta)\sum_{t=K+1}^{T}\gamma^{T-t}\sqrt{N_{t-1}^k(\beta)} t = K + 1 ∑ T 1 { k t = k } ⋅ γ T − t ( N t k ( β ) ( 1 − β ) N t − 1 k ( β ) ) ≤ ( 1 − β ) t = K + 1 ∑ T γ T − t N t − 1 k ( β ) ≤ ( 1 − β ) N T k ( β ) 1 2 ∑ t = K + 1 T γ T − t \le(1-\beta)N_T^k(\beta)^{\frac{1}{2}}\sum_{t=K+1}^{T}\gamma^{T-t} ≤ ( 1 − β ) N T k ( β ) 2 1 t = K + 1 ∑ T γ T − t ≤ N T k ( γ ) H ( β ) − 1 2 . \le N_T^k(\gamma)H(\beta)^{-\frac{1}{2}}. ≤ N T k ( γ ) H ( β ) − 2 1 . 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 β ≥ 1 / 2 \beta\ge1/2 β ≥ 1/2 , DUCB satisfies
E [ R b γ ( D U C B T ) ] ≤ O ( K T H ( β ) − 1 ) + O ~ ( K 1 2 H ( β ) 1 2 ) + O ~ ( N T ( γ ) H ( β ) − 1 2 ) + O ~ ( η N T ( γ ) H ( β ) ) . \mathbb{E}[R_b^\gamma(\mathrm{DUCB}_T)]\le O\left(KTH(\beta)^{-1}\right)+\widetilde{O}\left(K^{\frac{1}{2}}H(\beta)^{\frac{1}{2}}\right)
+\widetilde{O}\left(N_T(\gamma)H(\beta)^{-\frac{1}{2}}\right)+\widetilde{O}\left(\eta N_T(\gamma)H(\beta)\right). E [ R b γ ( DUCB T )] ≤ O ( K T H ( β ) − 1 ) + O ( K 2 1 H ( β ) 2 1 ) + O ( N T ( γ ) H ( β ) − 2 1 ) + O ( η N T ( γ ) H ( β ) ) . Proof. Let A ≥ 1 / 3 A\ge1/3 A ≥ 1/3 be a constant. We start by writing
R b γ ( D U C B T ) = ∑ t = 1 T γ T − t ( μ t k t ∗ ( θ t ) − μ t k t ( θ t ) ) R_b^\gamma(\mathrm{DUCB}_T)=\sum_{t=1}^{T}\gamma^{T-t}\left(\mu_t^{k_t^*}(\theta_t)-\mu_t^{k_t}(\theta_t)\right) R b γ ( DUCB T ) = t = 1 ∑ T γ T − t ( μ t k t ∗ ( θ t ) − μ t k t ( θ t ) ) ≤ γ T − K K C + C ∑ t = K + 1 T 1 { N t − 1 k t ( β ) < A } ⋅ γ T − t \le\gamma^{T-K}KC+C\sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)<A\right\}\cdot\gamma^{T-t} ≤ γ T − K K C + C t = K + 1 ∑ T 1 { N t − 1 k t ( β ) < A } ⋅ γ T − t + ∑ t = K + 1 T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ t k t ∗ ( θ t ) − μ t k t ( θ t ) ) . +\sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)\ge A\right\}\cdot\gamma^{T-t}\left(\mu_t^{k_t^*}(\theta_t)-\mu_t^{k_t}(\theta_t)\right). + t = K + 1 ∑ T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ t k t ∗ ( θ t ) − μ t k t ( θ t ) ) .
Denote N T ( ⋅ ) = ∑ k = 1 K N t k ( ⋅ ) N_T(\cdot)=\sum_{k=1}^{K}N_t^k(\cdot) N T ( ⋅ ) = ∑ k = 1 K N t k ( ⋅ ) . By Lemma 3, the first sum writes
C ∑ t = K + 1 T 1 { N t − 1 k t ( β ) < A } ⋅ γ T − t ≤ C ∑ k = 1 K ∑ t = K + 1 T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ C K ⌈ T / τ ⌉ N β − τ ( γ ) \begin{aligned}
C\sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)<A\right\}\cdot\gamma^{T-t}\le C\sum_{k=1}^{K}\sum_{t=K+1}^{T}\mathbb{1}\left\{k_t=k,N_{t-1}^{k}(\beta)<A\right\}\cdot\gamma^{T-t} \\
&\le CK\lceil T/\tau\rceil N_{\beta-\tau}(\gamma)
\end{aligned} C t = K + 1 ∑ T 1 { N t − 1 k t ( β ) < A } ⋅ γ T − t ≤ C k = 1 ∑ K t = K + 1 ∑ T 1 { k t = k , N t − 1 k ( β ) < A } ⋅ γ T − t ≤ C K ⌈ T / τ ⌉ N β − τ ( γ )
Letting τ = N T ( β ) \tau=N_T(\beta) τ = N T ( β ) , we have
β − τ = β − N T ( β ) ≤ { β − 1 / ( 1 − β ) ≤ 4 1 2 ≤ β < 1 1 β = 1 \beta^{-\tau}=\beta^{-N_T(\beta)}\le
\begin{cases}
\beta^{-1/(1-\beta)}\le4 & \frac{1}{2}\le\beta<1\\
1 & \beta=1
\end{cases} β − τ = β − N T ( β ) ≤ { β − 1/ ( 1 − β ) ≤ 4 1 2 1 ≤ β < 1 β = 1
Thus N β − τ ( γ ) ≤ β − τ A ≤ 4 A N_{\beta-\tau}(\gamma)\le\beta^{-\tau}A\le4A N β − τ ( γ ) ≤ β − τ A ≤ 4 A for all 1 / 2 ≤ β ≤ 1 1/2\le\beta\le1 1/2 ≤ β ≤ 1 , and
C ∑ t = K + 1 T 1 { N t − 1 k t ( β ) < A ( β ) } ⋅ γ T − t ≤ 4 A C K ( T N T ( β ) − 1 + 1 ) . C\sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)<A(\beta)\right\}\cdot\gamma^{T-t}\le4ACK(TN_T(\beta)^{-1}+1). C t = K + 1 ∑ T 1 { N t − 1 k t ( β ) < A ( β ) } ⋅ γ T − t ≤ 4 A C K ( T N T ( β ) − 1 + 1 ) .
For the second sum, recall by Eq. (12) that
∑ t = 1 T γ T − t ( μ k t ∗ ( θ t ) − μ k t ( θ t ) ) = ∑ t = 1 T γ T − t ( μ ~ t − 1 k t ∗ − μ ~ t − 1 k t ) + ∑ t = 1 T γ T − t ( μ k t ∗ ( θ t ) − μ ~ t − 1 k t ∗ ) − ∑ t = 1 T γ T − t ( μ k t ( θ t ) − μ ~ t − 1 k t ) . \begin{aligned}
\sum_{t=1}^{T}\gamma^{T-t}\left(\mu^{k_t^*}(\theta_t)-\mu^{k_t}(\theta_t)\right)=\sum_{t=1}^{T}\gamma^{T-t}\left(\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}\right) \\
&+\sum_{t=1}^{T}\gamma^{T-t}\left(\mu^{k_t^*}(\theta_t)-\widetilde{\mu}_{t-1}^{k_t^*}\right)-\sum_{t=1}^{T}\gamma^{T-t}\left(\mu^{k_t}(\theta_t)-\widetilde{\mu}_{t-1}^{k_t}\right).
\end{aligned} t = 1 ∑ T γ T − t ( μ k t ∗ ( θ t ) − μ k t ( θ t ) ) = t = 1 ∑ T γ T − t ( μ t − 1 k t ∗ − μ t − 1 k t ) + t = 1 ∑ T γ T − t ( μ k t ∗ ( θ t ) − μ t − 1 k t ∗ ) − t = 1 ∑ T γ T − t ( μ k t ( θ t ) − μ t − 1 k t ) .
By Proposition 7, the first term on the RHS satisfies
∑ t = K + 1 T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ ~ t − 1 k t ∗ − μ ~ t − 1 k t ) ≤ 2 1 + A − 1 ∑ t = K + 1 T γ T − t r t k t , \sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)\ge A\right\}\cdot\gamma^{T-t}\left(\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}\right)\le2\sqrt{1+A^{-1}}\sum_{t=K+1}^{T}\gamma^{T-t}r_t^{k_t}, t = K + 1 ∑ T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ t − 1 k t ∗ − μ t − 1 k t ) ≤ 2 1 + A − 1 t = K + 1 ∑ T γ T − t r t k t ,
≤ 4 ∑ t = K + 1 T γ T − t r t k t , \le4\sum_{t=K+1}^{T}\gamma^{T-t}r_t^{k_t}, ≤ 4 t = K + 1 ∑ T γ T − t r t k t ,
with probability at least 1 − 2 H ( β ) − α 1-2H(\beta)^{-\alpha} 1 − 2 H ( β ) − α , where A − 1 ≤ 3 A^{-1}\le3 A − 1 ≤ 3 by construction. Thus it follows from a union bound that
Pr [ ∑ t = K + 1 T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ ~ t − 1 k t ∗ − μ ~ t − 1 k t ) ≥ 4 ∑ t = K + 1 T γ T − t r t k t ] ≤ ∑ t = K + 1 T Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t ≤ 4 r t k t , N t − 1 k t ( β ) ≥ A ] \begin{aligned}
\Pr\left[\sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)\ge A\right\}\cdot\gamma^{T-t}\left(\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}\right)\ge4\sum_{t=K+1}^{T}\gamma^{T-t}r_t^{k_t}\right] \\
&\le\sum_{t=K+1}^{T}\Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}\le4r_t^{k_t},N_{t-1}^{k_t}(\beta)\ge A\right]
\end{aligned} Pr [ t = K + 1 ∑ T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ t − 1 k t ∗ − μ t − 1 k t ) ≥ 4 t = K + 1 ∑ T γ T − t r t k t ] ≤ t = K + 1 ∑ T Pr [ μ t − 1 k t ∗ − μ t − 1 k t ≤ 4 r t k t , N t − 1 k t ( β ) ≥ A ]
≤ 2 T H ( β ) − α . \le2TH(\beta)^{-\alpha}. ≤ 2 T H ( β ) − α .
By the Cauchy-Schwarz inequality, we have ∑ k = 1 K N T k ( β ) ≤ K N T ( β ) \sum_{k=1}^{K}\sqrt{N_T^k(\beta)}\le\sqrt{KN_T(\beta)} ∑ k = 1 K N T k ( β ) ≤ K N T ( β ) . Thus
4 ∑ t = K + 1 T γ T − t r t k t = 8 C 2 α ln H ( β ) ∑ t = K + 1 T γ T − t N t k t ( β ) = 8 C 2 α ln H ( β ) ∑ k = 1 K ∑ t = K + 1 T 1 { k t = k } ⋅ γ T − t N t k ( β ) , \begin{aligned}
4\sum_{t=K+1}^{T}\gamma^{T-t}r_t^{k_t}=8C\sqrt{2\alpha\ln H(\beta)}\sum_{t=K+1}^{T}\frac{\gamma^{T-t}}{\sqrt{N_{t}^{k_t}(\beta)}} \\
&=8C\sqrt{2\alpha\ln H(\beta)}\sum_{k=1}^{K}\sum_{t=K+1}^{T}\frac{\mathbb{1}\{k_t=k\}\cdot\gamma^{T-t}}{\sqrt{N_t^k(\beta)}},
\end{aligned} 4 t = K + 1 ∑ T γ T − t r t k t = 8 C 2 α ln H ( β ) t = K + 1 ∑ T N t k t ( β ) γ T − t = 8 C 2 α ln H ( β ) k = 1 ∑ K t = K + 1 ∑ T N t k ( β ) 1 { k t = k } ⋅ γ T − t ,
≤ 8 C 2 α ln H ( β ) ∑ k = 1 K ( 2 N T k ( β ) 1 2 + N T k ( γ ) H ( β ) − 1 2 ) , \le8C\sqrt{2\alpha\ln H(\beta)}\sum_{k=1}^{K}\left(2N_T^k(\beta)^{\frac12}+N_T^k(\gamma)H(\beta)^{-\frac12}\right), ≤ 8 C 2 α ln H ( β ) k = 1 ∑ K ( 2 N T k ( β ) 2 1 + N T k ( γ ) H ( β ) − 2 1 ) ,
≤ 8 C 2 α ln H ( β ) ( 2 K 1 2 N T ( β ) 1 2 + N T ( γ ) H ( β ) − 1 2 ) . \le8C\sqrt{2\alpha\ln H(\beta)}\left(2K^{\frac12}N_T(\beta)^{\frac12}+N_T(\gamma)H(\beta)^{-\frac12}\right). ≤ 8 C 2 α ln H ( β ) ( 2 K 2 1 N T ( β ) 2 1 + N T ( γ ) H ( β ) − 2 1 ) .
where the first inequality follows from Lemma 4. Further combining with Proposition 8, we have
∑ t = K + 1 T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ ~ t − 1 k t − μ ~ t − 1 k ~ t ) ≤ 8 C 2 α ln H ( β ) ( 2 K 1 2 N T ( β ) 1 2 + N T ( γ ) H ( β ) − 1 2 ) + 2 η G 2 N T ( γ ) H ( β ) ln ( 2 C e η A G 2 ) . \sum_{t=K+1}^{T}\mathbb{1}\left\{N_{t-1}^{k_t}(\beta)\ge A\right\}\cdot\gamma^{T-t}\left(\widetilde{\mu}_{t-1}^{k_t}-\widetilde{\mu}_{t-1}^{\widetilde{k}_t}\right)
\le8C\sqrt{2\alpha\ln H(\beta)\left(2K^{\frac{1}{2}}N_T(\beta)^{\frac{1}{2}}+N_T(\gamma)H(\beta)^{-\frac{1}{2}}\right)}
+2\eta G^2N_T(\gamma)H(\beta)\ln\left(\frac{2Ce}{\eta AG^2}\right). t = K + 1 ∑ T 1 { N t − 1 k t ( β ) ≥ A } ⋅ γ T − t ( μ t − 1 k t − μ t − 1 k t ) ≤ 8 C 2 α ln H ( β ) ( 2 K 2 1 N T ( β ) 2 1 + N T ( γ ) H ( β ) − 2 1 ) + 2 η G 2 N T ( γ ) H ( β ) ln ( η A G 2 2 C e ) .
with probability at least 2 T H ( β ) − α 2TH(\beta)^{-\alpha} 2 T H ( β ) − α . And when the bound fails, the additional regret incurred is at most 2 C T N T ( γ ) H ( β ) − α 2CTN_T(\gamma)H(\beta)^{-\alpha} 2 C T N T ( γ ) H ( β ) − α . Putting together,
E [ R b γ ( D - U C B T ) ] ≤ γ T − K C K + 4 A C K ( T N T ( β ) − 1 + 1 ) + 8 C 2 α ln H ( β ) ( 2 K 1 2 N T ( β ) 1 2 + N T ( γ ) H ( β ) − 1 2 ) + 2 η G 2 N T ( γ ) H ( β ) ln ( 2 C e η A G 2 ) + 2 C T N T ( γ ) H ( β ) 1 − α . (15) \begin{aligned}
\mathbb{E}\left[R_b^\gamma(\mathrm{D\text{-}UCB}_T)\right]\le\gamma^{T-K}CK+4ACK\left(TN_T(\beta)^{-1}+1\right) \\
&+8C\sqrt{2\alpha\ln H(\beta)\left(2K^{\frac{1}{2}}N_T(\beta)^{\frac{1}{2}}+N_T(\gamma)H(\beta)^{-\frac{1}{2}}\right)} \\
&+2\eta G^2N_T(\gamma)H(\beta)\ln\left(\frac{2Ce}{\eta AG^2}\right) \\
&+2CTN_T(\gamma)H(\beta)^{1-\alpha}. \tag*{(15)}
\end{aligned} E [ R b γ ( D - UCB T ) ] ≤ γ T − K C K + 4 A C K ( T N T ( β ) − 1 + 1 ) + 8 C 2 α ln H ( β ) ( 2 K 2 1 N T ( β ) 2 1 + N T ( γ ) H ( β ) − 2 1 ) + 2 η G 2 N T ( γ ) H ( β ) ln ( η A G 2 2 C e ) + 2 C T N T ( γ ) H ( β ) 1 − α . (15)
Setting a sufficiently large α \alpha α (e.g., α = ( ln T + ln H ( γ ) ) / ln H ( β ) \alpha=(\ln T+\ln H(\gamma))/\ln H(\beta) α = ( ln T + ln H ( γ )) / ln H ( β ) s.t. T N T ( γ ) H ( β ) 1 − α ≤ 1 TN_T(\gamma)H(\beta)^{1-\alpha}\le1 T N T ( γ ) H ( β ) 1 − α ≤ 1 ) concludes the proof. □
Proposition 10 (Normalized Dynamic Bandit Regret of DUCB). The normalized dynamic bandit regret of DUCB satisfies
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ { O ~ ( K 1 2 T 1 2 ) η ≤ O ( T − 3 2 ) O ~ ( η 1 3 K 1 3 T ) O ( T − 3 2 ) ≤ η ≤ o ( 1 ) \frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right]\le
\begin{cases}
\widetilde{O}\left(K^{\frac{1}{2}}T^{\frac{1}{2}}\right) & \eta\le O(T^{-\frac{3}{2}})\\
\widetilde{O}\left(\eta^{\frac{1}{3}}K^{\frac{1}{3}}T\right) & O(T^{-\frac{3}{2}})\le\eta\le o(1)
\end{cases} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ ⎩ ⎨ ⎧ O ( K 2 1 T 2 1 ) O ( η 3 1 K 3 1 T ) η ≤ O ( T − 2 3 ) O ( T − 2 3 ) ≤ η ≤ o ( 1 ) for any γ ∈ [ 1 − T − 1 , 1 ] \gamma\in[1-T^{-1},1] γ ∈ [ 1 − T − 1 , 1 ] .
Proof. First write
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ O ( K T 2 N T ( γ ) − 1 H ( β ) − 1 ) + O ~ ( K 1 2 T N T ( γ ) − 1 H ( β ) 1 2 ) + O ~ ( T H ( β ) − 1 2 ) + O ~ ( η T H ( β ) ) . \begin{aligned}
\frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right]\le O\left(KT^2N_T(\gamma)^{-1}H(\beta)^{-1}\right)+\widetilde{O}\left(K^{\frac{1}{2}}TN_T(\gamma)^{-1}H(\beta)^{\frac{1}{2}}\right) \\
&+\widetilde{O}\left(TH(\beta)^{-\frac{1}{2}}\right)+\widetilde{O}\left(\eta TH(\beta)\right).
\end{aligned} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ O ( K T 2 N T ( γ ) − 1 H ( β ) − 1 ) + O ( K 2 1 T N T ( γ ) − 1 H ( β ) 2 1 ) + O ( T H ( β ) − 2 1 ) + O ( η T H ( β ) ) .
Note that when γ ≥ 1 − T − 1 \gamma\ge1-T^{-1} γ ≥ 1 − T − 1 , we have
T N T ( γ ) ≤ 1 1 − ( 1 − T − 1 ) T ≤ 1 1 − e − 1 ≤ 2 , \frac{T}{N_T(\gamma)}\le\frac{1}{1-(1-T^{-1})^T}\le\frac{1}{1-e^{-1}}\le2, N T ( γ ) T ≤ 1 − ( 1 − T − 1 ) T 1 ≤ 1 − e − 1 1 ≤ 2 ,
since ( 1 − T − 1 ) T ↗ e − 1 (1-T^{-1})^T\nearrow e^{-1} ( 1 − T − 1 ) T ↗ e − 1 as T → ∞ T\to\infty T → ∞ . Then it follows that
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ O ( K T H ( β ) − 1 ) + O ~ ( K 1 2 H ( β ) 1 2 ) + O ~ ( T H ( β ) − 1 2 ) + O ~ ( η T H ( β ) ) . \begin{aligned}
\frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right]\le O\left(KTH(\beta)^{-1}\right)+\widetilde{O}\left(K^{\frac{1}{2}}H(\beta)^{\frac{1}{2}}\right) \\
&+\widetilde{O}\left(TH(\beta)^{-\frac{1}{2}}\right)+\widetilde{O}\left(\eta TH(\beta)\right).
\end{aligned} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ O ( K T H ( β ) − 1 ) + O ( K 2 1 H ( β ) 2 1 ) + O ( T H ( β ) − 2 1 ) + O ( η T H ( β ) ) .
Now we discuss the choice of β \beta β over different values of η \eta η . When η ≤ o ( T − 3 2 ) \eta\le o(T^{-\frac{3}{2}}) η ≤ o ( T − 2 3 ) , i.e., the environment is almost stationary , the last term is negligible since O ( η T H ( β ) ) ≤ o ( T 1 2 ) O(\eta TH(\beta))\le o(T^{\frac{1}{2}}) O ( η T H ( β )) ≤ o ( T 2 1 ) . Thus we can choose β = 1 − T − 1 \beta=1-T^{-1} β = 1 − T − 1 s.t. H ( β ) = T H(\beta)=T H ( β ) = T , and
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ O ( K ) + O ~ ( K 1 2 T 1 2 ) + O ~ ( T 1 2 ) + o ( T 1 2 ) = O ~ ( K 1 2 T 1 2 ) . \begin{aligned}
\frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right]\le O(K)+\widetilde{O}\left(K^{\frac{1}{2}}T^{\frac{1}{2}}\right)+\widetilde{O}(T^{\frac{1}{2}})+o(T^{\frac{1}{2}}) \\
&=\widetilde{O}\left(K^{\frac{1}{2}}T^{\frac{1}{2}}\right).
\end{aligned} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ O ( K ) + O ( K 2 1 T 2 1 ) + O ( T 2 1 ) + o ( T 2 1 ) = O ( K 2 1 T 2 1 ) .
When O ( T − 3 2 ) ≤ η ≤ o ( 1 ) O(T^{-\frac{3}{2}})\le\eta\le o(1) O ( T − 2 3 ) ≤ η ≤ o ( 1 ) , i.e., the environment is slowly changing , we have η K ≤ 1 \eta K\le1 η K ≤ 1 for any fixed K K K independent of T T T . Let β = 1 − η 2 3 K − 1 3 \beta=1-\eta^{\frac{2}{3}}K^{-\frac{1}{3}} β = 1 − η 3 2 K − 3 1 s.t. H ( β ) = η − 2 3 K 1 3 H(\beta)=\eta^{-\frac{2}{3}}K^{\frac{1}{3}} H ( β ) = η − 3 2 K 3 1 . We have
T N T ( γ ) E [ R b γ ( D U C B T ) ] ≤ O ( η 2 3 K 2 3 T ) + O ~ ( η 1 3 K 1 3 ) + O ~ ( η 1 3 K − 1 6 T ) + O ~ ( η 1 3 K 1 3 T ) = O ~ ( η 1 3 K 1 3 T ) . \begin{aligned}
\frac{T}{N_T(\gamma)}\mathbb{E}\left[R_b^\gamma(\mathrm{DUCB}_T)\right]\le O\left(\eta^{\frac{2}{3}}K^{\frac{2}{3}}T\right)+\widetilde{O}\left(\eta^{\frac{1}{3}}K^{\frac{1}{3}}\right)+\widetilde{O}\left(\eta^{\frac{1}{3}}K^{-\frac{1}{6}}T\right)+\widetilde{O}\left(\eta^{\frac{1}{3}}K^{\frac{1}{3}}T\right) \\
&=\widetilde{O}\left(\eta^{\frac{1}{3}}K^{\frac{1}{3}}T\right).
\end{aligned} N T ( γ ) T E [ R b γ ( DUCB T ) ] ≤ O ( η 3 2 K 3 2 T ) + O ( η 3 1 K 3 1 ) + O ( η 3 1 K − 6 1 T ) + O ( η 3 1 K 3 1 T ) = O ( η 3 1 K 3 1 T ) .
Note that if η = O ( 1 ) \eta=O(1) η = O ( 1 ) , i.e., the environment is abruptly changing , no algorithm can achieve a sublinear regret given our setting where θ t \theta_t θ t changes in all steps Garivier & Moulines [16 ] . □
This proves Proposition 4.
Proof of Bandit Gap of DUCB
Proof of Proposition 7
First we state a discounted version of Azuma’s inequality. Consider the sequence
{ Z t k : = 1 { k t = k } ⋅ ( μ ^ k ( θ t ; B t ) − μ k ( θ t ) ) , t = 1 , … , T } , k ∈ [ K ] . \{Z_t^k := \mathbb{1}\{k_t = k\}\cdot(\hat{\mu}^k(\theta_t;B_t)-\mu^k(\theta_t)),\ t=1,\ldots,T\},\quad k\in[K]. { Z t k := 1 { k t = k } ⋅ ( μ ^ k ( θ t ; B t ) − μ k ( θ t )) , t = 1 , … , T } , k ∈ [ K ] .
Note that θ t \theta_t θ t is σ ( A t − 1 , X t − 1 ) \sigma(\mathcal{A}_{t-1},\mathcal{X}_{t-1}) σ ( A t − 1 , X t − 1 ) -measurable by the design of OGD. Further since
E [ Z t k ∣ A t − 1 , X t − 1 ] = E [ 1 { k t = k } ⋅ ( μ ^ k ( θ t ; B t ) − μ k ( θ t ) ) ∣ θ t ] = Pr [ k t = k ] ⋅ ( E [ μ ^ k ( θ t ; B t ) ∣ k t , θ t ] − μ k ( θ t ) ) + Pr [ k t ≠ k ] ⋅ 0 , = 0 \begin{aligned}
\mathbb{E}\left[Z_t^k\mid\mathcal{A}_{t-1},\mathcal{X}_{t-1}\right]
&=\mathbb{E}\left[\mathbb{1}\{k_t=k\}\cdot(\hat{\mu}^k(\theta_t;B_t)-\mu^k(\theta_t))\mid\theta_t\right]\\
&=\Pr[k_t=k]\cdot\left(\mathbb{E}[\hat{\mu}^k(\theta_t;B_t)\mid k_t,\theta_t]-\mu^k(\theta_t)\right)+\Pr[k_t\ne k]\cdot0,\\
&=0
\end{aligned} E [ Z t k ∣ A t − 1 , X t − 1 ] = E [ 1 { k t = k } ⋅ ( μ ^ k ( θ t ; B t ) − μ k ( θ t )) ∣ θ t ] = Pr [ k t = k ] ⋅ ( E [ μ ^ k ( θ t ; B t ) ∣ k t , θ t ] − μ k ( θ t ) ) + Pr [ k t = k ] ⋅ 0 , = 0
the sequence { Z t k , t = 1 , … , T } \{Z_t^k,t=1,\ldots,T\} { Z t k , t = 1 , … , T } is a martingale difference sequence for all fixed k ∈ [ K ] k\in[K] k ∈ [ K ] . We have the following lemma.
Proposition 11 (Discounted Azuma’s Inequality). For any constant α > 0 \alpha>0 α > 0 and β ∈ [ 0 , 1 ] \beta\in[0,1] β ∈ [ 0 , 1 ] ,
Pr [ ∑ τ = 1 t β t − τ Z τ k > 2 C ( α + 1 ) N t k ( β 2 ) ln H ( β ) ] ≤ H ( β ) − α . \Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>2C\sqrt{(\alpha+1)N_t^k(\beta^2)\ln H(\beta)}\right]\le H(\beta)^{-\alpha}. Pr [ τ = 1 ∑ t β t − τ Z τ k > 2 C ( α + 1 ) N t k ( β 2 ) ln H ( β ) ] ≤ H ( β ) − α . where N t k ( ⋅ ) N_t^k(\cdot) N t k ( ⋅ ) is defined in Eq. (7) and H ( ⋅ ) H(\cdot) H ( ⋅ ) 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 N t k ( β 2 ) N_t^k(\beta^2) N t k ( β 2 ) . Following Garivier & Moulines [16 ] , we apply a union bound over its possible values using the peeling technique . Specifically, let
M ( β , δ ) : = ⌈ ln H ( β ) ln ( 1 + δ ) ⌉ , δ > 0. M(\beta,\delta):=\left\lceil\frac{\ln H(\beta)}{\ln(1+\delta)}\right\rceil,\quad\delta>0. M ( β , δ ) := ⌈ ln ( 1 + δ ) ln H ( β ) ⌉ , δ > 0.
Note that since 1 − β ≤ ln ( 1 / β ) ≤ 1 − 1 / β 1-\beta\le\ln(1/\beta)\le1-1/\beta 1 − β ≤ ln ( 1/ β ) ≤ 1 − 1/ β , we have
β 1 − β ≤ H ( β ) ≤ 1 1 − β . \frac{\beta}{1-\beta}\le H(\beta)\le\frac{1}{1-\beta}. 1 − β β ≤ H ( β ) ≤ 1 − β 1 .
Define the intervals I m : = ( n m − 1 , n m ] I_m:=(n_{m-1},n_m] I m := ( n m − 1 , n m ] for each m ∈ [ M ( β , δ ) ] m\in[M(\beta,\delta)] m ∈ [ M ( β , δ )] , where we set n 0 : = 0 n_0:=0 n 0 := 0 and n m : = ( 1 + δ ) m n_m:=(1+\delta)^m n m := ( 1 + δ ) m . Then
n M = ( 1 + δ ) M ( β , δ ) ≥ H ( β ) = 1 1 − β ≥ 1 1 − β 2 ≥ N t k ( β 2 ) , n_M=(1+\delta)^{M(\beta,\delta)}\ge H(\beta)=\frac{1}{1-\beta}\ge\frac{1}{1-\beta^2}\ge N_t^k(\beta^2), n M = ( 1 + δ ) M ( β , δ ) ≥ H ( β ) = 1 − β 1 ≥ 1 − β 2 1 ≥ N t k ( β 2 ) ,
and there exists a unique m ∈ [ M ( β , δ ) ] m\in[M(\beta,\delta)] m ∈ [ M ( β , δ )] s.t. N t k ( β 2 ) ∈ I m N_t^k(\beta^2)\in I_m N t k ( β 2 ) ∈ I m . Then for any ϵ > 0 \epsilon>0 ϵ > 0 ,
Pr [ ∑ τ = 1 t β t − τ Z τ k > ϵ ] = ∑ m = 1 M ( β , δ ) Pr [ ∑ τ = 1 t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] . \Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>\epsilon\right]
=\sum_{m=1}^{M(\beta,\delta)}\Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>\epsilon,N_t^k(\beta^2)\in I_m\right]. Pr [ τ = 1 ∑ t β t − τ Z τ k > ϵ ] = m = 1 ∑ M ( β , δ ) Pr [ τ = 1 ∑ t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] .
For each event where N t k ( β ) ∈ I m N_t^k(\beta)\in I_m N t k ( β ) ∈ I m , there is N t k ( β 2 ) ≤ n m N_t^k(\beta^2)\le n_m N t k ( β 2 ) ≤ n m , and thus
Pr [ ∑ τ = 1 t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ Pr [ ∑ τ = 1 t β t − τ Z τ k − λ C 2 2 N t k ( β 2 ) > ϵ − λ C 2 2 n m ] . \Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>\epsilon,N_t^k(\beta^2)\in I_m\right]
\le\Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k-\frac{\lambda C^2}{2}N_t^k(\beta^2)>\epsilon-\frac{\lambda C^2}{2}n_m\right]. Pr [ τ = 1 ∑ t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ Pr [ τ = 1 ∑ t β t − τ Z τ k − 2 λ C 2 N t k ( β 2 ) > ϵ − 2 λ C 2 n m ] .
Then applying Chernoff’s bound to the RHS gives
Pr [ ∑ τ = 1 t γ t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ inf λ > 0 exp ( − λ ϵ + λ 2 C 2 2 n m ) E [ exp ( λ ( ∑ τ = 1 t γ t − τ Z τ k − λ 2 C 2 2 N t k ( β 2 ) ) ) ] . (16) \Pr\left[\sum_{\tau=1}^{t}\gamma^{t-\tau}Z_\tau^k>\epsilon,N_t^k(\beta^2)\in I_m\right]
\le\inf_{\lambda>0}\exp\left(-\lambda\epsilon+\frac{\lambda^2C^2}{2}n_m\right)\mathbb{E}\left[\exp\left(\lambda\left(\sum_{\tau=1}^{t}\gamma^{t-\tau}Z_\tau^k-\frac{\lambda^2C^2}{2}N_t^k(\beta^2)\right)\right)\right]. \tag*{(16)} Pr [ τ = 1 ∑ t γ t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ λ > 0 inf exp ( − λ ϵ + 2 λ 2 C 2 n m ) E [ exp ( λ ( τ = 1 ∑ t γ t − τ Z τ k − 2 λ 2 C 2 N t k ( β 2 ) ) ) ] . (16)
Recall by Hoeffding’s lemma that
E [ exp ( λ β t − τ Z τ k ) | A τ , X τ − 1 ] ≤ exp ( 1 { k τ = k } ⋅ λ 2 β 2 ( t − τ ) C 2 2 ) . \mathbb{E}\left[\exp\left(\lambda\beta^{t-\tau}Z_\tau^k\right)\middle|\mathcal{A}_\tau,\mathcal{X}_{\tau-1}\right]\le\exp\left(\mathbb{1}\{k_\tau=k\}\cdot\frac{\lambda^2\beta^2(t-\tau)C^2}{2}\right). E [ exp ( λ β t − τ Z τ k ) A τ , X τ − 1 ] ≤ exp ( 1 { k τ = k } ⋅ 2 λ 2 β 2 ( t − τ ) C 2 ) .
Then
E [ exp ( λ ∑ τ = 1 t β t − τ Z τ k − λ 2 C 2 2 N t k ( β 2 ) ) ] = E [ exp ( λ ∑ τ = 1 t − 1 β t − τ Z τ k − λ 2 C 2 2 N t k ( β 2 ) ) E [ exp ( λ Z t k ) | A t , X t − 1 ] ] ≤ E [ exp ( λ ∑ τ = 1 t − 1 β t − τ Z τ k − λ 2 C 2 2 N t k ( β 2 ) ) ⋅ exp ( 1 { k t = k } ⋅ λ 2 C 2 2 ) ] . ≤ ⋯ ≤ E [ exp ( − λ 2 C 2 2 N t k ( β 2 ) + λ 2 C 2 2 ∑ τ = 1 t 1 { k τ = k } ⋅ β 2 ( t − τ ) ) ] = 1 \begin{aligned}
\mathbb{E}\left[\exp\left(\lambda\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k-\frac{\lambda^2C^2}{2}N_t^k(\beta^2)\right)\right] \\
&=\mathbb{E}\left[\exp\left(\lambda\sum_{\tau=1}^{t-1}\beta^{t-\tau}Z_\tau^k-\frac{\lambda^2C^2}{2}N_t^k(\beta^2)\right)\mathbb{E}\left[\exp\left(\lambda Z_t^k\right)\middle|\mathcal{A}_t,\mathcal{X}_{t-1}\right]\right] \\
&\le\mathbb{E}\left[\exp\left(\lambda\sum_{\tau=1}^{t-1}\beta^{t-\tau}Z_\tau^k-\frac{\lambda^2C^2}{2}N_t^k(\beta^2)\right)\cdot\exp\left(\mathbb{1}\{k_t=k\}\cdot\frac{\lambda^2C^2}{2}\right)\right]. \\
&\le\cdots\\
&\le\mathbb{E}\left[\exp\left(-\frac{\lambda^2C^2}{2}N_t^k(\beta^2)+\frac{\lambda^2C^2}{2}\sum_{\tau=1}^{t}\mathbb{1}\{k_\tau=k\}\cdot\beta^{2(t-\tau)}\right)\right] \\
&=1
\end{aligned} E [ exp ( λ τ = 1 ∑ t β t − τ Z τ k − 2 λ 2 C 2 N t k ( β 2 ) ) ] = E [ exp ( λ τ = 1 ∑ t − 1 β t − τ Z τ k − 2 λ 2 C 2 N t k ( β 2 ) ) E [ exp ( λ Z t k ) A t , X t − 1 ] ] ≤ E [ exp ( λ τ = 1 ∑ t − 1 β t − τ Z τ k − 2 λ 2 C 2 N t k ( β 2 ) ) ⋅ exp ( 1 { k t = k } ⋅ 2 λ 2 C 2 ) ] . ≤ ⋯ ≤ E [ exp ( − 2 λ 2 C 2 N t k ( β 2 ) + 2 λ 2 C 2 τ = 1 ∑ t 1 { k τ = k } ⋅ β 2 ( t − τ ) ) ] = 1
Therefore,
Pr [ ∑ τ = 1 t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ inf λ > 0 exp ( − λ ϵ + λ 2 C 2 2 n m ) = exp ( − ϵ 2 2 C 2 n m ) . \Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>\epsilon,\ N_t^k(\beta^2)\in I_m\right]\le\inf_{\lambda>0}\exp\left(-\lambda\epsilon+\frac{\lambda^2C^2}{2}n_m\right)=\exp\left(-\frac{\epsilon^2}{2C^2n_m}\right). Pr [ τ = 1 ∑ t β t − τ Z τ k > ϵ , N t k ( β 2 ) ∈ I m ] ≤ λ > 0 inf exp ( − λ ϵ + 2 λ 2 C 2 n m ) = exp ( − 2 C 2 n m ϵ 2 ) .
where the RHS of the inequality is minimized by taking λ = ϵ / ( C 2 n m ) \lambda=\epsilon/(C^2n_m) λ = ϵ / ( C 2 n m ) . Since n m ≤ ( 1 + δ ) N t k ( β 2 ) n_m\le(1+\delta)N_t^k(\beta^2) n m ≤ ( 1 + δ ) N t k ( β 2 ) for any N t k ( β 2 ) ∈ I m N_t^k(\beta^2)\in I_m N t k ( β 2 ) ∈ I m , we have
Pr [ ∑ τ = 1 t β t − τ Z τ k > C 2 ( 1 + δ ) N t k ( β 2 ) ln M ( β , δ ) H ( β ) − α , N t k ( β 2 ) ∈ I m ] ≤ Pr [ ∑ τ = 1 t β t − τ Z τ k > C 2 n m ln M ( β , δ ) H ( β ) − α , N t k ( β 2 ) ∈ I m ] ≤ H ( β ) − α M ( β , δ ) . \begin{aligned}
\Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>C\sqrt{2(1+\delta)N_t^k(\beta^2)\ln\frac{M(\beta,\delta)}{H(\beta)^{-\alpha}}},\ N_t^k(\beta^2)\in I_m\right] \\
&\le\Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>C\sqrt{2n_m\ln\frac{M(\beta,\delta)}{H(\beta)^{-\alpha}}},\ N_t^k(\beta^2)\in I_m\right] \\
&\le\frac{H(\beta)^{-\alpha}}{M(\beta,\delta)}.
\end{aligned} Pr [ τ = 1 ∑ t β t − τ Z τ k > C 2 ( 1 + δ ) N t k ( β 2 ) ln H ( β ) − α M ( β , δ ) , N t k ( β 2 ) ∈ I m ] ≤ Pr [ τ = 1 ∑ t β t − τ Z τ k > C 2 n m ln H ( β ) − α M ( β , δ ) , N t k ( β 2 ) ∈ I m ] ≤ M ( β , δ ) H ( β ) − α .
Combining together, we have
Pr [ ∑ τ = 1 t β t − τ Z τ k > C 2 ( 1 + δ ) N t k ( β 2 ) ln M ( β , δ ) H ( β ) − α ] ≤ H ( β ) − α . \Pr\left[\sum_{\tau=1}^{t}\beta^{t-\tau}Z_\tau^k>C\sqrt{2(1+\delta)N_t^k(\beta^2)\ln\frac{M(\beta,\delta)}{H(\beta)^{-\alpha}}}\right]\le H(\beta)^{-\alpha}. Pr [ τ = 1 ∑ t β t − τ Z τ k > C 2 ( 1 + δ ) N t k ( β 2 ) ln H ( β ) − α M ( β , δ ) ] ≤ H ( β ) − α .
Finally, we choose δ > 0 \delta>0 δ > 0 s.t. M ( β , δ ) = H ( β ) M(\beta,\delta)=H(\beta) M ( β , δ ) = H ( β ) , i.e., as β → 1 \beta\to1 β → 1 ,
1 + δ = H ( β ) 1 / H ( β ) ↗ e 1 / e < 2. 1+\delta=H(\beta)^{1/H(\beta)}\nearrow e^{1/e}<2. 1 + δ = H ( β ) 1/ H ( β ) ↗ e 1/ e < 2.
This concludes the proof. □
Then we immediately have the following result.
Lemma 5. For any α ≥ 1 \alpha\ge1 α ≥ 1 ,
Pr [ μ ^ t k − μ ~ t k > 2 C 2 α ln H ( β ) N t k ( β ) ] ≤ H ( β ) − α . \Pr\left[\hat{\mu}_t^k-\tilde{\mu}_t^k>2C\sqrt{\frac{2\alpha\ln H(\beta)}{N_t^k(\beta)}}\right]\le H(\beta)^{-\alpha}. Pr [ μ ^ t k − μ ~ t k > 2 C N t k ( β ) 2 α ln H ( β ) ] ≤ H ( β ) − α . Proof. Note that
μ ^ t k − μ ~ t k = 1 N t k ( γ ) ∑ τ = 1 t γ t − τ Z τ k . \hat{\mu}_t^k-\tilde{\mu}_t^k=\frac{1}{N_t^k(\gamma)}\sum_{\tau=1}^{t}\gamma^{t-\tau}Z_\tau^k. μ ^ t k − μ ~ t k = N t k ( γ ) 1 τ = 1 ∑ t γ t − τ Z τ k .
Proof of EMA Bias
Since N t k ( γ ) ≥ N t k ( γ 2 ) N_t^k(\gamma) \ge N_t^k(\gamma^2) N t k ( γ ) ≥ N t k ( γ 2 ) for all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , we have
C N t k ( γ ) ( α + 1 ) N t k ( γ 2 ) ln H ( γ ) ≤ C ( α + 1 ) ln H ( γ ) N t k ( γ ) ≤ C 2 α ln H ( γ ) N t k ( γ ) , \frac{C}{N_t^k(\gamma)}\sqrt{(\alpha+1)N_t^k(\gamma^2)\ln H(\gamma)}
\le C\sqrt{\frac{(\alpha+1)\ln H(\gamma)}{N_t^k(\gamma)}}
\le C\sqrt{\frac{2\alpha\ln H(\gamma)}{N_t^k(\gamma)}}, N t k ( γ ) C ( α + 1 ) N t k ( γ 2 ) ln H ( γ ) ≤ C N t k ( γ ) ( α + 1 ) ln H ( γ ) ≤ C N t k ( γ ) 2 α ln H ( γ ) ,
for all α ≥ 1 \alpha\ge1 α ≥ 1 . Then
Pr [ μ ^ t k − μ ~ t k > 2 C 2 α ln H ( γ ) N t k ( γ ) ] ≤ Pr [ ∑ τ = 1 t γ t − τ Z τ k > 2 C ( α + 1 ) N t k ( γ ) ln H ( γ ) ] ≤ H ( γ ) − α , \Pr\left[\widehat{\mu}_t^k-\widetilde{\mu}_t^k>2C\sqrt{\frac{2\alpha\ln H(\gamma)}{N_t^k(\gamma)}}\right]
\le\Pr\left[\sum_{\tau=1}^{t}\gamma^{t-\tau}Z_\tau^k>2C\sqrt{(\alpha+1)N_t^k(\gamma)\ln H(\gamma)}\right]
\le H(\gamma)^{-\alpha}, Pr [ μ t k − μ t k > 2 C N t k ( γ ) 2 α ln H ( γ ) ] ≤ Pr [ τ = 1 ∑ t γ t − τ Z τ k > 2 C ( α + 1 ) N t k ( γ ) ln H ( γ ) ] ≤ H ( γ ) − α ,
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,
μ ^ t − 1 k + r t − 1 k ≤ μ ^ t − 1 k t + r t − 1 k t , ∀ k ∈ [ K ] . \widehat{\mu}_{t-1}^k+r_{t-1}^k\le\widehat{\mu}_{t-1}^{k_t}+r_{t-1}^{k_t},\quad\forall k\in[K]. μ t − 1 k + r t − 1 k ≤ μ t − 1 k t + r t − 1 k t , ∀ k ∈ [ K ] .
Specifically for k = k t ∗ k=k_t^* k = k t ∗ , there is
Δ ^ t − 1 k t : = μ ^ t − 1 k t ∗ − μ ^ t − 1 k t ≤ r t − 1 k t − r t − 1 k t ∗ . \widehat{\Delta}_{t-1}^{k_t}:=\widehat{\mu}_{t-1}^{k_t^*}-\widehat{\mu}_{t-1}^{k_t}\le r_{t-1}^{k_t}-r_{t-1}^{k_t^*}. Δ t − 1 k t := μ t − 1 k t ∗ − μ t − 1 k t ≤ r t − 1 k t − r t − 1 k t ∗ .
When N t − 1 k t ( β ) ≥ A N_{t-1}^{k_t}(\beta)\ge A N t − 1 k t ( β ) ≥ A , we have
1 + A − 1 N t ( β ) = N t − 1 k t ( β ) + A − 1 N t − 1 k t ( β ) N t − 1 k t ( β ) N t ( β ) ≥ N t − 1 k t ( β ) + 1 N t − 1 k t ( β ) N t ( β ) ≥ 1 N t − 1 k t ( β ) , \frac{1+A^{-1}}{N_t(\beta)}
=\frac{N_{t-1}^{k_t}(\beta)+A^{-1}N_{t-1}^{k_t}(\beta)}{N_{t-1}^{k_t}(\beta)N_t(\beta)}
\ge\frac{N_{t-1}^{k_t}(\beta)+1}{N_{t-1}^{k_t}(\beta)N_t(\beta)}
\ge\frac{1}{N_{t-1}^{k_t}(\beta)}, N t ( β ) 1 + A − 1 = N t − 1 k t ( β ) N t ( β ) N t − 1 k t ( β ) + A − 1 N t − 1 k t ( β ) ≥ N t − 1 k t ( β ) N t ( β ) N t − 1 k t ( β ) + 1 ≥ N t − 1 k t ( β ) 1 ,
where the last inequality is due to N t − 1 k t ( β ) + 1 ≥ N t k t ( β ) N_{t-1}^{k_t}(\beta)+1\ge N_t^{k_t}(\beta) N t − 1 k t ( β ) + 1 ≥ N t k t ( β ) . Thus
r t k t 1 + A − 1 = 2 C 1 + A − 1 N t k t ( β ) ⋅ 2 α ln H ( β ) ≥ 2 C 2 α ln H ( β ) N t − 1 k t ( β ) = r t − 1 k t . r_t^{k_t}\sqrt{1+A^{-1}}
=2C\sqrt{\frac{1+A^{-1}}{N_t^{k_t}(\beta)}\cdot2\alpha\ln H(\beta)}
\ge2C\sqrt{\frac{2\alpha\ln H(\beta)}{N_{t-1}^{k_t}(\beta)}}
=r_{t-1}^{k_t}. r t k t 1 + A − 1 = 2 C N t k t ( β ) 1 + A − 1 ⋅ 2 α ln H ( β ) ≥ 2 C N t − 1 k t ( β ) 2 α ln H ( β ) = r t − 1 k t .
Then by the standard UCB argument,
Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 2 r t − 1 k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 2 r t − 1 k t ] = Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t − Δ ^ t − 1 k t > 2 r t − 1 k t − Δ ^ t − 1 k t ] ≤ Pr [ ( μ ~ t − 1 k t ∗ − μ ^ t − 1 k t ∗ ) − ( μ ~ t − 1 k t − μ ^ t − 1 k t ) > r t − 1 k t ∗ + r t − 1 k t ] ≤ Pr [ μ ~ t − 1 k t ∗ − μ ^ t − 1 k t ∗ < − r t − 1 k t ∗ ] + Pr [ μ ^ t − 1 k t − μ ~ t − 1 k t > r t − 1 k t ] . \begin{aligned}
\Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}>2r_{t-1}^{k_t}\sqrt{1+A^{-1}},\,N_{t-1}^{k_t}(\beta)\ge A\right]
&\le\Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}>2r_{t-1}^{k_t}\right]\\
&=\Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widetilde{\mu}_{t-1}^{k_t}-\widehat{\Delta}_{t-1}^{k_t}>2r_{t-1}^{k_t}-\widehat{\Delta}_{t-1}^{k_t}\right]\\
&\le\Pr\left[(\widetilde{\mu}_{t-1}^{k_t^*}-\widehat{\mu}_{t-1}^{k_t^*})-(\widetilde{\mu}_{t-1}^{k_t}-\widehat{\mu}_{t-1}^{k_t})>r_{t-1}^{k_t^*}+r_{t-1}^{k_t}\right]\\
&\le\Pr\left[\widetilde{\mu}_{t-1}^{k_t^*}-\widehat{\mu}_{t-1}^{k_t^*}<-r_{t-1}^{k_t^*}\right]
+\Pr\left[\widehat{\mu}_{t-1}^{k_t}-\widetilde{\mu}_{t-1}^{k_t}>r_{t-1}^{k_t}\right].
\end{aligned} Pr [ μ t − 1 k t ∗ − μ t − 1 k t > 2 r t − 1 k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ Pr [ μ t − 1 k t ∗ − μ t − 1 k t > 2 r t − 1 k t ] = Pr [ μ t − 1 k t ∗ − μ t − 1 k t − Δ t − 1 k t > 2 r t − 1 k t − Δ t − 1 k t ] ≤ Pr [ ( μ t − 1 k t ∗ − μ t − 1 k t ∗ ) − ( μ t − 1 k t − μ t − 1 k t ) > r t − 1 k t ∗ + r t − 1 k t ] ≤ Pr [ μ t − 1 k t ∗ − μ t − 1 k t ∗ < − r t − 1 k t ∗ ] + Pr [ μ t − 1 k t − μ t − 1 k t > r t − 1 k t ] .
Applying Lemma 5 respectively on each term concludes the proof.
Proof of Proposition 8
We prove this by splitting the EMA summands by a horizon D ( β ) D(\beta) D ( β ) at each step t t t . Note that the early summands for τ = 1 , … , ⌊ D ( β ) ⌋ \tau=1,\ldots,\lfloor D(\beta)\rfloor τ = 1 , … , ⌊ D ( β )⌋ inherits more bias, since they are calculated based on some model parameter drastically different from the current parameter θ t \theta_t θ t . Thus we simply apply the boundedness condition. On the other hand, more recent summands for τ = ⌈ D ( β ) ⌉ , … , t \tau=\lceil D(\beta)\rceil,\ldots,t τ = ⌈ D ( β )⌉ , … , t are calculated based on the model parameters much closer to the current θ t \theta_t θ t . Thus we bound them using the Lipschitz condition in Assumption 2. Finally, we optimize the choice of D ( β ) D(\beta) D ( β ) to obtain Proposition 8.
Proof of Proposition 8. Suppose there exists some 0 ≤ D ( β ) ≤ t 0 \le D(\beta) \le t 0 ≤ D ( β ) ≤ t for t ∈ [ T ] t \in[T] t ∈ [ T ] . We can write
∣ μ ~ t k − μ k ( θ t + 1 ) ∣ = 1 N t k ( β ) ∣ ∑ τ = 1 t 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ∣ ≤ 1 N t k ( β ) ∣ ∑ τ = 1 t − ⌈ D ( β ) ⌉ 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ∣ \begin{aligned}
\left|\tilde{\mu}^{k}_{t}-\mu^{k}(\theta_{t+1})\right|=\frac{1}{N^{k}_{t}(\beta)}\left|\sum_{\tau=1}^{t}\mathbb{1}\{k_{\tau}=k\}\cdot\beta^{t-\tau}\left(\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t+1})\right)\right| \\
&\le\frac{1}{N^{k}_{t}(\beta)}\left|\sum_{\tau=1}^{t-\lceil D(\beta)\rceil}\mathbb{1}\{k_{\tau}=k\}\cdot\beta^{t-\tau}\left(\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t+1})\right)\right|
\end{aligned} μ ~ t k − μ k ( θ t + 1 ) = N t k ( β ) 1 τ = 1 ∑ t 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ≤ N t k ( β ) 1 τ = 1 ∑ t − ⌈ D ( β )⌉ 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) )
+ 1 N t k ( β ) ∣ ∑ τ = t − ⌈ D ( β ) ⌉ t 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ∣ . \qquad+\frac{1}{N^{k}_{t}(\beta)}\left|\sum_{\tau=t-\lceil D(\beta)\rceil}^{t}\mathbb{1}\{k_{\tau}=k\}\cdot\beta^{t-\tau}\left(\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t+1})\right)\right|. + N t k ( β ) 1 τ = t − ⌈ D ( β )⌉ ∑ t 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) .
For the first sum, since ∣ μ k ( θ τ ) − μ k ( θ t ) ∣ < C \left|\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t})\right|<C μ k ( θ τ ) − μ k ( θ t ) < C for all τ , t ∈ [ T ] \tau,t\in[T] τ , t ∈ [ T ] , we have
1 N t k ( β ) ∣ ∑ τ = 1 t − ⌈ D ( β ) ⌉ 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ∣ ≤ C β ⌈ D ( β ) ⌉ N t k ( β ) ∑ τ = 1 t − ⌈ D ( β ) ⌉ 1 { k τ = k } ⋅ β t − ⌈ D ( β ) ⌉ − τ = C β D ( β ) N t − ⌈ D ( β ) ⌉ k ( β ) N t k ( β ) ≤ C A − 1 H ( β ) β D ( β ) . \begin{aligned}
\frac{1}{N^{k}_{t}(\beta)}\left|\sum_{\tau=1}^{t-\lceil D(\beta)\rceil}\mathbb{1}\{k_{\tau}=k\}\cdot\beta^{t-\tau}\left(\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t+1})\right)\right| \\
&\le\frac{C\beta^{\lceil D(\beta)\rceil}}{N^{k}_{t}(\beta)}\sum_{\tau=1}^{t-\lceil D(\beta)\rceil}\mathbb{1}\{k_{\tau}=k\}\cdot\beta^{t-\lceil D(\beta)\rceil-\tau} \\
&= \frac{C\beta^{D(\beta)}N^{k}_{t-\lceil D(\beta)\rceil}(\beta)}{N^{k}_{t}(\beta)} \\
&\le CA^{-1}H(\beta)\beta^{D(\beta)}.
\end{aligned} N t k ( β ) 1 τ = 1 ∑ t − ⌈ D ( β )⌉ 1 { k τ = k } ⋅ β t − τ ( μ k ( θ τ ) − μ k ( θ t + 1 ) ) ≤ N t k ( β ) C β ⌈ D ( β )⌉ τ = 1 ∑ t − ⌈ D ( β )⌉ 1 { k τ = k } ⋅ β t − ⌈ D ( β )⌉ − τ = N t k ( β ) C β D ( β ) N t − ⌈ D ( β )⌉ k ( β ) ≤ C A − 1 H ( β ) β D ( β ) .
For the second sum, by the Lipschitz condition and the rule of OGD, we have
max τ ∈ [ t − ⌈ D ( β ) ⌉ , t ] ∣ μ k ( θ τ ) − μ k ( θ t + 1 ) ∣ ≤ G ∥ ∑ τ = t − ⌈ D ( β ) ⌉ t η ∇ μ ^ t k ( θ τ ; ⋅ ) ∥ ≤ η G 2 D ( β ) . \begin{aligned}
\max_{\tau\in[t-\lceil D(\beta)\rceil,t]}\left|\mu^{k}(\theta_{\tau})-\mu^{k}(\theta_{t+1})\right|\le G\left\|\sum_{\tau=t-\lceil D(\beta)\rceil}^{t}\eta\nabla\hat{\mu}^{k}_{t}(\theta_{\tau};\cdot)\right\| \\
&\le\eta G^{2}D(\beta).
\end{aligned} τ ∈ [ t − ⌈ D ( β )⌉ , t ] max μ k ( θ τ ) − μ k ( θ t + 1 ) ≤ G τ = t − ⌈ D ( β )⌉ ∑ t η ∇ μ ^ t k ( θ τ ; ⋅ ) ≤ η G 2 D ( β ) .
Then
∣ μ ~ t k − μ k ( θ t + 1 ) ∣ ≤ C A − 1 H ( β ) β D ( β ) + η G 2 D ( β ) . \left|\tilde{\mu}^{k}_{t}-\mu^{k}(\theta_{t+1})\right|\le CA^{-1}H(\beta)\beta^{D(\beta)}+\eta G^{2}D(\beta). μ ~ t k − μ k ( θ t + 1 ) ≤ C A − 1 H ( β ) β D ( β ) + η G 2 D ( β ) .
To choose the optimal D ( β ) D(\beta) D ( β ) , let
d d D ( β ) ∣ μ ~ t k − μ k ( θ t + 1 ) ∣ = C A − 1 H ( β ) ( ln β ) β D ( β ) + η G 2 = 0 , \frac{d}{dD(\beta)}\left|\tilde{\mu}^{k}_{t}-\mu^{k}(\theta_{t+1})\right|=CA^{-1}H(\beta)(\ln\beta)\beta^{D(\beta)}+\eta G^{2}=0, d D ( β ) d μ ~ t k − μ k ( θ t + 1 ) = C A − 1 H ( β ) ( ln β ) β D ( β ) + η G 2 = 0 ,
i.e.,
D ⋆ ( β ) = 1 ln β ln ( η A G 2 C H ( β ) ln ( 1 / β ) ) . D^{\star}(\beta)=\frac{1}{\ln\beta}\ln\left(\frac{\eta AG^{2}}{CH(\beta)\ln(1/\beta)}\right). D ⋆ ( β ) = ln β 1 ln ( C H ( β ) ln ( 1/ β ) η A G 2 ) .
Further note that the LHS is convex in D ( β ) D(\beta) D ( β ) . Thus the assumption that 0 ≤ D ( β ) ≤ t 0\le D(\beta)\le t 0 ≤ D ( β ) ≤ t can be alleviated, and
∣ μ ~ t k − μ k ( θ t + 1 ) ∣ ≤ η G 2 ln ( 1 / β ) ( 1 + ln ( C H ( β ) ln ( 1 / β ) η A G 2 ) ) . \left|\tilde{\mu}^{k}_{t}-\mu^{k}(\theta_{t+1})\right|\le\frac{\eta G^{2}}{\ln(1/\beta)}\left(1+\ln\left(\frac{CH(\beta)\ln(1/\beta)}{\eta AG^{2}}\right)\right). μ ~ t k − μ k ( θ t + 1 ) ≤ ln ( 1/ β ) η G 2 ( 1 + ln ( η A G 2 C H ( β ) ln ( 1/ β ) ) ) .
Finally, since ln ( 1 / β ) ≥ 1 − β = H ( β ) − 1 \ln(1/\beta)\ge1-\beta=H(\beta)^{-1} ln ( 1/ β ) ≥ 1 − β = H ( β ) − 1 , we conclude the proof by realizing that the RHS above is monotonically decreasing w.r.t. ln ( 1 / β ) \ln(1/\beta) ln ( 1/ β ) , and H ( β ) ln ( 1 / β ) ≤ 1 / β ≤ 2 H(\beta)\ln(1/\beta)\le1/\beta\le2 H ( β ) ln ( 1/ β ) ≤ 1/ β ≤ 2 for all β ≥ 1 / 2 \beta\ge1/2 β ≥ 1/2 . □ \square □
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 k t k_t k t in step t ≥ K + 1 t\ge K+1 t ≥ K + 1 as in Section B. Then for any A > 0 A>0 A > 0 ,
Pr [ μ ~ t − 1 k ⋆ − μ ~ t − 1 k > 4 r t k 1 + A − 1 , N t − 1 k ( β ) ≥ A ] ≤ 4 H ( β ) − α . \Pr\left[\tilde{\mu}^{k^\star}_{t-1}-\tilde{\mu}^{k}_{t-1}>4r^{k}_{t}\sqrt{1+A^{-1}},N^{k}_{t-1}(\beta)\ge A\right]\le4H(\beta)^{-\alpha}. Pr [ μ ~ t − 1 k ⋆ − μ ~ t − 1 k > 4 r t k 1 + A − 1 , N t − 1 k ( β ) ≥ A ] ≤ 4 H ( β ) − α .
Proof. By the rule of sampling DUCB, we have
μ ^ t − 1 k + ϕ t − 1 k ≤ μ ^ t − 1 k t ∗ + ϕ t − 1 k t ∗ , ∀ k ∈ [ K ] . \hat{\mu}_{t-1}^{k}+\phi_{t-1}^{k}\leq\hat{\mu}_{t-1}^{k_t^*}+\phi_{t-1}^{k_t^*},\qquad\forall k\in[K]. μ ^ t − 1 k + ϕ t − 1 k ≤ μ ^ t − 1 k t ∗ + ϕ t − 1 k t ∗ , ∀ k ∈ [ K ] .
And specifically for k = k t ∗ k=k_t^* k = k t ∗ (recall that k t ∗ = arg max k μ k ( θ t ) k_t^*=\arg\max_k\mu^k(\theta_t) k t ∗ = arg max k μ k ( θ t ) ),
Δ ^ t k t ∗ = μ ^ t − 1 k t ∗ − μ ^ t − 1 k t ≤ ϕ t − 1 k t − ϕ t − 1 k t ∗ . \widehat{\Delta}_t^{k_t^*}=\hat{\mu}_{t-1}^{k_t^*}-\hat{\mu}_{t-1}^{k_t}\leq\phi_{t-1}^{k_t}-\phi_{t-1}^{k_t^*}. Δ t k t ∗ = μ ^ t − 1 k t ∗ − μ ^ t − 1 k t ≤ ϕ t − 1 k t − ϕ t − 1 k t ∗ .
According to the Gaussian tail bound,
Pr [ ϕ t − 1 k t − 2 r t − 1 k t > r t − 1 k t ] ≤ H ( β ) − α , Pr [ ϕ t − 1 k t − 2 r t − 1 k t < − r t − 1 k t ] ≤ H ( β ) − α . \Pr\left[\phi_{t-1}^{k_t}-2r_{t-1}^{k_t}>r_{t-1}^{k_t}\right]\leq H(\beta)^{-\alpha},\qquad\Pr\left[\phi_{t-1}^{k_t}-2r_{t-1}^{k_t}<-r_{t-1}^{k_t}\right]\leq H(\beta)^{-\alpha}. Pr [ ϕ t − 1 k t − 2 r t − 1 k t > r t − 1 k t ] ≤ H ( β ) − α , Pr [ ϕ t − 1 k t − 2 r t − 1 k t < − r t − 1 k t ] ≤ H ( β ) − α .
Recall by Proposition 7 that ( 1 + A − 1 ) N t − 1 k t ( β ) − 1 ≥ N t − 1 k t ( β ) − 1 (1+A^{-1})N_{t-1}^{k_t}(\beta)^{-1}\geq N_{t-1}^{k_t}(\beta)^{-1} ( 1 + A − 1 ) N t − 1 k t ( β ) − 1 ≥ N t − 1 k t ( β ) − 1 . Then
Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 4 r t k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 4 r t k t ] = Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t − Δ ^ t k t ∗ + Δ ^ t k t ∗ > 4 r t − 1 k t ] ≤ Pr [ ( μ ^ t − 1 k t ∗ − μ ^ t − 1 k t ) − ( μ ~ t − 1 k t ∗ − μ ^ t − 1 k t ) + ϕ t − 1 k t − ϕ t − 1 k t ∗ > 4 r t − 1 k t + r t − 1 k t ∗ − r t − 1 k t ∗ ] ≤ Pr [ μ ^ t − 1 k t ∗ − μ ~ t − 1 k t ∗ < − r t − 1 k t ∗ ] + Pr [ μ ^ t − 1 k t − μ ~ t − 1 k t ( θ t ) > r t − 1 k t ] + Pr [ ϕ t − 1 k t > 3 r t − 1 k t ] + Pr [ ϕ t − 1 k t ∗ < r t − 1 k t ∗ ] \begin{aligned}
\Pr\left[\tilde{\mu}_{t-1}^{k_t^*}-\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^*}-\tilde{\mu}_{t-1}^{k_t}>4r_{t}^{k_t}\right] \\
&=\Pr\left[\tilde{\mu}_{t-1}^{k_t^*}-\tilde{\mu}_{t-1}^{k_t}-\widehat{\Delta}_t^{k_t^*}+\widehat{\Delta}_t^{k_t^*}>4r_{t-1}^{k_t}\right] \\
&\leq\Pr\left[\left(\hat{\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)+\phi_{t-1}^{k_t}-\phi_{t-1}^{k_t^*}>4r_{t-1}^{k_t}+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}(\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^*}<r_{t-1}^{k_t^*}\right]
\end{aligned} Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 4 r t k t 1 + A − 1 , N t − 1 k t ( β ) ≥ A ] ≤ Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t > 4 r t k t ] = Pr [ μ ~ t − 1 k t ∗ − μ ~ t − 1 k t − Δ t k t ∗ + Δ t k t ∗ > 4 r t − 1 k t ] ≤ Pr [ ( μ ^ t − 1 k t ∗ − μ ^ t − 1 k t ) − ( μ ~ t − 1 k t ∗ − μ ^ t − 1 k t ) + ϕ t − 1 k t − ϕ t − 1 k t ∗ > 4 r t − 1 k t + r t − 1 k t ∗ − r t − 1 k t ∗ ] ≤ Pr [ μ ^ t − 1 k t ∗ − μ ~ t − 1 k t ∗ < − r t − 1 k t ∗ ] + Pr [ μ ^ t − 1 k t − μ ~ t − 1 k t ( θ t ) > r t − 1 k t ] + Pr [ ϕ t − 1 k t > 3 r t − 1 k t ] + Pr [ ϕ t − 1 k t ∗ < r t − 1 k t ∗ ]
where the last inequality follows from a union bound. Applying Lemma 5 and the Gaussian tail bound respectively on each term concludes the proof.
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 [7 ] 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.
SFT
Table 3. SFT results on the GSM8k + IFEval datasets with a budget of 32k samples.
We evaluate the SFT performance on a heterogeneous dataset comprising GSM8k Cobbe et al. [13 ] 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.
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. [14 ] 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.
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.
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 Table 5 , DUCB improves the final-checkpoint minimum accuracy by 2.57 ± 1.04 2.57 \pm1.04 2.57 ± 1.04 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.
Table 5. Three-seed DPO results on HelpSteer3 with Qwen2.5-3B-Instruct. We report final-checkpoint mean accuracy ± \pm ± standard deviation. The paired gain compares DUCB and Uniform under matched seeds.
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 [12 ] , Katz et al. (2025); Lin et al. (2025) dataset and the CommonSenseQA Talmor et al. (2019) dataset.
For Reasoning shown in Table 6 , DUCB consistently provides the strongest robustness guarantees, achieving the highest minimum source-wise accuracies across all tested models. For CommonsenseQA shown in Table 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.
Table 6. GRPO results on the Reasoning dataset with a budget of 10k samples.
Table 7. GRPO results on the CommonsenseQA dataset with a budget of 6.4k samples.
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.
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 ± \pm ± standard deviation. AMA runtimes cover generalist training but exclude the cost of training K K K specialists. The overhead for Zang et al. (2025) is analytical rather than a wall-clock measurement.
† 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 21.94 ± 1.14 21.94 \pm1.14 21.94 ± 1.14 seconds per step, compared with 21.90 ± 1.29 21.90 \pm1.29 21.90 ± 1.29 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 O ( K ) O(K) O ( K ) scalar state. The generalist-training runtimes of AMA-R and AMA-S are similarly close to Uniform, but exclude their additional cost of training K K K 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.
Optimization Dynamics and Assumption Diagnostics
Lipschitz regularity with respect to model parameters is commonly adopted in theoretical analyses of LLM optimization ([5 ] (Malladi et al. 2023; 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.
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 Table 9 , the experiments use maximum learning rates of at most 2 × 10 − 5 2 \times10^{-5} 2 × 1 0 − 5 , 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.
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.