Picasso: A Sparse Learning Library for High Dimensional Data Analysis in R and Python

Jason Ge, Xingguo Li, Haoming Jiang, Han Liu, Tong Zhang, Mengdi Wang, Tuo Zhao

Introduction

In modern data science, high-dimensional problems where the number of features ($d$) significantly exceeds the number of observations ($n$) are increasingly common. Fields such as genomics, neuroimaging, and finance frequently encounter these scenarios. Sparse learning has emerged as the standard approach to identify the critical subset of features driving outcomes. While libraries like glmnet are widely used, they often rely on heuristic optimization, which can lead to slow convergence or failure, particularly with non-convex regularizers like MCP or SCAD. These non-convex penalties are designed to reduce the estimation bias inherent in the standard Lasso ($\ell_1$) approach but present significant numerical challenges. The picasso library addresses these issues by providing a unified framework for both convex and non-convex optimization with rigorous theoretical guarantees.

Algorithmic Framework

The core of picasso is a high-performance C++ engine utilizing a "pathwise coordinate optimization" framework. Built on the Eigen3 library for efficient linear algebra, the algorithm is structured into three nested loops to maximize computational efficiency:

  1. Outer Loop (Warm Starts): Instead of solving for a single penalty level, the library solves for a sequence of decreasing regularization parameters. It uses the solution from a "sparser" model as the starting point for the next, denser model, which significantly speeds up convergence.
  2. Middle Loop (Active Set Selection): The algorithm uses "strong rules" to predict which variables are likely to be non-zero (the "active set") based on gradient thresholding.
  3. Inner Loop (Optimization): The actual optimization (coordinate descent or proximal Newton) is performed exclusively on the active set. This avoids wasting computational cycles on the thousands of variables that are likely to remain at zero.
The three-loop algorithmic framework of picasso.

Performance Benchmarks

The authors evaluated picasso using synthetic high-dimensional data and real-world datasets like the Eye Disease dataset. Synthetic simulations involved large-scale data where $n=3000$ and $d=30000$, covering both "well-conditioned" and "ill-conditioned" scenarios to test optimization stability.

Performance comparison across different models and regularizers.

Key results from head-to-head benchmarks against popular R libraries include:

  • Speedup: In sparse linear regression with $\ell_1$ regularization, picasso was approximately 2.5x faster than glmnet and 3.6x faster than ncvreg in well-conditioned cases.
  • Stability: In the most challenging test—sparse logistic regression with a SCAD penalty on ill-conditioned data—ncvreg failed to converge within 300 seconds. picasso solved the same problem in just 4.35 seconds.
  • Scaled Lasso: For scaled sparse linear regression, picasso was orders of magnitude faster than specialized libraries like flare and scalreg.

Conclusion

picasso bridges the gap between mathematical rigor and practical efficiency. By leveraging active set strategies and pathwise optimization, it offers a stable and high-speed tool for high-dimensional data analysis. The library is implemented in C++ with user-friendly wrappers for both R and Python, making it accessible for a wide range of researchers. Future work may expand its capabilities to include automated hyperparameter tuning and structural sparsity constraints such as group Lasso.

Summary updated

Abstract

We describe a new library named picasso, which implements a unified framework of pathwise coordinate optimization for a variety of sparse learning problems (e.g., sparse linear regression, sparse logistic regression, sparse Poisson regression and scaled sparse linear regression) combined with efficient active set selection strategies. Besides, the library allows users to choose different sparsity-inducing regularizers, including the convex $\ell_1$, nonvoncex MCP and SCAD regularizers. The library is coded in \texttt{C++} and has user-friendly R and Python wrappers. Numerical experiments demonstrate that picasso can scale up to large problems efficiently.
BibTeX
@article{ge2019picasso,
  author = {Jason Ge and Xingguo Li and Haoming Jiang and Han Liu and Tong Zhang and Mengdi Wang and Tuo Zhao},
  title = {{Picasso: A Sparse Learning Library for High Dimensional Data Analysis in R and Python}},
  journal = {J. Mach. Learn. Res.},
  year = {2019},
  url = {https://openreview.net/forum?id=54L7PneCC5},
}
Figure