Sparse Bayesian dictionary learning with a Gaussian hierarchical model

Linxiao Yang, Jun Fang, Hong Cheng, Hongbin LiSignal Processing 2015

Abstract

This paper introduces a robust Bayesian framework for dictionary learning (DL) that automatically infers signal sparsity and noise levels directly from data. By employing a Gaussian-inverse Gamma hierarchical model, the authors develop two inference algorithms—Variational Bayesian (SBDL-VB) and Gibbs sampling (SBDL-Gibbs)—that outperform classical methods like K-SVD, particularly when training data is scarce or noise levels are unknown.

Introduction

In signal processing, Dictionary Learning (DL) is the process of identifying a collection of representative patterns, called "atoms," such that a set of signals can be represented as a sparse linear combination of those atoms. While popular algorithms like K-SVD and the Method of Optimal Directions (MOD) are widely used, they require users to pre-specify the signal's sparsity level or the exact noise variance. In real-world scenarios, these parameters are rarely known, and incorrect settings lead to poor dictionary recovery. This research addresses this "parameter tuning" challenge by treating dictionary learning as a statistical inference problem, allowing the model to learn noise and sparsity parameters alongside the dictionary itself.

The Gaussian-Inverse Gamma Hierarchical Model

The authors propose a hierarchical model to capture the dependencies between the observed signals, the dictionary, and the sparse coefficients. The hierarchy is structured as follows:

  1. The Signal Model: Signals are modeled as $Y = DX + W$, where $D$ is the dictionary, $X$ is the sparse coding matrix, and $W$ is Gaussian noise.
  2. Sparsity Prior: To enforce sparsity in $X$, a two-layer prior is used. Coefficients are Gaussian, with variances controlled by hyperparameters following a Gamma distribution. This "Gaussian-inverse Gamma" structure is a well-known sparsity-promoting prior.
  3. Noise and Dictionary Priors: Gamma priors are placed on the noise precision (inverse variance), and Gaussian priors are placed on the dictionary atoms to ensure stability.
Graphical representation of the proposed Gaussian-inverse Gamma hierarchical model.

To solve this model, two distinct inference paths are provided:

  • SBDL-VB (Variational Bayesian): An analytical approximation that is computationally efficient. It updates the dictionary and sparse codes in an "interweaved" manner, helping avoid the local minima common in traditional two-stage methods.
  • SBDL-Gibbs (Gibbs Sampling): A Markov Chain Monte Carlo (MCMC) approach that provides a numerical approximation to the exact posterior distribution. Sequential updating of dictionary atoms within the sampler was found to significantly improve performance.

Experimental Evaluation

The researchers evaluated their methods using both synthetic and real-world data. Synthetic tests involved a $20 \times 50$ dictionary with varying sparsity levels ($K=3$ to $K=5$) and signal-to-noise ratios (SNR) from 10dB to 100dB. Real-world tests utilized standard image processing benchmarks ("Cameraman," "Boat," and "Couple") for denoising tasks.

Dictionary recovery success rates (%) for synthetic data across different signal-to-noise ratios (SNR) and sparsity levels (K).

Key Results

  • Dictionary Recovery: In synthetic tests at 20dB SNR, the SBDL-Gibbs method achieved a recovery success rate of 99.64%, compared to 93.20% for K-SVD and 83.20% for the Bayesian benchmark BPFA.
  • Noise Resilience: When sparsity levels were unknown and varied across signals, K-SVD’s performance dropped significantly (as low as 0.8% recovery in high-noise settings), while SBDL-Gibbs remained robust.
  • Image Denoising: For the "Cameraman" image at a noise standard deviation of $\sigma=25$, SBDL-Gibbs achieved a Peak Signal-to-Noise Ratio (PSNR) of 28.84 dB, outperforming K-SVD (28.62 dB) and APrU-DL (28.71 dB).

Discussion and Insights

The primary advantage of this Bayesian approach is the elimination of manual parameter selection. By placing priors on noise variance ($\gamma$) and sparsity hyperparameters ($\alpha$), the model adjusts itself to the data's characteristics. Furthermore, the interweaved updates in SBDL-VB prevent the algorithm from committing to poor sparse codes early in the process, leading to superior final dictionaries. The Bayesian approach also proved significantly more stable than K-SVD when the number of training signals was limited.

Despite these advantages, computational cost remains a factor. Gibbs sampling is inherently slower than point-estimation methods like K-SVD. Future work may focus on scaling these methods to higher-dimensional data and developing fully online Bayesian frameworks to handle massive datasets.

Summary updated

BibTeX
@article{yang2015sparse,
  author = {Linxiao Yang and Jun Fang and Hong Cheng and Hongbin Li},
  title = {{Sparse Bayesian dictionary learning with a Gaussian hierarchical model}},
  journal = {Signal Processing},
  year = {2015},
  url = {https://openreview.net/forum?id=01Kbu_asf2},
}
Figure