Fast Online Incremental Learning on Mixture Streaming Data

Yi Wang, Xin Fan, Zhongxuan Luo, Tianzhu Wang, Maomao Min, Jiebo LuoAAAI 2017

Abstract

The explosion of streaming data poses challenges to feature learning methods including linear discriminant analysis (LDA). Many existing LDA algorithms are not efficient enough to incrementally update with samples that sequentially arrive in various manners. First, we propose a new fast batch LDA (FLDA/QR) learning algorithm that uses the cluster centers to solve a lower triangular system that is optimized by the Cholesky-factorization. To take advantage of the intrinsically incremental mechanism of the matrix, we further develop an exact incremental algorithm (IFLDA/QR). The Gram-Schmidt process with reorthogonalization in IFLDA/QR significantly saves the space and time expenses compared with the rank-one QR-updating of most existing methods. IFLDA/QR is able to handle streaming data containing 1) new labeled samples in the existing classes, 2) samples of an entirely new (novel) class, and more significantly, 3) a chunk of examples mixed with those in 1) and 2). Both theoretical analysis and numerical experiments have demonstrated much lower space and time costs (2~10 times faster) than the state of the art, with comparable classification accuracy.

Introduction

Linear Discriminant Analysis (LDA) is a fundamental technique in machine learning for dimensionality reduction and feature extraction. Its primary goal is to find a projection that maximizes the separation between different classes while minimizing the variance within each class. However, classical LDA is a batch algorithm, requiring the entire dataset to be available simultaneously.

In modern applications like mobile networks, social media, and surveillance, data arrives sequentially in streams. Re-running batch LDA for every new data point is computationally prohibitive. While Incremental LDA (ILDA) methods exist, they often struggle with mixture streaming data: scenarios where a single incoming data chunk contains both updates to existing classes and entirely new classes.

Conceptual framework of IFLDA/QR handling mixture streaming data.

Methodology

The proposed framework introduces two primary algorithms: FLDA/QR for fast batch processing and IFLDA/QR for incremental updates.

FLDA/QR: Fast Batch LDA

Traditional LDA processes the full data matrix $X$, which can be massive. FLDA/QR instead utilizes a centroid matrix $C$ composed of cluster centers. By solving the LDA objective through a lower triangular system optimized by Cholesky factorization, the algorithm achieves significant efficiency gains over direct QR-decomposition of the full data matrix.

IFLDA/QR: Incremental LDA

The incremental version, IFLDA/QR, leverages the Gram-Schmidt process with reorthogonalization to update the $Q$ and $R$ matrices. This approach avoids the heavy computational burden of "rank-one" updates common in previous state-of-the-art methods. The algorithm is specifically designed to handle three distinct tasks:

  1. Task 1: Updating class centroids with new samples for existing classes.
  2. Task 2: Expanding the feature space to accommodate novel classes.
  3. Task 3: Processing "chunks" of mixed data containing both updates and new classes simultaneously.

A key insight is that cluster centers provide sufficient information for finding the optimal transformation matrix, effectively reducing the computational complexity's dependence on the total number of samples ($n$).

Experimental Evaluation

The researchers evaluated the algorithms on three datasets: ORL (face images), AWA (animal features using VGG19), and Tr23 (text document features).

Key Results

  • Computational Efficiency: IFLDA/QR demonstrated a 2 to 10 times speedup over existing incremental methods like ILDA/QR and IDR/new. For example, on the ORL dataset, IFLDA/QR completed updates significantly faster than its competitors as the number of data chunks increased.
  • Space Complexity: By focusing on class centroids, the space requirement is reduced to $O(dk)$, where $d$ is the feature dimension and $k$ is the number of classes. This is significantly more efficient than methods that scale with the total number of samples.
  • Classification Accuracy: IFLDA/QR maintains accuracy comparable to batch versions. In the AWA dataset experiments, it slightly outperformed other incremental methods, achieving approximately 88% accuracy.
Time performance comparison on ORL (a), AWA (b), and Tr23 (c) datasets.

Conclusion

IFLDA/QR provides a robust and highly efficient solution for real-time feature learning on mixture streaming data. By replacing standard rank-one updates with a refined Gram-Schmidt process and utilizing centroid-based factorization, it overcomes the bottlenecks of previous ILDA implementations. While the method is highly effective for datasets with small within-class discrimination, future work may explore adaptations for high-variance classes and real-time updates in deep learning classification layers.

Summary updated

BibTeX
@inproceedings{wang2017fast,
  author = {Yi Wang and Xin Fan and Zhongxuan Luo and Tianzhu Wang and Maomao Min and Jiebo Luo},
  title = {{Fast Online Incremental Learning on Mixture Streaming Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=SkVdL6gOWH},
}
Figure