Lune

CVPR2023Top-tier venue

Masked Images Are Counterfactual Samples for Robust Fine-Tuning

Yao Xiao, Ziyi Tang, Pengxu Wei, Cong Liu, Liang Lin

Abstract

Deep learning models are challenged by the distribution shift between the training data and test data. Recently, the large models pre-trained on diverse data have demonstrated unprecedented robustness to various distribution shifts. However, fine-tuning these models can lead to a trade-off between in-distribution (ID) performance and out-of-distribution (OOD) robustness. Existing methods for tackling this trade-off do not explicitly address the OOD robustness problem. In this paper, based on causal analysis of the aforementioned problems, we propose a novel fine-tuning method, which uses masked images as counterfactual samples that help improve the robustness of the fine-tuning model. Specifically, we mask either the semantics-related or semantics-unrelated patches of the images based on class activation map to break the spurious correlation, and refill the masked patches with patches from other images. The resulting counterfactual samples are used in feature-based distillation with the pre-trained model. Extensive experiments verify that regularizing the fine-tuning with the proposed masked images can achieve a better trade-off between ID and OOD performance, surpassing previous methods on the OOD performance. Our code is available at https://github.com/Coxy7/robust-finetuning.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Contrastive Learning Relies More on Spatial Inductive Bias Than Supervised Learning: An Empirical Study cites BEiT: BERT Pre-Training of Image Transformers
  • Contrastive Learning Relies More on Spatial Inductive Bias Than Supervised Learning: An Empirical Study cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Contrastive Learning Relies More on Spatial Inductive Bias Than Supervised Learning: An Empirical Study cites Learning Transferable Visual Models From Natural Language Supervision
  • BEiT: BERT Pre-Training of Image Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites Learning Transferable Visual Models From Natural Language Supervision
  • DGMamba: Domain Generalization via Generalized State Space Model cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained Models cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. DGMamba: Domain Generalization via Generalized State Space ModelShaocong Long, Qianyu Zhou, Xiangtai Li, Xuequan Lu et al.ACM MM 2024 · 15 citations
  2. Foundation Model-oriented Robustness: Robust Image Model Evaluation with Pretrained ModelsPeiyan Zhang, Haoyang Liu, Chaozhuo Li, Xing Xie et al.ICLR 2024 · 8 citations
  3. Causal-JEPA: Learning World Models through Object-Level Latent MaskingHeejeong Nam, Quentin Le Lidec, Lucas Maes, Yann LeCun et al.ICML 2026 · 7 citations
  4. Contrastive Learning Relies More on Spatial Inductive Bias Than Supervised Learning: An Empirical StudyYuanyi Zhong, Haoran Tang, Jun-Kun Chen, Yu-Xiong WangICCV 2023 · 4 citations
  5. Decompose-and-Compose: A Compositional Approach to Mitigating Spurious CorrelationFahimeh Hosseini Noohdani, Parsa Hosseini, Aryan Yazdan Parast, Hamidreza Yaghoubi Araghi et al.CVPR 2024 · 3 citations

Builds on25

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations
  4. Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations
  5. BEiT: BERT Pre-Training of Image TransformersHangbo Bao, Li Dong, Songhao Piao, Furu WeiICLR 2022 · 3,632 citations

Related papers

  1. DecAug: Out-of-Distribution Generalization via Decomposed Feature Representation and Semantic AugmentationHaoyue Bai, Rui Sun, Lanqing Hong, Fengwei Zhou et al.AAAI 2021 · 88 citations
  2. Concept-wise Fine-tuning Matters in Preventing Negative TransferYunqiao Yang, Long-Kai Huang, Ying WeiICCV 2023 · 3 citations
  3. MASKER: Masked Keyword Regularization for Reliable Text ClassificationSeung Jun Moon, Sangwoo Mo, Kimin Lee, Jaeho Lee et al.AAAI 2021 · 39 citations
  4. Teaching Small Language Models Reasoning through Counterfactual DistillationTao Feng, Yicheng Li, Chenglin Li, Hao Chen et al.EMNLP 2024 · 1 citation
  5. Debiased Fine-Tuning for Vision-Language Models by Prompt RegularizationBeier Zhu, Yulei Niu, Saeil Lee, Minhoe Hur et al.AAAI 2023 · 34 citations
Dusk over the sea between two cliffs drawn in fine vertical lines