Abstract
Logistic regression is a fundamental tool for classification, but its scalability is challenged by massive datasets. Coresets—small, weighted subsets of data—offer a solution by acting as efficient proxies. This paper explores the theoretical limits of coresets for logistic regression, introducing a new complexity measure $\mu(X)$ and a novel "square root" leverage score sampling scheme. We demonstrate that while sublinear coresets are impossible in the worst case, they are achievable for "well-behaved" data, with empirical results showing significant improvements in error and stability over existing methods.
Introduction
Logistic regression remains the workhorse of modern classification. However, as datasets grow into the millions or billions of samples, even efficient optimization algorithms face significant latency. A popular strategy for scaling is the use of coresets: small, weighted subsets of the original data that serve as a proxy. A successful coreset allows for model training on a fraction of the data while maintaining near-identical performance to the full dataset.
In this work, Alexander Munteanu and colleagues provide a rigorous framework for coresets in logistic regression. They reveal why this problem is fundamentally harder than linear regression and propose a solution based on the "complexity" of the data.
The Challenge of Data Reduction
Standard data reduction techniques, such as uniform sampling, often fail for logistic regression. They risk missing "rare" but influential points—those near the decision boundary that define the model's parameters.
While coresets for linear regression (using $\ell_2$ squared loss) are well-understood, the log-likelihood loss of logistic regression behaves differently: it is roughly linear for poorly predicted points and decays exponentially for correctly predicted ones. This mismatch prevents standard importance sampling techniques, like those based on leverage scores, from translating directly. The authors first set out to determine if sublinear coresets (where the number of points $k \ll n$) are even theoretically possible for this loss function.
Methodology: $\mu(X)$ and QR-Sampling
The paper's approach is three-pronged:
- Impossibility Proof: Using a reduction from the "INDEX" communication game, the authors prove that in a 2D space, a sublinear coreset cannot exist for every possible dataset. This establishes that we must move beyond worst-case analysis and consider data structure.
- The $\mu(X)$ Complexity Measure: They introduce $\mu(X)$, a measure quantifying how "hard" a dataset is to compress. Statistically, $\mu(X)$ relates to the ratio of correctly predicted odds to incorrectly predicted odds. High values occur with extreme class imbalance or perfect separability—scenarios where logistic regression often faces methodological issues.
- Sensitivity Sampling with a Twist: The authors propose a sampling distribution that mixes uniform sampling with a novel "square root" leverage score sampling (QR-sampling). While standard approaches sample proportional to leverage scores (optimal for $\ell_2$ regression), QR-sampling is specifically designed to handle the $\ell_1$-like linear regime of the logistic loss function.
Empirical Evaluation
The authors evaluated the QR-sampling algorithm against uniform sampling and $k$-means-based sensitivity sampling on three real-world benchmarks: Webb Spam (350k samples), Covertype (581k samples), and KDD Cup ’99 (494k samples).
Key Results and Insights
- Theoretical Bounds: For data with bounded $\mu(X)$, the authors provide a recursive algorithm producing a coreset of size $O(\text{poly}(\mu, d, \epsilon^{-1}) \cdot \log^c n)$. This is the first result achieving polylogarithmic dependence on the number of data points $n$, a significant step forward for sublinear data reduction.
- Empirical Superiority: As shown in the experimental results, QR-sampling (the red line) consistently achieves lower mean relative log-likelihood error than both uniform and $k$-means baselines across all tested sample sizes and running times.
- Stability and Efficiency: The method demonstrates significantly lower variance in error across multiple runs, indicating higher reliability for downstream optimization. Furthermore, the algorithm is "input-sparsity" time efficient, making it suitable for massive, sparse datasets.
- The Statistical Meaning of $\mu(X)$: If a dataset has a massive $\mu(X)$, the classes are almost perfectly separated. In such cases, the "importance" of a single point can be infinitely high, making compression impossible without losing critical information.
Conclusion and Future Work
By moving "beyond worst-case analysis," the authors provide a practical and theoretically grounded path forward for compressing logistic regression datasets. While computing the exact value of $\mu(X)$ remains a challenge, the QR-sampling heuristic provides immediate benefits in accuracy and stability. Future work may focus on bridging the gap between the theoretical recursive algorithm and the simpler "base" version used in current practical implementations.
Summary updated