Unsupervised representation learning with Minimax distance measures

Morteza Haghir Chehreghani

Introduction

Traditional distance metrics, such as Euclidean or Mahalanobis distance, often struggle to capture the underlying structure of data that follows complex, non-linear, or elongated patterns. While kernel methods offer a partial solution, they frequently necessitate manual parameter tuning (e.g., selecting the width of a Gaussian kernel) and assume a global structure that may not be appropriate for all classes within a dataset.

This paper introduces a unified framework for unsupervised representation learning based on Minimax distances. A Minimax distance between two points is defined as the "minimum largest gap" among all possible paths connecting them. This path-based approach allows the metric to naturally follow the data manifold, effectively handling non-spherical clusters.

The Minimax Distance Framework

The core innovation lies in making Minimax distances computationally practical and compatible with standard machine learning workflows. Historically, calculating these distances required $O(N^3)$ complexity, limiting their use to small datasets.

Illustration of Minimax distance paths: (a) shows the bottleneck edge on a single path, while (b) illustrates how the metric selects the path with the smallest maximum edge.

Efficient Computation via MST

The authors prove that Minimax distances over a fully connected graph are equivalent to those calculated over its Minimum Spanning Tree (MST). By focusing only on the MST, the computational complexity is reduced from $O(N^3)$ to $O(N^2)$. This optimization makes the framework feasible for significantly larger datasets, with empirical results showing a speedup from 127 seconds to just 0.54 seconds for a dataset of 2,000 objects.

Euclidean Embedding and Ultrametricity

A critical theoretical contribution is the demonstration that Minimax distances satisfy the ultrametric property. This property ensures that these distances can be embedded into a new Euclidean vector space where the squared Euclidean distances in the new space correspond to the original Minimax distances. This "Euclidean embedding" allows any standard "vector-in, vector-out" algorithm, such as Support Vector Machines (SVMs) or Logistic Regression, to operate within the Minimax geometry without modification.

Key Innovations and Applications

Beyond basic distance calculation, the framework introduces several advanced features:

  • Collective Embedding: For high-dimensional data, the framework computes Minimax distances across different subspaces and combines them into a single "collective" representation.
  • Optimal KNN Search (PTMM): An $O(N)$ algorithm for finding $K$-nearest neighbors under the Minimax metric, providing robustness to non-spherical data at the same speed as standard KNN.
  • Integrated Outlier Detection: The system identifies outliers by monitoring the "gaps" required to connect a test object to the training manifold. Objects requiring an unusually large jump are flagged as potential outliers.

Experimental Results

The framework was rigorously tested across synthetic, UCI, textual, and image datasets. On complex synthetic shapes (e.g., the "two moons" dataset), Minimax-based Logistic Regression achieved 99.8% accuracy, a massive improvement over the 62.5% achieved by the standard version. Furthermore, the "dimension-specific" Minimax variant consistently outperformed standard SVMs and RBF kernels on high-dimensional UCI datasets, particularly in scenarios where training data was sparse.

Conclusion

By bridging the gap between graph-based manifold learning and classical numerical methods through the lens of ultrametricity, this work provides a powerful, non-parametric tool for representation learning. Future research may explore the integration of Minimax distance layers directly into deep neural networks to learn manifold-aware representations end-to-end.

Summary updated

BibTeX
@article{chehreghani2020unsupervised,
  author = {Morteza Haghir Chehreghani},
  title = {{Unsupervised representation learning with Minimax distance measures}},
  journal = {Machine Learning},
  year = {2020},
  doi = {10.1007/s10994-020-05886-4},
}
Figure