CLIP for All Things Zero-Shot Sketch-Based Image Retrieval, Fine-Grained or Not

Aneeshan Sain, A. Bhunia, Pinaki Nath Chowdhury, Subhadeep Koley, Tao Xiang +1 more
2/14/2026

No official code found. Best implementation: aneeshan95/Sketch_LVM (76 stars, MIT, last commit 2023-08-06). 1 more below.

Abstract

In this paper, we leverage CLIP for zero-shot sketch based image retrieval (ZS-SBIR). We are largely inspired by recent advances on foundation models and the unparalleled generalisation ability they seem to offer, but for the first time tailor it to benefit the sketch community. We put forward novel designs on how best to achieve this synergy, for both the category setting and the fine-grained setting ('all”}. At the very core of our solution is a prompt learning setup. First we show just via factoring in sketch-specific prompts, we already have a category-level ZS-SBIR system that over-shoots all prior arts, by a large margin (24.8%) - a great testimony on studying the CLIP and ZS-SBIR synergy. Moving onto the fine-grained setup is however trickier, and re-quires a deeper dive into this synergy. For that, we come up with two specific designs to tackle the fine-grained matching nature of the problem: (i) an additional regularisation loss to ensure the relative separation between sketches and photos is uniform across categories, which is not the case for the gold standard standalone triplet loss, and (ii) a clever patch shuffling technique to help establishing instance-level structural correspondences between sketch-photo pairs. With these designs, we again observe signifi-cant performance gains in the region of 26.9% over previ-ous state-of-the-art. The take-home message, if any, is the proposed CLIP and prompt learning paradigm carries great promise in tackling other sketch-related tasks (not limited to ZS-SBIR) where data scarcity remains a great challenge. Project page: https://aneeshan95.github.ioISketchLVM/

View on arXivView PDF

Code Implementations(2)

MIT

Project page for the paper 'CLIP for All Things Zero-Shot Sketch-Based Image Retrieval, Fine-Grained or Not'

768CSS, HTMLMar 23, 20233 years agoMIT

A PyTorch implementation of ClipPrompt based on CVPR 2023 paper "CLIP for All Things Zero-Shot Sketch-Based Image Retrieval, Fine-Grained or Not"

181PythonFeb 26, 20232 years ago
clipsketch-based-image-retrievalzero-shot-learning

Cite this paper

@article{sain2026clip,
  title  = {CLIP for All Things Zero-Shot Sketch-Based Image Retrieval, Fine-Grained or Not},
  author = {Aneeshan Sain and A. Bhunia and Pinaki Nath Chowdhury and Subhadeep Koley and Tao Xiang and Yi-Zhe Song},
  year   = {2026},
  eprint = {2303.13440},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.13440},
  journal = {CVPR 2023 2023}
}

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/2303.13440.svg)](https://codeofpaper.com/paper/2303.13440)

Discussion