TL;DR
ConR (Contrastive Regularizer) is a plug-and-play loss term designed to fix the "feature collapse" problem in deep imbalanced regression. By dynamically identifying mispredicted samples and applying a weighted pushing force in the feature space, it prevents rare minority samples from being overshadowed by common majority ones, significantly boosting performance across diverse regression tasks.
What Problem Does This Paper Address?
In many real-world scenarios, data is "long-tailed"—a few common values (the majority) appear frequently, while many others (the minority) are rare. While imbalanced classification is well-studied, Deep Imbalanced Regression (DIR) is much trickier because labels are continuous and potentially infinite.
A major challenge in DIR is that deep neural networks tend to "collapse" the features of minority samples into the clusters of their majority neighbors. For example, in an age estimation task, the model might learn features for a rare 1-year-old that are indistinguishable from those of a common 21-year-old. This leads to biased predictions that gravitate toward the majority. Existing solutions often rely on binning the continuous labels into categories, which loses valuable local correlation information and doesn't scale well to complex, high-dimensional label spaces like depth maps or gaze vectors.
Methods
The authors propose ConR, a contrastive regularizer that translates label similarities directly into feature space proximities without requiring label binning. It works through three core mechanisms:
- Dynamic Anchor Selection: Instead of using all samples, ConR identifies "anchors"—samples where the model is currently most confused (i.e., where feature collapse is happening).
- Pair Selection: For a given anchor, ConR identifies positive pairs (samples with very similar labels) and negative pairs (samples with dissimilar labels but similar model predictions).
- Relative Pushing: This is the core mechanism. ConR pulls positive pairs together and pushes negative pairs apart. Crucially, the "pushing power" is weighted: it is stronger if the anchor belongs to a minority region (compensating for the lack of data) and proportional to the "severity" of the misprediction.
Datasets
The authors evaluated ConR on four large-scale benchmarks:
- AgeDB-DIR & IMDB-WIKI-DIR: Facial age estimation (1D continuous labels).
- NYUD2-DIR: Depth map estimation from RGB images (high-dimensional label space).
- MPIIGaze-DIR: Appearance-based gaze estimation (2D label space).
Notably, they introduced the MPIIGaze-DIR benchmark to test performance on multi-dimensional label spaces, which are common in robotics and computer vision but often ignored in imbalanced learning research.
Key Insights and Ideas
- Feature-Label Correspondence: The geometry of the feature space should mirror the geometry of the label space. If two labels are far apart, their features should be pushed apart, especially if the model is currently mistaking one for the other.
- Confused Samples as Anchors: By focusing on samples currently misclassified as their neighbors, ConR efficiently targets the areas of the feature manifold that need the most "stretching."
- Orthogonality: ConR isn't a replacement for existing imbalanced learning techniques like LDS (Label Distribution Smoothing) or FDS (Feature Distribution Smoothing). Instead, it's orthogonal, meaning it can be added on top of them to provide an extra performance boost.
- Handling High Dimensions: Unlike methods that rely on ordering (like RankSim), ConR uses a similarity-based approach that works just as well for complex labels like depth maps where a simple "greater than" relationship doesn't exist.
Key Results
ConR consistently outperformed state-of-the-art methods across all four benchmarks.
- Performance Boost: On AgeDB-DIR, adding ConR to existing methods improved Mean Absolute Error (MAE) by up to 6.5% in the "few-shot" (minority) regions.
- Depth Estimation: On the challenging NYUD2-DIR task, ConR significantly reduced Root Mean Squared Error (RMSE) compared to strong baselines like Balanced MSE.
- Synergy with Existing Methods: When combined with LDS or FDS, ConR consistently lowers the RMSE across all data frequencies (All, Many, Median, Few), showing particularly strong improvements in the rare "Few" categories.
Limitations and Future Work
While ConR is highly effective, the authors note a few areas for further exploration:
- Hyperparameter Sensitivity: The method relies on a similarity threshold and pushing weights that may require tuning for different tasks.
- Theoretical Scope: While they provide a theoretical upper bound on mislabeling probability, more work could be done to understand the convergence properties of this specific contrastive loss in highly non-convex regression landscapes.
- Broader Applications: Future work could extend ConR to other domains like time-series forecasting or medical imaging where imbalanced continuous data is prevalent.
Summary updated