Abstract
We study the selective learning problem introduced by Qiao and Valiant (2019), in which the learner observes $n$ labeled data points one at a time. At a time of its choosing, the learner selects a model from a class $\mathcal{L}$ and a window of length $w$ to commit to. The objective is to minimize the excess risk relative to the best model in $\mathcal{L}$ for that specific window. We provide new algorithms that achieve a doubly exponential improvement in the dependence on the model class size, moving from $O(\sqrt{|\mathcal{L}|})$ to $O(\log \log |\mathcal{L}|)$, and establish matching lower bounds.
1. Introduction
In standard online learning, a model is required to make a prediction at every time step, typically aiming to minimize regret against the best fixed model in hindsight. However, in many practical applications—such as medical diagnostics or financial trading—frequent model updates or continuous predictions are undesirable due to high stakes, operational costs, or the need for consistency.
Selective learning offers an alternative framework: the learner observes a stream of data and, at a chosen moment, "commits" to a specific model for a future window of length $w$. The goal is to minimize the excess risk, defined as the difference between the performance of the chosen model and the best possible model for that specific window. This problem is particularly challenging because the data stream may be adversarial and non-stationary, meaning the underlying distribution can shift over time.
2. Algorithmic Frameworks
This work introduces three primary algorithmic approaches to address the selective learning problem:
2.1 Hybrid Exponential Weights (Algorithm 3)
The flagship contribution of this paper is the Hybrid Exponential Weights algorithm. This method treats the data stream as a series of blocks and applies the classic Exponential Weights algorithm to a set of "experts," where each expert corresponds to a model in the class $\mathcal{L}$. While the algorithm is non-adaptive—meaning it determines the window length before observing the data—it leverages a long history of observations to inform its selection.
2.2 Bounded-Recall Exponential Weights (Algorithm 1)
This algorithm represents a more restrictive setting where the learner only considers the $w$ data points immediately preceding the prediction window. It can be viewed as a "softened" version of Empirical Risk Minimization (ERM). The authors demonstrate that this "forgetfulness" comes at a significant theoretical cost.
2.3 Generalized Mean Prediction (Algorithm 2)
As a foundational tool, this algorithm generalizes selective mean estimation to higher dimensions and complex loss functions. It utilizes Bregman divergences and a specific form of self-concordance to provide the mathematical basis for analyzing the more complex exponential weights variants.
3. Theoretical Insights
The paper provides several key insights into the nature of selective learning:
- The Power of Scale and Ramsey Theory: The core intuition is that any sufficiently long sequence of data must exhibit stability at some timescale. By identifying the timescale where moving averages are relatively stable, the algorithms can select windows with low risk.
- Doubly Exponential Improvement: The transition from an error bound of $O(\sqrt{|\mathcal{L}|})$ to $O(\log \log |\mathcal{L}|)$ is a major theoretical leap. It suggests that the complexity of the model class $|\mathcal{L}|$ is significantly less restrictive in selective learning than in standard PAC learning.
- The Bounded-Recall Penalty: Learners with limited memory (bounded recall) cannot achieve the $log log$ rate. Instead, they are limited to a slower $O(\sqrt{\log |\mathcal{L}|})$ rate, highlighting the importance of long-term data history.
- Inadequacy of VC Dimension: Unlike many areas of machine learning where VC dimension serves as a universal complexity measure, the authors show that classes with a VC dimension of 1 can remain unlearnable in the selective setting.
4. Key Results and Bounds
The paper establishes tight bounds for the expected excess risk using mathematical constructions of adversarial sequences and synthetic martingales to prove optimality:
- Optimal General Bound: The Hybrid Exponential Weights algorithm achieves an expected excess risk of $O\left(\frac{\log \log |\mathcal{L}| + \log \log n}{\log n}\right)$. This is shown to be nearly optimal through matching lower bounds.
- Bounded-Recall Bound: For memory-limited learners, the best achievable risk is $O\left(\sqrt{\frac{\log |\mathcal{L}|}{\log n}}\right)$.
- Realizable Case: In scenarios where a "perfect" model with zero loss is guaranteed to exist, the error rate improves exponentially to $O(\frac{\log |\mathcal{L}|}{n})$.
5. Conclusion and Future Work
While the proposed algorithms offer powerful theoretical guarantees, several challenges remain. Implementing these methods for massive model classes, such as deep neural networks, is computationally intensive as it requires sampling from a distribution over all models. Future research may explore whether these bounds can be maintained for infinite model classes and whether the small multiplicative gap ($\log \log n$) in certain lower bounds can be closed.
Summary updated