TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Optimizing Relevance Maps of Vision Transformers Improves ...

Optimizing Relevance Maps of Vision Transformers Improves Robustness

Hila Chefer, Idan Schwartz, Lior Wolf

2022-06-02Image ClassificationOut-of-Distribution Generalization
PaperPDFCode(official)

Abstract

It has been observed that visual classification models often rely mostly on the image background, neglecting the foreground, which hurts their robustness to distribution changes. To alleviate this shortcoming, we propose to monitor the model's relevancy signal and manipulate it such that the model is focused on the foreground object. This is done as a finetuning step, involving relatively few samples consisting of pairs of images and their associated foreground masks. Specifically, we encourage the model's relevancy map (i) to assign lower relevance to background regions, (ii) to consider as much information as possible from the foreground, and (iii) we encourage the decisions to have high confidence. When applied to Vision Transformer (ViT) models, a marked improvement in robustness to domain shifts is observed. Moreover, the foreground masks can be obtained automatically, from a self-supervised variant of the ViT model itself; therefore no additional supervision is required.

Results

TaskDatasetMetricValueModel
Image ClassificationObjectNetTop-1 Accuracy52AR-L (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy73.5AR-L (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy47.1AR-B (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy70AR-B (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy46.5AR-L
Image ClassificationObjectNetTop-5 Accuracy68.3AR-L
Image ClassificationObjectNetTop-1 Accuracy43.2ViT-L (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy65.8ViT-L (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy42.2ViT-B (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy65.1ViT-B (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy41.4AR-B
Image ClassificationObjectNetTop-5 Accuracy63.7AR-B
Image ClassificationObjectNetTop-1 Accuracy39.3AR-S (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy61.7AR-S (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy37.4ViT-L
Image ClassificationObjectNetTop-5 Accuracy59.5ViT-L
Image ClassificationObjectNetTop-1 Accuracy36.3DeiT-L (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy56.6DeiT-L (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy35.1ViT-B
Image ClassificationObjectNetTop-5 Accuracy56.4ViT-B
Image ClassificationObjectNetTop-1 Accuracy34.3AR-S
Image ClassificationObjectNetTop-5 Accuracy55.8AR-S
Image ClassificationObjectNetTop-1 Accuracy31.6DeiT-S (Opt Relevance)
Image ClassificationObjectNetTop-5 Accuracy53DeiT-S (Opt Relevance)
Image ClassificationObjectNetTop-1 Accuracy31.4DeiT-L
Image ClassificationObjectNetTop-5 Accuracy48.5DeiT-L
Image ClassificationObjectNetTop-1 Accuracy28.3DeiT-S
Image ClassificationObjectNetTop-5 Accuracy47.3DeiT-S

Related Papers

Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Hashed Watermark as a Filter: Defeating Forging and Overwriting Attacks in Weight-based Neural Network Watermarking2025-07-15Transferring Styles for Reduced Texture Bias and Improved Robustness in Semantic Segmentation Networks2025-07-14FedGSCA: Medical Federated Learning with Global Sample Selector and Client Adaptive Adjuster under Label Noise2025-07-13