Supervised Dictionary Learning with Auxiliary Covariates

Joowon Lee, Hanbaek Lyu, Weixin YaoarXiv 2022 · OpenReview

Abstract

Supervised dictionary learning (SDL) is a classical machine learning method that simultaneously seeks feature extraction and classification tasks, which are not necessarily a priori aligned objectives. The goal of SDL is to learn a class-discriminative dictionary, which is a set of latent feature vectors that can well-explain both the features as well as labels of observed data. In this paper, we provide a systematic study of SDL, including the theory, algorithm, and applications of SDL. First, we provide a novel framework that 'lifts' SDL as a convex problem in a combined factor space and propose a low-rank projected gradient descent algorithm that converges exponentially to the global minimizer of the objective. We also formulate generative models of SDL and provide global estimation guarantees of the true parameters depending on the hyperparameter regime. Second, viewed as a nonconvex constrained optimization problem, we provided an efficient block coordinate descent algorithm for SDL that is guaranteed to find an $\varepsilon$-stationary point of the objective in $O(\varepsilon^{-1}(\log \varepsilon^{-1})^{2})$ iterations. For the corresponding generative model, we establish a novel non-asymptotic local consistency result for constrained and regularized maximum likelihood estimation problems, which may be of independent interest. Third, we apply SDL for imbalanced document classification by supervised topic modeling and also for pneumonia detection from chest X-ray images. We also provide simulation studies to demonstrate that SDL becomes more effective when there is a discrepancy between the best reconstructive and the best discriminative dictionaries.

Introduction

In modern machine learning, a fundamental tension exists between representation and discrimination. Unsupervised Dictionary Learning (DL), such as Non-negative Matrix Factorization (NMF), excels at finding "atoms" or basis vectors that reconstruct data accurately. However, these atoms may fail to capture the specific features necessary for classification. Conversely, standard supervised learning methods like Logistic Regression focus purely on discrimination, often resulting in high-dimensional models that lack interpretability.

Supervised Dictionary Learning (SDL) aims to bridge this gap by learning a dictionary that is simultaneously reconstructive and discriminative. Despite its potential, SDL presents significant optimization challenges due to its non-convex nature and strong constraints (e.g., non-negativity). This research addresses these challenges by providing a comprehensive theoretical framework, novel algorithms with global convergence guarantees, and extensions to incorporate auxiliary covariates—low-dimensional metadata that can significantly enhance classification performance.

Methodology

The authors propose several innovative approaches to stabilize and optimize SDL. A key contribution is the "double-lifting" technique, which reformulates the non-convex SDL problem into a convex low-rank matrix estimation problem in a higher-dimensional space for weakly constrained cases. To solve this, they introduce the Low-rank Projected Gradient Descent (LPGD) algorithm, which is theoretically guaranteed to converge exponentially fast to a global minimizer.

For strongly constrained models where lifting is inapplicable, the paper introduces Block Coordinate Descent with Diminishing Radius (BCD-DR), ensuring the discovery of stationary points. Furthermore, the framework is extended to include auxiliary variables ($X_{aux}$) directly in the classification head. This allows the dictionary to focus on high-dimensional raw data (like images or text) while the classifier leverages both extracted features and metadata.

Comparison of Feature-based and Filter-based SDL architectures.

As shown in Figure 1, the paper distinguishes between two primary architectures: feature-based SDL, which predicts labels from latent codes ($h_i$), and filter-based SDL, which predicts labels directly from the dictionary filters ($W$).

Experimental Evaluation

The framework was validated across three diverse domains:

  1. Semi-synthetic MNIST: A controlled environment where the optimal reconstructive dictionary was intentionally decoupled from the optimal discriminative one.
  2. Fake Job Postings: A highly imbalanced real-world dataset where auxiliary covariates (e.g., "location", "has company logo") proved vital for fraud detection.
  3. Chest X-ray Images: A medical imaging task where the interpretability of learned atoms is critical for clinical validation.

Key Insights and Results

  • The Pareto Trade-off: By tuning a hyperparameter ($\xi$), SDL can navigate the trade-off between reconstruction and classification, often finding a superior "sweet spot" that neither pure NMF nor pure Logistic Regression can reach.
  • Supervision as Correction: In fraud detection, SDL successfully "corrected" the dictionary to focus on rare but significant keywords (e.g., "earn", "money") that unsupervised methods ignored.
  • Performance Gains: On the synthetic MNIST task, filter-based SDL achieved ~91% accuracy, far surpassing standard Logistic Regression (~82%). In fraud detection, incorporating auxiliary covariates improved the F-score from 0.46 to 0.52.
  • Theoretical Consistency: The authors established a novel non-asymptotic local consistency result for constrained Maximum Likelihood Estimation (MLE), proving that estimates remain close to true parameters as sample size increases.

Conclusion

This work provides the first global convergence guarantees for SDL and demonstrates its practical utility in high-stakes applications. While the "lifting" technique introduces higher dimensionality, the resulting stability and interpretability offer significant advantages. Future research will explore applying similar lifting techniques to Supervised PCA and other matrix factorization problems to broaden the scope of global optimization guarantees in supervised representation learning.

Summary updated

BibTeX
@misc{lee2022supervised,
  author = {Joowon Lee and Hanbaek Lyu and Weixin Yao},
  title = {{Supervised Dictionary Learning with Auxiliary Covariates}},
  year = {2022},
  eprint = {2206.06774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.06774},
}
Figure