Revealing the Basis: Ordinal Embedding Through Geometry

Jesse Anderton, Virgil Pavlu, Javed AslamarXiv 2018

TL;DR

This paper introduces a novel computational geometric approach to ordinal embedding, bypassing the scalability bottlenecks and poor local optima that plague traditional optimization methods. By adaptively selecting comparisons to identify nearly-orthogonal geometric "axes," the algorithm estimates latent data dimensionality and embeds points using their projections, matching the theoretical lower bound of $\Theta(nd \log n)$ comparisons.

What Problem Does This Paper Address?

Ordinal embedding aims to reconstruct the coordinates or pairwise distances of $n$ objects in a $d$-dimensional space using only relative distance comparisons (e.g., "is object $a$ closer to $b$ than to $c$?"). This technique is vital when absolute features or distances are impossible to measure directly, such as quantifying human perceptions of movie similarities, musical preferences, or food tastes.

Traditionally, this task is framed as a non-convex optimization problem. However, existing optimizers scale poorly to large datasets and frequently get trapped in low-quality local optima, often yielding embeddings that are no better than random rankings. The authors tackle this challenge by asking: Can we use pure computational geometry to efficiently and reliably map these points without relying on heavy optimization?

Methods

The authors propose a geometric algorithm called ChooseBasis. Instead of optimizing all points globally, the algorithm uncovers the underlying structure of the data by identifying a set of approximately orthogonal "axes" (a basis) directly from the dataset's points.

  1. Axis Selection via "Above-ness": The first axis is formed by finding two points on opposite sides of the dataset's boundary. To find subsequent orthogonal axes, the authors introduce the concept of "above-ness." A point $p$ is considered "above" $q$ if it lies outside the intersection of spheres centered on existing endpoints. This geometric intuition helps find points that extend into undiscovered dimensions.
  2. Dimensionality Estimation: The algorithm dynamically estimates the latent dimensionality ($\hat{d}$) of the dataset. It stops adding axes as soon as a new candidate endpoint fails a test for affine independence, relying on Carathéodory’s Theorem.
  3. Embedding by Projection: Once the basis axes are established, every point in the dataset is embedded by approximating its geometric projection onto each axis using a binary-search-like strategy driven by triplet comparisons.
Figure 2: Point p is “above” q because q is found in the intersection of balls centered on p1 and p2 and extending to p. This implies that p is farther from the line than q and thus not in conv({p1, p2}).

This approach achieves an upper bound matching the theoretical lower bound of $\Theta(nd \log n)$ comparisons and executes with a total computational complexity of $\Theta(n^2 d^2)$.

Datasets

The algorithm was evaluated across both synthetic and real-world datasets:

  • Synthetic Data: 3dgmm, 5dgmm (Gaussian mixtures in 3D and 5D), and 5dcube (points uniformly drawn from a 5D unit cube).
  • Cities: 500 global cities represented in Euclidean coordinates derived from their actual latitudes and longitudes.
  • MNIST Digits: 1,000 handwritten digit images treated as 784-dimensional raw pixel features.
  • Spambase: 1,000 email records characterized by 57 features.
  • 20newsgroups: 2,000 text documents mapped via highly sparse TF-IDF features across 34,072 terms.

Key Insights and Ideas

  • Geometry Over Optimization: Shifting the paradigm from continuous non-convex optimization to discrete computational geometry completely eliminates the risk of getting stuck in local minima and drastically slashes computation time.
  • The Power of the Lens: Utilizing the intersection of spheres (lenses) allows the algorithm to accurately determine whether a point resides within the convex hull of existing endpoints, providing a robust, rank-based approximation of an $\epsilon$-net.
  • A Perfect Complement: While the standalone geometric embedding is slightly lower in quality than a true global optimum, it serves as an exceptionally fast and reliable constraint generator. Feeding the triples selected by this geometric method into a traditional optimizer (the Extra+SOE approach) yields near-perfect embeddings.
An example of a 2D dataset where the algorithm successfully locates the ideal geometric basis.

Key Results

  • Dramatic Speedups: The geometric algorithm (Basis) completes in less than two seconds for every dataset tested. In comparison, Soft Ordinal Embedding (SOE) baselines required over 24 hours of random initializations, and CrowdKernel (CK) took several days.
  • High Embedding Quality: On the Spambase dataset, the standalone geometric method achieved a remarkably strong Kendall’s $\tau$ of 0.85. When paired with SOE as a refinement step (Extra+SOE), it achieved near-perfect metric recovery ($\tau = 0.99$, RMSE = 0.01 for 3dgmm).
  • Downstream Utility: To prove practical value, the authors trained Gradient Boosting classifiers on the low-dimensional geometric embeddings. The classification accuracy closely matched models trained on the original full feature spaces (e.g., 90% vs 95% accuracy on the cities dataset).

Limitations and Future Work

  • Density and Dimensionality Constraints: The algorithm assumes the dataset is relatively dense and low-dimensional ($d \ll n$). It performs poorly on highly sparse, high-dimensional data distributions like 20newsgroups (yielding a Kendall’s $\tau$ of just 0.11).
  • Sensitivity to Density Variations: The method struggles with datasets that exhibit rapidly varying densities or highly irregular boundaries.
  • Perfect Oracle Assumption: The current framework assumes a noise-free oracle that always answers triplet comparisons correctly. The authors note that integrating noise-tolerant sorting algorithms from crowdsourcing literature is a vital next step for handling real-world human feedback.

Summary updated

Abstract

Ordinal Embedding places n objects into R^d based on comparisons such as "a is closer to b than c." Current optimization-based approaches suffer from scalability problems and an abundance of low quality local optima. We instead consider a computational geometric approach based on selecting comparisons to discover points close to nearly-orthogonal "axes" and embed the whole set by their projections along each axis. We thus also estimate the dimensionality of the data. Our embeddings are of lower quality than the global optima of optimization-based approaches, but are more scalable computationally and more reliable than local optima often found via optimization. Our method uses Θ(n d \log n) comparisons and Θ(n^2 d^2) total operations, and can also be viewed as selecting constraints for an optimizer which, if successful, will produce an almost-perfect embedding for sufficiently dense datasets.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CitiesOriginalClassification Accuracy0.95split: test
Source quote
L756: cities │ 3 │ 1 │ 0.95 │ 2 │ 0.99 │ 0.90
CitiesBasis embedding (Embedding)Classification Accuracy0.90split: test
Source quote
L756: cities │ 3 │ 1 │ 0.95 │ 2 │ 0.99 │ 0.90
spam (Spambase)OriginalClassification Accuracy0.97split: test
Source quote
L758: spam │ 57 │ 0.99 │ 0.97 │ 3 │ 0.85 │ 0.74
spam (Spambase)Basis embedding (Embedding)Classification Accuracy0.74split: test
Source quote
L758: spam │ 57 │ 0.99 │ 0.97 │ 3 │ 0.85 │ 0.74
20 Newsgroups · 20news · 20newsgroupsOriginalClassification Accuracy0.54split: test
Source quote
L755: 20news │ 34K │ 0.94 │ 0.54 │ 3 │ 0.21 │ 0.08
20 Newsgroups · 20news · 20newsgroupsBasis embedding (Embedding)Classification Accuracy0.08split: test
Source quote
L755: 20news │ 34K │ 0.94 │ 0.54 │ 3 │ 0.21 │ 0.08
BibTeX
@misc{anderton2018revealing,
  author = {Jesse Anderton and Virgil Pavlu and Javed Aslam},
  title = {{Revealing the Basis: Ordinal Embedding Through Geometry}},
  year = {2018},
  eprint = {1805.07589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07589},
}

Loading related content...

Figure