MetricEmbedding: Accelerate Metric Nearness by Tropical Inner Product
Muyang Cao, Jiajun Yu, Xin Du, Gang Pan, Wei Wang
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 (maxplus 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× speed improvements over state-of-the-art approaches, and efficiently scales from 1e4 * 1e4 to 1e5 * 1e5 matrices with significantly lower memory usage.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on5
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- An Inductive Bias for Distances: Neural Nets that Respect the Triangle InequalitySilviu Pitis, Harris Chan, Kiarash Jamali, Jimmy BaICLR 2020 · 31 citations
- Fitting Distances by Tree Metrics Minimizing the Total Error within a Constant FactorVincent Cohen-Addad, Debarati Das, Evangelos Kipouridis, Nikos Parotsidis et al.FOCS 2021 · 5 citations
- Metric Nearness Made PracticalWenye Li, Fangchen Yu, Zichen MaAAAI 2023 · 2 citations
Related papers
- Fully Dynamic Embedding into ℓp SpacesKiarash Banihashem, Xiang Chen, MohammadTaghi Hajiaghayi, Sungchul Kim et al.ICML 2025
- Fitting Metrics and Ultrametrics with Minimum DisagreementsVincent Cohen-Addad, Chenglin Fan, Euiwoong Lee, Arnaud de MesmayFOCS 2022 · 3 citations
- A Generalized Approach for Reducing Expensive Distance Calls for A Broad Class of Proximity ProblemsJees Augustine, Suraj Shetiya, Mohammadreza Esfandiari, Senjuti Basu Roy et al.SIGMOD 2021 · 1 citation
- Proximity Operator of the Matrix Perspective Function and its ApplicationsJoong-Ho WonNeurIPS 2020 · 6 citations
- Hyperbolic Distance MatricesPuoya Tabaghi, Ivan DokmanicKDD 2020
