Auto-encoder Based Data Clustering

Chunfeng Song, Feng Liu, Yongzhen Huang, Liang Wang, Tieniu Tan

Abstract

Data clustering is a fundamental task in pattern recognition, yet traditional algorithms often struggle with high-dimensional data characterized by complex non-linear structures. This paper proposes a novel framework that integrates a deep auto-encoder with a clustering objective. By simultaneously minimizing reconstruction error and the distance between latent representations and cluster centers, the model learns a "clustering-friendly" feature space. Experimental results on benchmark datasets like MNIST and YaleB demonstrate that this approach significantly outperforms classical methods in both accuracy and stability.

Introduction

Clustering aims to group similar data points without prior labels. However, high-dimensional datasets, such as handwritten digits or facial images, often exhibit high intra-class variance. Two instances of the same digit may appear more different in raw pixel space than instances of different digits. While Kernel K-means attempts to address this via non-linear transformations, it is limited by fixed, pre-defined kernel functions. This research explores whether a custom non-linear mapping can be learned to specifically enhance clustering performance.

Methodology

The proposed method utilizes a four-layer stacked auto-encoder with a 1000-250-50-10 architecture. The core innovation lies in a dual-purpose objective function that balances two competing goals:

  1. Reconstruction Loss: Ensures the latent "code layer" preserves the essential features of the original input $X$.
  2. Clustering Loss: Acts as a restraint on the code layer, penalizing the distance between a data point's latent representation $H$ and its assigned cluster center.
The proposed architecture integrates a basic auto-encoder with additional clustering restraints to iteratively refine feature distribution.

The optimization follows an iterative process similar to the Expectation-Maximization (EM) algorithm:

  • Network Update: Weights are updated via Stochastic Gradient Descent (SGD) to minimize the combined loss.
  • Center Update: Cluster centers in the latent space are recalculated as the mean of their assigned points.

Experimental Setup

The model was evaluated on three standard benchmarks in the machine learning community:

  • MNIST: 60,000 handwritten digits (0–9) at 28x28 resolution.
  • USPS: 4,649 handwritten digits (0–9) at 16x16 resolution.
  • YaleB: 5,850 facial images across ten categories.

Results and Discussion

The proposed method consistently outperformed traditional baselines, including K-means and Spectral Clustering, across Accuracy (ACC) and Normalized Mutual Information (NMI) metrics.

Performance metrics (Accuracy and NMI) across iterations for MNIST, USPS, and YaleB datasets show rapid convergence and high stability.

On the MNIST dataset, the method achieved an ACC of 0.760, compared to 0.535 for K-means. Similarly, on YaleB, it reached 0.902 ACC. As shown in the performance curves, the model converges quickly, typically stabilizing within 40 to 60 iterations. The reconstruction loss serves as a vital regularizer, preventing the latent space from collapsing and ensuring the learned representations remain representative of the input data.

Conclusion and Future Work

By learning a data-specific non-linear mapping, the auto-encoder-based clustering approach effectively handles complex data structures. However, challenges remain, such as the occasional confusion between visually similar digits like 4 and 9. Future research will focus on incorporating inter-cluster separation terms to maximize the distance between different groups and exploring probabilistic cluster assignments to further improve robustness against local optima.

Summary updated

BibTeX
@inproceedings{song2013auto,
  author = {Chunfeng Song and Feng Liu and Yongzhen Huang and Liang Wang and Tieniu Tan},
  title = {{Auto-encoder Based Data Clustering}},
  booktitle = {CIARP},
  year = {2013},
  doi = {10.1007/978-3-642-41822-8\_15},
}
Figure