Agnostic Sample Compression for Linear Regression

Steve Hanneke, Aryeh Kontorovich, Menachem Sadigurschi

Abstract

This paper investigates the feasibility of agnostic sample compression for regression tasks, a domain previously thought to be largely resistant to such techniques. While exact compression is known to be impossible for standard $\ell_2$ loss in linear regression, we demonstrate that $\alpha$-approximate compression is widely achievable for general function classes with finite fat-shattering dimension. Furthermore, we identify specific cases, namely $\ell_1$ and $\ell_\infty$ losses, where exact compression of size $O(d)$ is possible for linear regression. These results bridge a significant gap in learning theory between classification and regression, providing the first positive results for agnostic sample compression in continuous settings.

Introduction

In machine learning theory, sample compression is a powerful concept suggesting that a "good" hypothesis can be reconstructed from a tiny fraction of the original training data. For binary classification, this relationship is well-established: if a concept class has a finite VC-dimension, there exists a small subset of examples that defines the best-performing classifier.

However, extending this to regression—where we predict continuous values—has proven difficult, particularly in the agnostic setting. In this scenario, we do not assume the model class contains the "true" function; instead, we seek a model that performs nearly as well as the best possible one in our class. Previous research reached a "starkly negative" conclusion for the standard $\ell_2$ (squared) loss, proving that no constant-size exact compression scheme exists for linear regression. This work challenges that conclusion by asking whether sample compression for regression is fundamentally broken or if the focus on exact $\ell_2$ compression has been too narrow.

Methodology

The authors approach the problem through two primary algorithmic frameworks designed for general function classes and linear models, respectively.

1. General Function Classes: Boosting and Sparsification

For any real-valued function class with a finite fat-shattering dimension (the regression analogue of VC-dimension), the authors propose Algorithm 1. This method employs a boosting-style approach to combine "weak" learners—each trained on a tiny subset of data—into a strong ensemble. To ensure the final compressed set size remains independent of the total number of training examples ($m$), they apply a sparsification step. This proves that for any learnable real-valued class, an approximate compression scheme exists.

2. Linear Regression: SVM Reduction and Linear Programming

For linear models, the authors introduce Algorithm 2, which discretizes continuous labels into a grid, effectively treating the regression problem as a realizable binary classification task. This allows the use of Support Vector Machines (SVMs) to identify a small set of "support vectors" that compress the dataset.

Furthermore, for $\ell_1$ (absolute error) and $\ell_\infty$ (maximum error) losses, the authors frame the optimization as a Linear Program (LP). By analyzing the extreme points of the resulting geometric polytopes, they demonstrate that the optimal solution is always "pinned" by a small number of specific data points, enabling exact compression.

Key Insights: The Geometry of Loss

The most significant insight of this work is that the choice of loss function ($\ell_p$) dictates the feasibility of exact compression.

  • Exact Compression ($\ell_1, \ell_\infty$): For $p=1$ and $p=\infty$, the optimal solution is determined by a few critical points. In $\ell_\infty$, these are the points furthest from the regression line; in $\ell_1$, they are the points the line passes through.
  • Impossibility of Exact Compression ($\ell_2$): For $p=2$ (squared error) or any $p \in (1, \infty)$, the optimal solution is influenced by the gradient of every point in the dataset. Consequently, no constant-size subset can exactly replicate the global optimum.
  • The Path of Approximation: While exact compression fails for $\ell_2$, the authors show that $\alpha$-approximate compression—where the reconstructed model is within an error $\alpha$ of the optimal—is always possible with a bounded number of points.

Key Results

The paper's theoretical findings are summarized in the table below, comparing various problem setups and their corresponding compression sizes.

Summary of sample compression results for various problem setups, highlighting the distinction between exact and approximate compression across different loss functions.

As shown in the results, the authors proved that for $\ell_1$ and $\ell_\infty$ losses, an exact compression of size $O(d)$ exists. For other $\ell_p$ losses, they provided an approximate scheme of size $O(d \log(p/\alpha))$. Crucially, for general regression, they constructed the first generic approximate compression scheme where the size is notably independent of the sample size $m$.

Conclusion and Future Work

This research provides a new foundation for understanding sample compression in regression. By shifting the focus from exact to approximate compression and identifying the unique properties of $\ell_1$ and $\ell_\infty$ losses, the authors have shown that compression is a much broader phenomenon than previously believed.

A primary limitation of the generic scheme (Algorithm 1) is its exponential dependence on the fat-shattering dimension. Future work remains to determine if this can be improved to a polynomial dependence. Additionally, the authors pose a regression version of Warmuth’s sample compression conjecture: Does every function class admit an $\ell_1$ exact compression scheme of size equal to its pseudo-dimension? Solving this would finalize the bridge between classification and regression theory.

Summary updated

BibTeX
@misc{hanneke2018agnostic,
  author = {Steve Hanneke and Aryeh Kontorovich and Menachem Sadigurschi},
  title = {{Agnostic Sample Compression for Linear Regression}},
  year = {2018},
  eprint = {1810.01864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.01864},
}
Figure