Abstract
Recent work of Klivans, Stavropoulos, and Vasilyan initiated the study of testable learning with distribution shift (TDS learning), where a learner is given labeled samples from training distribution $\mathcal{D}$, unlabeled samples from test distribution $\mathcal{D}’$, and the goal is to output a classifier with low error on $\mathcal{D}’$ whenever the training samples pass a corresponding test. Their model deviates from all prior work in that no assumptions are made on $\mathcal{D}’$. Instead, the test must accept (with high probability) when the marginals of the training and test distributions are equal. Here we focus on the fundamental case of intersections of halfspaces with respect to Gaussian training distributions and prove a variety of new upper bounds including a $2^{(k/\epsilon)^{O(1)}} \mathsf{poly}(d)$-time algorithm for TDS learning intersections of $k$ homogeneous halfspaces to accuracy $\epsilon$ (prior work achieved $d^{(k/\epsilon)^{O(1)}}$). We work under the mild assumption that the Gaussian training distribution contains at least an $\epsilon$ fraction of both positive and negative examples ($\epsilon$-balanced). We also prove the first set of SQ lower-bounds for any TDS learning problem and show (1) the $\epsilon$-balanced assumption is necessary for $\mathsf{poly}(d,1/\epsilon)$-time TDS learning for a single halfspace and (2) a $d^{\tilde{\Omega}(\log 1/\epsilon)}$ lower bound for the intersection of two general halfspaces, even with the $\epsilon$-balanced assumption. Our techniques significantly expand the toolkit for TDS learning. We use dimension reduction and coverings to give efficient algorithms for computing a localized version of discrepancy distance, a key metric from the domain adaptation literature.
Introduction
In real-world machine learning deployments, models often encounter distribution shift, where the data seen during inference (test distribution) differs significantly from the training data. Traditional domain adaptation techniques attempt to address this by measuring the "discrepancy distance" between distributions. However, calculating this distance is computationally intractable (NP-hard) for most complex classifier classes.
To overcome these hurdles, the Testable Learning with Distribution Shift (TDS) framework was introduced. In TDS, a learner receives labeled training data and unlabeled test data. The learner must either output a classifier with guaranteed low error on the test distribution or "reject" the test set. This paper focuses on the fundamental geometric problem of learning the intersection of $k$ halfspaces under this framework, addressing the prohibitively slow runtimes of previous algorithms and establishing the first fundamental limits of the field.
Methodology
The authors develop improved upper bounds using a two-stage algorithmic strategy:
- Dimension Reduction via Subspace Retrieval: The algorithm utilizes techniques like Principal Component Analysis (PCA) on the training data to identify a low-dimensional subspace containing the "normal vectors" that define the halfspaces. This reduces the problem's complexity from the high dimension $d$ to the much smaller $k$.
- Covering and Localized Testing: Rather than searching the entire space of intersections, the authors construct a small "cover" (a finite set of candidate hypotheses). They then apply a local disagreement tester on the unlabeled test data. This tester verifies if candidate hypotheses behave similarly on the new distribution, allowing the learner to safely select a high-performing candidate from the training phase.
To explore computational limits, the authors utilize the Statistical Query (SQ) model. By reducing hard problems from Non-Gaussian Component Analysis (NGCA) to the TDS task, they identify "computational walls" that define where learning becomes fundamentally difficult.
Algorithmic Improvements
The paper delivers a major efficiency boost for TDS learning. For $k$ homogeneous halfspaces, the runtime is improved from $d^{\text{poly}(k/\epsilon)}$ to $2^{\text{poly}(k/\epsilon)} \cdot \text{poly}(d)$, making the dependence on the dimension $d$ polynomial rather than exponential. For "non-degenerate" cases where halfspaces are not nearly parallel, the algorithms are even faster, nearly matching the best-known bounds for traditional PAC learning.
Statistical Query Lower Bounds
A cornerstone of this research is the establishment of the first SQ lower bounds for TDS learning. These bounds highlight a fundamental "price" paid for distribution shift that does not exist in standard learning settings. A key finding is the complexity jump at $k=2$: while a single halfspace is efficient to learn, the intersection of just two general halfspaces has a super-polynomial lower bound ($d^{\Omega(\log 1/\epsilon)}$), even with balanced data.
Key Insights
- The Power of Localization: The authors demonstrate that computing global discrepancy distance is unnecessary. By creating a small "cover" of the solution space, discrepancy only needs to be estimated relative to that specific set, which is computationally feasible.
- The "Balance" Requirement: Efficiency even for a single halfspace requires the training data to be "balanced" (containing a reasonable fraction of both positive and negative examples). Without this, the problem becomes exponentially harder.
Limitations and Future Work
While these results significantly advance the field, several open questions remain. The current positive results rely on a Gaussian training distribution; extending these "testable" guarantees to broader classes, such as log-concave distributions, is a primary goal for future research. Additionally, there remains a gap between the quasi-polynomial lower bounds and current algorithms for general intersections. Finally, extending TDS learning from the "realizable" case to "agnostic" learning (handling noisy data) represents a critical next step for practical applications.
Summary updated