Papers › Zero-Shot Everything Sketch-Based Image Retrieval, and in Explainable Style

Zero-Shot Everything Sketch-Based Image Retrieval, and in Explainable Style

25 Mar 2023CVPR 2023 1arXiv:2303.14348archive 2025-07-28

Fengyin Lin, Mingkang Li, Da Li, Timothy Hospedales, Yi-Zhe Song, Yonggang Qi

This paper studies the problem of zero-short sketch-based image retrieval (ZS-SBIR), however with two significant differentiators to prior art (i) we tackle all variants (inter-category, intra-category, and cross datasets) of ZS-SBIR with just one network (``everything''), and (ii) we would really like to understand how this sketch-photo matching operates (``explainable''). Our key innovation lies with the realization that such a cross-modal matching problem could be reduced to comparisons of groups of key local patches -- akin to the seasoned ``bag-of-words'' paradigm. Just with this change, we are able to achieve both of the aforementioned goals, with the added benefit of no longer requiring external semantic knowledge. Technically, ours is a transformer-based cross-modal network, with three novel components (i) a self-attention module with a learnable tokenizer to produce visual tokens that correspond to the most informative local regions, (ii) a cross-attention module to compute local correspondences between the visual tokens across two modalities, and finally (iii) a kernel-based relation network to assemble local putative matches and produce an overall similarity metric for a sketch-photo pair. Experiments show ours indeed delivers superior performances across all ZS-SBIR settings. The all important explainable goal is elegantly achieved by visualizing cross-modal token correspondences, and for the first time, via sketch to photo synthesis by universal replacement of all matched photo patches. Code and model are available at \url{https://github.com/buptLinfy/ZSE-SBIR}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.14348")

Code

Syntology Ran 12 of 16 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

buptlinfy/zse-sbir officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 12 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
10ran
4unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from buptLinfy/ZSE-SBIR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AddAndNorm buptLinfy/ZSE-SBIR/model/model.py official repository ran fingerprinted MIT (permissive) · afe81aa89974190e · report
Encoder buptLinfy/ZSE-SBIR/model/model.py official repository ran fingerprinted MIT (permissive) · 88b2eaf4a0201422 · report
Encoder1DBlock buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · bfdf0d1287b4d60a · report
EncoderLayer buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · 6d34c0d54b4cd5cc · report
LayerNorm buptLinfy/ZSE-SBIR/model/model.py official repository ran fingerprinted MIT (permissive) · 9f9b1604d01394b4 · report
MultiHeadDotProductAttention buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · 31fe7ef87068a002 · report
MultiHeadedAttention buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · 8b6a335cd0939a66 · report
PositionwiseFeedForward buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · 2d97255bca4d10bc · report
Relation_Network buptLinfy/ZSE-SBIR/model/model.py official repository ran MIT (permissive) · f25396c41187c618 · report
Scale_Embedding buptLinfy/ZSE-SBIR/model/model.py official repository ran fingerprinted MIT (permissive) · 71497b370f236dea · report
attention buptLinfy/ZSE-SBIR/model/model.py official repository ran · our draft was wrong MIT (permissive) · 3eed1a7a6d48923a · report
cos_similar buptLinfy/ZSE-SBIR/model/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a15a8757a1c2f059 · report
Cross_Attention buptLinfy/ZSE-SBIR/model/model.py official repository unverified MIT (permissive) · f1822a4207bad8bd · report
Model buptLinfy/ZSE-SBIR/model/model.py official repository unverified MIT (permissive) · 36976ee282990c6e · report
Self_Attention buptLinfy/ZSE-SBIR/model/model.py official repository unverified MIT (permissive) · 83ad54e98125113e · report
ViTPatch buptLinfy/ZSE-SBIR/model/model.py official repository unverified MIT (permissive) · 5077295b3497cdc4 · report

Tasks

Image RetrievalRelation NetworkRetrievalSketch-Based Image Retrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Concatenated Skip ConnectionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections