Lune

CVPR2025Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Emerging Properties in Self-Supervised Vision Transformers cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Regression for Domain Adaptation on Gaze Estimation cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Regression for Domain Adaptation on Gaze Estimation cites Supervised Contrastive Learning
  • Contrastive Order Learning: A General Framework for Ordinal Regression cites Contrastive Regression for Domain Adaptation on Gaze Estimation
  • Contrastive Order Learning: A General Framework for Ordinal Regression cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Order Learning: A General Framework for Ordinal Regression cites Supervised Contrastive Learning
  • Contrastive Order Learning: A General Framework for Ordinal Regression cites Rank-N-Contrast: Learning Continuous Representations for Regression
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Rank-N-Contrast: Learning Continuous Representations for Regression cites Emerging Properties in Self-Supervised Vision Transformers
  • Rank-N-Contrast: Learning Continuous Representations for Regression cites Contrastive Regression for Domain Adaptation on Gaze Estimation
  • Rank-N-Contrast: Learning Continuous Representations for Regression cites A Simple Framework for Contrastive Learning of Visual Representations
  • Rank-N-Contrast: Learning Continuous Representations for Regression cites Supervised Contrastive Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Beyond MSE: Ordinal Cross-Entropy for Probabilistic Time Series ForecastingJieting Wang, Huimei Shi, Feijiang Li, Xiaolei ShangAAAI 2026
  2. Contrastive Order Learning: A General Framework for Ordinal RegressionChaewon Lee, BeomJun Shim, Kwang Choi, Chang-Su KimICML 2026
  3. Stochastic Order Learning: An Approach to Rank Estimation Using Noisy DataChaewon Lee, Seon-Ho Lee, Chang-Su KimICML 2026

Builds on16

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
  3. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  4. Rank-N-Contrast: Learning Continuous Representations for RegressionKaiwen Zha, Peng Cao, Jeany Son, Yuzhe Yang et al.NeurIPS 2023 · 129 citations
  5. Contrastive Regression for Domain Adaptation on Gaze EstimationYaoming Wang, Yangzhou Jiang, Jin Li, Bingbing Ni et al.CVPR 2022 · 80 citations

Related papers

  1. TopoCL: Topological Contrastive Learning for Medical ImagingGuangyu Meng, Pengfei Gu, Peixian Liang, John P. Lalor et al.CVPR 2026 · 3 citations
  2. 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
  3. CLOCS: Contrastive Learning of Cardiac Signals Across Space, Time, and PatientsDani Kiyasseh, Tingting Zhu, David A. CliftonICML 2021 · 30 citations
  4. 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
  5. Mitigating Negative Flips via Margin Preserving TrainingSimone Ricci, Niccolò Biondi, Federico Pernici, Alberto Del BimboAAAI 2026
Dusk over the sea between two cliffs drawn in fine vertical lines