MetricEmbedding: Accelerate Metric Nearness by Tropical Inner Product

Abstract

The Metric Nearness Problem involves restoring a non-metric matrix to its closest metric-compliant form, addressing issues such as noise, missing values, and data inconsistencies. Ensuring metric properties, particularly the $O(N^3)$ triangle inequality constraints, presents significant computational challenges, especially in large-scale scenarios where traditional methods suffer from high time and space complexity. We propose a novel solution based on the tropical inner product (max-plus operation), which we prove satisfies the triangle inequality for non-negative real matrices. By transforming the problem into a continuous optimization task, our method directly minimizes the distance to the target matrix. This approach not only restores metric properties but also generates metric-preserving embeddings, enabling real-time updates and reducing computational and storage overhead for downstream tasks. Experimental results demonstrate that our method achieves up to 60$\times$ speed improvements over state-of-the-art approaches, and efficiently scales from $1e4 \times 1e4$ to $1e5 \times 1e5$ matrices with significantly lower memory usage.

Cite

Text

Cao et al. "MetricEmbedding: Accelerate Metric Nearness by Tropical Inner Product." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Cao et al. "MetricEmbedding: Accelerate Metric Nearness by Tropical Inner Product." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/cao2025icml-metricembedding/)

BibTeX

@inproceedings{cao2025icml-metricembedding,
  title     = {{MetricEmbedding: Accelerate Metric Nearness by Tropical Inner Product}},
  author    = {Cao, Muyang and Yu, Jiajun and Du, Xin and Pan, Gang and Wang, Wei},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {6675-6698},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/cao2025icml-metricembedding/}
}