Accelerated kernel discriminant analysis

Nikolaos Gkalelis, Vasileios MezarisarXiv 2015

TL;DR

This paper introduces AKDA and AKSDA, two algorithms that dramatically speed up Kernel Discriminant Analysis by reframing the problem around a small "core matrix." By avoiding operations on massive scatter matrices, the authors achieve over a 40x speedup compared to standard KDA while simultaneously improving classification accuracy and numerical stability.

What Problem Does This Paper Address?

Dimensionality Reduction (DR) is a cornerstone of machine learning, especially in computer vision and video analysis where input features can be incredibly high-dimensional. Kernel Discriminant Analysis (KDA) is a popular DR technique because it uses the "kernel trick" to handle non-linear relationships between data points.

However, KDA has a major bottleneck: it is computationally expensive. Traditional KDA requires solving a Generalized Eigenproblem (GEP) involving scatter matrices that are as large as the number of training samples ($N \times N$). For modern large-scale datasets, this leads to massive memory requirements and training times that can stretch into weeks or months. Furthermore, the within-class scatter matrix in KDA is inherently singular, forcing researchers to use complex regularization or expensive cascades of Singular Value Decompositions (SVDs) that can introduce numerical instability.

Methods

The authors propose a novel matrix factorization and "simultaneous reduction" approach. The key innovation is shifting the heavy lifting from the $N \times N$ scatter matrices to a much smaller core matrix ($O_b$).

Instead of performing an eigenvalue decomposition (EVD) on the full scatter matrices, the AKDA algorithm follows these steps:

  1. Factorization: They decompose the between-class and within-class scatter matrices into products involving the kernel matrix $K$ and the core matrix $O_b$.
  2. Small-Scale EVD: The core matrix $O_b$ has a dimensionality equal to the number of classes ($C \times C$). Since the number of classes is typically much smaller than the number of samples ($C \ll N$), finding its eigenpairs is nearly instantaneous.
  3. Linear System Solving: They map the core eigenvectors back to the feature space by solving a linear system ($K\Psi = \Theta$). This is done efficiently using Cholesky factorization of the kernel matrix.
Fig. 1. Schematic representation of Sb’s factorization and illustration of the AKDA algorithm (Algorithm 1).

The authors also extend this to AKSDA, which handles "subclasses"—useful when a single class (like "dog") contains multiple distinct clusters (like different breeds).

Datasets

The researchers evaluated their methods on a wide variety of challenging benchmarks:

  • TRECVID MED (2010 & 2012): Large-scale video event detection datasets using high-dimensional trajectory features.
  • Cross-dataset collection: A suite of 11 image datasets including AwA (Animals with Attributes), Bing, Caltech101/256, and ImageNet. These utilized deep learning descriptors (DeCAF) as features.

Key Insights and Ideas

  • Information Concentration: The paper proves that the discriminative information needed for KDA is actually concentrated in a space defined by the number of classes, not the number of samples. This is why the $C \times C$ core matrix is sufficient.
  • Numerical Stability: By avoiding the direct construction and inversion of large, singular scatter matrices, AKDA is less prone to round-off errors. This explains why it often achieves higher accuracy than standard KDA.
  • Theoretical Links: The authors demonstrate that AKDA is theoretically equivalent to Kernel Null Discriminant Analysis (KNDA) and Kernel Orthogonal Discriminant Analysis (KODA) under certain conditions, but it arrives at the solution much faster.
  • The Binary Advantage: For two-class problems, the core matrix's eigenvectors can be computed analytically, removing the need for an EVD step entirely.

Key Results

  • Massive Speedups: AKDA is approximately 40 times faster than conventional KDA. On the large bing dataset, the authors estimated that KDA would take 91 days to train, while AKDA finished in just 8 hours.
  • State-of-the-Art Accuracy: In almost all tests, AKDA and AKSDA outperformed other popular methods like GDA, SRKDA, and even standard Support Vector Machines (SVMs) applied directly to the input space. For the 100Ex cross-dataset task, AKSDA achieved a Mean Average Precision (MAP) of 72.99%, compared to 69.28% for standard KDA.
  • Efficiency vs. SRKDA: Compared to Spectral Regression KDA (the previous speed leader), AKDA was roughly 2x faster and more accurate because it doesn't require a noisy data-centering step.

Limitations and Future Work

While AKDA mitigates the singularity of scatter matrices, the kernel matrix $K$ itself can still be ill-conditioned if the training data contains many similar points. In these cases, a small regularization constant is still necessary.

The authors suggest that this "core matrix" acceleration framework could be applied to other techniques, such as incremental discriminant analysis, Laplacian eigenmaps, and large-scale data visualization. They also note that the algorithm is highly parallelizable, suggesting even greater speedups are possible using GPU-accelerated tiled algorithms.

Summary updated

BibTeX
@misc{gkalelis2015accelerated,
  author = {Nikolaos Gkalelis and Vasileios Mezaris},
  title = {{Accelerated kernel discriminant analysis}},
  year = {2015},
  eprint = {1504.07000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1504.07000},
}
Figure