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:
- Outlier Sensitivity: A single outlier can disproportionately warp the objective function because distances can grow to infinity.
- Rigid Constraints: Methods like LDA are mathematically capped in the number of dimensions they can produce (e.g., number of classes minus one).
- 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.

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.

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.

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