Insights into Ordinal Embedding Algorithms: A Systematic Evaluation

Leena Chennuru Vankadara, Michael Lohaus, Siavash Haghiri, Faiz Ul Wahab, Ulrike von Luxburg

TL;DR

This paper presents a comprehensive empirical evaluation of ordinal embedding algorithms, a technique for learning item representations from pairwise comparisons. The authors find that simple, non-convex methods consistently outperform more complex approaches, even those based on neural networks. This work provides valuable insights for practitioners and offers a unified library for reproducible research in this area.

What Problem Does This Paper Address?

Ordinal embedding (OE) aims to learn a d-dimensional Euclidean representation of a set of items using only triplet comparisons of the form "item i is closer to item j than to item k." This is crucial when direct similarity measures are unavailable. While many OE algorithms have been proposed, there's a lack of systematic evaluation comparing their performance across various settings, such as limited data, constrained embedding dimensions, or noisy triplets. This makes it difficult for practitioners to choose the right algorithm. The paper addresses this by providing a thorough, fair, and systematic empirical assessment of existing OE methods and a new neural network approach.

Methods

The authors evaluate a range of OE algorithms, broadly categorized into:

  • Optimization over Gram Matrix: Algorithms like GNMDS, CKL, and FORTE optimize over the Gram matrix K, which is then decomposed to obtain the embeddings.
  • Optimization over the Embedding: Methods like STE, t-STE, and CKLx directly optimize the embedding matrix X.
  • Landmark Approaches: LLOE and LOE use a subset of items as landmarks to scale to larger datasets.
  • Neural Network Approach (OENN): A novel 3-layer feedforward neural network architecture is proposed, designed to potentially overcome local optima issues common in non-convex optimization.

A key contribution is a unified, GPU-supported library that standardizes implementations of these algorithms, enabling fast and accurate embeddings of millions of data points.

Datasets

The paper uses a diverse set of datasets for evaluation:

  • 2D Datasets: Birch1, Birch3, Aggregation, Compound, Path Based, Spiral, Worms (collected from Fränti and Sieranoja, and others). These are used for visualization and understanding geometric properties.
  • High-Dimensional Real Datasets: CHAR, USPS, MNIST, Fashion MNIST, KMNIST, COVTYPE. These represent various real-world data types and scales.
  • Synthetic Datasets: Uniform, Gaussian Mixture. These allow for controlled experiments.

The authors generate triplets based on Euclidean distances from ground-truth data, with a focus on varying the number of triplets, noise levels, embedding dimensions, and sample sizes.

Key Insights and Ideas

  • Simplicity Wins: Surprisingly, simple, non-convex optimization methods (like SOE) consistently outperform more recent, elaborate, or neural network-based approaches. This holds true even when compared to landmark-based methods or those optimizing over the Gram matrix.
  • Local Optima are Not a Hindrance (Mostly): Contrary to intuition, most non-convex OE algorithms do not appear to suffer significantly from local optima. The Soft Ordinal Embedding (SOE) algorithm, in particular, consistently finds globally optimal solutions.
  • SOE's Robustness: The SOE algorithm shows remarkable robustness, with its performance largely unaffected by increasing sample size or ambient dimension. It consistently achieves superior reconstruction and local neighborhood preservation.
  • Gram Matrix Limitations: Algorithms optimizing over the Gram matrix (CKL, GNMDS) struggle with large datasets (over 10,000 items) due to computational and memory constraints.
  • t-STE vs. STE: Contrary to some prior evaluations, this study suggests that STE often outperforms t-STE in preserving local neighborhoods.

Key Results

  • SOE Dominance: SOE consistently achieves the lowest test triplet error and is among the best for kNN error across various datasets and settings.
  • Computational Efficiency: CKL and GNMDS exhibit the lowest running times, though with poorer performance. SOE, STE, and t-STE offer a good balance of performance and efficiency.
  • Scalability: SOE demonstrates nearly constant test error with increasing sample size and dimensions, highlighting its scalability.
  • Noise Impact: All algorithms' performance deteriorates with increasing noise, but SOE, STE, t-STE, and CKLx show better resilience than Gram matrix-based or neural network approaches at moderate to high noise levels.
  • Embedding Dimension: Most methods improve with higher embedding dimensions, with SOE, STE, t-STE, and OENN showing the most significant gains.

Limitations and Future Work

  • Computational Cost of Gram Matrix Methods: The paper notes that Gram matrix-based methods are computationally prohibitive for datasets larger than 10,000 items.
  • OENN's Local Optima: While OENN is designed to avoid local optima, the paper notes that on MNIST, it appears to get stuck in one, unlike SOE. This suggests further investigation into non-convex optimization landscapes.
  • Future Work: The authors suggest further formal investigation into non-convex optimization landscapes and understanding why local optima might also be global optima for certain objectives like the hinge triplet loss. They also leave the formal proof of SOE's global optimality for future work.

Summary updated

BibTeX
@article{vankadara2023insights,
  author = {Leena Chennuru Vankadara and Michael Lohaus and Siavash Haghiri and Faiz Ul Wahab and Ulrike von Luxburg},
  title = {{Insights into Ordinal Embedding Algorithms: A Systematic Evaluation}},
  journal = {J. Mach. Learn. Res.},
  year = {2023},
}
Figure