Organizations: National Key Laboratory for Novel Software Technology, Nanjing University, China · School of Artificial Intelligence, Nanjing University, China · John Hopcroft Center, Shanghai Jiao Tong University, China · Thomas Lord Department of Computer Science, University of Southern California, USA
Group distributionally robust optimization (GDRO) aims to learn models that perform well across m distributions simultaneously. Existing methods either (i) query m 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 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 O(t1∑j=1trjmlogm), where rj is the sample size at round j. This result demonstrates that the optimization error decreases as the per-round sample sizes increase, and implies the same near-optimal sample complexity of O(mlog(m)/ε2) for any fixed sample size r∈[m].
Figures & tables
Figure 1
Risk (Synthetic)
Time ( Online ( 1 ))
Time ( Flex-GDRO )
Speedup
Risk (Diabetes)
Time ( Online ( 1 ))
Time ( Flex-GDRO )
Speedup
0.525
98.192
9.107
10.78
0.99
4.842
0.569
8.50
0.52
129.708
12.129
10.69
0.985
6.479
0.876
7.39
0.515
175.201
15.152
11.56
0.98
9.406
1.236
7.61
0.51
256.080
21.191
12.08
0.975
13.495
1.902
7.09
0.505
432.405
33.274
13.00
0.97
22.839
3.488
6.55
0.5
1123.537
108.804
10.33
0.965
51.470
8.710
5.91
Table 1: Comparison of Online ( 1 ) and Flex-GDRO on the synthetic and diabetes datasets. The experiments use five independent runs. Time is measured in seconds. Speedup is the runtime ratio of Online ( 1 ) to Flex-GDRO for achieving the same risk. Gray shading highlights Flex-GDRO .
Figure 3
Risk
Samples ( Online ( 1 ))
Samples ( Flex-GDRO )
Time ( Online ( 1 ))
Time ( Flex-GDRO )
Speedup
0.68
61.35k
69.33k
40.26
4.79
8.40
0.67
67.55k
75.34k
44.34
5.20
8.52
0.66
77.75k
81.36k
51.03
5.62
9.08
0.65
97.81k
87.39k
64.19
6.03
10.64
0.64
120.00k
101.84k
78.80
7.03
11.20
Table 2: Comparison of Online ( 1 ) and Flex-GDRO on CivilComments-WILDS. Time is measured in seconds. Speedup is the runtime ratio of Online ( 1 ) to Flex-GDRO for achieving the same risk. Gray shading highlights Flex-GDRO .
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Risk
Samples ( ×103 ) ( Online ( 1 ))
Samples ( ×103 ) ( Flex-GDRO )
Time ( Online ( 1 ))
Time ( Flex-GDRO )
Speedup
0.98
52.06±0.65
63.43±3.33
78.45±0.90
23.61±0.94
3.32
0.95
71.22±1.19
73.78±3.81
106.50±1.69
27.46±1.18
3.88
0.94
79.53±0.30
79.51±5.01
118.76±0.54
29.48±1.65
4.03
0.93
89.73±1.68
83.68±6.89
133.66±2.70
31.00±2.37
4.31
Appendix
Table 3: Comparison of Online ( 1 ) and Flex-GDRO on FEMNIST with 100 writer groups under dynamic resources. Entries are mean ± sample standard deviation over five seeds at the first saved checkpoint reaching each threshold. Time is measured in seconds for head optimization. Speedup is the ratio of mean optimization times of Online ( 1 ) to Flex-GDRO for achieving the same risk. Gray shading highlights Flex-GDRO .
m/r
m
r
T=1,000
T=5,000
T=10,000
T=20,000
5
50
10
2.476±0.133
2.586±0.081
2.680±0.092
2.688±0.130
5
100
20
2.502±0.009
2.669±0.038
2.694±0.048
2.703±0.073
5
200
40
2.525±0.081
2.646±0.038
2.691±0.082
2.730±0.107
10
50
5
5.464±0.111
5.687±0.160
5.932±0.194
6.060±0.225
10
100
10
5.538±0.159
5.927±0.115
5.925±0.064
6.066±0.090
10
200
20
5.751±0.053
5.862±0.147
6.043±0.138
6.044±0.214
Appendix
Table 4: Empirical qt -weighted variance Vq,t of the loss estimator on synthetic data. Entries are mean ± standard deviation over five seeds.
m/r
m
r
T=1,000
T=5,000
T=10,000
T=20,000
5
50
10
2.537±0.127
2.635±0.068
2.725±0.069
2.739±0.136
5
100
20
2.549±0.010
2.682±0.054
2.719±0.049
2.747±0.076
5
200
40
2.534±0.049
2.667±0.041
2.693±0.057
2.753±0.109
10
50
5
5.597±0.092
5.961±0.239
6.146±0.174
6.228±0.250
10
100
10
5.690±0.205
6.099±0.140
6.088±0.084
6.181±0.153
10
200
20
5.801±0.054
5.966±0.091
6.134±0.141
6.217±0.232
Appendix
Table 5: Unweighted mean per-coordinate variance Vt of the loss estimator on synthetic data. Entries are mean ± standard deviation over five seeds.
m/r
m
r
T=1,000
T=5,000
T=10,000
T=20,000
5
50
10
0.220±0.012
0.189±0.009
0.180±0.013
0.183±0.011
5
100
20
0.212±0.003
0.194±0.008
0.179±0.006
0.177±0.012
5
200
40
0.218±0.010
0.192±0.007
0.190±0.019
0.183±0.007
10
50
5
0.213±0.004
0.192±0.012
0.180±0.010
0.183±0.015
10
100
10
0.218±0.011
0.191±0.012
0.180±0.008
0.172±0.012
10
200
20
0.213±0.005
0.189±0.005
0.180±0.011
0.182±0.009
Appendix
Table 6: Mean per-coordinate variance of the w -player stochastic gradient on synthetic data. Entries are mean ± standard deviation over five seeds.
(pi,pj)={(pi+α,pj−α) with probability α+ββ(pi−β,pj+β) with probability α+βα
State Key Laboratory of Novel Software Technology, Nanjing University · School of Artificial Intelligence, Nanjing University · School of Software Technology, Zhejiang University