A Generic Branch-and-Bound Algorithm for $\ell_0$-Penalized Problems with Supplementary Material

Clément Elvira, Théo Guyard, Cédric Herzet
6/4/2025
math.OCcs.LGstat.ML

Official code: TheoGuyard/El0ps (13 stars, Python, GPL-3.0, last commit 2026-01-06). 1 more implementation below.

Abstract

We present a generic Branch-and-Bound procedure designed to solve L0-penalized optimization problems. Existing approaches primarily focus on quadratic losses and construct relaxations using "Big-M" constraints and/or L2-norm penalties.

Show full abstract

In contrast, our method accommodates a broader class of loss functions and allows greater flexibility in relaxation design through a general penalty term, encompassing existing techniques as special cases. We establish theoretical results ensuring that all key quantities required for the Branch-and-Bound implementation admit closed-form expressions under the general blanket assumptions considered in our work. Leveraging this framework, we introduce El0ps, an open-source Python solver with a plug-and-play workflow that enables user-defined losses and penalties in L0-penalized problems. Through extensive numerical experiments, we demonstrate that El0ps achieves state-of-the-art performance on classical instances and extends computational feasibility to previously intractable ones.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
TheoGuyard/El0psOfficial13PythonGPL-3.02026-01-06
TheoGuyard/l0expOfficial0PythonGPL-3.02026-02-19
TheoGuyard/El0psOfficial100%
GPL-3.0

El0ps: An Exact L0-Problem Solver

131PythonJul 10, 202310 months agoGPL-3.0
TheoGuyard/l0expOfficial100%
GPL-3.0
00Python, Jupyter NotebookJan 7, 20259 months agoGPL-3.0

Similar Papers

Cite this paper

@article{elvira2025generic,
  title  = {A Generic Branch-and-Bound Algorithm for $\ell_0$-Penalized Problems with Supplementary Material},
  author = {Clément Elvira and Théo Guyard and Cédric Herzet},
  year   = {2025},
  eprint = {2506.03974},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.03974v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.03974.svg)](https://codeofpaper.com/paper/2506.03974)

Discussion