Dimensionality Reduction using Similarity-induced Embeddings

Nikolaos Passalis, Anastasios TefasarXiv 2017 · DOI

TL;DR

This paper introduces the Similarity Embedding Framework (SEF), a novel approach to dimensionality reduction that swaps traditional distance-based objectives for similarity-based ones. By modeling the target distribution using bounded similarity metrics (like Gaussian kernels), SEF provides a flexible, outlier-resistant framework that can "clone" existing techniques, provide easy out-of-sample extensions, and even create entirely new types of projections.

What Problem Does This Paper Address?

Dimensionality reduction (DR) is a cornerstone of machine learning, used to compress high-dimensional data (like images or text) while preserving essential structures. However, most classic methods—like PCA or LDA—rely on second-order statistics and unbounded distance metrics.

This leads to several headaches:

  1. Outlier Sensitivity: A single outlier can disproportionately warp the objective function because distances can grow to infinity.
  2. Rigid Constraints: Methods like LDA are mathematically capped in the number of dimensions they can produce (e.g., number of classes minus one).
  3. The "Out-of-Sample" Problem: Many powerful non-linear techniques (like ISOMAP or t-SNE) only learn embeddings for the training data; they don't provide a clear mathematical "map" for new, unseen data points.

The authors argue that by shifting the focus to similarity, we can create a more robust and unified framework for DR.

Methods

The core idea of SEF is to learn a mapping function $f_W$ that makes the pairwise similarities in the projected low-dimensional space as close as possible to a predefined target similarity matrix $T$.

The Objective Function

The framework minimizes a weighted squared loss between the projected similarity matrix $P$ and the target matrix $T$: $$J_s = \frac{1}{2\|M\|_1} \sum_{i=1}^N \sum_{j=1}^N [M]_{ij} ([P]_{ij} - [T]_{ij})^2$$ where $M$ is a weighting mask. The similarity $[P]_{ij}$ is typically calculated using a Gaussian (Heat) kernel, which bounds the values between 0 and 1.

Flexibility in Projections

SEF isn't tied to one specific model. The authors demonstrate it using:

  • Linear Projections: Simple matrix multiplication ($W^T x$).
  • Kernel Projections: Utilizing the "kernel trick" to handle non-linear relationships.
  • Deep Learning: The framework is differentiable, meaning it could theoretically be used as a loss function for deep neural networks.

The "Cloning" Trick

One of the most clever aspects of SEF is its ability to "clone" other algorithms. If you have a non-parametric method $g(x)$ that produces a great embedding but lacks a projection function, you can set your target matrix $T$ based on the similarities of $g(x)$'s output. SEF then learns a linear or kernel projection that mimics that distribution.

![Fig.

  1. The Similarity Embedding Learning Algorithm](/figures/art_e9f3f744655b481780868283f4137b1a)

Datasets

The authors evaluated SEF across six diverse domains to prove its generalizability:

  • Image Recognition: 15-scene and Corel datasets.
  • Video Action Recognition: KTH dataset.
  • Handwritten Digits: MNIST.
  • Face Recognition: Extended Yale B.
  • Text/Topic Recognition: 20 Newsgroups (20NG).

Key Insights and Ideas

  • Similarity as a Regularizer: Because the Gaussian kernel is non-linear and bounded, it acts as an intrinsic regularizer. Large distances in the input space don't result in infinitely large penalties, making the model naturally resistant to outliers.
  • PDF Modeling: The authors link similarity to Kernel Density Estimation (KDE). Summing similarities essentially allows the model to directly shape the probability density function (PDF) of the data in the new space.
  • Breaking Dimensionality Caps: Unlike standard LDA, the similarity-based version (S-LDA) can project data into any number of dimensions, often yielding better classification accuracy by capturing more nuanced structures.
  • Hyperparameter Sensitivity: The scaling parameter $\sigma_P$ is crucial. As shown in Figure 1, if it's too small, all similarities vanish; if too large, all points look identical. The authors provide a heuristic line-search method to find the "sweet spot" that spreads similarity values effectively.

![Fig.

  1. Effect of the scaling parameter σP on the distribution of the similarity values](/figures/art_11b7d5833b164953be2b9a429382f2e1)

Key Results

  • Superior Supervised Learning: S-LDA consistently outperformed standard LDA. For example, on the 15-scene dataset, S-LDA achieved ~75% accuracy compared to LDA's ~68%.
  • Efficient SVM Projections: The authors proposed an SVM-based projection (S-SVM-A) that, when paired with a simple Nearest Class Centroid (NCC) classifier, achieved accuracy close to a full SVM but with a 3-order-of-magnitude speedup in classification time.
  • Better Out-of-Sample Extensions: When providing a linear projection for ISOMAP, SEF (cS-ISOMAP) significantly outperformed standard Linear Regression baselines, particularly on the Yale face dataset (80.05% vs 34.89% accuracy).
  • Low-Dimensional Approximations: A "cloned" PCA (cS-PCA) using only 10 dimensions often outperformed standard 10D PCA by capturing the structure of a higher-dimensional (50D) PCA projection.

![Fig.

  1. Visualizing different DR methods within the SEF framework](/figures/art_1fb51a622201408aac880efafea731a4)

Limitations and Future Work

  • Computational Complexity: Calculating the $N \times N$ similarity matrix is $O(N^2)$, which is a bottleneck for massive datasets. The authors suggest incremental learning (using subsets of the matrix) as a workaround.
  • Non-Convexity: The optimization problem is not convex, meaning the quality of the result can depend on initialization (though they found PCA-based initialization to be very stable).
  • Future Directions: The authors suggest applying SEF to clustering-based DR and exploring its use in neural network distillation, where a small "student" network learns to mimic the similarity distribution of a large "teacher" network.

Summary updated

Abstract

The vast majority of Dimensionality Reduction (DR) techniques rely on second-order statistics to define their optimization objective. Even though this provides adequate results in most cases, it comes with several shortcomings. The methods require carefully designed regularizers and they are usually prone to outliers. In this work, a new DR framework, that can directly model the target distribution using the notion of similarity instead of distance, is introduced. The proposed framework, called Similarity Embedding Framework, can overcome the aforementioned limitations and provides a conceptually simpler way to express optimization targets similar to existing DR techniques. Deriving a new DR technique using the Similarity Embedding Framework becomes simply a matter of choosing an appropriate target similarity matrix. A variety of classical tasks, such as performing supervised dimensionality reduction and providing out-of-of-sample extensions, as well as, new novel techniques, such as providing fast linear embeddings for complex techniques, are demonstrated in this paper using the proposed framework. Six datasets from a diverse range of domains are used to evaluate the proposed method and it is demonstrated that it can outperform many existing DR techniques.
BibTeX
@misc{passalis2017dimensionality,
  author = {Nikolaos Passalis and Anastasios Tefas},
  title = {{Dimensionality Reduction using Similarity-induced Embeddings}},
  year = {2017},
  eprint = {1706.05692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.05692},
}

Loading related content...

Figure