Long-Tailed Visual Recognition via Permutation-Invariant Head-to-Tail Feature Fusion

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

Abstract

Deep learning models often struggle with long-tailed datasets, where rare "tail" classes are frequently misclassified as common "head" classes. This paper introduces PI-H2T, a novel plug-and-play module designed to enhance rare class recognition. By integrating Permutation-Invariant (PI) feature fusion and a Head-to-Tail (H2T) fusion strategy, the method automatically generates better feature margins and transfers semantic information from frequent classes to rare ones. PI-H2T improves performance across various benchmarks and architectures with minimal computational overhead.

Introduction: The Challenge of Long-Tailed Data

Real-world datasets typically exhibit a long-tailed distribution, where a small number of head classes contain the majority of samples, while many tail classes have very few. Standard training objectives lead to models biased toward head classes, resulting in two primary issues:

  1. Deformed Representation Space: Sparse data for tail classes prevents the model from learning compact and well-separated feature clusters.
  2. Biased Classifier: Decision boundaries are pushed toward tail classes, shrinking their prediction regions and causing frequent misclassifications.

While existing research often addresses these issues separately, PI-H2T provides a unified framework to refine both representations and classifiers.

Methodology: PI-H2T

The proposed PI-H2T framework operates in two distinct stages to address representation learning and classifier bias.

Overview of the PI-H2T framework, illustrating the two-stage process: Stage I (Representation Learning with PIF) and Stage II (Classifier Adjustment with H2TF).

Stage I: Permutation-Invariant Feature Fusion (PIF)

During initial representation learning, PIF extracts features that are invariant to channel permutations using mean pooling. These invariant features are then fused back into the original feature maps via 1D convolution. This process mathematically enforces tighter intra-class clusters and naturally creates wider margins between classes without the need for complex, manually tuned loss functions.

Stage II: Head-to-Tail Fusion (H2TF)

In the second stage, the feature extractor is frozen, and the classifier is fine-tuned. H2TF addresses the biased decision boundary by augmenting tail class features with blended information from head classes. A dual-branch sampling strategy ensures tail samples are frequently mixed with head samples. The fusion ratio is dynamically adjusted based on a sample's distance from its class center, preventing excessive distortion of the feature space. This blending effectively "expands" the territory of tail classes in the classifier's view.

Experimental Results

The authors evaluated PI-H2T on several standard benchmarks, including CIFAR100-LT, ImageNet-LT, Places-LT, and iNaturalist 2018.

Performance comparison of PI-H2T against state-of-the-art methods on CIFAR100-LT across various imbalance factors and backbones.

As shown in the results, PI-H2T consistently outperforms baseline methods across different architectures:

  • CNN-based Models: On CIFAR100-LT (imbalance factor 100), adding PI-H2T to the GCL baseline increases top-1 accuracy from 48.61% to 49.88%. On ImageNet-LT, GCL + PI-H2T reaches 55.08%.
  • Transformer-based Models: PI-H2T is highly effective for Vision Transformers (ViTs). Applied to the LPT baseline on CIFAR100-LT, it improves accuracy from 89.12% to 90.05%.
  • Natural Imbalance: On the iNaturalist 2018 dataset, the method achieves a competitive 75.02% top-1 accuracy.

Visualizations using t-SNE confirm that PIF leads to tighter clusters, while H2TF successfully shifts decision boundaries to provide more space for tail classes.

Conclusion and Future Work

PI-H2T offers a robust solution for long-tailed recognition by improving both feature representations and classifier boundaries. However, a notable limitation is that the PIF module requires training during the representation learning stage, making it more computationally intensive than simple post-hoc classifier adjustments. Additionally, its effectiveness is slightly reduced when using heavily pre-trained, frozen backbones. Future research will focus on adapting these permutation-invariant margins more efficiently for large-scale frozen foundation models.

Summary updated

BibTeX
@misc{li2025long,
  author = {Mengke Li and Zhikai Hu and Yang Lu and Weichao Lan and Yiu-ming Cheung and Hui Huang},
  title = {{Long-Tailed Visual Recognition via Permutation-Invariant Head-to-Tail Feature Fusion}},
  year = {2025},
  eprint = {2506.00625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00625},
}
Figure