Empowering Vision Transformers with Multi-Scale Causal Intervention for Long-Tailed Image Classification
Xiaoshuo Yan, Zhaochuan Li, Lei Meng, Zhuang Qi, Wei Wu, Zixuan Li, Xiangxu Meng
TL;DR
This paper tackles long-tail image classification in Vision Transformers by identifying the failure of existing causal methods to leverage fine-grained features. It introduces TSCNet, a two-stage framework consisting of Hierarchical Causal Representation Learning (HCRL) to remove semantic bias at patch and feature levels, and Counterfactual Logits Bias Calibration (CLBC) to adjust decision boundaries via counterfactual augmentation. The method employs a confounder dictionary, NWGM approximation, and Fourier-based counterfactuals with adaptive strength, framed by backdoor adjustments. Empirical results on CIFAR100-LT and VireoFood-172 show that TSCNet consistently improves tail-class performance across backbones, especially ViT-based models, while preserving head-class accuracy, underscoring its practical potential for robust long-tail vision systems.
Abstract
Causal inference has emerged as a promising approach to mitigate long-tail classification by handling the biases introduced by class imbalance. However, along with the change of advanced backbone models from Convolutional Neural Networks (CNNs) to Visual Transformers (ViT), existing causal models may not achieve an expected performance gain. This paper investigates the influence of existing causal models on CNNs and ViT variants, highlighting that ViT's global feature representation makes it hard for causal methods to model associations between fine-grained features and predictions, which leads to difficulties in classifying tail classes with similar visual appearance. To address these issues, this paper proposes TSCNet, a two-stage causal modeling method to discover fine-grained causal associations through multi-scale causal interventions. Specifically, in the hierarchical causal representation learning stage (HCRL), it decouples the background and objects, applying backdoor interventions at both the patch and feature level to prevent model from using class-irrelevant areas to infer labels which enhances fine-grained causal representation. In the counterfactual logits bias calibration stage (CLBC), it refines the optimization of model's decision boundary by adaptive constructing counterfactual balanced data distribution to remove the spurious associations in the logits caused by data distribution. Extensive experiments conducted on various long-tail benchmarks demonstrate that the proposed TSCNet can eliminate multiple biases introduced by data imbalance, which outperforms existing methods.
