Incremental Fast Subclass Discriminant Analysis

Kateryna Chumachenko, Jenni Raitoharju, Moncef Gabbouj, Alexandros IosifidisarXiv 2020

TL;DR

This paper introduces an incremental version of Fast Subclass Discriminant Analysis (fastSDA), allowing models to be updated with new data batches without retraining from scratch. By leveraging matrix identities and incremental decompositions, the authors achieve significant speedups—often orders of magnitude—while maintaining accuracy levels nearly identical to the original batch-trained models.

What Problem Does This Paper Address?

In the world of dimensionality reduction, Linear Discriminant Analysis (LDA) is a classic tool, but it has a major weakness: it assumes each class follows a single "blob-like" (unimodal) distribution. Subclass Discriminant Analysis (SDA) solves this by breaking classes into multiple subclasses, making it much better at handling complex, multimodal data (like faces under different lighting).

However, SDA is computationally heavy. While a recent variant called fastSDA dramatically improved speed, it remained a "batch" method. If you get new data, you have to retrain the entire model from scratch. In real-world applications—where data flows in continuously and privacy or memory constraints might prevent you from storing the original dataset—this is a dealbreaker. The authors address this by creating a way to update fastSDA models incrementally.

Methods

The authors propose three main flavors of incremental fastSDA:

  1. Linear Incremental fastSDA: To avoid re-calculating a massive matrix inverse $(XX^T)^{-1}$ every time new data arrives, they use the Woodbury matrix identity. This allows them to update the existing inverse using only the new samples.
  2. Exact vs. Approximate: The "Exact" version recalculates target vectors for the new data, while the "Approximate" version updates them, offering even more speed at a tiny cost to accuracy.
  3. No-Initial-Batch (NB) Variant: They developed a version that doesn't require keeping the original data samples, only the previously calculated statistics. This is a huge win for privacy-sensitive applications.
  4. Kernelized Incremental fastSDA: For non-linear problems, they adapt the kernel version (fastKSDA). Since the kernel matrix grows with the number of samples, they use incremental Cholesky decomposition to update the model efficiently.

Datasets

The researchers evaluated their methods on eight diverse image datasets to ensure robustness across different tasks:

  • Face Recognition: Extended YALE-B and BU datasets.
  • Digit Recognition: Semeion dataset.
  • Object Recognition: Caltech-101 (subsets of 7 and 20 classes) using both CENTRIST and HOG features.
  • Remote Sensing: UC Merced Land Use Dataset (aerial imagery).
  • Industrial/Automotive: Car Damage Detection dataset (using ResNet-50 features).

Key Insights and Ideas

  • Efficiency through Identities: The core "aha" moment is realizing that the bottleneck of fastSDA (the matrix inverse) can be updated recursively. This transforms a problem that scales cubically with data size into one that scales much more gracefully.
  • The "No-Batch" Advantage: The ability to update a model without access to the original training data (IA-fastSDA-NB) is highly practical. It allows for "on-the-edge" learning where a device can improve its model over time without needing a massive local database.
  • Kernel Approximation: In the kernel version, the authors found that re-centering data at every step breaks the incremental Cholesky process. Their solution—centering new data based on the initial batch's mean—is technically an approximation, but the experiments show it works remarkably well in practice.
  • Non-Centering Benefits: Interestingly, for the kernelized version, not centering the data often resulted in better performance, simplifying the pipeline.

Key Results

The experimental results, summarized in the tables below, show that the incremental approaches are consistently faster than retraining while maintaining competitive accuracy.

Table 1 shows that IA-fastSDA variants are significantly faster than the original fastSDA and other incremental methods like I-LDA, especially in the 1-sample update scenario.

As seen in Table 1, for the "1 Sample" update case, IA-fastSDA is often 10x to 20x faster than the batch fastSDA. Even in larger 30% batch updates, the speed advantage remains significant.

Table 2. Classification results of kernel methods: accuracy/number of clusters per class/time in sec.

In the kernelized experiments (Table 2), the "Non-centered" IA-fastKSDA often achieved the highest accuracy across several datasets (like BU and Semeion) while being orders of magnitude faster than the standard KSDA, which struggles with the computational cost of large kernel matrices.

Limitations and Future Work

  • Subclass Centroids: The current method relies on subclass centroids determined during the initial batch. If the new data introduces entirely new clusters or distributions not seen in the first batch, the accuracy might eventually degrade.
  • Kernel Approximation: The kernel version is inherently approximate because it doesn't fully re-center the data to the new global mean. While this didn't hurt performance in these tests, it's a theoretical limitation.
  • Future Directions: The authors suggest that exploring how to dynamically update the number of subclasses or re-cluster data incrementally could be a promising next step to handle "concept drift" in long-term learning scenarios.

Summary updated

Abstract

This paper proposes an incremental solution to Fast Subclass Discriminant Analysis (fastSDA). We present an exact and an approximate linear solution, along with an approximate kernelized variant. Extensive experiments on eight image datasets with different incremental batch sizes show the superiority of the proposed approach in terms of training time and accuracy being equal or close to fastSDA solution and outperforming other methods.
BibTeX
@misc{chumachenko2020incremental,
  author = {Kateryna Chumachenko and Jenni Raitoharju and Moncef Gabbouj and Alexandros Iosifidis},
  title = {{Incremental Fast Subclass Discriminant Analysis}},
  year = {2020},
  eprint = {2002.04348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.04348},
}

Loading related content...

Figure