English

Rank-N-Contrast: Learning Continuous Representations for Regression

Machine Learning 2023-10-11 v2 Artificial Intelligence Computer Vision and Pattern Recognition

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.

Keywords

Cite

@article{arxiv.2210.01189,
  title  = {Rank-N-Contrast: Learning Continuous Representations for Regression},
  author = {Kaiwen Zha and Peng Cao and Jeany Son and Yuzhe Yang and Dina Katabi},
  journal= {arXiv preprint arXiv:2210.01189},
  year   = {2023}
}

Comments

NeurIPS 2023 Spotlight. The first two authors contributed equally to this paper

R2 v1 2026-06-28T02:43:22.355Z