Abstract
Zero-Shot Sketch-Based Image Retrieval (ZS-SBIR) is a challenging task due to the significant domain gap between sparse sketches and detailed photographs, as well as the requirement to generalize to unseen categories. We propose CrossATNet, a novel framework that leverages a cross-attention mechanism to align these modalities in a shared semantic space. By using sketch features to guide image feature extraction and incorporating Graph Convolutional Networks (GCNs) to maintain class topology, CrossATNet achieves state-of-the-art performance on benchmark datasets while ensuring retrieval efficiency through ternary hashing.
Introduction
Sketch-based image retrieval (SBIR) is inherently difficult because sketches and photos exist in fundamentally different data distributions. While photos are rich in color and texture, sketches are minimalist, symbolic, and purely shape-based. This "domain gap" is further exacerbated in the Zero-Shot (ZS) setting, where the model must retrieve images from categories not present during the training phase.
Standard convolutional neural networks (CNNs) tend to be biased toward texture, making them less effective at matching line drawings to photos. CrossATNet addresses this by focusing on structural alignment in a shared, semantically consistent embedding space, allowing for the retrieval of objects the system has never seen before.
Methodology
The CrossATNet framework employs a multi-stage strategy to bridge the cross-modal gap and ensure discriminative mapping.
Cross-Attention Mechanism
The core innovation of CrossATNet is its cross-attention module. Instead of processing sketches and images independently, the model utilizes features from the sketch to guide the feature extraction of the photo. This mechanism forces the image encoder to suppress distracting textures and prioritize the geometric features that align with the sketch's structural information.
Graph-Based Semantic Encoding
To ensure the shared embedding space is semantically meaningful, the authors utilize a Graph Convolutional Network (GCN). This component preserves the "topology" of classes, ensuring that embeddings for semantically related categories (e.g., "dog" and "cat") are positioned closer together than unrelated ones. This structural preservation is crucial for effective zero-shot generalization.
Cross-Modal Triplet Loss and Hashing
The model is trained using a triplet loss strategy that incorporates both sketch-anchored and image-anchored triplets, pulling matching pairs together while pushing dissimilar classes apart. For practical deployment, a hashing module converts high-dimensional vectors into compact ternary hash codes (-1, 0, 1), enabling rapid retrieval via Hamming distance.
Experimental Results
CrossATNet was evaluated on two gold-standard benchmarks: the Sketchy dataset and TU-Berlin. The model achieved state-of-the-art (SOTA) results, strictly following zero-shot protocols to ensure no unseen class information was leaked during training.
- Sketchy Dataset: Achieved a mean Average Precision (mAP) of 0.413.
- TU-Berlin: Reached an mAP of 0.327.
- Efficiency: Even when utilizing 64-bit hash codes, the model maintained a high mAP of 0.365 on Sketchy, demonstrating that the learned shared space is robust enough to survive heavy compression.
Limitations and Future Work
Despite its performance, CrossATNet faces challenges with fine-grained confusion. Without texture or color information, the model occasionally struggles to distinguish between categories with highly similar silhouettes, such as "penguins" and "owls."
Future research will explore more sophisticated attention modules to capture finer structural details and investigate self-supervised architectures to reduce the reliance on labeled semantic data. Additionally, incremental learning approaches could allow the model to adapt to new categories over time without catastrophic forgetting.
Summary updated