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

Adaptive Nonparametric Variational Autoencoder

Tingting Zhao, Zifeng Wang, Aria Masoomi, Jennifer G. DyarXiv 2019

Abstract

Streaming data presents a significant challenge for deep clustering models, which typically require batch access to data and a predefined number of clusters. We introduce the Streaming Adaptive Nonparametric Variational Autoencoder (AdapVAE), a model that performs unsupervised feature learning and clustering on continuous data streams. By combining a Variational Autoencoder (VAE) with a Dirichlet Process Mixture Model (DPMM) and employing Deep Generative Replay (DGR), AdapVAE dynamically identifies novel clusters while preventing catastrophic forgetting. Our evaluations show that AdapVAE is highly sensitive to novelty and competitive with state-of-the-art batch clustering methods.

Introduction

Deep clustering methods, such as Deep Embedded Clustering (DEC) and Variational Deep Embedding (VaDE), have shown great promise in learning representations and cluster assignments simultaneously. However, these models generally assume that the entire dataset is available during training and that the number of clusters is known a priori. In real-world streaming scenarios, data arrives sequentially, and new categories may emerge over time. Naive sequential training leads to "catastrophic forgetting," where the model loses information about previous data distributions while adapting to new ones.

Methodology

AdapVAE addresses these challenges by marrying deep generative models with Bayesian nonparametrics.

Architecture and Clustering

The model utilizes a VAE to map high-dimensional input data into a low-dimensional latent space. Clustering is performed within this latent space using a Dirichlet Process Mixture Model (DPMM). The nonparametric nature of the DPMM allows the model to accommodate an unknown and growing number of clusters.

Sequential Learning and Generative Replay

To handle streaming data without storing past samples, AdapVAE employs sequential Bayesian updating. The posterior distribution from a previous data stream serves as the prior for the subsequent one. To combat catastrophic forgetting, the model uses Deep Generative Replay (DGR). The VAE's decoder "hallucinates" synthetic samples from previously learned clusters, which are then interleaved with the new data stream during training.

Sequential update process of AdapVAE across multiple data streams (DS1-DS5), showing the discovery of novel clusters and the maintenance of learned representations through generative replay.

Dynamic Cluster Management

The algorithm incorporates "birth" and "merge" moves. New clusters are spawned when incoming data points are poorly explained by existing distributions, while redundant clusters are merged based on incremental sufficient statistics.

Experimental Results

The authors evaluated AdapVAE on MNIST, STL-10, and Reuters-10k datasets.

Sensitivity to Novelty and Forgetting

On the MNIST dataset, the model demonstrated remarkable sensitivity, detecting new clusters (e.g., the digit '5') even when they comprised only 2% of the stream. In sequential experiments where digits were introduced in pairs, AdapVAE maintained high precision and recall for both old and new categories.

Comparison with Batch Methods

Despite the constraints of the streaming setting, AdapVAE performs comparably to, and often outperforms, batch-mode clustering algorithms.

Performance comparison of AdapVAE against state-of-the-art batch methods (DEC, VaDE, VAE+DP) across MNIST, Reuters10k, and STL10 datasets.

As shown in the table above, AdapVAE achieved a Normalized Mutual Information (NMI) of 75.26% on the STL-10 dataset, significantly higher than DEC (71.92%) and VaDE (68.35%).

Conclusion

AdapVAE provides a robust framework for unsupervised learning in dynamic environments. By leveraging generative replay and nonparametric priors, it effectively balances the stability-plasticity trade-off. Future work may focus on improving generative quality for more complex data and refining cluster management heuristics to better distinguish between visually similar categories.

Summary updated

BibTeX
@misc{zhao2019adaptive,
  author = {Tingting Zhao and Zifeng Wang and Aria Masoomi and Jennifer G. Dy},
  title = {{Adaptive Nonparametric Variational Autoencoder}},
  year = {2019},
  eprint = {1906.03288},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03288},
}
Figure