In single-label classification, addressing a long-tailed dataset is straightforward. If images of "cats" are rare and images of "dogs" are abundant, you can simply oversample the cat images or undersample the dog images until the training distribution is uniform.
But what happens if your dataset requires predicting multiple labels per image, and a single image contains both a cat and a dog?
This scenario exposes the fundamental limitation of traditional data re-balancing. In multi-label and multi-object environments—such as scene graph generation, pedestrian attribute recognition, and instance segmentation—labels are inherently entangled. When you attempt to oversample a rare "tail" class by duplicating an image, you inadvertently duplicate all the common "head" classes present in that same image. This creates a collateral imbalance that reinforces the dominance of frequent classes, rendering standard image-level resampling ineffective or even counterproductive.
To solve this, a major research direction has emerged that shifts the intervention mechanism away from coarse image-level manipulation toward granular, instance-level, and loss-level balancing strategies.
The Co-Occurrence Trap
The core challenge of multi-label long-tailed distributions is statistical and physical entanglement. As explained by Qingqiu Huang et al. in Distribution-Balanced Loss for Multi-label Classification in Long-Tailed Datasets, adjusting the sampling rate for one class inherently alters the distribution of all associated classes because the labels are not independent.
Consider pedestrian attribute recognition. As noted by Yibo Zhou et al. in Pedestrian Attribute Recognition as Label-balanced Multi-label Learning, attributes are physically tied to a single pixel-level representation. If a rare attribute (e.g., "carrying a backpack") frequently co-occurs with a common one (e.g., "wearing jeans"), duplicating images to increase backpack exposure simultaneously floods the model with more examples of jeans.
This coupling creates a structural impossibility for uniform image-level balancing, a phenomenon also documented in text classification by Yi Huang et al. in Balancing Methods for Multi-label Text Classification with Long-Tailed Class Distribution. When rare and common labels share the same training instance, the gradients of the frequent labels dominate the learning process, overshadowing the features of infrequent labels.
Traditional Image-Level Resampling:
[ Rare Class + Common Class ] --Oversample--> [ Rare Class + Common Class ] x 5
(Common class is amplified too!)
Granular Instance-Level Resampling:
[ Rare Class + Common Class ] --Isolate----> [ Rare Class ] x 5
[ Common Class ] x 1
Breaking the Container: Spatial and Proposal-Level Resampling
To bypass the limitations of image-level manipulation, one major branch of solutions decouples the labels from their shared image container. In object detection and instance segmentation, this is achieved by operating at the level of region proposals rather than entire frames.
In Forest R-CNN: Large-Vocabulary Long-Tailed Object Detection and Instance Segmentation, Jialian Wu and Qian Zhang introduced proposal-level instance re-balancing. Instead of repeating identical images—which risks overfitting to background elements—their approach performs data re-balancing on individual region proposals generated during training. This allows the model to selectively amplify the training signal for rare object categories without amplifying the surrounding common objects.
A similar insight drives the work of Weiping Yu et al. in Towards Resolving the Challenge of Long-tail Distribution in UAV Images for Object Detection. In high-density aerial drone imagery, a single frame might contain hundreds of common objects (like cars) and only one rare object (like a specific truck). Image duplication fails completely here because the relative ratio of objects remains skewed. By utilizing object-level proposal samplers, the authors ensure that rare categories are adequately represented during the optimization phase, bypassing intra-image imbalances.
To balance both context and specificity, Nadine Chang et al. proposed a hybrid approach in Image-Level or Object-Level? A Tale of Two Resampling Strategies for Long-Tailed Detection. They decoupled the process using an object-centric memory bank: image-level sampling ensures that rare categories are encountered frequently enough to update the bank, while object-level replay provides the fine-grained balance necessary to stabilize the final predictions.
Gradient Isolation and Loss-Level Masking
When labels cannot be separated into distinct spatial boxes—such as global facial attributes, emotions, or overlapping text categories—spatial proposal isolation is impossible. In these domains, researchers decouple the learning signals at the loss and gradient level.
An elegant execution of this idea is found in PLM: Partial Label Masking for Imbalanced Multi-label Classification. Instead of altering the input data stream, Kevin Duarte et al. stochastically mask individual labels during the loss calculation. By selectively ignoring the negative gradients of dominant classes on specific samples, they balance the ratio of positive and negative updates for every class independently, allowing the model to learn rare attributes without discarding the image container.
Loss-Level Masking (PLM):
Forward Pass: [ Image with Common Class (A) and Rare Class (B) ]
Loss Compute: Compute Loss for Class B | Mask/Ignore Loss for Class A
Result: Gradients update only the rare class features.
Other strategies dynamically re-weight gradients based on co-occurrence statistics. In Multi-Label Meta Weighting for Long-Tailed Dynamic Scene Graph Generation, Shuo Chen et al. utilized a meta-learning framework to weight individual losses for every sample and class dynamically. This prevents frequent head relationships (like "looking at") from overshadowing rare tail predicates (like "twisting") when they occur simultaneously.
Similarly, Emily M. Hand et al. demonstrated in Doing the Best We Can With What We Have: Multi-Label Balancing With Selective Learning for Attribute Prediction that adaptively re-weighting and re-sampling data at the batch level for every attribute simultaneously allows the network to extract robust features even from highly biased multi-label distributions.
Holistic Co-occurrence Modeling
Rather than trying to isolate individual labels, a final perspective embraces the co-occurrence patterns as a structured signal.
In Unique Class Group Based Multi-Label Balancing Optimizer for Action Unit Detection, Dominik Seuß argued that multi-label data requires a holistic view of label combinations. Instead of performing independent class-wise adjustments, the author treated unique combinations of co-occurring labels as distinct groups. By optimizing the augmentation and sampling rates for these unique groups, the framework achieves precise dataset balancing without triggering collateral imbalances.
Ultimately, whether through spatial proposals, gradient masking, or joint-distribution grouping, the shift away from image-level resampling works because it respects the underlying structure of multi-label data. By isolating the optimization signal from the data container, these techniques allow deep networks to learn rare concepts without being blinded by the common context in which they reside.
Key Foundational Work
Doing the Best We Can With What We Have: Multi-Label Balancing With Selective Learning for Attribute Prediction (2018) — contributed 2 concept elements to this direction.
MOON: A Mixed Objective Optimization Network for the Recognition of Facial Attributes (2016) — contributed 1 concept elements to this direction.