Incremental learning of nonparametric Bayesian mixture models

Ryan Gomes, Max Welling, Pietro Perona

Abstract

This paper introduces the Memory Bounded Variational Dirichlet Process (MB-VDP), a novel algorithm designed for incremental clustering in large-scale or streaming data environments. Traditional Nonparametric Bayesian models, such as the Dirichlet Process Mixture Model (DPMM), typically require batch processing, making them unsuitable for massive datasets or real-time applications. MB-VDP addresses these challenges by processing data in streams, automatically determining the optimal number of clusters, and maintaining a strictly bounded memory footprint. Experimental results on the MNIST and Corel datasets demonstrate that MB-VDP achieves performance comparable to batch methods while significantly reducing memory usage and computational time.

Introduction

Clustering is a fundamental task in computer vision, essential for discovering object categories and building visual vocabularies. While Nonparametric Bayesian models offer the advantage of automatically determining cluster counts, their standard implementations are "batch" algorithms that require the entire dataset to be stored in memory. Existing online alternatives often suffer from aggressive information loss (Online Variational Bayes) or computational intractability (Particle Filters). MB-VDP is proposed as a memory-efficient, incremental, and nonparametric solution to these limitations.

Methods: The MB-VDP Algorithm

The core innovation of MB-VDP is the concept of "clumps." Instead of tracking every possible clustering hypothesis, the algorithm identifies groups of data points—clumps—that are highly likely to belong to the same cluster across all plausible models. Once a clump is formed, the individual data points are discarded, and only their sufficient statistics (mean and count) are retained.

The algorithm alternates between two phases:

  1. Model Building Phase: Variational Bayes is used to find the best mixture model for the current data batch, constrained by previously identified clumps.
  2. Compression Phase: A top-down recursive splitting approach is employed. The algorithm "magnifies" the current data to simulate a larger dataset, then greedily splits groups into smaller clumps until a pre-defined memory limit is reached. This "data magnification" prevents premature convergence to suboptimal clusters by ensuring clumps are only formed when evidence is overwhelmingly strong.

Experimental Setup

The researchers evaluated MB-VDP across three datasets: Caltech 256 (small-scale), MNIST (60,000 handwritten digits), and the Corel Image Database (330,000 image patches). The Corel dataset represents a scale beyond the capacity of standard batch Variational Bayes on typical hardware.

Sample digits from the MNIST dataset used for evaluation.

Results and Discussion

MB-VDP demonstrated high efficiency and scalability. On the MNIST dataset, it achieved 88.5% accuracy, nearly matching the 91.2% of the batch algorithm while using 10x less memory and finishing 36% faster (20 hours vs. 31.5 hours).

Learned cluster centroids for the MNIST dataset using the MB-VDP algorithm.

In large-scale testing on the Corel database, the batch method failed due to memory constraints (~773 MB required), whereas MB-VDP operated successfully with a footprint of only 109 MB. Furthermore, MB-VDP significantly outperformed Particle Filter approaches in both speed and predictive log-likelihood on the Caltech 256 task.

Limitations and Future Work

While effective, MB-VDP remains sensitive to hyperparameters like the concentration parameter ($\alpha$) and the prior distribution ($H$). Additionally, like all Variational Bayes methods, it is susceptible to local optima. Future work may involve incorporating split-merge procedures to improve robustness and extending the model to handle more complex, unsupervised visual category learning.

Conclusion

MB-VDP provides a robust framework for incremental nonparametric Bayesian clustering. By utilizing the "clump" abstraction and a controlled compression phase, it balances the need for accuracy with the practical constraints of memory and processing time, making it a viable tool for real-time learning in large-scale computer vision systems.

Summary updated

BibTeX
@inproceedings{gomes2008incremental,
  author = {Ryan Gomes and Max Welling and Pietro Perona},
  title = {{Incremental learning of nonparametric Bayesian mixture models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2008},
  doi = {10.1109/cvpr.2008.4587370},
}
Figure