Fully Trainable and Interpretable Non-local Sparse Models for Image Restoration

Bruno Lecouat, Jean Ponce, Julien MairalECCV 2020

Abstract

Non-local self-similarity and sparsity principles have proven to be powerful priors for natural image modeling. We propose a novel differentiable relaxation of joint sparsity that exploits both principles and leads to a general framework for image restoration which is (1) trainable end to end, (2) fully interpretable, and (3) much more compact than competing deep learning architectures. We apply this approach to denoising, blind denoising, jpeg deblocking, and demosaicking, and show that, with as few as 100 K parameters, its performance on several standard benchmarks is on par or better than state-of-the-art methods that may have an order of magnitude or more parameters.

Introduction

Image restoration—the process of recovering a high-quality image from a degraded version (e.g., noisy, blurred, or compressed)—has traditionally been approached through two distinct lenses. Classical methods rely on mathematical "priors," such as non-local self-similarity and sparse coding, which assume that image patches can be represented by a few elements from a dictionary and that similar patches recur throughout an image. While highly interpretable and efficient, these models often lag behind modern deep learning in raw performance.

Conversely, modern deep learning models (CNNs) have set new performance benchmarks but operate as "black boxes," requiring millions of parameters and offering little insight into their internal logic. This paper introduces GroupSC, a framework that bridges this gap by "unfolding" classical non-local sparse coding into a differentiable neural network architecture. By doing so, it achieves state-of-the-art results with significantly fewer parameters than traditional deep models.

Example of non-local self-similarity in natural images, where structures like stairs provide redundant information for restoration.

Methodology: The GroupSC Framework

The core of GroupSC is a differentiable relaxation of the non-local sparse model (LSSC). The architecture is built on several key innovations:

  • Algorithm Unrolling: The authors take the Iterative Soft-Thresholding Algorithm (ISTA), a standard optimization method for sparse coding, and treat its iterations as layers in a neural network. This allows the dictionary and regularization parameters to be learned directly from data via backpropagation.
  • Structured Non-local Sparsity: Unlike standard sparse coding that treats patches independently, GroupSC exploits non-local self-similarity. It identifies similar patches across an image and applies a Group Lasso penalty, encouraging them to share the same sparsity pattern.
  • Differentiable Grouping: To make the entire pipeline end-to-end trainable, the authors propose a "soft" relaxation for patch grouping using a similarity matrix $\Sigma$. This replaces the traditional discrete, non-differentiable grouping step.
  • Decoupled Dictionaries: To avoid the "shrinkage" effect where pixel values are unintentionally muted, the model uses separate dictionaries for encoding ($D$) and final image reconstruction ($W$).

Experimental Results

GroupSC was evaluated on standard benchmarks including BSD68, Kodak24, and Urban100 for tasks such as denoising and demosaicking. The results demonstrate that baking physical priors into the network architecture leads to extreme parameter efficiency:

  • Demosaicking: GroupSC achieved performance on par with the state-of-the-art RNAN model while using 76x fewer parameters (119K vs. 8.96M).
  • Color Denoising: The model matched the performance of the DnCNN baseline with 8x fewer parameters.
  • Efficiency: A "light" version of GroupSC ran 10x faster than other non-local deep models like NLRN on the BSD68 dataset.
Visual comparison of restoration results across various benchmarks. The bottom row shows the high-fidelity reconstruction achieved by GroupSC.

Beyond quantitative metrics, GroupSC specifically reduces visual artifacts like "splotchy" noise that simpler sparse models often fail to remove. The authors also found that a simple pre-processing step—subtracting the mean of each patch—was critical for the stability and performance of the learned model.

Conclusion and Future Work

GroupSC demonstrates that interpretable, prior-based models can compete with massive "black box" networks when properly relaxed and trained end-to-end. While highly efficient, the model currently operates on fixed-size patches, which can be memory-intensive for very large images. Future research will explore multi-scale sparse models and the refinement of fully convolutional versions of the architecture to further improve scalability and performance.

Summary updated

BibTeX
@inproceedings{lecouat2020fully,
  author = {Bruno Lecouat and Jean Ponce and Julien Mairal},
  title = {{Fully Trainable and Interpretable Non-local Sparse Models for Image Restoration}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=_byqBKdjSZ7b},
}
Figure