Abstract
This paper introduces the first provably efficient algorithms for learning neural networks in regression settings under distribution shift. By extending the "Testable Learning" framework, we provide a method that either guarantees low error on an arbitrary test distribution or detects and rejects the shift. Our approach utilizes a novel spectral tester based on kernel methods and leverages polynomial approximation theory to handle the nonconvexity of neural networks with Lipschitz activations. We provide concrete runtime guarantees for several architectures, including Sigmoid and ReLU networks, under both bounded and subgaussian distributions.
Introduction
In real-world machine learning, the training distribution often differs significantly from the test distribution encountered in production. This "distribution shift" can cause models to fail unpredictably. Traditional domain adaptation research offers theoretical bounds based on the distance between distributions, but these often lack efficient algorithms or require restrictive assumptions about the test data.
This work operates within the Testable Learning with Distribution Shift (TDS learning) framework. In this paradigm, a learner must either:
- Output a hypothesis with a provable guarantee on the test error.
- Reject the task if the distribution shift is so severe that a guarantee cannot be made.
While previous TDS research focused on classification, this paper tackles the more complex problem of nonconvex regression for neural networks with Lipschitz activations (e.g., Sigmoid and ReLU), where loss functions are unbounded and optimization is challenging.
Methodology
1. Kernelized TDS Learning
The major technical innovation is the integration of classical kernel methods into the TDS framework. We construct a data-dependent feature map $\phi$ using samples from both training and test distributions. A "Spectral Tester" then compares the covariance matrices of these features. If the test distribution's covariance is "covered" by the training distribution's covariance—a property known as multiplicative spectral closeness—the error bounds are guaranteed to transfer from training to test.
2. Polynomial Approximation
To address the nonconvexity of neural networks, we employ polynomial approximation theory. We demonstrate that for broad classes of networks, low-degree polynomials can uniformly approximate the network's behavior. By "kernelizing" these polynomial expansions, we avoid the "curse of dimensionality" typically associated with high-degree feature maps. The algorithm essentially solves a kernelized polynomial regression problem on the training data and uses the spectral test on unlabeled test data to certify the result.
Key Results and Runtime Analysis
The paper provides concrete runtime guarantees for several neural network architectures, demonstrating that efficient learning is possible even under shift. Notably, for one-hidden-layer Sigmoid networks, we achieve a fully polynomial-time algorithm for bounded training distributions.
As shown in the table above, the runtimes vary based on the architecture and the nature of the distribution:
- One-Hidden-Layer Sigmoid Networks: Fully polynomial in dimension $d$, label bound $M$, and error $1/\epsilon$ for bounded distributions.
- Single ReLU Neurons: Efficient algorithms even for training distributions with sub-exponential tails, matching the best-known runtimes for standard agnostic learning.
- Deep Lipschitz Nets: Results extend to networks of any constant depth $t$, with runtimes scaling exponentially with depth but polynomially with dimension.
Discussion and Limitations
While this work provides a significant step forward in certifiable learning, several challenges remain:
- Constant Depth: The current algorithms are efficient for networks of constant depth. As depth increases, the degree of the approximating polynomial grows, leading to increased computational costs.
- Label Bounds: We prove that some assumptions on the moments of the test labels are mathematically necessary; one cannot have a "free lunch" where test labels are completely arbitrary and unbounded.
- Hypercontractivity: The training distribution must satisfy hypercontractivity to ensure the spectral test does not produce excessive false rejections.
Future research may explore whether these techniques can be applied to more complex architectures like Transformers or if the exponential dependence on depth can be mitigated for specific sub-classes of networks.
Summary updated