ACCon: Angle-Compensated Contrastive Regularizer for Deep Regression
Botao Zhao, Xiaoyang Qu, Zuheng Kang, Junqing Peng, Jing Xiao, Jianzong Wang
TL;DR
This work addresses the challenge of learning distance-aware representations in deep regression by introducing ACCon, an angle-compensated contrastive regularizer that encodes label-distance information into the embedding space. Built on supervised contrastive learning, ACCon adjusts negative similarities through an angle that reflects label differences, guiding representations toward a semi-hyperspherical arrangement. The authors provide theoretical bounds showing convergence of learned angles to the label-distance target and demonstrate superior data efficiency and robustness to imbalance across age estimation and semantic textual similarity tasks. The approach is plug-and-play with existing contrastive frameworks, achieving state-of-the-art or competitive performance while requiring fewer labeled examples in several settings, indicating strong practical impact for regression under data scarcity and long-tail regimes.
Abstract
In deep regression, capturing the relationship among continuous labels in feature space is a fundamental challenge that has attracted increasing interest. Addressing this issue can prevent models from converging to suboptimal solutions across various regression tasks, leading to improved performance, especially for imbalanced regression and under limited sample sizes. However, existing approaches often rely on order-aware representation learning or distance-based weighting. In this paper, we hypothesize a linear negative correlation between label distances and representation similarities in regression tasks. To implement this, we propose an angle-compensated contrastive regularizer for deep regression, which adjusts the cosine distance between anchor and negative samples within the contrastive learning framework. Our method offers a plug-and-play compatible solution that extends most existing contrastive learning methods for regression tasks. Extensive experiments and theoretical analysis demonstrate that our proposed angle-compensated contrastive regularizer not only achieves competitive regression performance but also excels in data efficiency and effectiveness on imbalanced datasets.
