Optimal Deterministic Coresets for Ridge Regression

Praneeth Kacham, David P. WoodruffAISTATS 2020

Abstract: We consider the ridge regression problem, for which we are given an $n \times d$ matrix $A$ of examples and a corresponding $n \times d'$ matrix $B$ of labels, as well as a ridge parameter $\lambda \geq 0$. We seek to find a small, weighted subset of the data—a coreset—that accurately approximates the solution to the original problem. This work introduces a deterministic algorithm to construct optimal-sized coresets for ridge regression, achieving a size of $O(sd_\lambda/\epsilon)$, where $sd_\lambda$ is the statistical dimension. We prove this bound is asymptotically tight and demonstrate its utility in distributed computing environments.

Introduction

In the era of massive datasets, training machine learning models often requires significant computational and communication resources. One powerful technique for managing this scale is the construction of a coreset: a small, weighted subset of the original data points that, when trained upon, yields a model nearly identical (within a $1+\epsilon$ error margin) to one trained on the full dataset.

While randomized algorithms for building coresets in linear and ridge regression are well-established, they carry a non-zero probability of failure. Deterministic algorithms are highly desirable because they allow for reliable composition in distributed networks without compounding errors and support adaptive data generation. Prior to this research, deterministic protocols for ridge regression were suboptimal, requiring coreset sizes proportional to $1/\epsilon^2$ or $d^2$. This paper addresses the open question: Can we deterministically find a coreset whose size scales linearly with $1/\epsilon$ and the statistical dimension of the data?

Methodology: Beyond the $1/\epsilon^2$ Barrier

The authors build their approach on the Batson, Spielman, and Srivastava (BSS) algorithm, a landmark technique in spectral graph sparsification. A naive application of BSS to regression—concatenating the feature matrix $A$ and label matrix $B$—results in a coreset size of $O(d/\epsilon^2)$, which is inefficient for high-precision requirements.

To achieve optimality, the authors introduce a novel framework:

  1. Augmented Matrices: They construct a specialized augmented matrix that incorporates the regularization parameter $\lambda$ directly into the sparsification process.
  2. Approximate Matrix Multiplication: By framing coreset selection through the lens of approximate matrix multiplication rather than standard subspace embeddings, the authors successfully reduce the size requirement from $O(1/\epsilon^2)$ to $O(1/\epsilon)$.
  3. Subspace Embedding Extraction: This method allows the extraction of a subspace embedding from the augmented matrix that respects the statistical dimension of the problem rather than the raw feature count.

Key Insights

The Statistical Dimension ($sd_\lambda$)

A central insight of this work is that the required coreset size does not depend on the raw number of features $d$, but on the statistical dimension ($sd_\lambda$). As the ridge regularization parameter $\lambda$ increases, the influence of less significant singular values in the data matrix diminishes. This effectively shrinks the "effective dimension" of the problem, allowing for much smaller coresets as regularization becomes more aggressive.

Mergeability and Distributed Systems

These deterministic coresets are inherently "mergeable." In a distributed setting where data is partitioned across multiple servers, each server can independently compute a coreset and send it to a central coordinator. Because these coresets preserve the sparsity of the original data, the communication overhead is significantly reduced compared to sending full covariance matrices, especially for sparse datasets where the number of non-zero entries per row is small.

Main Results

The paper establishes two primary theoretical results that define the limits of data compression for ridge regression:

  • Optimal Upper Bound: The authors provide a deterministic algorithm that finds an $\epsilon$-coreset of size $O((sd_\lambda + d')/\epsilon)$ for multiple-response ridge regression (where $d'$ is the label dimension). For standard linear regression ($\lambda = 0$), this simplifies to $O(d/\epsilon)$.
  • Matching Lower Bound: The authors prove a matching lower bound, demonstrating that any row-subsetting algorithm must select at least $\Omega(sd_\lambda/\epsilon)$ rows to maintain a $1+\epsilon$ approximation. This confirms that the proposed algorithm is asymptotically optimal.

Furthermore, the authors describe a distributed protocol requiring only $O(s \cdot t \cdot (\min(s \cdot sd_\lambda(A), \text{rank}(A)) + d')/\epsilon)$ words of communication per server, where $s$ is the number of servers and $t$ is the maximum number of non-zero entries per row.

Conclusion and Limitations

This work provides a definitive answer to the complexity of deterministic coreset construction for ridge regression. By reaching the $O(1/\epsilon)$ threshold, the authors have closed the gap between known upper bounds and the mathematical limits of the problem.

However, as a theoretical contribution, the paper focuses on asymptotic optimality rather than empirical performance. The BSS algorithm, while polynomial-time, is computationally intensive (often $O(nd^3)$), which may limit its direct application to massive datasets without further optimization. While the size of the resulting coreset is optimal, the time required to compute it remains a challenge for future algorithmic refinement.

Summary updated

BibTeX
@inproceedings{kacham2020optimal,
  author = {Praneeth Kacham and David P. Woodruff},
  title = {{Optimal Deterministic Coresets for Ridge Regression}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=B1-6e4Zr5t9},
}
Figure