Active Learning for Fine-Grained Sketch-Based Image Retrieval

Himanshu Thakur, Soumitri ChattopadhyayBMVC 2023

Abstract

The ability to retrieve a photo by mere free-hand sketching highlights the immense potential of Fine-grained sketch-based image retrieval (FG-SBIR). However, its rapid practical adoption, as well as scalability, is limited by the expense of acquiring faithful sketches for easily available photo counterparts. A solution to this problem is Active Learning, which could minimise the need for labeled sketches while maximising performance. Despite extensive studies in the field, there exists no work that utilises it for reducing sketching effort in FG-SBIR tasks. To this end, we propose a novel active learning sampling technique that drastically minimises the need for drawing photo sketches. Our proposed approach tackles the trade-off between uncertainty and diversity by utilising the relationship between the existing photo-sketch pair to a photo that does not have its sketch and augmenting this relation with its intermediate representations. Since our approach relies only on the underlying data distribution, it is agnostic of the modelling approach and hence is applicable to other cross-modal instance-level retrieval tasks as well. With experimentation over two publicly available fine-grained SBIR datasets ChairV2 and ShoeV2, we validate our approach and reveal its superiority over adapted baselines.

Introduction

Fine-Grained Sketch-Based Image Retrieval (FG-SBIR) aims to retrieve a specific photo instance based on a free-hand sketch. Unlike category-level retrieval, FG-SBIR requires understanding minute, instance-specific details. The primary bottleneck in developing these models is the scarcity of high-quality, hand-drawn sketches. While photos are abundant, paired sketches are expensive and time-consuming to collect.

Traditional Active Learning (AL) methods, which select the most informative data points for labeling, are typically designed for classification tasks where models output probability distributions. FG-SBIR models, however, often utilize triplet-loss Siamese networks to map images into a joint embedding space, lacking a direct measure of uncertainty. Furthermore, the "soft" decision boundaries inherent in retrieval tasks make conventional AL techniques like margin sampling ineffective.

Methodology

The proposed framework introduces a sampling strategy that balances uncertainty and diversity without requiring auxiliary models or probability outputs.

The Active Learning framework for FG-SBIR, illustrating the iterative loop between the model, the Violation Index-based sampling, and the Oracle (sketcher).

The Violation Index (VI)

The core innovation is the Violation Index (VI), which quantifies how much an unlabeled photo "disturbs" the existing learned embedding space. A violation occurs if an incoming photo is more similar to an existing sketch than that sketch's own paired photo.

  • Low VI samples represent "novel" or unique instances relative to the training set.
  • High VI samples are "confusing" instances that closely resemble existing training data but lack a precise match.

The optimal strategy employs an ensemble (controlled by hyperparameter $\alpha$) of both minimum and maximum violating samples. To maintain diversity, $k$-means++ clustering is applied to image embeddings, and VI-based selection is performed within each cluster.

Experimental Results

The approach was evaluated on two benchmarks: QMUL-Shoe-V2 (6,730 sketches, 2,000 photos) and QMUL-Chair-V2 (1,275 sketches, 300 photos). Starting with a small seed set of 300 labeled pairs, the model iteratively queried sketches for the most informative photos.

Top-1 Accuracy vs. percentage of labeled data on QMUL-Shoe-V2 and QMUL-Chair-V2 datasets, comparing the proposed Violation Index method against standard baselines.

The VI-based method consistently outperformed standard baselines such as Random, K-means, and Core-set sampling. On the ShoeV2 dataset, the model achieved a mean acc@1 of 29.8% using only 40% of the data, approaching the state-of-the-art performance of 36.47% which requires 100% of the data. On ChairV2, it showed a mean gain of 2.6% acc@1 over the best baseline.

Discussion and Conclusion

A key insight from this work is the temporal shift in data utility: early training benefits from selecting diverse (low VI) samples, while later stages benefit from refining "confusing" (high VI) instances. Being model-agnostic, this technique is potentially applicable to other cross-modal retrieval tasks.

Future work will address hyperparameter sensitivity, specifically the tuning of $\alpha$, and the computational overhead of calculating the Violation Index for large-scale datasets. This research marks a significant step toward making FG-SBIR systems more scalable by drastically reducing the human effort required for data annotation.

Summary updated

BibTeX
@inproceedings{thakur2023active,
  author = {Himanshu Thakur and Soumitri Chattopadhyay},
  title = {{Active Learning for Fine-Grained Sketch-Based Image Retrieval}},
  booktitle = {BMVC},
  year = {2023},
  url = {https://openreview.net/forum?id=3yETDCgvEb},
}
Figure