[Paper Review] Sketch Less for More: On-the-Fly Fine-Grained Sketch Based Image Retrieval
This paper proposes a reinforcement learning-based on-the-fly fine-grained sketch-based image retrieval (FG-SBIR) framework that retrieves target photos with minimal sketch strokes by optimizing the rank of the ground-truth photo throughout the sketching process. It introduces a novel reward scheme combining early retrieval and Kendall-Tau rank consistency, achieving state-of-the-art early retrieval performance on two public datasets with superior consistency and robustness to noisy strokes.
Fine-grained sketch-based image retrieval (FG-SBIR) addresses the problem of retrieving a particular photo instance given a user's query sketch. Its widespread applicability is however hindered by the fact that drawing a sketch takes time, and most people struggle to draw a complete and faithful sketch. In this paper, we reformulate the conventional FG-SBIR framework to tackle these challenges, with the ultimate goal of retrieving the target photo with the least number of strokes possible. We further propose an on-the-fly design that starts retrieving as soon as the user starts drawing. To accomplish this, we devise a reinforcement learning-based cross-modal retrieval framework that directly optimizes rank of the ground-truth photo over a complete sketch drawing episode. Additionally, we introduce a novel reward scheme that circumvents the problems related to irrelevant sketch strokes, and thus provides us with a more consistent rank list during the retrieval. We achieve superior early-retrieval efficiency over state-of-the-art methods and alternative baselines on two publicly available fine-grained sketch retrieval datasets.
Motivation & Objective
- To address the practical barriers in fine-grained sketch-based image retrieval (FG-SBIR), namely the time required to draw complete sketches and the difficulty users face in drawing accurately.
- To reformulate FG-SBIR as an on-the-fly retrieval problem that retrieves the target photo as early as possible during sketching, minimizing the number of strokes required.
- To develop a learning framework that maintains consistent and accurate photo ranking despite noisy or irrelevant strokes added during sketch completion.
- To improve retrieval efficiency and robustness by directly optimizing the rank of the ground-truth photo over the entire sketching episode, rather than relying on triplet loss or fixed embedding learning.
Proposed method
- The framework uses a reinforcement learning (RL) pipeline that optimizes the rank of the ground-truth photo at each stroke rendering step, maximizing the sum of 1/rank over the sketching episode.
- A novel reward function combines two components: (1) a local reward based on 1/rank to encourage early retrieval, and (2) a global reward based on normalized Kendall-Tau distance to ensure ranking consistency across time steps.
- The model employs a CNN-based sketch encoder to generate feature embeddings from rasterized sketch images at each stroke rendering step, enabling sequential representation learning.
- The actor-critic architecture in RL learns a policy that selects actions (e.g., embedding updates) to maximize cumulative reward, with the critic estimating the expected return from each state.
- The reward function includes a monotonically decreasing constraint on the Kendall-Tau distance between successive rank lists, stabilizing training and reducing performance degradation from later noisy strokes.
- The framework is trained end-to-end using a non-myopic, sequence-aware optimization that considers the full sketching trajectory, unlike conventional triplet loss which treats each sketch as an independent example.
Experimental results
Research questions
- RQ1Can a reinforcement learning-based framework achieve superior early retrieval performance in fine-grained sketch-based image retrieval by optimizing for the rank of the ground-truth photo over the sketching sequence?
- RQ2How can a reward function be designed to balance early retrieval and ranking consistency, especially when users add noisy or irrelevant strokes during sketch completion?
- RQ3Does incorporating a global consistency loss based on Kendall-Tau distance improve robustness to inconsistent or deteriorating rankings in later sketching stages?
- RQ4How does the proposed on-the-fly framework compare to conventional FG-SBIR models that require complete sketches or are trained with triplet loss?
- RQ5To what extent is the model robust to variations in stroke order and user drawing behavior?
Key findings
- The proposed method achieves a mean average precision (m@A) of 85.44% on the Chair-V2 dataset and 85.38% on the Shoe-V2 dataset, outperforming state-of-the-art baselines in early retrieval efficiency.
- The inclusion of the global reward term reduces the stroke-backlash index from 0.0421 to 0.0304 on Chair-V2 and from 0.0451 to 0.0337 on Shoe-V2, indicating improved ranking consistency under noisy strokes.
- The global reward improves m@A by 1.11% and m@B by 1.31% on Chair-V2, and by 0.98% and 0.90% on Shoe-V2, respectively, demonstrating its effectiveness in stabilizing performance.
- Using a 64-dimensional embedding space yields the best performance, with m@A of 85.44% on Chair-V2 and 85.38% on Shoe-V2, while larger or smaller dimensions lead to performance degradation.
- Replacing the CNN-based sketch encoder with an RNN-based sequence model (e.g., LSTM) results in a significant drop in top-5 accuracy to 19.62% (Chair-V2) and 15.34% (Shoe-V2), indicating the superiority of CNNs for rasterized sketch representation.
- The model maintains strong performance (m@A: 85.04%, m@B: 34.84%) even when stroke order is randomly shuffled, confirming robustness to user-specific drawing patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.