ResCLIP: Residual Attention for Training-free Dense Vision-language Inference
Yuhang Yang, Jinhong Deng, Wen Li, Lixin Duan
Abstract
While vision-language models like CLIP have shown remarkable success in open-vocabulary tasks, their application is currently confined to image-level tasks, and they still struggle with dense predictions. Recent works often attribute such deficiency in dense predictions to the selfattention layers in the final block, and have achieved commendable results by modifying the original query-key attention to self-correlation attention, (e.g., query-query and keykey attention). However, these methods overlook the crosscorrelation attention (query-key) properties, which capture the rich spatial correspondence. In this paper, we reveal that the cross-correlation of self-attention in non-final layers of CLIP also exhibits localization properties. Therefore, we propose the Residual Cross-correlation Self-attention (RCS) module, which leverages the cross-correlation selfattention from intermediate layers to remold the attention in the final block. The RCS module effectively reorganizes spatial information, unleashing the localization potential within CLIP for dense vision-language inference. Furthermore, to enhance the focus on regions of the same categories and local consistency, we propose the Semantic Feedback Refinement (SFR) module, which utilizes semantic segmentation maps to further adjust the attention scores. By integrating these two strategies, our method, termed ResCLIP, can be easily incorporated into existing approaches as a plug-and-play module, significantly boosting their performance in dense vision-language inference. Extensive experiments across multiple standard benchmarks demonstrate that our method surpasses stateof-the-art training-free methods, validating the effectiveness of the proposed approach. Code is available at https://github.com/yvhangyang/ResCLIP .
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.
11 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic Segmentation cites Emerging Properties in Self-Supervised Vision Transformers
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic Segmentation cites Segment Anything
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic Segmentation cites CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic Segmentation
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic Segmentation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic Segmentation cites Learning Transferable Visual Models From Natural Language Supervision
- Emerging Properties in Self-Supervised Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Segment Anything cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Segment Anything cites Language Models are Few-Shot Learners
- Segment Anything cites Learning Transferable Visual Models From Natural Language Supervision
- CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic Segmentation cites Emerging Properties in Self-Supervised Vision Transformers
- CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic Segmentation cites Segment Anything
- CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic Segmentation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic Segmentation cites Learning Transferable Visual Models From Natural Language Supervision
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language Inference cites Emerging Properties in Self-Supervised Vision Transformers
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language Inference cites Segment Anything
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language Inference cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language Inference cites Language Models are Few-Shot Learners
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language Inference cites Learning Transferable Visual Models From Natural Language Supervision
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- ReAttnCLIP: Training-Free Open-Vocabulary Remote Sensing Image Segmentation via Re-defined Attention in CLIP cites Emerging Properties in Self-Supervised Vision Transformers
- ReAttnCLIP: Training-Free Open-Vocabulary Remote Sensing Image Segmentation via Re-defined Attention in CLIP cites Segment Anything
- ReAttnCLIP: Training-Free Open-Vocabulary Remote Sensing Image Segmentation via Re-defined Attention in CLIP cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
- Looking Beyond the Window: Global-Local Aligned CLIP for Training-free Open-Vocabulary Semantic Segmentation cites Emerging Properties in Self-Supervised Vision Transformers
- Looking Beyond the Window: Global-Local Aligned CLIP for Training-free Open-Vocabulary Semantic Segmentation cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers11
- CorrCLIP: Reconstructing Patch Correlations in CLIP for Open-Vocabulary Semantic SegmentationDengke Zhang, Fagui Liu, Quan TangICCV 2025 · 6 citations
- ReAttnCLIP: Training-Free Open-Vocabulary Remote Sensing Image Segmentation via Re-defined Attention in CLIPXin Niu, Manqi Zhao, Dongsheng Jiang, Yingying Wu et al.CVPR 2026 · 5 citations
- PEARL: Geometry Aligns Semantics for Training-Free Open-Vocabulary Semantic SegmentationGensheng Pei, Xiruo Jiang, Xinhao Cai, Tao Chen et al.CVPR 2026 · 3 citations
- Looking Beyond the Window: Global-Local Aligned CLIP for Training-free Open-Vocabulary Semantic SegmentationByeongCheol Lee, Hyun Seok Seong, Sangeek Hyun, Gilhan Park et al.CVPR 2026 · 2 citations
- VIP: Visual-guided Prompt Evolution for Efficient Dense Vision-Language InferenceHao Zhu, Shuo Jin, Wenbin Liao, Jiayu Xiao et al.ICML 2026 · 1 citation
Builds on34
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- 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
- Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
Related papers
- Unveiling the Knowledge of CLIP for Training-Free Open-Vocabulary Semantic SegmentationYajie Liu, Guodong Wang, Jinjin Zhang, Qingjie Liu et al.AAAI 2025 · 3 citations
- DeCLIP: Decoupled Learning for Open-Vocabulary Dense PerceptionJunjie Wang, Bin Chen, Yulin Li, Bin Kang et al.CVPR 2025
- Target Refocusing via Attention Redistribution for Open-Vocabulary Semantic Segmentation: An Explainability PerspectiveJiahao Li, Yang Lu, Yachao Zhang, Yong Xie et al.AAAI 2026 · 3 citations
- OPMapper: Enhancing Open-Vocabulary Semantic Segmentation with Multi-Guidance InformationXuehui Wang, Chongjie Si, Xue Yang, Yuzhi Zhao et al.NeurIPS 2025 · 3 citations
- ATAS: Any-to-Any Self-Distillation for Enhanced Open-Vocabulary Dense PredictionJuan Yeo, Soonwoo Cha, Jiwoo Song, Hyunbin Jin et al.ICCV 2025
