Unsupervised model compression for multilayer bootstrap networks

Xiao-Lei ZhangarXiv 2015

Abstract: Multilayer Bootstrap Networks (MBNs) have demonstrated strong performance in unsupervised dimensionality reduction, particularly on datasets like MNIST. However, their ensemble-based architecture results in high prediction complexity, making them slow during inference. This paper introduces an unsupervised model compression framework that distills the knowledge of a complex MBN into a lightweight Deep Neural Network (DNN). Our results on the MNIST dataset show that this "compressive MBN" not only preserves the high accuracy of the original model but also achieves a 4,000x speedup at the prediction stage.

Introduction

In unsupervised learning and dimensionality reduction, researchers often face a choice between the scalability of neural networks and the local structure preservation of kernel or bootstrap methods. Multilayer Bootstrap Networks (MBNs) offer a powerful solution for capturing local data distributions through hierarchical random clusterings. While effective and easy to train, MBNs suffer from high computational costs during the prediction phase because they require processing through hundreds of individual clusterings. This limitation hinders their application in real-time environments.

Methods

We propose a model compression framework that treats the MBN as a "teacher" and a DNN as a "student." The methodology involves three primary stages:

  1. Teacher Training: A large MBN is trained on a dataset to learn low-dimensional representations.
  2. Application Mapping: These representations are optionally mapped to specific tasks, such as clustering or visualization, to create pseudo-labels.
  3. Student Distillation: A DNN is trained using the original raw data as input and the MBN's output as the target.

By approximating the MBN's complex mapping function, the DNN learns to replicate its performance. Once training is complete, the MBN can be discarded, leaving a highly efficient student model for inference.

Experimental Results

The framework was tested on the MNIST dataset, using both small-scale subsets for visualization and the full dataset for performance evaluation.

Quantitatively, the compressive MBN maintains the performance of the original MBN. As shown in Figure 4, the Normalized Mutual Information (NMI) for the compressive MBN closely follows the teacher's performance across various network depths, occasionally even outperforming it. This suggests the DNN may act as a regularizer, smoothing out noise inherent in the bootstrap ensemble.

Normalized mutual information (NMI) comparison between MBN and Compressive MBN across different network depths.

Qualitatively, the compressed model successfully preserves the clustering structure of the data. Figure 1 displays the 2D visualization of MNIST digits produced by the compressive MBN, showing clear separation between different digit classes.

2D visualization of MNIST clusters generated by the Compressive MBN.

The most dramatic result is the improvement in inference speed. In tests involving 5,000 images, the original MBN took 2,333 seconds to generate predictions. In contrast, the compressive MBN completed the same task in just 0.58 seconds, representing a speedup of approximately 4,000 times.

Conclusion

The compressive MBN framework effectively combines the unsupervised learning capabilities of MBNs with the inference efficiency of DNNs. By transforming an unsupervised problem into a supervised distillation task, we achieve a model that is both highly accurate and computationally efficient enough for practical, real-time use. Future work will explore the application of this framework to more complex, high-dimensional datasets.

Summary updated

BibTeX
@misc{zhang2015unsupervised,
  author = {Xiao-Lei Zhang},
  title = {{Unsupervised model compression for multilayer bootstrap networks}},
  year = {2015},
  eprint = {1503.06452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.06452},
}
Figure