Modality-Aware Representation Learning for Zero-shot Sketch-based Image Retrieval

Eunyi Lyou, Doyeon Lee, Jooeun Kim, Joonseok Lee

Abstract

Zero-shot Sketch-based Image Retrieval (ZS-SBIR) aims to retrieve natural images using sketches from unseen categories. Traditional methods rely heavily on expensive paired sketch-photo data and often struggle with the inherent "modality gap" between abstract sketches and detailed photographs. This paper introduces the Modality-Aware Sketch-based Image Retrieval (MA-SBIR) framework, which disentangles semantic information from modality-specific features. By utilizing text as a bridge and leveraging the pre-trained CLIP architecture, MA-SBIR achieves state-of-the-art performance without requiring paired training data.

1. Introduction

Sketch-based image retrieval (SBIR) is a challenging task due to the significant domain gap between iconic, textureless sketches and high-fidelity natural images. The zero-shot variant (ZS-SBIR) further complicates this by requiring models to generalize to object categories not seen during training. Conventional approaches typically require large-scale paired datasets to align these domains in a shared latent space. However, collecting such pairs is labor-intensive and limits scalability.

Furthermore, even advanced multimodal models like CLIP exhibit a "modality gap," where embeddings for different formats (text, image, sketch) remain clustered by modality rather than purely by concept. MA-SBIR addresses these challenges by explicitly modeling the modality shift and using text as a common semantic anchor.

2. Methodology

The core philosophy of MA-SBIR is the decomposition of an embedding into two distinct components: Semantics ($s$), representing the object's essence, and Modality ($m$), representing the stylistic presentation (sketch, photo, or text).

2.1 Modality-Aware Encoders

Built upon a CLIP backbone, the framework employs modality-aware encoders. The model learns specific modality vectors for sketches, photos, and text. By subtracting the modality vector from the total embedding, the model isolates the "pure" semantic vector. The objective is to ensure that the semantic vector remains invariant across different input modalities.

2.2 Indirect Alignment and Disentanglement

Rather than direct sketch-to-photo alignment, MA-SBIR aligns both visual modalities to a shared textual description. This strategy allows the model to utilize unpaired datasets, where sketches and photos of the same category exist but are not explicitly linked.

To ensure effective disentanglement, the authors implement:

  • Cross-modal Reconstruction: A "style transfer" mechanism in the latent space where the semantics of a sketch are combined with a photo modality vector to reconstruct a photo embedding.
  • Orthogonal Regularization: A loss function ($L_{ortho}$) that enforces mathematical perpendicularity between semantic and modality vectors, preventing information leakage between the two.

3. Experiments and Results

The framework was evaluated on three major benchmarks: Sketchy Extended, TU-Berlin Extended, and QuickDraw Extended.

3.1 Quantitative Performance

MA-SBIR demonstrates significant improvements over previous state-of-the-art (SOTA) methods:

  • Sketchy Dataset: Achieved 69.1% mAP, a 5.5% improvement over CLIP-AT.
  • TU-Berlin Dataset: Reached 70.5% mAP, surpassing previous benchmarks by nearly 5%.
  • Generalized ZS-SBIR: In scenarios involving both seen and unseen classes, the model outperformed the SOTA by 12% mAP on the Sketchy dataset.

3.2 The Value of Unpaired Data

A key finding of this research is the model's ability to scale with unpaired data. The authors demonstrated that incorporating 20% more unpaired images or sketches significantly improved retrieval accuracy, highlighting the robustness of the text-anchored alignment.

4. Discussion and Limitations

While MA-SBIR excels at categorical retrieval, it faces challenges in instance-level (fine-grained) retrieval. Because the model relies on text as an anchor, it may lack the geometric precision required to distinguish between two different instances of the same category (e.g., a specific "cat" vs. any "cat"). Additionally, the framework's performance is inherently linked to the quality of the underlying CLIP foundation model.

5. Conclusion

MA-SBIR presents a novel approach to ZS-SBIR by treating modality as a predictable vector shift. By disentangling semantics from style and leveraging textual anchors, the framework eliminates the need for paired training data while setting new performance standards. Future work will focus on refining fine-grained alignment and exploring more efficient ways to utilize unimodal data.

Summary updated

BibTeX
@inproceedings{lyou2024modality,
  author = {Eunyi Lyou and Doyeon Lee and Jooeun Kim and Joonseok Lee},
  title = {{Modality-Aware Representation Learning for Zero-shot Sketch-based Image Retrieval}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00555},
}
Figure