Unsupervised Deep Learning by Injecting Low-Rank and Sparse Priors

Tomoya Sakai · DOI

Abstract

What if deep neural networks can learn from sparsity-inducing priors? When the networks are designed by combining layer modules (CNN, RNN, etc), engineers less exploit the inductive bias, i.e., existing well-known rules or prior knowledge, other than annotated training data sets. We focus on employing sparsity-inducing priors in deep learning to encourage the network to concisely capture the nature of high-dimensional data in an unsupervised way. In order to use non-differentiable sparsity-inducing norms as loss functions, we plug their proximal mappings into the automatic differentiation framework. We demonstrate unsupervised learning of U-Net for background subtraction using low-rank and sparse priors. The U-Net can learn moving objects in a training sequence without any annotation, and successfully detect the foreground objects in test sequences.

Introduction

Deep learning typically suffers from a "data hunger" problem, requiring massive human-annotated datasets to achieve high performance. Conversely, classical mathematical modeling has long utilized elegant priors, such as sparsity and low-rankness, to describe data structures without supervision. However, these mathematical models often rely on non-smooth functions (e.g., the nuclear norm or $\ell_1$ norm) that are difficult to integrate into standard automatic differentiation frameworks used in deep learning.

This research bridges the gap by injecting these classical priors directly into the loss functions of a neural network. By using proximal mappings to handle non-differentiability, the authors enable a U-Net to learn complex tasks like background subtraction in a completely unsupervised manner.

Methodology: Injecting Priors into U-Nets

The proposed framework combines a standard U-Net architecture with a Low-Rank plus Sparse (L+S) objective. The U-Net acts as a parametric function $S_\theta(D)$ that learns to extract the sparse foreground component from the input data $D$. The remaining part, $D - S_\theta(D)$, is constrained to be low-rank, representing the static background.

The proposed unsupervised framework using a U-Net architecture guided by low-rank and sparse priors.

As shown in the architecture diagram above, the network is trained by minimizing a loss function composed of the nuclear norm (for low-rankness) and the $\ell_1$ norm (for sparsity): $$\min_{\theta} \lambda_* \|D - S_\theta(D)\|_* + \lambda_1 \|S_\theta(D)\|_1$$ To optimize this non-smooth objective, the authors utilize proximal operators—specifically Singular Value Thresholding and Soft Thresholding—within the gradient descent process. This allows the network to "polish" its outputs to satisfy these mathematical priors during training.

Experimental Setup

The approach was evaluated on the "airport" dataset, a standard benchmark for background subtraction consisting of 3,584 images. Crucially, the U-Net was trained using only 50 randomly selected frames in grayscale, without any ground-truth masks or human labels. This setup tests the network's ability to learn the underlying structure of the scene purely from the injected mathematical constraints.

Key Results and Discussion

The unsupervised U-Net was compared against traditional Robust Principal Component Analysis (RPCA). While RPCA treats pixels somewhat independently, the U-Net's convolutional layers provide a "shape prior" that better captures the spatial structure of objects.

Qualitative comparison of background subtraction results between the unsupervised U-Net and traditional RPCA.

Quantitative Performance

  • Recall: The U-Net achieved 63.2%, significantly outperforming RPCA's 49.6%. This indicates the U-Net is far more effective at detecting foreground objects that traditional methods miss.
  • Precision: Both methods maintained high precision (U-Net: 95.8%, RPCA: 96.5%).

Qualitative Advantages

Visual results demonstrate that the U-Net successfully detects pedestrians even when they are partially occluded by timestamps or move slowly. Traditional RPCA often fails in these scenarios because it lacks the spatial context to distinguish a slow-moving person from the static background. Furthermore, once trained, the U-Net's inference speed is significantly faster than the iterative optimization required by RPCA.

Conclusion and Future Work

By injecting low-rank and sparse priors into deep neural networks, this method enables effective unsupervised learning for video analysis. While currently tested on specific scenes, future work could explore broader generalization and applications in fields like medical imaging (e.g., angiography), where separating moving components from static backgrounds is critical and labeled data is scarce.

Summary updated

BibTeX
@misc{sakai2021unsupervised,
  author = {Tomoya Sakai},
  title = {{Unsupervised Deep Learning by Injecting Low-Rank and Sparse Priors}},
  year = {2021},
  eprint = {2106.10923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.10923},
}
Figure