cs.LGOct 11, 2026

Sample-Optimal Multi-Group Learning with an ERM Oracle

Authors: Princewill Okoroafor

Organizations: Harvard University

Abstract

In multi-group learning, a single predictor must perform nearly as well as the best hypothesis in a class on every group in a rich, possibly infinite and overlapping, collection of subpopulations. The known algorithms with the optimal sample complexity keep track of every pair of a group and a hypothesis, which is impossible for the large classes of interest, and the known oracle-based algorithms have a worse rate. We ask whether the optimal rate can be attained by a learner that accesses the classes only through an empirical risk minimization (ERM) oracle. We give an algorithm that uses O~((dG+dH)/ε2)\tilde{O}((d_G+d_H)/\varepsilon^2) samples and polynomially many calls to a weighted ERM oracle over pairs of a group and a hypothesis, where dGd_G and dHd_H are the VC dimensions of the group and hypothesis classes and ε\varepsilon bounds the excess risk on every group, weighted by its probability. We also show a matching lower bound of Ω((dG+dH)/ε2)Ω((d_G+d_H)/\varepsilon^2) samples for every learner even with unlimited computation, so oracle efficiency costs no additional samples. We also consider a natural special case in which every input belongs to at most kk groups and these groups can be listed. In this case, an ERM oracle for the hypothesis class alone suffices, with O~((dH+log⁡k)/ε2)\tilde{O}((d_H+\log k)/\varepsilon^2) samples in the agnostic setting and O~((dH+log⁡k)/ε)\tilde{O}((d_H+\log k)/\varepsilon) samples when every group has a hypothesis that is correct on it.

Explore similar work

Mar 24, 2026

A One-Inclusion Graph Approach to Multi-Group Learning

We prove the tightest-known upper bounds on the sample complexity of multi-group learning. Our algorithm extends the one-inclusion graph prediction strategy using a generalization of bipartite bb-matching. In the group-realizable setting, we provide a lower bound confirming that our algorithm's log⁡n/n\log n / n convergence rate is optimal in general. If one relaxes the learning objective such that the group on which we are evaluated is chosen obliviously of the sample, then our algorithm achieves the optimal 1/n1/n convergence rate under group-realizability.
Oct 9, 2026

The Sample Complexity of Multicalibration with an ERM Oracle

A predictor is multicalibrated with respect to a class of subpopulations (formally, of functions on the inputs, called auditors) if, for every subpopulation in the class and every value the predictor outputs, the average outcome among the members of that subpopulation who receive that value is close to the value itself. For finite classes, about ε−3\varepsilon^{-3} samples are necessary and sufficient to learn a predictor with multicalibration error ε\varepsilon, but the algorithms that attain this rate enumerate the class, which is impossible for the large classes of interest. We ask how many samples suffice when the learner accesses the class only through an empirical risk minimization (ERM) oracle. We give an algorithm that uses O~(d/ε3)\tilde{O}(d/\varepsilon^{3}) samples and polynomially many ERM calls, where dd is the VC dimension of the class. Its dependence on ε\varepsilon is optimal for all learners. When dd is at least about 1/ε1/\varepsilon, every learner that can only access the class through polynomially many ERM calls needs Ω~(d/ε3)\tildeΩ(d/\varepsilon^{3}) samples. Learners with unlimited computation need only O~(ε−3+dε−2)\tilde{O}(\varepsilon^{-3}+d\varepsilon^{-2}) samples, so the extra factor 1/ε1/\varepsilon on the dimension term is the price of oracle efficiency. For swap multicalibration, which allows a different function from the class for each predicted value, Θ~(d/ε3)\tildeΘ(d/\varepsilon^{3}) samples are necessary and sufficient. For estimating the error of a given predictor, the ordinary notion is the harder one: the swap error can be estimated with an ERM oracle, whereas the ordinary error is NP-hard to approximate even for classes with linear-time ERM. Consequently, there are classes for which it is computationally easier to learn a multicalibrated predictor than to compute the multicalibration error of a given predictor.
Jun 3, 2026

The price of multi-group transductive learning

We show every multi-group learner in the transductive setting may incur a multiplicative penalty in its error rate on some group relative to the error rate achievable in the single-group setting, and the penalty can increasing linearly with the number of groups, up to roughly the square-root of the sample size. This stands in stark contrast to optimal multi-group learners in an analogous (group-realizable) statistical setting, where the penalty is always at most logarithmic in the sample size and independent of the number of groups.