SVIP: Semantically Contextualized Visual Patches for Zero-Shot Learning

Zhi Chen, Zecheng Zhao, Jingcai Guo, Jingjing Li, Zi Huang
3/13/2025
14 citations
cs.CV
transformer-attention

Official code: uqzhichen/SVIP (11 stars, Python, last commit 2025-08-06).

Abstract

Zero-shot learning (ZSL) aims to recognize unseen classes without labeled training examples by leveraging class-level semantic descriptors such as attributes. A fundamental challenge in ZSL is semantic misalignment, where semantic-unrelated information involved in visual features introduce ambiguity to visual-semantic interaction.

Show full abstract

Unlike existing methods that suppress semantic-unrelated information post hoc either in the feature space or the model space, we propose addressing this issue at the input stage, preventing semantic-unrelated patches from propagating through the network. To this end, we introduce Semantically contextualized VIsual Patches (SVIP) for ZSL, a transformer-based framework designed to enhance visual-semantic alignment. Specifically, we propose a self-supervised patch selection mechanism that preemptively learns to identify semantic-unrelated patches in the input space. This is trained with the supervision from aggregated attention scores across all transformer layers, which estimate each patch's semantic score. As removing semantic-unrelated patches from the input sequence may disrupt object structure, we replace them with learnable patch embeddings. With initialization from word embeddings, we can ensure they remain semantically meaningful throughout feature extraction. Extensive experiments on ZSL benchmarks demonstrate that SVIP achieves state-of-the-art performance results while providing more interpretable and semantically rich feature representations. Code is available at https://github.com/uqzhichen/SVIP.

View on arXivView PDF

Code Implementations(1)

uqzhichen/SVIPOfficial100%

[ICCV2025] Official Pytorch implementation for SVIP (SVIP: Semantically Contextualized Visual Patches for Zero-Shot Learning)

113Python, ShellJun 26, 20251 years ago

Similar Papers

Cite this paper

@article{chen2025svip,
  title  = {SVIP: Semantically Contextualized Visual Patches for Zero-Shot Learning},
  author = {Zhi Chen and Zecheng Zhao and Jingcai Guo and Jingjing Li and Zi Huang},
  year   = {2025},
  eprint = {2503.10252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10252v2},
  journal = {ICCV 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.10252.svg)](https://codeofpaper.com/paper/2503.10252)

Discussion