SketchANIMAR: Sketch-based 3D animal fine-grained retrieval

Trung-Nghia Le, Tam V. Nguyen, Minh-Quan Le, Trong-Thuan Nguyen, Viet-Tham Huynh, Trong-Le Do, Khanh-Duy Le, Mai-Khiem Tran, Nhat Hoang-Xuan, Thang-Long Nguyen-Ho, Vinh-Tiep Nguyen, Nhat-Quynh Le-Pham, Huu-Phuc Pham, Trong-Vu Hoang, Quang-Binh Nguyen, Trong-Hieu Nguyen Mau, Tuan-Luc Huynh, Thanh-Danh Le, Ngoc-Linh Nguyen-Ha, Tuong-Vy Truong-Thuy, Truong Hoai Phong, Tuong-Nghiem Diep, Khanh-Duy Ho, Xuan-Hieu Nguyen, Thien-Phuc Tran, Tuan-Anh Yang, Kim-Phat Tran, Nhu-Vinh Hoang, Minh-Quang Nguyen, Hoai-Danh Vo, Minh-Hoa Doan, Hai-Dang Nguyen, Akihiro Sugimoto, Minh-Triet Tran

Introduction

Retrieving 3D models from 2D sketches is a fundamental challenge in computer vision, bridging the gap between human-centric creative input and digital geometric representations. While significant progress has been made in category-level retrieval (e.g., identifying a generic "dog"), real-world applications often require a much higher degree of specificity. The SketchANIMAR project introduces a new benchmark designed to push the boundaries of this field by focusing on fine-grained retrieval—distinguishing between specific animal breeds, poses, and morphologies using hand-drawn, often amateur, sketches.

The Problem: Modality and Granularity

Existing 3D retrieval systems face two primary hurdles that SketchANIMAR seeks to address:

  1. The Modality Gap: There is a significant representational distance between a messy, non-realistic 2D sketch and a mathematically precise 3D mesh. Bridging this gap requires models to understand abstract geometric essence rather than just pixel-perfect matching.
  2. Granularity: Most benchmarks are limited to broad categories. In practice, a user might need to find a specific instance, such as a "Golden Retriever sitting down" rather than any canine. Furthermore, many existing datasets rely on "clean" sketches drawn by experts, which do not reflect the variability of "in-the-wild" amateur drawings.

The ANIMAR Dataset

To facilitate this research, the authors introduced the ANIMAR dataset, a challenging testbed for fine-grained 3D animal retrieval. The dataset consists of:

  • 3D Models: 711 unique animal models derived from 186 original meshes, processed into watertight models with varying polygon counts to ensure geometric diversity.
  • Sketch Queries: 140 sketches encompassing abstract, semi-photorealistic, and amateur styles.
  • Diversity: The dataset includes over 50 animal categories. Crucially, categorical information is concealed during the challenge to force models to learn intrinsic geometric features rather than relying on class labels.

The top-performing approaches in the SketchANIMAR challenge (SHREC 2023) revealed several key trends in effective 2D-to-3D matching:

View-Based Learning

Rather than processing 3D point clouds directly, the most successful methods utilized view-based learning. In this pipeline, 3D models are rendered from multiple angles—often organized in "rings" at different latitudes and longitudes—to create 2D images. These images are significantly easier to compare to sketches using standard convolutional neural networks (CNNs) or transformers.

Contrastive Frameworks

The winning team, TikTorch, employed a contrastive learning framework using a modified NT-Xent loss. This approach pulls the embedding vectors of a sketch and its corresponding 3D model closer together in a shared feature space while pushing dissimilar pairs apart.

"Sketchification" and Domain Alignment

To bridge the domain gap, several teams applied "sketchification" techniques to the 3D renders. By using edge detection (such as Canny filters) or Laplacian transforms, the rendered images were made to look more like hand-drawn sketches, simplifying the feature matching process for the neural backbones (e.g., EfficientNetV2, ConvNeXt, and CLIP).

Key Insights

  • Views Over Points: For animal retrieval, rendering 3D objects into 2D views proved more effective than point-cloud architectures like PointNet. The high density of points in the ANIMAR models often introduced computational noise that hindered direct point-cloud feature extraction.
  • The Amateur Sketch Difficulty: The inclusion of abstract sketches from non-experts significantly lowered performance compared to previous benchmarks. This highlights a persistent struggle for AI: interpreting human simplification and creative abstraction.
  • Domain Alignment is Paramount: Success was less dependent on the specific choice of CNN architecture and more on how effectively teams aligned the 3D renders with the sketch domain through data augmentation and filtering.

Results and Performance

The challenge involved 204 runs from eight international teams. The top performer, TikTorch, achieved a Mean Average Precision (mAP) of 0.522 and a Normalized Discounted Cumulative Gain (NDCG) of 0.669. Another notable entry, V1olet, secured the highest Nearest Neighbor (NN) score of 0.500, indicating that their top-1 result was correct half of the time.

Despite these successes, the relatively low mAP scores (compared to category-level benchmarks) confirm that fine-grained animal retrieval remains an open and difficult problem. The gap between current model performance and human-level recognition suggests that there is significant room for improvement in how machines interpret stylistic variations in sketches.

Future Work

The authors identify several paths forward for the SketchANIMAR framework:

  • Scaling the Dataset: Expanding the number of models and species to provide more robust training data for deep learning.
  • Synthetic Data Generation: Using procedural generation to create diverse poses and textures, helping models generalize better to unseen animal morphologies.
  • Zero-Shot Generalization: Improving the ability of models to retrieve "unseen" categories that were not present in the training set, moving toward a more general understanding of animal form.

Summary updated

BibTeX
@inproceedings{le2023sketchanimar,
  author = {Trung-Nghia Le and Tam V. Nguyen and Minh-Quan Le and Trong-Thuan Nguyen and Viet-Tham Huynh and Trong-Le Do and Khanh-Duy Le and Mai-Khiem Tran and Nhat Hoang-Xuan and Thang-Long Nguyen-Ho and Vinh-Tiep Nguyen and Nhat-Quynh Le-Pham and Huu-Phuc Pham and Trong-Vu Hoang and Quang-Binh Nguyen and Trong-Hieu Nguyen Mau and Tuan-Luc Huynh and Thanh-Danh Le and Ngoc-Linh Nguyen-Ha and Tuong-Vy Truong-Thuy and Truong Hoai Phong and Tuong-Nghiem Diep and Khanh-Duy Ho and Xuan-Hieu Nguyen and Thien-Phuc Tran and Tuan-Anh Yang and Kim-Phat Tran and Nhu-Vinh Hoang and Minh-Quang Nguyen and Hoai-Danh Vo and Minh-Hoa Doan and Hai-Dang Nguyen and Akihiro Sugimoto and Minh-Triet Tran},
  title = {{SketchANIMAR: Sketch-based 3D animal fine-grained retrieval}},
  booktitle = {Comput. Graph},
  year = {2023},
  url = {https://openreview.net/forum?id=KIH7bIBf4e},
}
Figure