Feature Fusion from Head to Tail: an Extreme Augmenting Strategy for Long-Tailed Visual Recognition

Mengke Li, Zhikai Hu, Yang Lu, Weichao Lan, Yiu-ming Cheung, Hui Huang · DOI

Introduction

In real-world scenarios, visual data often follows a long-tailed distribution where a few "head" classes contain the majority of samples, while numerous "tail" classes are represented by only a few examples. Standard deep learning models, acting as "lazy" optimizers, tend to prioritize head classes to minimize overall error. This leads to biased decision boundaries where head classes "squeeze" the territory of tail classes in the embedding space, causing rare items to be misclassified as common ones.

Comparison of existing methods versus H2T in defining class boundaries.

While common approaches involve re-weighting losses or complex data augmentation, they often fail to address the fundamental issue: how to define a fair boundary when one side of the distribution is nearly empty. This paper introduces Head-to-Tail Fusion (H2T), a simple "grafting" strategy designed to inject diverse semantic information from head classes into tail class features, creating more robust decision boundaries.

The H2T Framework

The authors propose a decoupled two-stage training approach to mitigate distribution bias without adding extra parameters to the model architecture.

  1. Stage I: Feature Extraction: The backbone network is trained normally to learn a representative feature space.
  2. Stage II: Classifier Adjustment: The backbone is frozen, and only the classifier is fine-tuned using the H2T strategy.
The two-stage training pipeline featuring H2T during classifier adjustment.

During the second stage, H2T performs feature-level grafting. For a given tail class sample, the model replaces a random portion of its feature map channels (governed by a fusion ratio $p$) with feature maps from a head class sample. This process simulates "unseen" variations of tail objects by borrowing the stylistic or environmental variety inherent in common head objects, effectively filling the "semantic scarcity" of the tail classes.

Key Insights and Rationale

The effectiveness of H2T is rooted in what the authors describe as a "Push-Pull" Rationale. Mathematically, H2T creates two opposing forces: it "pulls" the tail class weights closer to the actual samples and "pushes" the head class weights further away. This mechanism artificially enlarges the territory of tail classes in the model's decision space.

Unlike generative models (like GANs) that attempt to synthesize new images—a process that is computationally expensive and prone to artifacts—H2T operates directly in the feature space. It is a "plug-and-play" module that can be implemented with minimal code and zero additional parameters.

Experimental Results

H2T was evaluated on five standard long-tailed benchmarks, including CIFAR10/100-LT, ImageNet-LT, iNaturalist 2018, and Places-LT. Key findings include:

  • State-of-the-Art Performance: H2T consistently outperformed existing methods. On CIFAR100-LT, it improved accuracy by over 2% compared to standard decoupling methods.
  • Real-World Scalability: On the massive iNaturalist 2018 dataset, H2T achieved 71.81% accuracy, one of the highest reported scores for a single-model architecture.
  • Versatility: The method proved effective when paired with both standard ResNets and multi-expert architectures like RIDE, providing a performance boost across various pipelines.

Conclusion and Limitations

While H2T significantly improves tail-class recognition, it involves a fundamental trade-off: the shift toward a "fairer" boundary can occasionally lead to a slight decrease in head-class accuracy as the tail territory expands. Furthermore, the method's success depends on the quality of the initial representation learning in Stage I. If the backbone fails to learn a reasonable embedding space, grafting features may not yield the desired robustness. Future work may explore ways to optimize the initial embedding distribution to further enhance the grafting process.

Summary updated

BibTeX
@inproceedings{li2024feature,
  author = {Mengke Li and Zhikai Hu and Yang Lu and Weichao Lan and Yiu-ming Cheung and Hui Huang},
  title = {{Feature Fusion from Head to Tail: an Extreme Augmenting Strategy for Long-Tailed Visual Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i12.29262},
}
Figure