[Paper Review] Sketch-R2CNN: An Attentive Network for Vector Sketch Recognition
Sketch-R2CNN proposes a novel single-branch attentive network that leverages temporal ordering and stroke grouping in vector sketches for improved sketch recognition. By using an RNN to estimate attention in the vector space and a differentiable neural line rasterization (NLR) module to convert attention-aware vector sketches into differentiable bitmaps, the method enables end-to-end training of an RNN-Rasterization-CNN pipeline, achieving state-of-the-art performance on large-scale sketch benchmarks with a 2% accuracy gain over prior CNN-only models.
Freehand sketching is a dynamic process where points are sequentially sampled and grouped as strokes for sketch acquisition on electronic devices. To recognize a sketched object, most existing methods discard such important temporal ordering and grouping information from human and simply rasterize sketches into binary images for classification. In this paper, we propose a novel single-branch attentive network architecture RNN-Rasterization-CNN (Sketch-R2CNN for short) to fully leverage the dynamics in sketches for recognition. Sketch-R2CNN takes as input only a vector sketch with grouped sequences of points, and uses an RNN for stroke attention estimation in the vector space and a CNN for 2D feature extraction in the pixel space respectively. To bridge the gap between these two spaces in neural networks, we propose a neural line rasterization module to convert the vector sketch along with the attention estimated by RNN into a bitmap image, which is subsequently consumed by CNN. The neural line rasterization module is designed in a differentiable way to yield a unified pipeline for end-to-end learning. We perform experiments on existing large-scale sketch recognition benchmarks and show that by exploiting the sketch dynamics with the attention mechanism, our method is more robust and achieves better performance than the state-of-the-art methods.
Motivation & Objective
- To address the limitation of existing sketch recognition methods that discard temporal and grouping information from vector sketches by leveraging dynamic stroke ordering and structure.
- To improve sketch recognition robustness and accuracy by integrating recurrent neural networks (RNNs) with convolutional neural networks (CNNs) in a unified, end-to-end trainable architecture.
- To bridge the gap between vector sketch space and pixel-based feature learning by introducing a differentiable neural line rasterization (NLR) module for attention-guided rasterization.
- To demonstrate that modeling stroke dynamics through attention improves feature learning and recognition performance beyond standard CNN-based approaches on large-scale sketch datasets.
Proposed method
- The method employs a single-branch architecture combining RNN, neural line rasterization (NLR), and CNN for end-to-end sketch recognition.
- An RNN processes the sequence of grouped stroke points in vector sketches to estimate attention weights for each stroke, capturing temporal and structural dynamics.
- The NLR module converts the vector sketch with estimated attention into a differentiable attention map in pixel space, enabling gradient flow from CNN to RNN.
- The attention map is fed into a CNN backbone (e.g., ResNet50) for hierarchical feature learning, with attention guiding focus on salient strokes.
- The NLR module is differentiable, allowing backpropagation through both the RNN and CNN components for joint optimization.
- The model is trained end-to-end on large-scale sketch datasets such as TU-Berlin and QuickDraw, with no reliance on rasterized inputs alone.
Experimental results
Research questions
- RQ1Can modeling stroke ordering and grouping in vector sketches improve sketch recognition performance compared to standard CNNs that treat sketches as static binary images?
- RQ2How effective is an RNN-based attention mechanism in identifying salient strokes from sequential vector sketch data for improved feature learning?
- RQ3Can a differentiable neural line rasterization module successfully bridge the vector sketch space and pixel-based CNN feature learning while enabling end-to-end training?
- RQ4Does the integration of RNN-driven attention with CNN-based feature extraction consistently outperform CNN-only or two-branch late-fusion architectures on benchmark sketch datasets?
- RQ5To what extent does the proposed method generalize across datasets with varying sketch quality and diversity?
Key findings
- Sketch-R2CNN (ResNet50) achieves a recognition accuracy of 84.41% on the TU-Berlin benchmark, outperforming the ResNet50-only baseline by 1.93%.
- On the QuickDraw benchmark, Sketch-R2CNN (ResNet50) achieves 84.41% accuracy, a 2% improvement over the ResNet50-only model and a 2.12% gain over the Two-Branch-Late-Fusion method.
- The method improves upon Sketch-a-Net v2 by 7.12% accuracy, demonstrating the effectiveness of the proposed attention mechanism and architecture.
- Qualitative analysis shows that the RNN-generated attention maps effectively highlight key strokes and suppress irrelevant or distracting elements, such as bounding circles.
- The NLR module enables end-to-end training by allowing gradients to flow from the CNN back to the RNN, which is critical for joint optimization of attention and feature learning.
- Failure cases reveal limitations in distinguishing sketches with similar temporal ordering across different categories, suggesting potential for future integration with context-aware recognition.
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.