Supervised Matrix Factorization: Local Landscape Analysis and Applications

Joowon Lee, Hanbaek Lyu, Weixin Yao

Supervised Matrix Factorization (SMF) is a powerful "two-birds-one-stone" machine learning technique that simultaneously performs dimension reduction and classification. It seeks to find a low-dimensional representation of data while ensuring that this new representation is optimized for a specific classification task.

Despite its utility, SMF is notoriously difficult to optimize. The mathematical landscape of the problem is highly non-convex, riddled with peaks, valleys, and plateaus that can easily trap standard algorithms. Because the model relies on at least three interacting sets of parameters (basis vectors, data codes, and classifier weights), theoretical understanding of its optimization landscape has historically been limited. Practitioners often struggle to determine if their models have truly converged or how much regularization is required to maintain parameter stability.

This paper provides the first extensive "local landscape analysis" for SMF, diving deep into the mathematics of its optimization terrain to derive a new Block Coordinate Descent (BCD) algorithm with guaranteed convergence and a high-speed, GPU-friendly neural network implementation.

Analyzing the Optimization Landscape

To untangle the complex optimization of SMF, the authors conducted a rigorous Hessian analysis. In optimization, the Hessian matrix describes the local curvature of the error landscape.

  1. Landscape Analysis & Regularization: By explicitly computing the $4 \times 4$ block structure of the Hessian, the researchers determined exactly how much $L_2$ regularization (weight decay) is needed to make the local landscape "strongly convex." This ensures the optimization process remains robust and stable.
  2. Adaptive Block Coordinate Descent (BCD): Analyzing the diagonal blocks of the Hessian naturally led to the development of a BCD algorithm. Unlike standard gradient descent which updates all parameters simultaneously, BCD updates one block of parameters at a time. Crucially, this analysis provides adaptive step sizes, allowing the algorithm to calculate the optimal step size for each parameter block to guarantee progress.
  3. Neural SMF-W Implementation: For practical application, the authors designed a novel neural network architecture that mirrors the BCD algorithm. It consists of two coupled networks—a "Reconstructor" and a "Classifier"—that share a weight matrix. This allows the model to be trained using standard deep learning frameworks (like PyTorch) on GPUs, offering massive speedups over traditional CPU-based matrix factorization methods.

Key Insights and Performance

The researchers validated their approach across diverse domains, including semi-synthetic digit detection (MNIST), highly imbalanced fraud detection (Employment Scam Aegean Dataset), and high-dimensional gene expression classification (Curated Microarray Database - CuMiDa).

Regime-Specific Regularization and the "Tilting" Effect

One of the most practical theoretical findings is that regularization requirements change based on the data shape. In "large-sample" scenarios (more data points than features), only the code matrix requires regularization. Conversely, in "high-dimensional" scenarios (more features than data points), only the factor matrix needs it.

Furthermore, SMF exhibits a powerful "tilting" effect on imbalanced data. In the job scam dataset (where 95% of postings are legitimate), standard unsupervised methods focus on the majority class and ignore rare scam indicators. The supervised nature of SMF "tilts" the learned topics to focus specifically on features that distinguish scams, resulting in significantly higher F-scores.

Superior Classification and Speed

The proposed SMF-W (BCD) method demonstrated exceptional performance, particularly on the high-dimensional cancer microarray data. It achieved the highest accuracy (0.924 for Breast cancer), significantly outperforming baselines like Logistic Regression on raw data, PCA-LR, and standard CNNs.

Comparison of SMF-W architecture and latent space separation against traditional methods like PCA and Logistic Regression.

As illustrated above, SMF-W learns a low-dimensional embedding that provides a much clearer, linearly separable boundary between cancer and normal samples compared to traditional dimension reduction methods like PCA.

Beyond accuracy, the neural implementation of SMF-W showed dramatic speedups on GPUs, converging in a fraction of the time required by standard BCD or other low-rank gradient descent methods. Pareto plots further confirmed that SMF-W provides the optimal trade-off between accurately reconstructing the original data and classifying it correctly.

Limitations and Future Directions

While this work provides a strong theoretical foundation, the authors note a few constraints. The current analysis assumes that parameter constraint sets (like non-negativity) are convex, which does not cover non-convex constraints like the Grassmannian manifold used in some specialized PCA variants. Additionally, the local estimation guarantees rely on a standard Gaussian noise statistical model, whereas real-world data noise can be more complex.

Future work will look to extend this landscape analysis to more complex architectures, such as deep matrix factorization or convolutional SMF, paving the way for even more robust and interpretable representation learning.

Summary updated

BibTeX
@inproceedings{lee2024supervised,
  author = {Joowon Lee and Hanbaek Lyu and Weixin Yao},
  title = {{Supervised Matrix Factorization: Local Landscape Analysis and Applications}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=YlJy1FcM9E},
}
Figure