Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Rank-N-Contrast: Learning Continuous Representations for Regression

About

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.

Kaiwen Zha, Peng Cao, Jeany Son, Yuzhe Yang, Dina Katabi• 2022

Related benchmarks

TaskDatasetResultRank
Poverty Index RegressionPovertyMap (test)
Overall MAE0.32
24
Age EstimationAgeDB (val)
Age MAE6.14
13
RegressionSkyFinder
Average Metric Rank2.75
12
Temperature RegressionSkyFinder by attribute (test)
Average MAE3.24
12
Temperature RegressionSkyFinder medium-shot (test)
Average MAE2.9
12
Temperature RegressionSkyFinder few-shot (test)
Average MAE4.14
12
Temperature RegressionSkyFinder zero-shot (test)
Average MAE4.71
12
RegressionUTKFace Many-shot (test)
Average MAE4.35
12
Temperature RegressionSkyFinder (test)
Overall GM2.17
12
RegressionPovertyMap
Average Metric Rank5.71
12
Showing 10 of 25 rows

Other info

Code

Follow for update