Scalable First-order Method for Certifying Optimal k-Sparse GLMs

Jiachang Liu, Soroosh Shafiee, Andrea Lodi

TL;DR

This paper introduces a highly scalable first-order method to compute tight dual bounds for $\ell_0$-constrained Generalized Linear Models (GLMs) within a Branch-and-Bound (BnB) framework. By replacing expensive second-order cone solvers with a customized log-linear time proximal operator, the authors achieve 1-2 orders of magnitude speedup, enabling the certification of optimal sparse models on datasets with nearly 90,000 features.

What Problem Does This Paper Address?

In machine learning, we often want "sparse" models—models that use only a small subset ($k$) of available features. While the $\ell_1$ norm (Lasso) is a popular proxy for sparsity, the $\ell_0$ norm is the "gold standard" because it directly counts non-zero coefficients. However, solving $\ell_0$-constrained problems to proven optimality is NP-hard.

To guarantee that a solution is truly optimal, researchers use Branch-and-Bound (BnB). The efficiency of BnB depends entirely on the ability to calculate a "dual bound" (a lower bound on the best possible objective value) at each node of a search tree. Currently, calculating these bounds is a major bottleneck:

  1. Standard MIP Solvers (like Gurobi) struggle with nonlinear objectives and high-dimensional data.
  2. Conic Solvers (like MOSEK) use Interior Point Methods that rely on second-order information, which is computationally expensive and difficult to parallelize on modern hardware like GPUs.

Methods

The authors propose a scalable first-order optimization approach to solve the perspective relaxation of the $\ell_0$ problem. Their method consists of three main pillars:

  1. Perspective Reformulation: They utilize a perspective relaxation, which provides much tighter lower bounds than the standard $\ell_1$ relaxation, especially when features are highly correlated.
  2. Customized PAVA for Proximal Operators: The core technical contribution is showing that the proximal operator for their non-smooth objective—which usually requires solving a complex Second-Order Cone Program (SOCP)—can be solved exactly in $O(p \log p)$ time. They achieve this by transforming the problem into an instance of isotonic regression and solving it with a customized Pooled Adjacent Violators Algorithm (PAVA).
  3. FISTA with Restarts: They implement the Fast Iterative Shrinkage-Thresholding Algorithm (FISTA). To overcome FISTA's typical oscillatory behavior, they incorporate a value-based restart strategy. This leads to an empirical linear convergence rate, a significant improvement over the standard sub-linear rate.

Datasets

The method was evaluated on:

  • Synthetic Datasets: High-dimensional linear and logistic regression tasks (up to $n=16,000, p=16,000$).
  • Cancer Drug Response: A real-world linear regression dataset ($n=822, p=2,300$ after pruning).
  • DOROTHEA: A high-stakes real-world logistic regression dataset for drug discovery ($n=2,300, p=89,989$).

Key Insights and Ideas

  • Bypassing the SOCP Bottleneck: The realization that the proximal operator has a hidden mathematical structure solvable via PAVA is the "aha moment." It turns a "heavy" optimization sub-problem into a "light" sorting and merging task. Running time comparison of evaluating proximal operators
  • GPU-Friendly Optimization: Because the algorithm relies on matrix-vector multiplications rather than solving linear systems (as in Interior Point Methods), it is highly amenable to GPU acceleration. The authors demonstrate that moving to a GPU provides an additional order of magnitude speedup for high-dimensional instances.
  • Empirical Linear Convergence: While first-order methods are often seen as "slow" to converge to high precision, the combination of FISTA and a restart strategy achieves remarkably fast convergence in practice. Empirical convergence rate of restarted FISTA
Figure 1. Running time comparison of evaluating the proximal operators, for both g (left) and g∗(right). The baselines evaluate the proximal operators by directly solving the corresponding second-order conic problems (SOCP), respectively.
Figure 3. Empirical convergence rate of our restarted FISTA (compared with PGD, the proximal gradient method, and FISTA) on solving the perspective relaxation in Problem (5) with the logistic loss, n = 16000, p = 16000, k = 10, ρ = 0.5, λ2 = 1.0, and M = 2.0.

Key Results

  • Proximal Operator Speed: Their customized PAVA is roughly 100x faster than commercial solvers like Gurobi or MOSEK for evaluating the proximal operator at $p=10^5$ (Figure 1).
  • Relaxation Solving: For solving the full perspective relaxation, their method consistently outperforms MOSEK by over an order of magnitude (Figure 2). Running time comparison for solving the perspective relaxation
  • Optimality Certification: On the massive DOROTHEA dataset ($p \approx 90,000$), the proposed method certified optimality in just 230 seconds. In contrast, commercial solvers either timed out after 1,800 seconds or failed to provide a tight optimality gap.
Figure 2. Running time comparison of solving Problem (5), the perspective relaxation of the original MIP problem. We set M = 2.0, λ2 = 1.0, and n-to-p ratio to be 1. Gurobi cannot solve the cardinality constrained logistic regression problem.

Limitations and Future Work

The authors note that their current BnB implementation is "minimalist." It focuses purely on the impact of the new lower-bound calculation and intentionally omits advanced MIP heuristics like cutting planes or complex presolve routines.

Future Work: The most promising direction is integrating this high-performance first-order component into full-featured, general-purpose MIP solvers to create a new generation of tools for certifiably optimal machine learning.

Summary updated

BibTeX
@inproceedings{liu2025scalable,
  author = {Jiachang Liu and Soroosh Shafiee and Andrea Lodi},
  title = {{Scalable First-order Method for Certifying Optimal k-Sparse GLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=3zWSmhNSa7},
}
Figure