NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sparse Learning for Stochastic Composite Optimization

Weizhong Zhang, Lijun Zhang, Yao Hu, Rong Jin, Deng Cai, Xiaofei He

Introduction

In modern machine learning, sparsity is a highly desirable property. Sparse models—where many parameters are exactly zero—offer better interpretability, reduced memory footprints, and improved generalization by preventing overfitting. Achieving this sparsity typically involves Stochastic Composite Optimization (SCO), where a loss function is minimized alongside a sparsity-inducing regularizer, such as the $\ell_1$ norm.

The Gap Between Theory and Sparsity

Despite the theoretical optimality of many SCO algorithms regarding convergence rates, they frequently fail to produce truly sparse solutions in practice. This discrepancy arises from two primary factors:

  1. Online-to-Batch Conversion: To ensure stability and convergence, it is common to average the solutions generated at each iteration. Even if every individual iterate is sparse, their cumulative average is almost never sparse.
  2. Vanishing Regularization: Some "last-step" algorithms avoid averaging but require the regularization strength to decay over time to ensure convergence. This results in "approximately" sparse models populated with many negligible, non-zero values.

A Two-Step Sparse Framework

To bridge this gap, this research proposes a simple yet effective two-step scheme that can be integrated into existing SCO algorithms without compromising their $O(1/T)$ convergence rates.

1. Approximate Optimization

The first phase involves running a standard SCO algorithm (e.g., $\alpha$-SGD or Dual Averaging) on a portion of the available data. This step identifies an approximately optimal solution, denoted as $\bar{w}$.

2. Sparse Online-to-Batch Conversion

Instead of simple averaging or heuristic rounding, the authors introduce a principled "correction" step. Using a fresh batch of data, the algorithm calculates the average gradient at $\bar{w}$ and solves a single composite gradient mapping problem. Crucially, this step utilizes the original strength of the sparse regularizer, "forcing" the final solution into a truly sparse state while maintaining high accuracy.

The paper introduces two specific variants: OptimalSL, which uses a fraction of data for the final conversion based on optimal SCO methods, and LastSL, which performs the conversion on the final iterate of a standard SGD run.

Key Results and Insights

The proposed methods were evaluated against state-of-the-art solvers like ORDA and FOBOS on both synthetic and real-world datasets.

Convergence and Efficiency

A critical finding is that the additional conversion step does not impede the algorithm's efficiency. As shown in the convergence plots, the proposed methods achieve competitive objective values while ensuring the final model is sparse.

Convergence of objective values for various SCO methods.

Superior Sparsity and Visual Clarity

On synthetic datasets, OptimalSL and LastSL successfully recovered exact ground-truth sparsity (50% non-zero entries), whereas baseline methods remained nearly 100% dense. This superiority extends to image data. In MNIST binary classification tasks, the proposed methods produced "feature masks" that highlight a clean, sparse skeleton of the digits, effectively filtering out noisy background pixels that standard methods retain.

Sparse feature mask for an MNIST digit produced by the proposed method.

The Rounding Trap

The authors demonstrate that simple post-hoc rounding (zeroing out small values) is insufficient. Such "naive" approaches often lead to a significant spike in error rates. In contrast, the optimization-based conversion provides a mathematically grounded way to achieve sparsity without sacrificing predictive performance.

Conclusion

By decoupling the optimization process from the sparsity enforcement, this two-step framework allows researchers to leverage the stability of online-to-batch conversion while finally achieving the "exact" sparsity promised by composite optimization theory. Future work will look to extend these theoretical guarantees to non-smooth, strongly convex functions.

Summary updated

BibTeX
@inproceedings{zhang2014sparse,
  author = {Weizhong Zhang and Lijun Zhang and Yao Hu and Rong Jin and Deng Cai and Xiaofei He},
  title = {{Sparse Learning for Stochastic Composite Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8844},
}
Figure