The Complexity of Finding Local Optima in Contrastive Learning
Jingming Yan, Yiyuan Luo, Vaggos Chatziafratis, Ioannis Panageas, Parnian Shahkar, Stelios Stavroulakis
Abstract
Contrastive learning is a powerful technique for discovering meaningful data representations by optimizing objectives based on , often given as a set of weighted triplets indicating that an"anchor" is more similar to a"positive"example than to a"negative"example . The goal is to find representations (e.g., embeddings in or a tree metric) where anchors are placed closer to positive than to negative examples. While finding optima of contrastive objectives is -hard, the complexity of finding optima -- representations that do not improve by local search algorithms such as gradient-based methods -- remains open. Our work settles the complexity of finding local optima in various contrastive learning problems by proving -hardness in discrete settings (e.g., maximize satisfied triplets) and -hardness in continuous settings (e.g., minimize Triplet Loss), where (Polynomial Local Search) and (Continuous Local Search) are well-studied complexity classes capturing local search dynamics in discrete and continuous optimization, respectively. Our results imply that no polynomial time algorithm (local search or otherwise) can find a local optimum for various contrastive learning problems, unless (or for continuous problems). Even in the unlikely scenario that (or ), our reductions imply that there exist instances where local search algorithms need exponential time to reach a local optimum, even for (embeddings on a line).
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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 329ee4d1-241d-4c9b-b26f-bfe589df1863Builds on15
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
- Hard Negative Mixing for Contrastive LearningYannis Kalantidis, Mert Bülent Sariyildiz, Noé Pion, Philippe Weinzaepfel et al.NeurIPS 2020 · 805 citations
- Understanding Contrastive Learning Requires Incorporating Inductive BiasesNikunj Saunshi, Jordan T. Ash, Surbhi Goel, Dipendra Misra et al.ICML 2022 · 130 citations
- From Trees to Continuous Embeddings and Back: Hyperbolic Hierarchical ClusteringInes Chami, Albert Gu, Vaggos Chatziafratis, Christopher RéNeurIPS 2020 · 125 citations
- Do More Negative Samples Necessarily Hurt In Contrastive Learning?Pranjal Awasthi, Nishanth Dikkala, Pritish KamathICML 2022 · 57 citations
Related papers
- Provable Accuracy Collapse of Embedding-Based Representations under Dimensionality MismatchDionysis Arvanitakis, Vaggos Chatziafratis, Yiyuan LuoICML 2026
- Neighborhood Contrastive Learning for Novel Class DiscoveryZhun Zhong, Enrico Fini, Subhankar Roy, Zhiming Luo et al.CVPR 2021
- Finding One Local Optimum Is Easy - but What About Two?Yasuaki Kobayashi, Kazuhiro Kurita, Yutaro YamaguchiAAAI 2026
- Global Selection of Contrastive Batches via Optimization on Sample PermutationsVin Sachidananda, Ziyi Yang, Chenguang ZhuICML 2023 · 6 citations
- Contrastive Learning with Adversarial ExamplesChih-Hui Ho, Nuno VasconcelosNeurIPS 2020 · 174 citations
