Convolutional 2D LDA for Nonlinear Dimensionality Reduction

Qi Wang, Zequn Qin, Feiping Nie, Yuan Yuan

Abstract

This paper introduces Convolutional 2D LDA, a novel framework that integrates the discriminative power of Linear Discriminant Analysis (LDA) with the nonlinear feature extraction capabilities of Convolutional Neural Networks (CNNs). By establishing a mathematical equivalence between the LDA objective and a Frobenius norm loss function, the authors enable end-to-end training of dimensionality reduction models using standard backpropagation. Experimental results on handwritten digit datasets demonstrate that this approach outperforms traditional linear methods and remains competitive with state-of-the-art deep learning architectures.

Introduction

Dimensionality reduction is a fundamental task in machine learning, aimed at transforming high-dimensional data into a lower-dimensional space while retaining essential information. Linear Discriminant Analysis (LDA) has long been a staple for supervised dimensionality reduction, seeking a projection that maximizes class separability. However, classical LDA faces significant hurdles with modern data: it assumes linear relationships and requires 2D inputs like images to be flattened into 1D vectors, which discards spatial structure and exacerbates the "curse of dimensionality."

The Problem

Traditional LDA aims to maximize the "between-class scatter" while minimizing the "within-class scatter." While extensions like 2D LDA exist to handle matrix data directly, they remain inherently linear. Previous attempts to create "Deep LDA" models often struggled with the computational complexity of solving generalized eigenvalue problems within a neural network's training loop, making them difficult to optimize via standard gradient descent methods.

Methodology

The core innovation of this work is the Convolutional 2D LDA framework. The authors bridge the gap between classical statistics and deep learning by proving that maximizing the LDA objective is mathematically equivalent to minimizing a specific regression-style Frobenius norm loss:

$$\min_{g,W,b} \|X^T W + 1b^T - \tilde{Y}\|_F^2 + \gamma \|W\|_F^2$$

In this formulation, $g(\cdot)$ represents a CNN that performs a nonlinear projection of the input data. An "optimization layer" with weights $W$ and biases $b$ is appended to the CNN, and $\tilde{Y}$ serves as a weighted target matrix derived from class labels.

The workflow of Convolutional 2D LDA, showing the transition from training with an optimization layer to deployment as a nonlinear projection engine.

The workflow consists of two primary stages:

  1. Training Stage: The CNN and the optimization layer are trained jointly using standard backpropagation (e.g., Adam or SGD) to minimize the Frobenius norm loss. This process optimizes the CNN to find a nonlinear projection that satisfies the LDA criteria for class separability.
  2. Deployment Stage: Once training is complete, the optimization layer is removed. The remaining CNN serves as a standalone, nonlinear dimensionality reduction engine, capable of projecting new data into a discriminative low-dimensional space.

Datasets

The effectiveness of the proposed method was evaluated using three prominent handwritten digit datasets, which provide a variety of challenges in terms of image size and sample count.

Sample images from the (a) CVL and (b) MNIST datasets used for evaluation.
  • MNIST: A standard benchmark containing 60,000 samples of digits 0-9.
  • CVL Dataset: Consists of 21,780 handwritten digit images (32x32 pixels).
  • USPS Dataset: A smaller collection of 9,298 handwritten digit images (16x16 pixels).

Key Results

The Convolutional 2D LDA model demonstrated superior performance across multiple benchmarks. On the CVL dataset, a simplified version of the model (using only two convolutional layers) achieved 96.6% accuracy, significantly outperforming classical 2D LDA (91.1%) and other traditional methods like CRP (94.7%).

When scaled to more complex architectures (three convolutional layers with Batch Normalization and Dropout), the model reached a state-of-the-art 99.69% accuracy on MNIST. This performance is on par with or exceeds specialized deep learning architectures such as DeepCNet and Maxout. Furthermore, the authors demonstrated that the method can be adapted for data-scarce scenarios; by adjusting the learning rate, the model remained competitive even with as few as 10-20 training samples per class.

Discussion and Limitations

A key advantage of this method is its ability to preserve spatial relationships by using convolutional layers instead of vectorization. By integrating the dimensionality reduction and classification objectives into a single end-to-end learning process, the resulting features are highly optimized for discriminative tasks.

However, the method is sensitive to hyperparameters, particularly batch size. Because the weighted label matrix $\tilde{Y}$ depends on the classes present in a mini-batch, missing classes can lead to unstable training. Additionally, while the model is more data-efficient than some deep learning baselines, it still generally requires more data than traditional linear methods unless specific training heuristics are employed.

Conclusion

Convolutional 2D LDA offers a powerful and flexible framework for nonlinear dimensionality reduction. By reformulating the LDA objective as a standard neural network loss, it allows researchers to leverage the representational power of CNNs while maintaining the rigorous discriminative properties of classical LDA. Future work may explore applying this framework to even more complex data types, such as video or volumetric medical imaging.

Summary updated

BibTeX
@inproceedings{wang2017convolutional,
  author = {Qi Wang and Zequn Qin and Feiping Nie and Yuan Yuan},
  title = {{Convolutional 2D LDA for Nonlinear Dimensionality Reduction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/408},
}
Figure