Improved Representation Learning Through Tensorized Autoencoders

Pascal Mattia Esser, Satyaki Mukherjee, Mahalakshmi Sabanayagam, Debarghya Ghoshdastidar

Abstract

The central question in representation learning is what constitutes a good or meaningful representation. In this work we argue that if we consider data with inherent cluster structures, where clusters can be characterized through different means and covariances, those data structures should be represented in the embedding as well. While Autoencoders (AE) are widely used in practice for unsupervised representation learning, they do not fulfil the above condition on the embedding as they obtain a single representation of the data. To overcome this we propose a meta-algorithm that can be used to extend an arbitrary AE architecture to a tensorized version (TAE) that allows for learning cluster-specific embeddings while simultaneously learning the cluster assignment. For the linear setting we prove that TAE can recover the principle components of the different clusters in contrast to principle component of the entire data recovered by a standard AE. We validate this on planted models and for general, non-linear and convolutional AEs we empirically illustrate that tensorizing the AE is beneficial in clustering and de-noising tasks.

Introduction

When dealing with high-dimensional data, researchers frequently use Autoencoders (AEs) to find a lower-dimensional latent representation. However, standard AEs assume a "one-size-fits-all" approach, learning a single global representation for the entire dataset.

This approach fails when data contains distinct clusters with unique internal structures. A classic statistical example is Simpson's paradox, where a trend present within specific groups disappears or reverses when the groups are combined. A standard AE will capture the global trend but often obliterates local cluster structures. If a downstream task relies on these local geometries—such as clustering or de-noising specific sub-populations—a single global embedding is fundamentally insufficient.

The Tensorized Autoencoder (TAE)

The authors propose the Tensorized Autoencoder (TAE), a meta-algorithm that can wrap around any existing AE architecture, including linear models, Multi-Layer Perceptrons (MLP), or Convolutional Neural Networks (CNN).

The TAE architecture instantiates k parallel autoencoders to jointly learn cluster assignments and specialized weights.

Instead of training one global AE, a TAE instantiates $k$ independent AEs. The loss function is modified to include a $k$-means-style penalty. During training, the network jointly learns two components:

  1. The encoder/decoder weights for each of the $k$ specialized autoencoders.
  2. A latent variable representing the probability (or "class assignment") that a given data point belongs to a specific cluster.

The training process alternates between updating the network weights and updating the class assignments. To process a new data point (e.g., for de-noising), the model first estimates which cluster it belongs to and then routes it through the corresponding specialized AE. Notably, the authors provide a rigorous mathematical proof for the linear case: a linear TAE exactly recovers the top principal components of each individual cluster, whereas a standard linear AE only recovers the principal components of the global dataset.

Experimental Results

The TAE was evaluated against standard AEs and $k$-means++ across synthetic toy datasets (Parallel, Orthogonal, Triangle, Axis Parallel), botanical benchmarks (Iris, Penguin), and image datasets (MNIST).

TAE outperforms standard AEs and k-means++ in both clustering accuracy (ARI) and denoising error (MSE) across various data geometries.

Key Insights

  • Clustering Accuracy: On the Penguin dataset, which exhibits Simpson's paradox, TAE successfully captures true cluster boundaries where standard AEs and $k$-means++ fail. As shown in the synthetic benchmarks, TAE consistently achieves higher Adjusted Rand Index (ARI) scores.
  • De-noising Performance: TAE consistently achieves a lower Mean Squared Error (MSE) than standard AEs across all tested noise levels. This advantage holds even if the hyperparameter $k$ (number of clusters) is guessed incorrectly.
  • Structural Advantage: The authors demonstrate that a standard AE given the same total number of parameters as a TAE (by increasing its latent dimension) still fails to cluster as effectively. The improvement stems from the routing architecture that preserves local geometry, not just raw model capacity.

Discussion and Future Work

The primary trade-off for TAE's performance is computational demand; the architecture scales linearly with $k$, making it more expensive to train than a standard AE. Additionally, while empirical results on non-linear networks like CNNs are strong, the current theoretical guarantees are specific to linear autoencoders.

Future work involves extending the theoretical analysis to non-linear settings and applying TAEs to other reconstruction-heavy tasks, such as anomaly detection, image compression, and super-resolution. By bridging deep representation learning with classical statistical clustering, TAEs offer a robust framework for handling heterogeneous datasets.

Summary updated

BibTeX
@inproceedings{esser2023improved,
  author = {Pascal Mattia Esser and Satyaki Mukherjee and Mahalakshmi Sabanayagam and Debarghya Ghoshdastidar},
  title = {{Improved Representation Learning Through Tensorized Autoencoders}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=CKMYBeRZC0},
}
Figure