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

Learning Sparsity-Promoting Regularizers using Bilevel Optimization

Avrajit Ghosh, Michael T. McCann, Madeline Mitchell, Saiprasad Ravishankar · DOI

Abstract

We present a method for supervised learning of sparsity-promoting regularizers for denoising signals and images. Sparsity-promoting regularization is a key ingredient in solving modern signal reconstruction problems; however, the operators underlying these regularizers are usually either designed by hand or learned from data in an unsupervised way. The recent success of supervised learning in solving image reconstruction problems suggests that it could be a fruitful approach to designing regularizers. Towards this end, we propose to denoise signals using a variational formulation with a parametric, sparsity-promoting regularizer, where the parameters of the regularizer are learned to minimize the mean squared error of reconstructions on a training set of ground truth image and measurement pairs. Training involves solving a challenging bilevel optimization problem; we derive an expression for the gradient of the training loss using the closed-form solution of the denoising problem and provide an accompanying gradient descent algorithm to minimize it. Our experiments with structured 1D signals and natural images show that the proposed method can learn an operator that outperforms well-known regularizers and collaborative filtering for denoising.

The Challenge of Supervised Regularization

In image reconstruction and denoising, we often solve "inverse problems" to recover a clean signal from noisy or incomplete measurements. This process requires a regularizer—a mathematical prior that describes the expected characteristics of a "good" signal, such as smoothness or sparsity in a specific domain. While handcrafted regularizers like Total Variation (TV) have been standard for decades, the advent of supervised learning offers a way to learn these priors directly from data.

However, applying supervised learning to variational frameworks typically leads to a bilevel optimization problem. In this setup, the "lower level" involves solving the denoising problem with the current regularizer, while the "upper level" updates the regularizer's parameters to minimize the error against ground truth data. The primary obstacle is that the standard sparsity-promoting $\ell_1$ norm is non-smooth and non-differentiable. Traditional solutions often rely on memory-intensive "unrolling" of iterative solvers or "smoothing" techniques that sacrifice accuracy.

The BLORC Framework

To address these challenges, we introduce BLORC (Bilevel Learning of $\ell_1$ regularizers with Closed-Form Gradients). BLORC bypasses the limitations of black-box solvers by exploiting the mathematical structure of the $\ell_1$ denoising problem.

The core innovation lies in Sign-Pattern Partitioning. We recognize that the "sign pattern" (identifying which coefficients are positive, negative, or zero) of a sparse representation remains locally constant. By partitioning the transform matrix into rows that produce zeros and rows that produce non-zeros, we can derive a locally explicit closed-form expression for the reconstruction using KKT (Karush-Kuhn-Tucker) conditions. This allows for the calculation of exact analytical gradients for the upper-level loss, avoiding the vanishing gradient issues of unrolling and the approximation errors of smoothing.

Efficiency and Accuracy

By utilizing analytical gradients rather than iterative unrolling, BLORC achieves significant improvements in both computational efficiency and mathematical precision. As shown in the comparison below, BLORC maintains a lower memory footprint while providing superior gradient accuracy.

Comparison of BLORC against traditional bilevel optimization methods in terms of memory complexity and gradient accuracy.

Because BLORC's memory cost is $O(n^2)$, it is substantially more scalable for larger image patches compared to unrolling methods ($O(T + n^3)$) or traditional minimizer methods ($O(n^3)$).

Experimental Results

We evaluated BLORC across several benchmarks, ranging from synthetic 1D signals to complex natural images from the Urban-100 dataset.

  • 1D Signals: On piecewise constant signals, BLORC achieved an average PSNR of 26.2 dB, outperforming standard Total Variation (25.8 dB).
  • Natural Images: In high-noise scenarios ($\sigma = 38.25$), BLORC outperformed both the popular BM3D algorithm and unsupervised Analysis K-SVD. For instance, on specific images from the Urban-100 set, BLORC reached 27.02 dB compared to BM3D's 26.27 dB.
  • Robustness: A key insight from our experiments is that supervision allows the model to "see through" heavy noise. While unsupervised methods often fail when signal structure is buried, BLORC's access to ground truth during training allows it to learn more robust, discriminative features.

Conclusion and Future Work

BLORC provides a more efficient and accurate way to "teach" models how to denoise signals by leveraging the piecewise differentiable nature of the $\ell_1$ norm. While the current implementation applies gradient descent to a function that is only piecewise differentiable, the empirical results are highly promising. Future work will focus on providing rigorous convergence proofs for non-differentiable points and extending the framework to handle non-unique minimizers and complex-valued data, such as MRI reconstructions.

Summary updated

BibTeX
@article{ghosh2022learning,
  author = {Avrajit Ghosh and Michael T. McCann and Madeline Mitchell and Saiprasad Ravishankar},
  title = {{Learning Sparsity-Promoting Regularizers using Bilevel Optimization}},
  journal = {SIAM J. Imaging Sci.},
  year = {2022},
  doi = {10.1137/22m1506547},
}
Figure