Introduction
In real-world scenarios, data distributions are rarely uniform. While most machine learning research focuses on Class-wise Long-Tail (CLT) distributions—where a few "head" classes have many samples and many "tail" classes have few—this focus ignores a more pervasive issue: attribute-wise imbalance. Even within a common class, certain attributes (such as specific postures, backgrounds, or lighting conditions) may be rare. This paper introduces the Generalized Long-Tailed (GLT) classification task to address both class and attribute imbalances simultaneously.
The Problem: Beyond Class-Wise Imbalance
Standard long-tailed methods typically attempt to correct class imbalance through re-sampling or adjusting decision boundaries. However, these methods often fail to account for spurious correlations. For instance, if a "tractor" is frequently photographed in a "field," a model might learn that the field itself is a defining feature. Consequently, it may misclassify a rare "harvester" in a field as a tractor, or fail to recognize a tractor in a different setting.
As shown above, even when classes are balanced, the underlying attributes follow a long-tailed distribution. This "hidden" tail makes it difficult for models to generalize across diverse environments.
The Solution: Invariant Feature Learning (IFL)
To tackle the GLT challenge, the authors propose Invariant Feature Learning (IFL). Since attributes are often unlabeled and implicit, IFL uses the model's own prediction confidence as a proxy to identify rare attributes. The framework operates in two primary stages:
- Environment Construction: The model is initially trained on the dataset. Samples with low prediction confidence are assumed to contain rare or "tail" attributes. The data is then split into two environments: a standard uniform sample ($e_1$) and an environment that up-samples these low-confidence images ($e_2$).
- Invariant Metric Loss: Inspired by Invariant Risk Minimization (IRM), IFL seeks to learn features that remain consistent across both environments. By extending standard Center Loss into an "invariant" version, the model is forced to ignore variant, confusing attributes and focus on the core features that define the class.
This approach is backbone-agnostic and can be integrated into existing long-tail strategies such as MixUp, RIDE, or LWS.
Benchmarking and Evaluation
The authors established two new benchmarks for this task: ImageNet-GLT and MSCOCO-GLT. Evaluation is conducted across three protocols: CLT (standard class imbalance), ALT (attribute-wise imbalance with balanced classes), and GLT (joint imbalance).
Key findings include:
- Universal Performance Gains: IFL consistently improves performance when added to state-of-the-art methods. For example, adding IFL to the RIDE ensemble method increased overall accuracy on ImageNet-GLT from 43.00% to 45.64%.
- Precision-Accuracy Trade-off: Unlike traditional methods that increase tail accuracy by shifting boundaries (often at the cost of precision), IFL improves both by refining the feature space itself.
- Robustness to Attributes: On the ALT protocol, IFL-based models significantly outperformed baselines, demonstrating that the model learns robust, invariant features rather than memorizing backgrounds or specific contexts.
Conclusion
Invariant Feature Learning addresses the critical but often overlooked problem of attribute-wise imbalance in long-tailed classification. By using prediction confidence to discover hidden sub-populations, IFL enables models to learn features that are truly representative of a class, regardless of the surrounding context. Future work may extend this framework to more complex tasks like object detection and segmentation, where attribute bias remains a significant hurdle.
Summary updated