Introduction
Fine-Grained Sketch-Based Image Retrieval (FG-SBIR) focuses on identifying a specific object instance from a photo gallery based on a user's hand-drawn sketch. Traditional approaches typically require a completed sketch, which can be time-consuming and challenging for non-expert users. The "on-the-fly" setting addresses this by attempting to retrieve the target image as the sketch is being drawn. However, early-stage sketches are often sparse and noisy, leading to a significant domain gap between incomplete drawings and final photo targets.
The MGAL Framework
To overcome the limitations of traditional triplet networks in handling progressive sketches, the authors introduce the Multi-granularity Association Learning (MGAL) framework. MGAL treats sketching as a dynamic process where early strokes are precursors to the final representation.
Multi-Stage Division and Mapping
The framework divides a sketch episode into $k$ distinct stages based on stroke count. While the backbone network (Inception-V3) and attention modules are shared across all stages to capture general features, each stage is equipped with its own learnable linear mapping layer ($f_{31}, f_{32}, \dots, f_{3k}$). This specialization allows the model to adapt to varying levels of sketch "integrity" without confusing the shared feature space.
Association Learning
The core innovation of MGAL is its dual-loss objective. In addition to the standard Triplet Loss, which ensures discriminative power against negative samples, the model employs a Mean Squared Error (MSE) Loss for association. This loss forces the embedding of an incomplete sketch at stage $i$ to approximate the embedding of its more complete version at a later stage $j$. By "anticipating" the final sketch, the model effectively projects early strokes into a more informative region of the joint embedding space.
Experimental Evaluation
The framework was evaluated on the QMUL-Shoe-V2 and QMUL-Chair-V2 benchmarks. To further validate real-world utility, a "Practical Test" was conducted with 40 participants providing 300 real-world sketch episodes, testing the model against diverse drawing styles and non-synthetic stroke orders.
Results and Discussion
MGAL demonstrates superior performance in early-stage retrieval. On the Chair-V2 dataset, it achieved a ranking percentile (m@A) of 88.95, outperforming the previous Reinforcement Learning (RL)-based state-of-the-art (85.44). Qualitative analysis shows that MGAL can often identify the correct target within the top-5 results with as little as 30% of the sketch completed.
Notably, the model's performance in the practical user test (91.28 m@A for chairs) exceeded its performance on standard test sets. This suggests that the association learning strategy is particularly robust to the information density and natural variations found in human sketching behavior.
Conclusion
The MGAL framework provides a differentiable and efficient solution for on-the-fly FG-SBIR. By explicitly modeling the temporal correlation between sketch stages through multi-granularity association, it enables high-accuracy retrieval with minimal user effort. Future work may explore more complex architectures beyond linear mapping layers and investigate robustness to highly unconventional stroke orders.
Summary updated