Proceedings

Empowering Vision Transformers with Multi-Scale Causal Intervention for Long-Tailed Image Classification

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 6785-6793.

https://doi.org/10.24963/ijcai.2025/755

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.

  1. [Ahn et al., 2022] Sumyeong Ahn, Jongwoo Ko, and Se- Young Yun. Cuda: Curriculum of data augmentation for long-tailed recognition. In ICLR, 2022.
  2. [Alexey, 2020] Dosovitskiy Alexey. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv: 2010.11929, 2020.
  3. [Chen and Ngo, 2016] Jingjing Chen and Chong-Wah Ngo. Deep-based ingredient recognition for cooking recipe re- trieval. In MM, pages 32-41, 2016.
  4. [Chen and Su, 2023] Jiahao Chen and Bing Su. Transfer knowledge from head to tail: Uncertainty calibration under long-tailed distribution. In CVPR, pages 19978-19987, 2023.
  5. [Cui et al., 2019] Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. Class-balanced loss based on effective number of samples. In CVPR, pages 9268-9277, 2019.
  6. [Cui et al., 2022] Jiequan Cui, Shu Liu, Zhuotao Tian, Zhisheng Zhong, and Jiaya Jia. Reslt: Residual learn- ing for long-tailed recognition. TPAMI, 45(3):3695-3706, 2022.
  7. [Cui et al., 2023] Jiequan Cui, Zhisheng Zhong, Zhuotao Tian, Shu Liu, Bei Yu, and Jiaya Jia. Generalized para- metric contrastive learning. TPAMI, 2023.
  8. [Dang et al., 2023] Jisheng Dang, Huicheng Zheng, Jinming Lai, Xu Yan, and Yulan Guo. Efficient and robust video object segmentation through isogenous memory sampling and frame relation mining. TIP, 32:3924-3938, 2023.
  9. [Dang et al., 2024a] Jisheng Dang, Huicheng Zheng, Bimei Wang, Longguang Wang, and Yulan Guo. Temporo-spatial parallel sparse memory networks for efficient video object segmentation. T-ITS, 25(11):17291-17304, 2024.
  10. [Dang et al., 2024b] Jisheng Dang, Huicheng Zheng, Xiao- hao Xu, and Yulan Guo. Unified spatio-temporal dynamic routing for efficient video object segmentation. T-ITS, 25(5):4512-4526, 2024.
  11. [Dang et al., 2024c] Jisheng Dang, Huicheng Zheng, Xiao- hao Xu, Longguang Wang, and Yulan Guo. Beyond ap- pearance: Multi-frame spatio-temporal context memory networks for efficient and robust video object segmenta- tion. TIP, 33:4853-4866, 2024.
  12. [Dang et al., 2025] Jisheng Dang, Huicheng Zheng, Xiao- hao Xu, Longguang Wang, Qingyong Hu, and Yulan Guo. Adaptive sparse memory networks for efficient and robust video object segmentation. TNNLS, 36(2):3820-3833, 2025.
  13. [Dong et al., 2023] Bowen Dong, Pan Zhou, Shuicheng Yan, and Wangmeng Zuo. Lpt: Long-tailed prompt tuning for image classification. In ICLR, 2023.
  14. [Du et al., 2023] Fei Du, Peng Yang, Qi Jia, Fengtao Nan, Xiaoting Chen, and Yun Yang. Global and local mix- ture consistency cumulative learning for long-tailed visual recognitions. In CVPR, pages 15814-15823, 2023.
  15. [Fu et al., 2025] Lele Fu, Sheng Huang, Yanyi Lai, Chuanfu Zhang, Hong-Ning Dai, Zibin Zheng, and Chuan Chen. Federated domain-independent prototype learning with alignments of representation and parameter spaces for fea- ture shift. TMC, pages 1-16, 2025.
  16. [Guan et al., 2023] Qing-Ling Guan, Yuze Zheng, Lei Meng, Li-Quan Dong, and Qun Hao. Improving the gener- alization of visual classification models across iot cameras via cross-modal inference and fusion. IoT, 10(18):15835- 15846, 2023.
  17. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In CVPR, pages 770-778, 2016.
  18. [Hong et al., 2021] Youngkyu Hong, Seungju Han, Kwanghee Choi, Seokjun Seo, Beomsu Kim, and Buru Chang. Disentangling label distribution for long- tailed visual recognition. In CVPR, pages 6626-6636, 2021.
  19. [Jia et al., 2022] Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie, Serge Belongie, Bharath Hariharan, and Ser-Nam Lim. Visual prompt tuning. In ECCV, pages 709-727. Springer, 2022.
  20. [Kang et al., 2019] Bingyi Kang, Saining Xie, Marcus Rohrbach, Zhicheng Yan, Albert Gordo, Jiashi Feng, and Yannis Kalantidis. Decoupling representation and classi- fier for long-tailed recognition. In ICLR, 2019.
  21. [Li et al., 2024a] Mengke Li, Ye Liu, Yang Lu, Yiqun Zhang, Yiu-ming Cheung, and Hui Huang. Improv- ing visual prompt tuning by gaussian neighborhood min- imization for long-tailed visual recognition. NeurIPS, 37:103985-104009, 2024.
  22. [Li et al., 2024b] Mengke Li, HU Zhikai, Yang Lu, Weichao Lan, Yiu-ming Cheung, and Hui Huang. Feature fusion from head to tail for long-tailed visual recognition. In AAAI, volume 38, pages 13581-13589, 2024.
  23. [Li et al., 2024c] Xiangxian Li, Yuze Zheng, Haokai Ma, Zhuang Qi, Xiangxu Meng, and Lei Meng. Cross-modal learning using privileged information for long-tailed im- age classification. CVM, pages 1-12, 2024.
  24. [Liao et al., 2024] Tianchi Liao, Lele Fu, Jialong Chen, Zhen Wang, Zibin Zheng, and Chuan Chen. A swiss army knife for heterogeneous federated learning: Flexible coupling via trace norm. In NeurIPS, volume 37, pages 139886-139911, 2024.
  25. [Liu et al., 2022] Ruyang Liu, Hao Liu, Ge Li, Haodi Hou, TingHao Yu, and Tao Yang. Contextual debiasing for vi- sual recognition with causal mechanisms. In CVPR, pages 12755-12765, 2022.
  26. [Liu et al., 2024] Yu Liu, Guihe Qin, Haipeng Chen, Zhiy- ong Cheng, and Xun Yang. Causality-inspired invariant representation learning for text-based person retrieval. In AAAI, volume 38, pages 14052-14060, 2024.
  27. [Lv et al., 2022] Fangrui Lv, Jian Liang, Shuang Li, Bin Zang, Chi Harold Liu, Ziteng Wang, and Di Liu. Causality inspired representation learning for domain generalization. In CVPR, pages 8046-8056, 2022.
  28. [Mao et al., 2022] Chengzhi Mao, Kevin Xia, James Wang, Hao Wang, Junfeng Yang, Elias Bareinboim, and Carl Vondrick. Causal transportability for visual recognition. In CVPR, pages 7521-7531, 2022.
  29. [Meng et al., 2025] Lei Meng, Xiangxian Li, Xiaoshuo Yan, Haokai Ma, Zhuang Qi, Wei Wu, and Xiangxu Meng. Causal inference over visual-semantic-aligned graph for image classification. In AAAI, volume 39, pages 19449- 19457, 2025.
  30. [Pourkeshavarz et al., 2024] Mozhgan Pourkeshavarz, Jun- rui Zhang, and Amir Rasouli. Cadet: a causal disentan- glement approach for robust trajectory prediction in au- tonomous driving. In CVPR, pages 14874-14884, 2024.
  31. [Qi et al., 2023] Zhuang Qi, Lei Meng, Zitan Chen, Han Hu, Hui Lin, and Xiangxu Meng. Cross-silo prototypical cal- ibration for federated learning with non-iid data. In MM, pages 3099-3107, 2023.
  32. [Rangwani et al., 2024] Harsh Rangwani, Pradipto Mon- dal, Mayank Mishra, Ashish Ramayee Asokan, and R Venkatesh Babu. Deit-lt: Distillation strikes back for vi- sion transformer training on long-tailed datasets. In CVPR, pages 23396-23406, 2024.
  33. [Ren et al., 2020] Jiawei Ren, Cunjun Yu, Xiao Ma, Haiyu Zhao, Shuai Yi, et al. Balanced meta-softmax for long- tailed visual recognition. NeurIPS, 33:4175-4186, 2020.
  34. [Selvaraju et al., 2020] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: visual explanations from deep networks via gradient-based localization. IJCV, 128:336-359, 2020.
  35. [Shi et al., 2023] Jiang-Xin Shi, Tong Wei, Zhi Zhou, Xin-Yan Han, Jie-Jing Shao, and Yu-Feng Li. Parameter- efficient long-tailed recognition. arXiv preprint arXiv:2309.10019, 2023.
  36. [Sun et al., 2023] Shuzhou Sun, Shuaifeng Zhi, Qing Liao, Janne Heikkilä, and Li Liu. Unbiased scene graph generation via two-stage causal modeling. TPAMI, 45(10):12562-12580, 2023.
  37. [Tang et al., 2020] Kaihua Tang, Jianqiang Huang, and Han- wang Zhang. Long-tailed classification by keeping the good and removing the bad momentum causal effect. NeurIPS, 33:1513-1524, 2020.
  38. [Tian et al., 2022] Changyao Tian, Wenhai Wang, Xizhou Zhu, Jifeng Dai, and Yu Qiao. Vl-ltr: Learning class- wise visual-linguistic representation for long-tailed visual recognition. In ECCV, pages 73-91. Springer, 2022.
  39. [Wang et al., 2021] Peng Wang, Kai Han, Xiu-Shen Wei, Lei Zhang, and Lei Wang. Contrastive learning based hybrid networks for long-tailed image classification. In CVPR, pages 943-952, 2021.
  40. [Wang et al., 2024a] Binwu Wang, Pengkun Wang, Wei Xu, Xu Wang, Yudong Zhang, Kun Wang, and Yang Wang. Kill two birds with one stone: Rethinking data augmenta- tion for deep long-tailed learning. In ICLR, 2024.
  41. [Wang et al., 2024b] Liuyi Wang, Zongtao He, Ronghao Dang, Mengjiao Shen, Chengju Liu, and Qijun Chen. Vision-and-language navigation via causal learning. In CVPR, pages 13139-13150, 2024.
  42. [Wang et al., 2024c] Yuqing Wang, Xiangxian Li, Yannan Liu, Xiao Cao, Xiangxu Meng, and Lei Meng. Causal in- ference for out-of-distribution recognition via sample bal- ancing. CAAI Transactions on Intelligence Technology, 9(5):1172-1184, 2024.
  43. [Wang et al., 2024d] Yuqing Wang, Lei Meng, Haokai Ma, Yuqing Wang, Haibei Huang, and Xiangxu Meng. Mod- eling event-level causal representation for video classifica- tion. In MM, pages 3936-3944, 2024.
  44. [Xu et al., 2023] Zhengzhuo Xu, Ruikang Liu, Shuo Yang, Zenghao Chai, and Chun Yuan. Learning imbalanced data with vision transformers. In CVPR, pages 15793-15803, 2023.
  45. [Xu, 2015] Kelvin Xu. Show, attend and tell: Neural image caption generation with visual attention. arXiv preprint arXiv:1502.03044, 2015.
  46. [Yang et al., 2023] Dingkang Yang, Zhaoyu Chen, Yuzheng Wang, Shunli Wang, Mingcheng Li, Siao Liu, Xiao Zhao, Shuai Huang, Zhiyan Dong, Peng Zhai, et al. Context de- confounded emotion recognition. In CVPR, pages 19005- 19015, 2023.
  47. [Zhang et al., 2023] Yifan Zhang, Bingyi Kang, Bryan Hooi, Shuicheng Yan, and Jiashi Feng. Deep long-tailed learn- ing: A survey. TPAMI, 45(9):10795-10816, 2023.
  48. [Zhang et al., 2024] Youliang Zhang, Wenxuan Liu, Danni Xu, Zhuo Zhou, and Zheng Wang. Bi-causal: Group activ- ity recognition via bidirectional causality. In CVPR, pages 1450-1459, 2024.
  49. [Zhou et al., 2020] Boyan Zhou, Quan Cui, Xiu-Shen Wei, and Zhao-Min Chen. Bbn: Bilateral-branch network with cumulative learning for long-tailed visual recognition. In CVPR, pages 9719-9728, 2020.
  50. [Zhou et al., 2024] Zhipeng Zhou, Liu Liu, Peilin Zhao, and Wei Gong. Pareto deep long-tailed recognition: A conflict- averse solution. In ICLR, 2024.
  51. [Zhu et al., 2022] Beier Zhu, Yulei Niu, Xian-Sheng Hua, and Hanwang Zhang. Cross-domain empirical risk min- imization for unbiased long-tailed classification. In AAAI, volume 36, pages 3589-3597, 2022.
  52. [Zhu et al., 2024] Beier Zhu, Kaihua Tang, Qianru Sun, and Hanwang Zhang. Generalized logit adjustment: Calibrat- ing fine-tuned models by removing label bias in founda- tion models. NeurIPS, 36, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards