CLOC: Contrastive Learning for Ordinal Classification with Multi-Margin N-pair Loss
Dileepa Pitawela, Gustavo Carneiro, Hsiang-Ting Chen
Abstract
In ordinal classification, misclassifying neighboring ranks is common, yet the consequences of these errors are not the same. For example, misclassifying benign tumor categories is less consequential, compared to an error at the pre-cancerous to cancerous threshold, which could profoundly influence treatment choices. Despite this, existing ordinal classification methods do not account for the varying importance of these margins, treating all neighboring classes as equally significant. To address this limitation, we propose CLOC, a new margin-based contrastive learning method for ordinal classification that learns an ordered representation based on the optimization of multiple margins with a novel multi-margin n-pair loss (MMNP). CLOC enables flexible decision boundaries across key adjacent categories, facilitating smooth transitions between classes and reducing the risk of overfitting to biases present in the training data. We provide empirical discussion regarding the properties of MMNP and show experimental results on five real-world image datasets (Adience, Historical Colour Image Dating, Knee Osteoarthritis, Indian Diabetic Retinopathy Image, and Breast Carcinoma Subtyping) and one synthetic dataset simulating clinical decision bias. Our results demonstrate that CLOC outperforms existing ordinal classification methods and show the interpretability and controllability of CLOC in learning meaningful, ordered representations that align with clinical and practical needs.
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 3e333476-9a90-45ea-b335-e73c8d864ff4Cited by top-tier papers3
- Beyond MSE: Ordinal Cross-Entropy for Probabilistic Time Series ForecastingJieting Wang, Huimei Shi, Feijiang Li, Xiaolei ShangAAAI 2026
- Contrastive Order Learning: A General Framework for Ordinal RegressionChaewon Lee, BeomJun Shim, Kwang Choi, Chang-Su KimICML 2026
- Stochastic Order Learning: An Approach to Rank Estimation Using Noisy DataChaewon Lee, Seon-Ho Lee, Chang-Su KimICML 2026
Builds on16
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Rank-N-Contrast: Learning Continuous Representations for RegressionKaiwen Zha, Peng Cao, Jeany Son, Yuzhe Yang et al.NeurIPS 2023 · 129 citations
- Contrastive Regression for Domain Adaptation on Gaze EstimationYaoming Wang, Yangzhou Jiang, Jin Li, Bingbing Ni et al.CVPR 2022 · 80 citations
Related papers
- TopoCL: Topological Contrastive Learning for Medical ImagingGuangyu Meng, Pengfei Gu, Peixian Liang, John P. Lalor et al.CVPR 2026 · 3 citations
- Enhancing Contrastive Learning for Ordinal Regression via Ordinal Content Preserved Data AugmentationJiyang Zheng, Yu Yao, Bo Han, Dadong Wang et al.ICLR 2024 · 10 citations
- CLOCS: Contrastive Learning of Cardiac Signals Across Space, Time, and PatientsDani Kiyasseh, Tingting Zhu, David A. CliftonICML 2021 · 30 citations
- SCL-WC: Cross-Slide Contrastive Learning for Weakly-Supervised Whole-Slide Image ClassificationXiyue Wang, Jinxi Xiang, Jun Zhang, Sen Yang et al.NeurIPS 2022 · 60 citations
- Mitigating Negative Flips via Margin Preserving TrainingSimone Ricci, Niccolò Biondi, Federico Pernici, Alberto Del BimboAAAI 2026
