Abstract
Long-tailed visual recognition remains a significant challenge as models tend to bias toward "head" classes with abundant data while failing on "tail" classes. This paper reframes the problem as a domain adaptation task, specifically addressing target shift. We argue that tail classes in training sets often fail to represent the true diversity of those classes at test time—a phenomenon termed "sample poverty." We propose a meta-learning approach using a two-component weighting scheme (class-wise and per-instance) to bridge the gap between training and test distributions. Our method consistently outperforms state-of-the-art baselines on major benchmarks like iNaturalist and ImageNet-LT.
Introduction
In real-world scenarios, visual data typically follows a Power Law distribution. While benchmark datasets are often balanced, natural data consists of a few frequent "head" classes and many rare "tail" classes. Standard deep learning models trained on such data become heavily biased toward the majority categories.
Existing solutions often rely on re-balancing via oversampling or class-wise loss weighting. However, these methods assume that the conditional distribution $P(x|y)$ is consistent between training and testing. This paper argues that for tail classes, the few available training samples cannot capture the full variance of the class (e.g., lighting, pose, background). This creates a domain shift between the training (source) and the real-world (target) distributions.
Methodology
We propose a novel weighting strategy that treats each training example's importance as a combination of two factors:
- Class-wise weight ($w_y$): Handles basic imbalance based on the "effective number" of samples in a class.
- Conditional weight ($\epsilon_i$): A per-instance weight learned via meta-learning to account for how well a specific image represents the underlying class distribution.
The training follows a two-stage meta-learning framework. After an initial "warm-up" with standard cross-entropy, the model uses a small, manually balanced "development set" to guide weight updates. By performing a "look-ahead" step—updating parameters based on current weights and evaluating on the development set—the model uses the resulting performance gradient to optimize the per-instance weights ($\epsilon_i$) for the next training batch.
Experimental Results
The approach was validated on several benchmarks, including CIFAR-10/100-LT, ImageNet-LT, and the naturally long-tailed iNaturalist 2017/2018 datasets.
On CIFAR-10-LT (Imbalance Factor 200), our method reduced top-1 error to 29.34%, a significant improvement over the 34.32% baseline. On the large-scale iNaturalist 2018 dataset, we achieved a top-1 error of 32.45%, outperforming the 36.20% baseline. Crucially, our method maintains high performance on head classes while lifting the tail, a balance often missed by other re-weighting techniques like L2RW.
Conclusion
By viewing long-tailed recognition through the lens of domain adaptation, we identify "sample poverty" as a key hurdle. Our meta-learning framework effectively learns to weight instances based on their representativeness, bridging the gap between skewed training data and balanced real-world expectations. Future work will explore domain-invariant feature learning to further refine performance on extremely rare categories.
Summary updated