Abstract
This paper bridges the gap between sample compression and PAC-Bayesian theory to provide tighter generalization bounds for classification algorithms. By refining the definition of "compression," we derive new error bounds for both zero-error and "lossy" (non-zero empirical risk) scenarios. Notably, we show that the Perceptron’s performance can be bounded by the margin an SVM would have achieved on the same data. Our results emphasize that invariance and sparsity are fundamental drivers of generalization.
Introduction
In machine learning theory, the primary objective is to bound the prediction error on unseen data based on training performance. Classical approaches, such as Vapnik-Chervonenkis (VC) theory, often yield loose bounds because they assume a fixed hypothesis space and focus on worst-case scenarios. This paper addresses these limitations by focusing on sample compression.
The intuition behind sample compression is that if a learning algorithm can "compress" a large training set into a small subset of representative examples (e.g., Support Vectors) and still reconstruct the same classifier, it is less likely to have overfit. We extend this intuition by integrating it with PAC-Bayesian theory to handle data-dependent hypothesis spaces and online learning mistake bounds.
Theoretical Framework
We introduce several refinements to existing compression and PAC-Bayesian theories:
Refined Compression Schemes
We distinguish between permutation and repetition invariant schemes and non-invariant ones. Invariant schemes, where the order of data does not affect the resulting classifier, yield tighter bounds because they require fewer "bits" to describe the compression set.
Lossy Compression and Online-to-Batch Conversion
To handle "unrealizable" cases where the model makes training errors, we utilize Hoeffding’s inequality and double stratification. Furthermore, we interpret "mistake bounds" from online learning as a form of compression. If an algorithm only updates upon making a mistake, the examples triggering those updates constitute the "compression set."
Data-Dependent PAC-Bayes
Unlike standard PAC-Bayesian theory which requires a fixed prior over a hypothesis space, we define a prior over the expansion coefficients ($\alpha$) of kernel classifiers. This allows for bounding the error of classifiers built directly from training data, even when the kernel function is not positive definite or symmetric.
Theoretical Examples and Case Studies
To illustrate these concepts, we analyze the Perceptron, Support Vector Machines (SVM), and $K$-Nearest Neighbors (KNN).
As shown in the conceptual illustration above, kernel classifiers can adapt to the geometry of the data. Our analysis reveals that the Perceptron possesses a "hidden" margin; its prediction error is bounded by a term involving $(R/\gamma^*)^2$, where $R$ is the data radius and $\gamma^*$ is the maximum margin achievable by an SVM on that data.
Key Results
- PAC Compression Bounds (Theorems 1 & 2): We provide tighter bounds for both consistent and inconsistent classifiers. The error scales with $\frac{d \log(m/d)}{m-d}$, where $d$ is the size of the compression set and $m$ is the sample size.
- Mistake-to-PAC Pipeline (Theorem 3): We establish a formal method to convert online learning mistake bounds into batch-mode generalization bounds.
- The Value of Invariance: We formalize why SVMs often outperform Perceptrons theoretically: the SVM's invariance to example ordering effectively reduces the space of possible outcomes, leading to a tighter generalization guarantee.
Discussion and Limitations
While these bounds are highly effective for "sparse" models where the compression set size $d$ is much smaller than the sample size $m$, they become "trivial" (greater than 1) for dense models. A significant open question remains regarding how to prove PAC-Bayesian bounds for data-dependent hypotheses that are not sparse. Additionally, selecting an optimal prior over expansion coefficients that reflects real-world distributions remains a challenge for practical application.
Summary updated