Rank-N-Contrast: Learning Continuous Representations for Regression
Kaiwen Zha, Peng Cao, Jeany Son, Yuzhe Yang, Dina Katabi
Abstract
Deep regression models typically learn in an end-to-end fashion without explicitly emphasizing a regression-aware representation. Consequently, the learned representations exhibit fragmentation and fail to capture the continuous nature of sample orders, inducing suboptimal results across a wide range of regression tasks. To fill the gap, we propose Rank-N-Contrast (RNC), a framework that learns continuous representations for regression by contrasting samples against each other based on their rankings in the target space. We demonstrate, theoretically and empirically, that RNC guarantees the desired order of learned representations in accordance with the target orders, enjoying not only better performance but also significantly improved robustness, efficiency, and generalization. Extensive experiments using five real-world regression datasets that span computer vision, human-computer interaction, and healthcare verify that RNC achieves state-of-the-art performance, highlighting its intriguing properties including better data efficiency, robustness to spurious targets and data corruptions, and generalization to distribution shifts. Code is available at: https://github.com/kaiwenzha/Rank-N-Contrast . L 1 Temp. (℃) 30 20 10 0 SupCon R N C (Ours) Figure 1: Learned representations of different methods on a real-world temperature regression task [7] (details in Sec. 5). Existing general regression learning (L1) or representation learning (SupCon) schemes fail to recognize the underlying continuous information in data. In contrast, RNC learns continuous representations that capture the intrinsic sample orders w.r.t. the regression targets.
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 da821bdf-c040-45db-9e93-4e2f295c71b0Cited by top-tier papers29
- SCOREQ: Speech Quality Assessment with Contrastive RegressionAlessandro Ragano, Jan Skoglund, Andrew HinesNeurIPS 2024 · 90 citations
- ConR: Contrastive Regularizer for Deep Imbalanced RegressionMahsa Keramati, Lili Meng, R. David EvansICLR 2024 · 22 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
- Toward a Well-Calibrated Discrimination via Survival Outcome-Aware Contrastive LearningDongjoon Lee, Hyeryn Park, Changhee LeeNeurIPS 2024 · 6 citations
- Neural Embeddings Rank: Aligning 3D latent dynamics with movementsChenggang Chen, Zhiyu Yang, Xiaoqin WangNeurIPS 2024 · 6 citations
Builds on15
- 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
- Debiased Contrastive LearningChing-Yao Chuang, Joshua Robinson, Yen-Chen Lin, Antonio Torralba et al.NeurIPS 2020 · 761 citations
- Delving into Deep Imbalanced RegressionYuzhe Yang, Kaiwen Zha, Ying-Cong Chen, Hao Wang et al.ICML 2021 · 385 citations
Related papers
- ACCon: Angle-Compensated Contrastive Regularizer for Deep RegressionBotao Zhao, Xiaoyang Qu, Zuheng Kang, Junqing Peng et al.AAAI 2025
- Semi-Supervised Contrastive Learning for Deep Regression with Ordinal Rankings from Spectral SeriationWeihang Dai, Yao Du, Hanru Bai, Kwang-Ting Cheng et al.NeurIPS 2023 · 16 citations
- Contrastive Order Learning: A General Framework for Ordinal RegressionChaewon Lee, BeomJun Shim, Kwang Choi, Chang-Su KimICML 2026
- RankSim: Ranking Similarity Regularization for Deep Imbalanced RegressionYu Gong, Greg Mori, Frederick TungICML 2022 · 68 citations
- Improving Deep Regression with TightnessShihao Zhang, Yuguang Yan, Angela YaoICLR 2025
