Skip to main content
QUICK REVIEW

[Paper Review] Supervised Dimensionality Reduction and Visualization using Centroid-encoder

Tomojit Ghosh, M. Kirby|arXiv (Cornell University)|Feb 27, 2020
Data Visualization and AnalyticsComputer Science14 citations
TL;DR

This paper proposes the Centroid-Encoder (CE), a supervised dimensionality reduction method that uses class labels to map data points to their class centroids during autoencoder-based nonlinear dimensionality reduction. CE outperforms state-of-the-art techniques by capturing significantly more variance (up to 89%) in low-dimensional space while preserving class structure and enabling efficient inference on new data without retraining.

ABSTRACT

Visualizing high-dimensional data is an essential task in Data Science and Machine Learning. The Centroid-Encoder (CE) method is similar to the autoencoder but incorporates label information to keep objects of a class close together in the reduced visualization space. CE exploits nonlinearity and labels to encode high variance in low dimensions while capturing the global structure of the data. We present a detailed analysis of the method using a wide variety of data sets and compare it with other supervised dimension reduction techniques, including NCA, nonlinear NCA, t-distributed NCA, t-distributed MCML, supervised UMAP, supervised PCA, Colored Maximum Variance Unfolding, supervised Isomap, Parametric Embedding, supervised Neighbor Retrieval Visualizer, and Multiple Relational Embedding. We empirically show that centroid-encoder outperforms most of these techniques. We also show that when the data variance is spread across multiple modalities, centroid-encoder extracts a significant amount of information from the data in low dimensional space. This key feature establishes its value to use it as a tool for data visualization.

Motivation & Objective

  • To address the limitation of unsupervised methods like PCA and autoencoders in preserving class separability during visualization.
  • To develop a supervised dimensionality reduction technique that leverages class labels to minimize within-class variance in the latent space.
  • To create a method that efficiently captures global data variance and topological structure in low-dimensional embeddings.
  • To provide a trainable, generalizable mapping for new data without retraining, unlike spectral methods requiring full recomputation.

Proposed method

  • The Centroid-Encoder modifies a standard autoencoder by training the bottleneck layer to map input data points to their respective class centroids.
  • It uses a symmetric architecture (e.g., 784→784→784) with tanh activation functions to ensure smooth, nonlinear transformations.
  • The loss function combines reconstruction error and a centroid regularization term that pulls encoded points toward their class-specific centroids.
  • The method employs a two-stage training process: first pretraining the autoencoder, then fine-tuning with centroid constraints.
  • The resulting latent representation is used for visualization via PCA or other linear methods, preserving class structure.
  • The model enables inference on new data using the learned encoder, avoiding retraining on full datasets as required by spectral methods.

Experimental results

Research questions

  • RQ1Can a supervised autoencoder architecture effectively preserve class structure in low-dimensional embeddings while capturing high variance?
  • RQ2How does the Centroid-Encoder compare to state-of-the-art supervised and unsupervised dimensionality reduction techniques in terms of variance capture and visualization quality?
  • RQ3Does the CE method achieve better class separability than PCA, t-SNE, UMAP, and other nonlinear methods on benchmark datasets?
  • RQ4To what extent does the CE method reduce computational cost compared to distance-based methods like NCA or UMAP?
  • RQ5Can the CE model generalize to new data without retraining, unlike spectral embedding techniques?

Key findings

  • The Centroid-Encoder captures approximately 89% of the total data variance in the first 100 dimensions of the latent space for the MNIST 4/9 subset, compared to only 22% in the original data.
  • CE-based visualizations using PCA on the transformed data clearly separate classes (e.g., digits 4 and 9), whereas standard PCA fails to do so.
  • CE outperforms most competing methods—including supervised UMAP, SPCA, NCA, and t-SNE—in preserving global data structure and class separability.
  • The method achieves competitive prediction error with state-of-the-art techniques, despite not requiring pairwise distance computations.
  • CE scales linearly with data size, unlike distance-based methods that scale quadratically, making it more efficient for large datasets.
  • The model enables inference on new data without retraining, unlike spectral methods that require recomputing eigenvectors on the full dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.