Importance Sampling via Local Sensitivity

Anant Raj, Cameron Musco, Lester Mackey

Introduction

In modern machine learning, optimization often involves minimizing a loss function $F(x)$ that is the sum of millions of individual losses. As datasets scale, processing every data point in every iteration becomes computationally prohibitive. Subsampling—selecting a representative subset of data—is a standard solution. However, traditional methods like uniform random sampling or global sensitivity sampling often fall short. Uniform sampling ignores the varying importance of data points, while global sensitivity is often too pessimistic and computationally expensive to calculate.

This paper introduces local sensitivity, a refinement of importance sampling that calculates data point importance within a small local neighborhood rather than across the entire search space. This approach provides a subsampling strategy that is both theoretically sound and practically efficient, consistently outperforming standard baselines.

The Problem with Global Sensitivity

The "gold standard" for smart subsampling has long been sensitivity sampling, which weights points by their maximum possible influence on the objective function. Despite its theoretical appeal, it suffers from two major flaws:

  1. Computability: Determining global sensitivity requires solving a difficult maximization problem over the entire domain for every data point.
  2. Pessimism: Global sensitivity is a worst-case metric. A point might be flagged as highly important because it matters in a distant, irrelevant part of the search space, even if it has no impact near the actual optimum. This leads to "vacuous" bounds where theory suggests one must sample nearly the entire dataset to ensure accuracy.

Methodology: Local Sensitivity Sampling

To overcome these hurdles, the authors propose measuring a point's importance within a local ball around the current iterate $x_0$. By restricting the scope, the algorithm ignores irrelevant "worst-case" scenarios that never occur near the solution.

Key Technical Components

  • Quadratic Approximation: The local loss function is approximated using a second-order Taylor expansion.
  • Leverage Score Connection: The authors demonstrate that the local sensitivity of this quadratic approximation can be bounded using statistical leverage scores. This bridges abstract sensitivity theory with high-performance numerical linear algebra, as leverage scores can be computed rapidly via sketching techniques.
  • Approximate Proximal Point Method (APPM): This sampling is integrated into an iterative framework. In each step, the algorithm defines a local ball, computes sensitivities via leverage scores, subsamples the data, and minimizes the resulting proxy function to find the next iterate.

Experimental Results

The authors evaluated their approach using logistic regression with $\ell_2$ regularization across several datasets, including synthetic non-uniform clusters, the UCI Letter Recognition dataset, the Magic04 Gamma Telescope dataset, and MNIST.

Superior Convergence and Efficiency

In all benchmarks, local sensitivity sampling reached lower optimization errors significantly faster than both uniform random sampling and standard leverage score sampling.

Local sensitivity sampling significantly outperforms uniform and leverage score sampling in reducing optimization error across iterations.

One of the most striking findings was the method's data efficiency. On synthetic and Letter Binary datasets, the local sampling method outperformed full-batch gradient descent while using only 10% of the total data points per iteration. This suggests that for many large-scale problems, processing the entire dataset is not only slower but less efficient than smart subsampling.

Local sensitivity sampling with a 10% batch size converges faster than the full-batch Proximal Point Method (PPM) on synthetic data.

Key Insights and Future Directions

The success of local sensitivity stems from the realization that locality equals efficiency. By ignoring distant parts of the search space, the total sensitivity (the sum of all importance scores) decreases, allowing for smaller sample sizes without sacrificing accuracy. Furthermore, the connection to rank-1 perturbations of Hessian leverage scores provides a practical path for implementation in high-dimensional settings.

While the current work relies on smoothness and convexity for its theoretical guarantees, future research may extend these principles to non-strongly-convex functions and explore comparisons with quasi-Newton or other trust-region methods that utilize local approximations.

Summary updated

BibTeX
@inproceedings{raj2020importance,
  author = {Anant Raj and Cameron Musco and Lester Mackey},
  title = {{Importance Sampling via Local Sensitivity}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure