NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Parallelizing single patch pass clustering

Nikolai Alex, Barbara HammerESANN 2008

Abstract

Traditional clustering algorithms often struggle with the memory and time constraints imposed by modern "Big Data." This paper presents a parallelized extension of the Patch Neural Gas (NG) algorithm, designed for efficient, single-pass processing of massive datasets. By distributing data patches across multiple processors and merging summarized sufficient statistics, the proposed framework achieves near-linear speedups with minimal impact on clustering accuracy.

Introduction

Clustering is a cornerstone of unsupervised learning, yet standard methods like k-means, Self-Organizing Maps (SOM), and Neural Gas (NG) face significant scalability issues. These algorithms typically require multiple passes over the entire dataset to reach convergence, which is impractical for streaming data or files exceeding available RAM. While sequential "patch optimization" was introduced to process data in chunks, its single-threaded nature remains a computational bottleneck. This research addresses this limitation by introducing a parallelized patch clustering framework.

Methodology

The proposed approach builds upon Patch Neural Gas. In a sequential patch setting, data is partitioned into patches of size $P$. Each patch is processed using a batch version of Neural Gas, and the results are summarized into sufficient statistics—specifically, the count and sum of points assigned to each cluster. These statistics serve as weighted representatives for subsequent training phases.

The Parallel Patch Clustering framework optimizes this process through four key stages:

  1. Distribution: $C$ data patches are dispatched to $C$ independent processors.
  2. Independent Processing: Each processor executes Batch NG on its local patch. This phase requires no inter-processor communication, maximizing efficiency.
  3. Merging: Upon completion, the sufficient statistics are aggregated. The authors evaluated two strategies: merge1 (simple concatenation) and merge2 (a greedy strategy to maintain a fixed cluster count $k$).
  4. Feedback: The merged statistics are reintegrated into the next round of parallel processing as additional training points, preserving the "memory" of the global data distribution.

Experimental Setup

The framework was evaluated using two primary datasets:

  • 11 Clouds: A synthetic 2D dataset featuring 11 Gaussian clusters, scaled into Small (110k points), Medium (1.1M points), and Large (11.1M points) variants.
  • KDD’98: A real-world dataset from the 1998 KDD Cup, containing approximately 95,000 donor records with 56 numerical features.
Visualization of the 11 Clouds synthetic dataset.

Results and Discussion

The experimental results demonstrate that the parallelized patch approach effectively scales without sacrificing quality.

Computational Efficiency

The algorithm achieved nearly perfect linear speedup. As shown in the performance data for the "11 Clouds" dataset, increasing the number of threads to 6 resulted in a speedup of approximately 5.97x. This efficiency allows for the processing of multi-gigabyte datasets (e.g., the 4.5GB "Large" 11 Clouds set) on hardware with limited memory.

Clustering Accuracy

Parallelization introduced only a negligible drop in accuracy. For the synthetic dataset, the classification accuracy decreased by only 0.26% (from 99.80% in a full batch process to 99.54% with 6 threads). This suggests that the use of sufficient statistics effectively bridges the gap between independent parallel computations.

Performance metrics for the 11 Clouds dataset across varying thread counts.

Conclusion

This paper successfully demonstrates that Patch Neural Gas can be parallelized to handle large-scale clustering tasks with high efficiency and minimal accuracy loss. The reliance on sufficient statistics minimizes communication overhead, making it a robust choice for multimodal data. Future work may extend this framework to supervised or relational variants of Neural Gas and explore dynamic schemes for automatically determining the optimal number of clusters.

Summary updated

BibTeX
@inproceedings{alex2008parallelizing,
  author = {Nikolai Alex and Barbara Hammer},
  title = {{Parallelizing single patch pass clustering}},
  booktitle = {ESANN},
  year = {2008},
  url = {https://openreview.net/forum?id=-qvGDFMukhE},
}
Figure