Group Distributionally Robust Optimization with Flexible Sample Queries
Haomin Bai, Dingzhi Yu, Shuai Li, Haipeng Luo, Lijun Zhang
NeurIPS 2026
TL;DR. We propose a GDRO algorithm that can process an arbitrary number of samples per round.
Abstract. Group distributionally robust optimization (GDRO) aims to learn models that perform well across distributions simultaneously. Existing methods either (i) query samples per round, which imposes strict implementation requirements, or (ii) query only a single sample per round, which requires many rounds to converge and therefore leads to long runtime. To avoid these limitations, we introduce a novel setting called \emph{flexible sample queries} (FSQ), which allows the number of samples that can be queried to vary across rounds. Under the FSQ setting, we cast GDRO as a two-player game: one performs non-oblivious online convex optimization, while the other tackles a non-oblivious prediction with limited advice (PLA) problem. In this game, the first player updates its decision using follow-the-regularized-leader with stochastic gradients. For the second player, we develop a new PLA method equipped with an adaptive exploration strategy that can leverage an arbitrary per-round sample size. We then establish the first high-probability regret bound for non-oblivious PLA. By integrating these components, we develop an anytime GDRO algorithm that supports FSQ, and derive a high-probability optimization error bound of , where is the sample size at round . This result demonstrates that the optimization error decreases as the per-round sample sizes increase, and implies the same near-optimal sample complexity of for any fixed sample size .
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Final Meta-Review: I am pleased to note that the authors have thoroughly and successfully addressed all the critical issues raised in my initial meta-review and by the reviewers.
Conclusion: The introduction of the Flexible Sample Queries (FSQ) setting captures a highly practical constraint in distributed/robust optimization. The authors' reduction of this problem to a two-player game is elegant, and the derivation of an appropriate regret bound is a strong contribution to the community. With the empirical gaps successfully closed during the rebuttal, this paper is technically solid, conceptually novel, and ready for presentation at NeurIPS.
Final justification
The introduction of the Flexible Sample Queries (FSQ) setting captures a highly practical constraint in distributed/robust optimization. The authors' reduction of this problem to a two-player game is elegant, and the derivation of an appropriate regret bound is a strong contribution to the community. With the empirical gaps successfully closed during the rebuttal, this paper is technically solid, conceptually novel, and ready for presentation at NeurIPS.
Read meta-review
Meta-review
Final Meta-Review: I am pleased to note that the authors have thoroughly and successfully addressed all the critical issues raised in my initial meta-review and by the reviewers.
Conclusion: The introduction of the Flexible Sample Queries (FSQ) setting captures a highly practical constraint in distributed/robust optimization. The authors' reduction of this problem to a two-player game is elegant, and the derivation of an appropriate regret bound is a strong contribution to the community. With the empirical gaps successfully closed during the rebuttal, this paper is technically solid, conceptually novel, and ready for presentation at NeurIPS.
Final justification
The introduction of the Flexible Sample Queries (FSQ) setting captures a highly practical constraint in distributed/robust optimization. The authors' reduction of this problem to a two-player game is elegant, and the derivation of an appropriate regret bound is a strong contribution to the community. With the empirical gaps successfully closed during the rebuttal, this paper is technically solid, conceptually novel, and ready for presentation at NeurIPS.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies GDRO under flexible sample-query budgets. Compared to existing GDRO, which query either one group or all groups in each iteration, the paper's setting allows the number of queried groups, denoted by , to vary over time. The paper formulates the problem as a two player stochastic game: the min player solves a non-oblivious OCO problem, while the max player solves a non-oblivious PLA problem to identify groups from partial observations. They claim the first high probability regret guarantee for non-oblivious PLA under varying query sizes. Combining the two players yields an anytime GDRO algorithm with high probability optimization error of order . The paper evaluates the proposed methods on synthetic and real-world classification tasks under both fixed and time-varying query budgets.
Strengths and weaknesses
Strength:
The paper addresses an important gap in existing GDRO methods. Allowing the number of queried groups to vary across iterations captures settings with changing computational or sampling resources and unifies the one-group and all-group-query regimes within a single framework.
The technical contribution is strong. The reduction of the group player to a non-oblivious PLA problem is natural, and the paper develops high-probability regret guarantees that explicitly adapt to the full sequence of query budgets. The resulting rate clearly quantifies the value of additional queries.
Weakness:
The group-selection mechanism is relatively simple, which can be considered as both strength and weakness. Given , the method samples one group adaptively according to the current status and chooses the remaining groups uniformly. This design is analytically convenient, but it seems not exploit possible structure among groups or optimize the queried subset more directly. It would be interesting if more complex selection procedure can be introduced, if necessary.
Questions
Given , the algorithm samples one group adaptively and selects the remaining groups uniformly. Is this sampling rule optimal for the stated regret rate? Could a more adaptive choice of all queried groups improve the dependence on , , or the logarithmic factors?
Limitations
yes
Final justification
Thank the authors for their response. I will maintain my positive scores.
Formatting concerns
i do not have concerns.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the Group Distributionally Robust Optimization (GDRO) problem and introduces a new setting called “Flexible Sample Queries (FSQ)”, addressing scenarios where per-round sample size that can be queried varies due to external factors such as communication bandwidth or human review capacity. It formulates GDRO under FSQ setting as a two-player game between the player (model's parameters, which is the minimizer) and the player (distribution weight, which is the maximizer). The authors propose an algorithm for the player based on Follow-the-Regularized-Leader (FTRL) with stochastic gradients, while for the player, they introduce a novel algorithm called NPLA-EXP3, derived from EXP3-style methods but adapted to handle non-oblivious losses and variable sample sizes () via an adaptive exploration strategy. This results in an anytime GDRO algorithm supporting FSQ with a high-probability error bound dependent on the varying values.
Strengths and weaknesses
Strengths:
The paper investigates GDRO under a novel and practically motivated Flexible Sample Quantity (FSQ) setting. By modeling the problem as an online two-player game, the authors successfully bridge Follow-The-Regularized-Leader (FTRL) variants for the model parameter updates (-player) and adapt EXP3-style techniques (NPLA-EXP3) for the adversarial group weighting (-player).
-
Quality: The theoretical foundation is technically sound and well-grounded in established Online Convex Optimization (OCO) literature under appropriate assumptions. A notable theoretical contribution is the high-probability error bound analysis, which rigorously demonstrates the benefits of drawing larger per-round samples () to reduce the optimization error.
-
Clarity: The paper is well-written and logically structured. The transition from the problem formulation to the algorithmic design is clear, making the complex interplay and coupling between the -player and -player accessible to the reader.
-
Significance: The proposed method addresses practical bottlenecks highlighted in prior work. By allowing the algorithm to dynamically adapt to varying sample size constraints without requiring impractically many rounds or waiting for fixed batch sizes, this work offers a flexible tool for real-world scenarios where computational or sampling budgets fluctuate.
-
Originality: The introduction of the FSQ setting explicitly tackles time-varying per-round sampling capacities (). This is a novel departure from standard settings that strictly assume fixed sampling budgets per round, adding a value to the GDRO framework.
Weaknesses
While the theoretical setup is interesting, there is a significant disconnect between the algorithmic motivation (which relies on stochastic sampling and bandit feedback) and the empirical evaluation. Specifically, the advantage of bandit-like algorithms and stochastic sampling emerges when the total number of groups is prohibitively large, making full-batch updates computationally infeasible. However, the empirical evaluation considers a maximum of groups (synthetic) and groups (diabetic dataset). At this small scale, the computational savings of sampling groups instead of simply evaluating all groups are highly questionable, especially given the variance introduced by the bandit feedback and the computational overhead of the EXP3 sampling mechanism. More critically, the variance introduced by the adaptive loss estimator inherently scales proportionally with due to Eq. (13). Evaluating the method solely on datasets with may inadvertently obscure this potential variance scaling issue, leaving it unclear whether the algorithm maintains its stability and efficacy in larger-scale settings.
Questions
The adaptive loss estimator introduces the observation probability for . While this lower-bounds the probability at and ensures unbiasedness, the variance of the adaptive loss scales with as the total number of groups increases. Given that the current experiments are restricted to a very small scale (), the empirical impact of this variance scaling remains hidden. Could the authors provide additional experimental results on a dataset with a substantially larger number of groups (e.g., in the hundreds), and specifically analyze or plot the empirical variance of the gradients during training?
Limitations
Yes
Final justification
The reviewer's questions have been fully addressed.
Formatting concerns
No concerns.
3 comments
Rebuttal
Thank you for the careful and constructive review of our manuscript!
W1. There is a disconnect between the large-scale motivation of bandit-style group sampling and the current experiments. It is unclear whether the algorithm maintains its stability and efficacy in larger-scale settings.
A1. To evaluate FLEX-GDRO with a substantially larger number of groups, we add an experiment on Federated Extended MNIST (FEMNIST), a writer-partitioned benchmark for 62-class handwritten-character classification [Cohen et al., 2017, Caldas et al., 2018]. We sort the writers by the number of training samples and select the top writers as the target groups, treating each writer as a distinct subgroup.
To obtain informative representations without leaking information from the target groups, we pretrain a two-layer CNN exclusively on the remaining 2,970 non-target writers using ERM. We then remove the final classification layer and freeze the backbone as an encoder. Both FLEX-GDRO and ONLINE(1) optimize only a linear softmax classification head using cross-entropy loss. Therefore, the resulting optimization objective remains convex.
We generate resource rounds for FLEX-GDRO, with and sampled uniformly from . ONLINE(1) processes the corresponding samples sequentially. The results are reported below.
| Risk | Samples (FLEX-GDRO) | Samples (ONLINE(1)) | Time (FLEX-GDRO) | Time (ONLINE(1)) | Speedup |
|---|---|---|---|---|---|
| 0.98 | k | k | s | s | |
| 0.95 | k | k | s | s | |
| 0.94 | k | k | s | s | |
| 0.93 | k | k | s | s |
The two methods require nearly the same number of samples to reach a risk of 0.94. ONLINE(1) is more sample-efficient at the high risk levels, whereas FLEX-GDRO becomes more sample-efficient at the lower risk level of 0.93. Overall, these results show that FLEX-GDRO remains stable with 100 groups on this real-world task, preserves comparable sample efficiency, and reduces wall-clock optimization time by approximately .
Q1. The observation probability in the adaptive estimator is lower bounded by , so its variance may increase as the total number of groups grows. Could the authors evaluate the algorithm with hundreds of groups and specifically analyze or plot the empirical variance of the gradients during training?
A2. Thank you for raising this concern. We first clarify the variance quantity relevant to our analysis. The adaptive loss estimator serves as the stochastic gradient of the -player, and its entropy-FTRL regret is controlled by the -weighted second moment . For , Eq. (13) together with Lemma F.2 implies that . Consequently, the corresponding -weighted variance satisfies . Thus, the theoretical upper bound depends on , rather than on alone.
To examine this scaling empirically, we conduct fixed-resource experiments on the synthetic dataset using and . We track the estimator variance throughout training and report four representative checkpoints. At each checkpoint, we fix and generate independent realizations of . We then estimate the -weighted variance as , where denotes the empirical variance. Each entry in the table reports the mean and standard deviation over five independent seeds.
| 5 | 50 | 10 | ||||
| 5 | 100 | 20 | ||||
| 5 | 200 | 40 | ||||
| 10 | 50 | 5 | ||||
| 10 | 100 | 10 | ||||
| 10 | 200 | 20 | ||||
| 25 | 50 | 2 | ||||
| 25 | 100 | 4 | ||||
| 25 | 200 | 8 |
The results are consistent with the predicted dependence. For example, with , increasing from to doubles from to and increases the variance at from to . By contrast, when grows proportionally with so that remains fixed, the variance remains nearly unchanged across . These results support the conclusion that the regret-relevant estimator variance is primarily determined by the observation ratio , rather than by the absolute number of groups.
For completeness, we define the unweighted average per-coordinate variance as and report its empirical estimate This quantity directly assesses whether the average coordinate-wise fluctuation becomes less stable as increases.
| 5 | 50 | 10 | ||||
| 5 | 100 | 20 | ||||
| 5 | 200 | 40 | ||||
| 10 | 50 | 5 | ||||
| 10 | 100 | 10 | ||||
| 10 | 200 | 20 | ||||
| 25 | 50 | 2 | ||||
| 25 | 100 | 4 | ||||
| 25 | 200 | 8 |
The unweighted per-coordinate variance exhibits the same pattern. Moreover, the corresponding unnormalized Euclidean variance is . It naturally accumulates with the dimension , even when the fluctuation of each coordinate remains unchanged.
We also measure the per-coordinate variance of the -player stochastic gradient. Across all considered values of and , its mean ranges are 0.212-0.220 at , 0.189-0.194 at , 0.179-0.190 at , and 0.172-0.183 at . This observation is consistent with our design, since the -player uses a single gradient sampled according to , whose norm bound and regret guarantee are independent of the per-round sample size.
Additional References
Gregory Cohen, et al. EMNIST: Extending MNIST to Handwritten Letters. IJCNN, 2017.
Sebastian Caldas, et al. LEAF: A Benchmark for Federated Settings. arXiv:1812.01097, 2018.
Thanks the authors for the detailed rebuttal, which fully addressed my concern. I have raised the score.
Dear Reviewer CKDK,
Thank you very much for your response! We appreciate your constructive feedback and will revise our paper accordingly.
Best regards,
Authors
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies Flexible Sample Queries (FSQ) for Group Distributionally Robust Optimization (GDRO), where the number of samples queried from different groups can vary across training rounds. Existing GDRO methods assume either querying all groups or only a single sample per round and therefore cannot be directly extended to this more flexible setting. To address this challenge, the paper proposes FLEX-GDRO, which reformulates the problem as a two-player game. The maximization player is cast as a non-oblivious prediction with limited advice (PLA) problem, for which the authors develop the NPLA-EXP3 algorithm. The minimization player is formulated as an online convex optimization (OCO) problem and solved using Follow-the-Regularized-Leader (FTRL) with time-varying step sizes. The authors establish high-probability regret bounds for the proposed algorithms, including FLEX-GDRO, showing that it achieves the same near-optimal sample complexity as existing non-anytime GDRO methods while supporting the more practical FSQ setting.
Strengths and weaknesses
-
The paper introduces the Flexible Sample Queries (FSQ) setting, which better reflects practical scenarios where the number of queried samples can vary across training rounds. This is a natural extension of existing GDRO formulations.
-
The paper is well organized and develops the algorithm in a clean, logical manner. The reduction to a two-player game makes the overall approach easy to follow, and the roles of the OCO and PLA components are clearly separated.
-
The proposed algorithms are accompanied by high-probability regret and optimization guarantees, and the analysis demonstrates that the flexible setting can achieve the same near-optimal sample complexity as prior GDRO methods.
-
The experiment is slightly simple, consisting of one synthetic dataset and one real-world dataset. While I understand this is a theory paper, it would strengthen the paper to include one modern application.
-
The FLEX-GDRO algorithm contains many existing algorithms and components, including the proposed NPLA-EXP3, FTRL, DepRound, etc. The complexity of deployment of FLEX-GDRO might be more complicated than the previous GDRO algorithms which are comparatively simple. The practical overhead might worth discussion.
-
Minor: The font size of the result plots in the experiments can be larger.
Questions
- In section 3.1 on NPLA-EXP3, the adaptive exploration strategy uses only one sample for exploitation and all the remaining for exploration whenever . Would it be possible to give more intuition on this design choice, specifically why a single sample for exploitation suffices?
Limitations
yes
Final justification
The paper is technically solid and novel. All concerns and questions are resolved.
Formatting concerns
N/A
3 comments
Rebuttal
Thank you for the careful and constructive review of our manuscript!
W1. The experiment is slightly simple. A modern application would further strengthen the paper.
A1. Thank you for this suggestion. We add a real-world content-moderation experiment on CivilComments-WILDS using its official training, validation, and test splits [Koh et al., 2021]. The task is binary toxicity classification, aiming to identify toxic online comments while maintaining robust performance across demographic subgroups. We freeze the backbone network distilbert-base-uncased and train only a linear classification head. Following the official evaluation definition, we treat the 16 subgroups as the group distributions, which are formed by crossing eight identity attributes with the binary toxicity label .
We use the dynamic-resource protocol and run rounds. Hyperparameters for each method are selected from the same fixed candidate set according to validation performance. FLEX-GDRO and ONLINE(1) use the same initialization and sequence . We precompute the frozen DistilBERT representations once and the reported wall-clock time measures the subsequent optimization.
| Risk | Samples (FLEX-GDRO) | Samples (ONLINE(1)) | Time (FLEX-GDRO) | Time (ONLINE(1)) | Speedup |
|---|---|---|---|---|---|
| 0.68 | 69.33k | 61.35k | 4.79 s | 40.26 s | |
| 0.67 | 75.34k | 67.55k | 5.20 s | 44.34 s | |
| 0.66 | 81.36k | 77.75k | 5.62 s | 51.03 s | |
| 0.65 | 87.39k | 97.81k | 6.03 s | 64.19 s | |
| 0.64 | 101.84k | 120.00k | 7.03 s | 78.80 s |
FLEX-GDRO achieves comparable sample efficiency at the higher risk levels and requires fewer samples to reach the lower risks of and . It reaches all reported risk levels approximately - faster. This result provides a demonstration of the applicability of FLEX-GDRO to a modern real-world task. We will include this experiment in the revised manuscript.
W2. FLEX-GDRO combines several components. The practical overhead should be discussed.
A2. Thank you for raising this concern. Although FLEX-GDRO is presented using NPLA-EXP3, FTRL, and DepRound, the main additional operation relative to existing methods is the flexible group-selection procedure. Both FLEX-GDRO and existing methods can be decomposed into three operations:
- -player update. The FTRL update in Eq. (10) admits the closed-form in Eq. (12), requiring elementary operations. Updating the cumulative losses requires additional operations, which are also bounded by since . Prior GDRO methods based on OMD with entropy regularization admit an analogous closed-form update, for example, [Zhang et al., 2023]. Thus, the two approaches have the same order of computational cost for updating .
- -player update. Our method uses FTRL, whereas prior methods use OMD. We note the computational costs are comparable. Under the Euclidean regularizer, our update reduces to one projection, . Euclidean OMD reduces to a projected stochastic-gradient update, . Both require one projection and elementary operations per iteration, where is the dimension of the model. Moreover, FLEX-GDRO reuses the exploitation sample for the -player update, so no additional sample query is required.
- Group selection and sample acquisition. This is the main additional per-round computational operation introduced by FLEX-GDRO. In the uniform-exploration instantiation, the exploration set can be generated directly by standard uniform sampling without replacement. DepRound is merely one option for implementing this sampling step, requiring time and space, as detailed in Appendix E. This is of the same order as the update of the -player. In practice, the dominant per-round costs arise from sample acquisition, e.g., human review, or expert annotation in Appendix A. For a given query budget , FLEX-GDRO acquires and evaluates the same number of samples, while requiring only one gradient computation for the -player.
At the system level, assuming an existing group-indexed data-access interface, the main additional component is a lightweight scheduler that uses and to select the queried groups and dispatch the corresponding sample requests.
Overall, FLEX-GDRO adds only a lightweight group-selection step to the operations already required by existing GDRO methods. The empirical results in A1 further show that, despite these additional per-round operations, it requires substantially less wall-clock time to reach the same target risk.
W3. The font size of the result plots in the experiments can be larger.
A3. Thank you for pointing this out. We will enlarge the axis labels, legends, and tick labels in all experimental figures.
Q1. When NPLA-EXP3 receives at least two samples, it allocates only one sample to exploitation and all remaining samples to exploration. Why does a single sample for exploitation suffice?
A4. Thank you for the question. At a high level, exploitation determines which action is played in the current round, whereas exploration collects information to improve future decisions. A single draw suffices to implement this decision. Moreover, its incurred loss is an unbiased realization of the mixed-action loss, i.e., .
Additional draws allocated to exploitation would not change the arm already selected for play. By contrast, updating requires estimating the individual coordinates of the loss vector . The remaining queries are therefore more effectively allocated to exploration. Uniform sampling provides a uniform lower bound on every arm’s observation probability, thereby controlling the variance of the loss estimator and yielding the desired -dependent regret bound.
Additional References
Pang Wei Koh, Shiori Sagawa, Henrik Marklund, et al. WILDS: A Benchmark of in-the-Wild Distribution Shifts. ICML, 2021.
Thank you very much for the response! I will keep my score.
Dear Reviewer 8J5Q,
Thank you very much for your response! We appreciate your constructive feedback and will revise our paper accordingly.
Best regards,
Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for the careful and constructive review of our manuscript!
W1. It seems not exploit possible structure among groups or optimize the queried subset more directly. It would be interesting if more complex selection procedure can be introduced, if necessary.
A1. Thank you for highlighting this point. Our group-selection rule is designed for a structure-agnostic GDRO setting. Without problem-dependent information, any insufficiently explored group may become the worst group. Therefore, uniformly exploring the remaining groups is a natural way to maintain reliable coverage of all groups.
We agree that richer group-selection procedures could be beneficial when prior knowledge about group structure is available. Some examples are as follows:
Developing methods tailored to specific problem structures while supporting flexible sample queries is an interesting direction for future work.
Q1. Is the sampling rule optimal for the stated regret rate? Could a more adaptive choice of all queried groups improve the dependence on m, rt, or the logarithmic factors?
A2. Thank you for raising this question. Under our structure-agnostic assumptions, the regret rate achieved by the proposed rule has optimal polynomial dependence for fixed query budgets, up to logarithmic factors, and matches the minimax rate at the full-information endpoint.
Consider the fixed-budget partial-information case rt≡r<m. The lower bound for prediction with limited advice implies that an algorithm receiving rT observations over T rounds can incur expected regret Ω(mT/r) against an oblivious adversary [Seldin et al., 2014]. Since oblivious adversaries are a special case of our non-oblivious setting, this lower bound also applies here. Our high-probability bound O(mTlog(m)/r) therefore matches the optimal polynomial dependence on T and m/r, up to a logm factor. At the full-information endpoint r=m, all group losses are observed and NPLA-EXP3 reduces to exponential weights for prediction with expert advice. Its regret is O(Tlogm), which matches the minimax lower bound Ω(Tlogm) [Audibert and Bubeck, 2010, Table 1]. Thus, our bound matches the minimax dependence on T and m at this endpoint.
For general nonconstant sequences rt, we are not aware of a matching lower bound that captures the dependence on ∑t=1T1/rt. With additional structure, more adaptive query allocation may yield instance-dependent guarantees [Nguyen et al., 2025]. When such structure is unknown, whether the logarithmic dependence can be reduced for r<m or time-varying query budgets remains an interesting question for future work.
Additional References
Jean-Yves Audibert and Sébastien Bubeck. Regret Bounds and Minimax Policies under Partial Monitoring. JMLR, 2010.