No Token Left Behind: Explainability-Aided Image Classification and Generation
Not on the map. Why?
Abstract (arXiv)
The application of zero-shot learning in computer vision has been revolutionized by the use of image-text matching models. The most notable example, CLIP, has been widely used for both zero-shot classification and guiding generative models with a text prompt. However, the zero-shot use of CLIP is unstable with respect to the phrasing of the input text, making it necessary to carefully engineer the prompts used. We find that this instability stems from a selective similarity score, which is based only on a subset of the semantically meaningful input tokens. To mitigate it, we present a novel explainability-based approach, which adds a loss term to ensure that CLIP focuses on all relevant semantic parts of the input, in addition to employing the CLIP similarity loss used in previous works. When applied to one-shot classification through prompt engineering, our method yields an improvement in the recognition rate, without additional training or fine-tuning. Additionally, we show that CLIP guidance of generative models using our method significantly improves the generated images. Finally, we demonstrate a novel use of CLIP guidance for text-based image generation with spatial conditioning on object location, by requiring the image explainability heatmap for each object to be confined to a pre-determined bounding box.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 33 of its 49 references that are in the map. First posted on arXiv 11 Apr 2022.
Builds on
33 of 49 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
- 2021Learning to Prompt for Vision-Language Modelscited by 2,269
21 more
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2019Natural Adversarial Examplescited by 1,401
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021StyleCLIP: Text-Driven Manipulation of StyleGAN Imagerycited by 990
- 2021Blended Diffusion for Text-driven Editing of Natural Imagescited by 924
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2020Differentiable Augmentation for Data-Efficient GAN Trainingcited by 361
- 2021Text2Mesh: Text-Driven Neural Stylization for Meshescited by 332
- 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 316
- 2016Not Just a Black Box: Learning Important Features Through Propagating Activation Differencescited by 295
- 2016Layer-wise Relevance Propagation for Neural Networks with Local Renormalization Layerscited by 197
- 2021ZeroCap: Zero-Shot Image-to-Text Generation for Visual-Semantic Arithmeticcited by 150
- 2021Paint by Wordcited by 107
- 2015Webly Supervised Learning of Convolutional Networkscited by 95
- 2016Learning Visual N-Grams from Web Datacited by 95
- 2021FuseDream: Training-Free Text-to-Image Generation with Improved CLIP+GAN Space Optimizationcited by 71
- 2021Mind the Gap: Domain Gap Control for Single Shot Domain Adaptation for Generative Adversarial Networkscited by 68
- 2021Image-Based CLIP-Guided Essence Transfercited by 39
- 2021Semantic Segmentation In-the-Wild Without Seeing Any Segmentation Examplescited by 24
Built on by
Citing papers per year: 2022: 3; 2023: 10; 2024: 10; 2025: 2.
25 papers.
Sort:
By area:
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generationcited by 217
- 2023Teaching CLIP to Count to Tencited by 194
- 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-trainingcited by 95
- 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulationcited by 61
- 2023Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedbackcited by 31
- 2023SPIRE: Semantic Prompt-Driven Image Restorationcited by 24
- 2024Teach CLIP to Develop a Number Sense for Ordinal Regressioncited by 20
- 2024LoMOE: Localized Multi-Object Editing via Multi-Diffusioncited by 11
- 2023Text-guided Eyeglasses Manipulation with Spatial Constraintscited by 10
- 2024Text-guided Explorable Image Super-resolutioncited by 9
13 more
- 2024Zero-Painter: Training-Free Layout Control for Text-to-Image Synthesiscited by 9
- 2023Word-Level Explanations for Analyzing Bias in Text-to-Image Modelscited by 8
- 2024A2SF: Accumulative Attention Scoring with Forgetting Factor for Token Pruning in Transformer Decodercited by 7
- 2024FRAP: Faithful and Realistic Text-to-Image Generation with Adaptive Prompt Weightingcited by 5
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributionscited by 5
- 2023Visual Attention Prompted Prediction and Learningcited by 2
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Mapscited by 2
- 2024MePT: Multi-Representation Guided Prompt Tuning for Vision-Language Modelcited by 1
- 2024Explainable Search and Discovery of Visual Cultural Heritage Collections with Multimodal Large Language Modelscited by 1
- 2025Structure-aware Contrastive Learning for Diagram Understanding of Multimodal Modelscited by 1
- 2022LDEdit: Towards Generalized Text Guided Image Manipulation via Latent Diffusion Modelscited by 0
- 2023Composite Diffusion | whole >= Sigma partscited by 0
- 2025CountFormer: A Transformer Framework for Learning Visual Repetition and Structure in Class-Agnostic Object Countingcited by 0
- 2025CountFormer: A Transformer Framework for Learning Visual Repetition and Structure in Class-Agnostic Object Counting27 Oct 2025
- 2025Structure-aware Contrastive Learning for Diagram Understanding of Multimodal Models2 Sep 2025
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributions24 Nov 2024
- 2024Explainable Search and Discovery of Visual Cultural Heritage Collections with Multimodal Large Language Models7 Nov 2024
- 2024FRAP: Faithful and Realistic Text-to-Image Generation with Adaptive Prompt Weighting21 Aug 2024
- 2024MePT: Multi-Representation Guided Prompt Tuning for Vision-Language Model19 Aug 2024
- 2024Teach CLIP to Develop a Number Sense for Ordinal Regression7 Aug 2024
- 2024A2SF: Accumulative Attention Scoring with Forgetting Factor for Token Pruning in Transformer Decoder30 Jul 2024
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Maps29 Jul 2024
- 2024Zero-Painter: Training-Free Layout Control for Text-to-Image Synthesis6 Jun 2024
- 2024Text-guided Explorable Image Super-resolution2 Mar 2024
- 2024LoMOE: Localized Multi-Object Editing via Multi-Diffusion1 Mar 2024
13 more
- 2023SPIRE: Semantic Prompt-Driven Image Restoration18 Dec 2023
- 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulation15 Dec 2023
- 2023Visual Attention Prompted Prediction and Learning12 Oct 2023
- 2023Composite Diffusion | whole >= Sigma parts25 Jul 2023
- 2023Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedback10 Jul 2023
- 2023Word-Level Explanations for Analyzing Bias in Text-to-Image Models3 Jun 2023
- 2023Text-guided Eyeglasses Manipulation with Spatial Constraints25 Apr 2023
- 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-training12 Apr 2023
- 2023Teaching CLIP to Count to Ten23 Feb 2023
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan 2023
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generation25 Nov 2022
- 2022LDEdit: Towards Generalized Text Guided Image Manipulation via Latent Diffusion Models5 Oct 2022
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversion2 Aug 2022
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generationcited by 217
- 2023Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedbackcited by 31
- 2023SPIRE: Semantic Prompt-Driven Image Restorationcited by 24
- 2024LoMOE: Localized Multi-Object Editing via Multi-Diffusioncited by 11
- 2024FRAP: Faithful and Realistic Text-to-Image Generation with Adaptive Prompt Weightingcited by 5
- 2023Composite Diffusion | whole >= Sigma partscited by 0
- 2024FRAP: Faithful and Realistic Text-to-Image Generation with Adaptive Prompt Weighting21 Aug 2024
- 2024LoMOE: Localized Multi-Object Editing via Multi-Diffusion1 Mar 2024
- 2023SPIRE: Semantic Prompt-Driven Image Restoration18 Dec 2023
- 2023Composite Diffusion | whole >= Sigma parts25 Jul 2023
- 2023Divide, Evaluate, and Refine: Evaluating and Improving Text-to-Image Alignment with Iterative VQA Feedback10 Jul 2023
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan 2023
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generation25 Nov 2022
- 2023Teaching CLIP to Count to Tencited by 194
- 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-trainingcited by 95
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Mapscited by 2
- 2024MePT: Multi-Representation Guided Prompt Tuning for Vision-Language Modelcited by 1
- 2024Explainable Search and Discovery of Visual Cultural Heritage Collections with Multimodal Large Language Modelscited by 1
- 2022LDEdit: Towards Generalized Text Guided Image Manipulation via Latent Diffusion Modelscited by 0
- 2024Explainable Search and Discovery of Visual Cultural Heritage Collections with Multimodal Large Language Models7 Nov 2024
- 2024MePT: Multi-Representation Guided Prompt Tuning for Vision-Language Model19 Aug 2024
- 2024MaskInversion: Localized Embeddings via Optimization of Explainability Maps29 Jul 2024
- 2023A Closer Look at the Explainability of Contrastive Language-Image Pre-training12 Apr 2023
- 2023Teaching CLIP to Count to Ten23 Feb 2023
- 2022LDEdit: Towards Generalized Text Guided Image Manipulation via Latent Diffusion Models5 Oct 2022
- 2023Visual Attention Prompted Prediction and Learningcited by 2
- 2023Visual Attention Prompted Prediction and Learning12 Oct 2023
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulationcited by 61
- 2024Teach CLIP to Develop a Number Sense for Ordinal Regressioncited by 20
- 2023Text-guided Eyeglasses Manipulation with Spatial Constraintscited by 10
- 2024Text-guided Explorable Image Super-resolutioncited by 9
- 2024Zero-Painter: Training-Free Layout Control for Text-to-Image Synthesiscited by 9
- 2023Word-Level Explanations for Analyzing Bias in Text-to-Image Modelscited by 8
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributionscited by 5
- 2025Structure-aware Contrastive Learning for Diagram Understanding of Multimodal Modelscited by 1
- 2025CountFormer: A Transformer Framework for Learning Visual Repetition and Structure in Class-Agnostic Object Countingcited by 0
- 2025CountFormer: A Transformer Framework for Learning Visual Repetition and Structure in Class-Agnostic Object Counting27 Oct 2025
- 2025Structure-aware Contrastive Learning for Diagram Understanding of Multimodal Models2 Sep 2025
- 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributions24 Nov 2024
- 2024Teach CLIP to Develop a Number Sense for Ordinal Regression7 Aug 2024
- 2024Zero-Painter: Training-Free Layout Control for Text-to-Image Synthesis6 Jun 2024
- 2024Text-guided Explorable Image Super-resolution2 Mar 2024
- 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulation15 Dec 2023
- 2023Word-Level Explanations for Analyzing Bias in Text-to-Image Models3 Jun 2023
- 2023Text-guided Eyeglasses Manipulation with Spatial Constraints25 Apr 2023
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversion2 Aug 2022