Zero-Shot 3D Shape Sketch View Similarity and Retrieval

Gianluca Berardi, Yulia Gryaditskaya · DOI

Introduction

Sketch-based 3D shape retrieval presents a significant cross-domain challenge: matching abstract, often messy 2D human sketches to precise 3D models. While foundation models like CLIP (Contrastive Language-Image Pre-training) excel at general semantic matching, they often lack the fine-grained detail required to distinguish between similar 3D instances or handle the extreme abstraction inherent in sketches. This research explores how large pre-trained models can be adapted for fine-grained 3D shape retrieval using sketches, identifying a gap in understanding how encoders behave across different levels of abstraction and object scales.

Methodology

The researchers propose a "fine-tuned but zero-shot" approach. Instead of relying on scarce human-drawn sketches for training, they utilize synthetic sketches generated from 3D models to bridge the domain gap.

Comparison of freehand sketches with synthetic NPR and Anime styles across different object categories.

The approach consists of several key components:

  1. Zero-Shot Baseline: Pre-trained ViT and ResNet encoders extract features from query sketches and 2D views of 3D models. Similarity is determined by the maximum cosine similarity between the sketch and any single view.
  2. Synthetic Fine-Tuning: Training data is generated using two styles: Non-Photorealistic Rendering (NPR), which produces clean line drawings, and Anime Style, a more stylized representation generated via a neural network.
  3. Contrastive Learning: An InfoNCE loss is applied to align embeddings of different synthetic styles of the same 3D view.
  4. Layer Selection: The study found that intermediate layers (e.g., the 6th layer of a ViT) are superior for capturing the spatial structures necessary for sketch matching compared to final semantic layers.

Experimental Setup

The evaluation primarily uses the AmateurSketch dataset, containing freehand sketches by non-experts paired with 3D chairs and lamps. Training data is sourced from ShapeNetCore, using 11 classes (e.g., airplanes, boats) to generate synthetic sketches. Initial encoders were pre-trained on ImageNet.

Analysis and Insights

  • Cross-Category Generalization: Fine-tuning on a single class (e.g., boats) generalizes remarkably well to others (e.g., chairs). The model learns a general "sketch-to-3D" mapping rather than category-specific features.
  • Scale Sensitivity: Both ViT and ResNet are sensitive to object scale. Performance peaks when the query sketch and 3D gallery views are scaled to occupy 70-80% of the bounding box.
  • Optimal Layer Depth: Middle layers preserve geometric and spatial relationships better than final layers, which are overly focused on high-level semantics (e.g., identifying the object class rather than its specific pose or shape).
  • Synthetic Data Efficacy: High-quality NPR and Anime style augmentations are sufficient to bridge the domain gap to real human drawings without requiring expensive human-drawn training data.

Results

The "fine-tuned but zero-shot" approach significantly outperforms standard supervised baselines. On the "Chair" category, the ViT-CLIP L-6 model achieved a 77.11% Acc@1*, surpassing the original supervised baseline of 56.72% and rivaling state-of-the-art supervised methods.

Quantitative comparison of retrieval accuracy (Acc@1 and Acc@5) against existing methods.

As shown in the table above, the zero-shot CLIP baseline was already strong, but fine-tuning on a single unrelated class improved Top-1 accuracy by an average of 4.3 points. The model demonstrates robust performance even with highly abstract freehand queries, despite only being trained on synthetic line drawings.

Conclusion

This work demonstrates that meticulous fine-tuning on synthetic data allows foundation models to excel at cross-domain retrieval tasks. Future work may address the limitations of Vision Transformers with sparse sketches, where global structure integration can be challenging due to patch-based processing. Additionally, incorporating textual descriptions or exploring sketch-specific encoder architectures could further enhance retrieval performance.

Summary updated

BibTeX
@inproceedings{berardi2023zero,
  author = {Gianluca Berardi and Yulia Gryaditskaya},
  title = {{Zero-Shot 3D Shape Sketch View Similarity and Retrieval}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00193},
}
Figure