Introduction
High-dimensional data streams present a significant challenge for traditional machine learning models, particularly $k$-Nearest Neighbors ($k$NN) classifiers. While $k$NN is favored for its simplicity and adaptivity in "lazy learning" scenarios, it suffers from the "curse of dimensionality" and prohibitive memory requirements when processing massive, evolving streams. Furthermore, standard dimensionality reduction (DR) techniques like UMAP (Uniform Manifold Approximation and Projection) are typically transductive, requiring the entire dataset upfront, which makes them incompatible with real-time streaming data.
This paper introduces a Batch-Incremental UMAP-kNN framework designed to compress high-dimensional streams on the fly. By maintaining topological stability across data batches, the proposed method allows $k$NN to operate efficiently in lower-dimensional spaces without losing the structural integrity of the data.
The Batch-Incremental UMAP-kNN Framework
The proposed system processes continuous data through a three-stage pipeline:
- Stream Partitioning: The incoming data stream is divided into disjoint batches of a fixed size ($s$).
- Incremental Pre-processing: To prevent the "coordinate jumping" common in independent DR runs, the authors implement a "seeding" mechanism. Each new batch's embedding is initialized using the results of the previous batch, ensuring that the spatial relationships remain consistent as the stream evolves.
- Classification: The transformed lower-dimensional data is fed into an incremental $k$NN classifier. A sliding window mechanism is employed to retain only the most recent relevant instances, ensuring the model adapts to concept drift.
Experimental Evaluation
The researchers evaluated the framework against several baselines (including PCA-kNN and tSNE-kNN) using a diverse set of synthetic and real-world benchmarks. These datasets range from sentiment analysis in tweets to human activity recognition and sparse corporate descriptions.
Key Insights and Results
Manifold Stability and Synergy
The core innovation of this work is the synergy between UMAP and $k$NN. Since both methods are neighborhood-based, UMAP is uniquely suited to preserve the local structures that $k$NN relies on for classification. The seeding mechanism provides the necessary manifold stability, preventing the classifier from being "confused" by arbitrary rotations or flips in the embedding space between batches.
Performance Benchmarks
- Accuracy: UMAP-kNN consistently outperformed PCA-kNN and tSNE-kNN. On the CNAE dataset, for instance, UMAP-kNN achieved approximately 76% accuracy, significantly higher than the 67% achieved by PCA-kNN.
- Efficiency: The framework provides a favorable accuracy-memory trade-off. While raw $k$NN might offer slightly higher accuracy in some cases, UMAP-kNN consumes drastically less memory, making it viable for resource-constrained streaming environments.
- Robustness: The system proved stable even when projecting data down to as few as three dimensions, demonstrating UMAP's ability to capture the essential manifold of complex data.
Conclusion and Future Directions
Batch-Incremental UMAP-kNN effectively bridges the gap between powerful dimensionality reduction and real-time stream mining. While UMAP is computationally more intensive than linear methods like PCA, it is significantly faster than tSNE and offers superior structural preservation.
Future work may explore "instance-incremental" versions to process data point-by-point, though current computational limits make batch processing the most practical approach. Additionally, investigating hybrid methods—such as applying random projections before UMAP—could further reduce the computational overhead for extremely high-speed streams.
Summary updated