A Probabilistic Framework for Discriminative Dictionary Learning

Bernard Ghanem, Narendra AhujaarXiv 2011

Abstract

This paper introduces a unified probabilistic framework for Discriminative Dictionary Learning (DDL), which jointly optimizes a dictionary for both signal reconstruction and classification. By framing the problem as a Maximum A Posteriori (MAP) estimation, the authors eliminate the need for manual hyper-parameter tuning and create a modular system capable of incorporating various loss functions. Experimental results on USPS, MNIST, and Extended Yale B datasets demonstrate significant improvements in accuracy and dictionary efficiency.

Introduction

Traditional dictionary learning in sparse representation focuses primarily on reconstruction accuracy. However, for classification tasks, a dictionary optimized solely for reconstruction may lack discriminative power. Previous Supervised Dictionary Learning (SDL) methods often required manual tuning of balancing coefficients ($\lambda$) and were restricted to specific optimization techniques. This paper addresses these limitations by proposing a probabilistic framework that treats classification as a natural regularizer within a MAP estimation.

Methodology

The proposed framework treats the sparse representation as a latent variable. Key components include:

  • MAP Formulation: Maximizing the posterior probability naturally balances representation and classification costs.
  • Jeffreys Priors: Non-parametric priors for variance and cost parameters enable data-driven estimation of sample importance, removing the need for cross-validation of balancing parameters.
  • Modular Optimization: A block coordinate descent approach alternates between updating classifiers, performing Discriminative Sparse Coding (DSC), and updating the dictionary via K-SVD.
Comparison of classification cost functions and their corresponding classifier weights.

The framework's flexibility allows for the integration of various cost functions, such as hinge loss (SVM), exponential loss (AdaBoost), or logistic loss. As shown in the figure above, different loss functions result in different weighting schemes for training samples, with some focusing more on "hard" or misclassified instances.

Experimental Results

The DDL framework was evaluated on the USPS, MNIST, and Extended Yale B datasets.

DDL test error rates across different loss functions and dictionary sizes (K).

Key findings include:

  • Accuracy Gains: DDL achieved a 4.5% improvement over baseline methods on USPS and a competitive 0.72% error rate on MNIST using hinge loss.
  • Dictionary Efficiency: Discriminative learning allows for dictionaries up to 50% smaller than non-discriminative counterparts without sacrificing accuracy.
  • Robustness: On the Extended Yale B face dataset, DDL reached a 7.30% error rate, significantly outperforming the 9.17% baseline under varying lighting conditions.
  • Loss Function Performance: Interestingly, the simple square loss often provided the best generalization across several tasks, despite its simplicity compared to hinge or logistic losses.

Conclusion and Future Work

The probabilistic DDL framework offers a robust, modular, and parameter-free approach to supervised dictionary learning. While it demonstrates superior performance and efficiency, challenges remain regarding the pre-selection of dictionary size ($K$) and the computational complexity of the DSC step. Future work will explore automatic prediction of optimal dictionary sizes and further optimization of the coding process.

Summary updated

BibTeX
@misc{ghanem2011probabilistic,
  author = {Bernard Ghanem and Narendra Ahuja},
  title = {{A Probabilistic Framework for Discriminative Dictionary Learning}},
  year = {2011},
  eprint = {1109.2389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1109.2389},
}
Figure