From Sequential Nodes to GPU Batches: Parallel Branch and Bound for Optimal $k$-Sparse GLMs

Jiachang Liu, Andrea LodiarXiv 2026

TL;DR

This paper introduces a hybrid CPU-GPU framework that drastically accelerates exact Branch-and-Bound (BnB) optimization for cardinality-constrained generalized linear models (GLMs). By processing heterogeneous BnB nodes in parallel batches on the GPU and utilizing a clever data-padding strategy, the method achieves one to two orders of magnitude speedups while certifying zero optimality gaps on massive problems.

What Problem Does This Paper Address?

First-order optimization methods thrive on GPUs for continuous problems (like training deep neural networks), but discrete and combinatorial optimization problems have historically struggled to leverage GPU acceleration. The authors target cardinality-constrained generalized linear models (GLMs)—problems where the goal is to find the best-fitting sparse model using at most $k$ features (e.g., sparse linear or logistic regression).

The gold standard for solving these problems exactly is the Branch-and-Bound (BnB) algorithm. However, standard BnB explores the search tree sequentially, one node at a time. Furthermore, because each node fixes different feature variables, the subproblems are highly irregular (heterogeneous). This irregularity makes them notoriously difficult to parallelize on GPUs. Previous attempts at GPU acceleration only sped up individual nodes, leaving the overall tree search bottlenecked by sequential CPU-side logic and frequent, slow CPU-GPU data transfers.

Methods

The authors propose a Hybrid CPU-GPU BnB framework that splits the labor based on hardware strengths:

  • CPU (Host): Manages the irregular tree logic, including the open-node queue, scheduling batches, and generating child nodes.
  • GPU (Device): Performs the heavy, dense numerical work—such as solving lower-bound relaxations, rounding, and re-optimization—in parallel batches.
Hybrid CPU-GPU BnB framework architecture

To make the irregular subproblems uniform enough for the GPU, they introduce a Padding Strategy. They pad the coordinate data for each node with sentinel values ($-\infty$) so that all columns in a batch have an identical apparent length. This simple trick allows the framework to offload the expensive sorting steps to highly optimized, standard batched GPU sorting routines.

Example of padding and column sorting for batched proximal evaluation

Crucially, the authors prove a new mathematical result (Theorem 4.1) showing that the optimal relaxed binary indicator variables can be recovered exactly from the continuous coefficient vectors. This allows the framework to perform rounding, re-optimization, and variable branching entirely on the GPU, eliminating the need for frequent CPU-GPU synchronization.

Finally, they extend the framework to collect Rashomon sets (the entire collection of near-optimal models) using a compact, memory-efficient trie-and-offset storage layout.

Datasets

The framework was evaluated on both synthetic and real-world benchmarks:

  • Synthetic Datasets: Linear and logistic regression problems featuring highly correlated features ($\rho = 0.9$) with dimensions ($n = p$) ranging from 500 to 16,000.
  • Real-World Datasets:
    • Santander Customer Transaction Prediction: A linear regression dataset with $n = 4,459$ observations and $p = 4,735$ features.
  • DOROTHEA: A high-dimensional drug-discovery binary classification dataset for logistic regression with $n = 2,300$ observations and $p = 89,989$ features.

Key Insights and Ideas

  • Uniformity via Padding: Instead of writing complex, irregular GPU kernels for heterogeneous nodes, making the data artificially uniform via padding allows standard, highly optimized GPU primitives (like GEMM and batched sorting) to do the heavy lifting.
  • Math Eliminates Communication: Proving that indicator variables can be recovered directly from coefficients means branching decisions can happen entirely on-device. This turns a communication bottleneck into a pure computation problem, which GPUs excel at.
  • Unlocking the Rashomon Set: By simply adjusting the pruning threshold, the exact same parallel BnB framework can efficiently harvest a pool of near-optimal models. This allows practitioners to evaluate models based on secondary metrics (like fairness, interpretability, or AUC) that aren't easily captured in the primary loss function.

Key Results

  • Massive Speedups: The batched GPU framework achieved one to two orders of magnitude speedup over OKGLM, the state-of-the-art single-node GPU baseline.
  • Zero Optimality Gap: On difficult synthetic and real-world instances where commercial solvers (Gurobi, MOSEK) timed out (3-hour limit) or ran out of memory (OOM), the proposed method successfully certified a 0.00% optimality gap.
  • For the hardest synthetic logistic regression case ($p=500$), the proposed method processed 3.76 million nodes and closed the gap in 4,348 seconds, whereas the baseline OKGLM timed out after processing only 45,117 nodes.

Limitations and Future Work

  • Batch Size Saturation: The benefits of batching eventually plateau. At exceptionally large batch sizes, performance saturates because the open-node queue cannot generate enough nodes to keep the batch full, or because hardware limits (memory traffic and kernel throughput) are reached.
  • Memory Constraints with Rashomon Sets: Although the trie-based storage is compact, an overly permissive threshold ($\epsilon$) on massive datasets can still lead to combinatorial explosions in the size of the Rashomon pool, challenging GPU memory capacities.
  • Future Directions: The authors suggest exploring more advanced node-ordering strategies (e.g., best-bound or incumbent-guided rules) and scaling the framework to multi-GPU distributed environments.

Summary updated

BibTeX
@misc{liu2026from,
  author = {Jiachang Liu and Andrea Lodi},
  title = {{From Sequential Nodes to GPU Batches: Parallel Branch and Bound for Optimal $k$-Sparse GLMs}},
  year = {2026},
  eprint = {2605.22188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.22188},
}
Figure