Greedy methods, randomization approaches and multi-arm bandit algorithms for efficient sparsity-constrained optimization

Alain Rakotomamonjy, Sokol Koço, Liva RalaivolaarXiv 2015 · arXiv

Abstract

Sparsity-constrained optimization is a cornerstone of high-dimensional machine learning, yet popular greedy algorithms like Orthogonal Matching Pursuit (OMP) and Frank-Wolfe (FW) are often limited by the computational cost of full gradient calculations. This paper investigates whether full gradient precision is necessary for the feature selection step. We propose three strategies—greedy deterministic accumulation, randomized importance sampling, and a multi-armed bandit framework—to estimate the top gradient coordinates efficiently. Our results demonstrate that these approaches can achieve up to a 10x speedup across synthetic and real-world datasets while maintaining model accuracy, providing a robust framework for scalable sparse optimization.

Introduction: The Gradient Bottleneck

In high-dimensional settings, we frequently seek sparse models that utilize only a small subset of available features. Greedy algorithms solve this by iteratively adding features that best align with the current residual. The primary bottleneck in these methods is the selection step: to identify the next feature, the algorithm must compute the gradient of the loss function across all $d$ dimensions for $n$ samples. This $O(nd)$ operation becomes prohibitively expensive as datasets scale.

The central hypothesis of this work is that we do not require the full gradient's precision if our only goal is to identify the largest absolute entry. By focusing on the ranking of coordinates rather than their exact values, we can significantly reduce the computational budget per iteration.

Proposed Methodologies

1. Greedy Deterministic Approach

This approach avoids processing all $n$ samples by sorting them based on their potential contribution to the gradient. Samples are accumulated until the identity of the top-performing coordinate stabilizes, allowing for early stopping.

Algorithm 3: Greedy deterministic algorithm for gradient estimation.

2. Randomized Importance Sampling

By viewing the gradient as an expectation of a random variable, we can employ importance sampling. Data points are sampled according to their "importance"—defined by the norm of the feature vector weighted by the current residual—enabling an accurate estimate of the gradient using only a fraction of the data.

Algorithm 4: Randomized importance sampling for empirical gradient averaging.

3. Multi-Armed Bandit (MAB) Framework

The most novel contribution is casting the coordinate search as a Best Arm Identification problem. Using the Successive Halving algorithm, the search starts with all $d$ coordinates as "arms." A small budget of samples is used to evaluate them, after which the bottom half is discarded. This process repeats with an increasing budget for the remaining candidates until the best arm is identified. This adaptive allocation ensures that computational resources are focused on distinguishing between the most promising features.

Experimental Evaluation

The proposed methods were evaluated on a diverse set of benchmarks:

  • Synthetic Data: Sparse signal recovery in up to 10,000 dimensions.
  • Audio Processing: Sparse approximation of 8,192 classical music clips using a dictionary of 2,048 atoms.
  • Text Classification: High-dimensional datasets (e.g., ohscal, classic, sports) with up to 41,000 dimensions and 11,000 samples.

Key Insights and Results

  • Ranking vs. Precision: The core insight is that coarse approximations are sufficient for correct ranking, which is all that greedy selection requires.
  • Significant Speedups: The bandit and greedy approaches achieved a 10x acceleration compared to exact gradient methods in Frank-Wolfe and CoSaMP implementations.
  • Accuracy Preservation: On real-world text datasets, the bandit-based CoSaMP achieved classification accuracy nearly identical to the exact version.
  • Efficiency of Successive Halving: This MAB approach proved most efficient by avoiding memory overhead associated with individual matrix entry access, instead utilizing full data "slices."

Conclusion

This research demonstrates that the selection step in sparsity-constrained optimization can be significantly accelerated by shifting focus from gradient precision to coordinate ranking. By integrating multi-armed bandit theory and randomized sampling, we provide a path toward scaling sparse models to massive, high-dimensional datasets. Future work will explore these methods in online learning environments and distributed computing settings.

Summary updated

Abstract

Several sparsity-constrained algorithms such as Orthogonal Matching Pursuit or the Frank-Wolfe algorithm with sparsity constraints work by iteratively selecting a novel atom to add to the current non-zero set of variables. This selection step is usually performed by computing the gradient and then by looking for the gradient component with maximal absolute entry. This step can be computationally expensive especially for large-scale and high-dimensional data. In this work, we aim at accelerating these sparsity-constrained optimization algorithms by exploiting the key observation that, for these algorithms to work, one only needs the coordinate of the gradient's top entry. Hence, we introduce algorithms based on greedy methods and randomization approaches that aim at cheaply estimating the gradient and its top entry. Another of our contribution is to cast the problem of finding the best gradient entry as a best arm identification in a multi-armed bandit problem. Owing to this novel insight, we are able to provide a bandit-based algorithm that directly estimates the top entry in a very efficient way. Theoretical observations stating that the resulting inexact Frank-Wolfe or Orthogonal Matching Pursuit algorithms act, with high probability, similarly to their exact versions are also given. We have carried out several experiments showing that the greedy deterministic and the bandit approaches we propose can achieve an acceleration of an order of magnitude while being as efficient as the exact gradient when used in algorithms such as OMP, Frank-Wolfe or CoSaMP.
BibTeX
@misc{rakotomamonjy2015greedy,
  author = {Alain Rakotomamonjy and Sokol Koço and Liva Ralaivola},
  title = {{Greedy methods, randomization approaches and multi-arm bandit algorithms for efficient sparsity-constrained optimization}},
  year = {2015},
  eprint = {1508.06477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.06477},
}
Figure