Deep Self-Supervised Representation Learning for Free-Hand Sketch

Peng Xu, Zeyu Song, Qiyue Yin, Yi-Zhe Song, Liang Wang

TL;DR

This paper introduces the first self-supervised representation learning framework specifically designed for free-hand sketches. By combining a dual-branch CNN-TCN architecture with novel sketch-specific pretext tasks that mimic human drawing styles, the authors significantly narrow the performance gap between unsupervised and supervised sketch recognition and retrieval.

What Problem Does This Paper Address?

Deep learning has revolutionized computer vision, but it is notoriously data-hungry. While millions of photos can be scraped from the web, sketches must be manually drawn, making large-scale annotated sketch datasets (like QuickDraw) rare and expensive to produce.

Existing self-supervised methods—which learn features from unlabeled data by solving "pretext" tasks—are mostly engineered for photos. These methods often fail on sketches for two reasons:

  1. Sparsity: Photo-based tasks like "Jigsaw puzzles" (reordering image patches) don't work because sketch patches are often empty or too abstract to identify out of context.
  2. Temporal Nature: Unlike static photos, sketches are sequences of strokes. Existing models often ignore this sequential information or use RNNs, which struggle with the "noisy" and inconsistent stroke orders typical of human drawing.

Methods

The authors propose a two-pronged solution:

1. Sketch-Specific Pretext Tasks

Beyond standard image rotation, the authors introduce geometric deformation tasks. They use nonlinear trigonometric functions to simulate common human drawing variations:

  • Compression Styles: Horizontal (HC), Vertical (VC), Centripetal (CC), Leftward (LC), and Rightward (RC) compressions. The model is trained to identify which deformation has been applied to a sketch, forcing it to learn the underlying structural "essence" of the object regardless of the drawing style.

2. Dual-Branch CNN-TCN Architecture

To capture both the visual and temporal aspects of a sketch, the model uses two branches:

  • CNN Branch (AlexNet): Processes the sketch as a 2D static image to extract abstract visual concepts.
  • TCN Branch (Temporal Convolutional Network): Processes the sketch as a sequence of 1D coordinates. Unlike RNNs, the TCN uses varying kernel sizes to perceive strokes at different granularities (short vs. long strokes). The authors argue that TCNs are more robust than RNNs for self-supervision because they handle the inherent "noise" in human stroke ordering more effectively.

Datasets

The study utilizes the QuickDraw 3.8M dataset, a million-scale subset of Google’s QuickDraw.

  • Training/Validation: 3.1 million unlabeled sketches.
  • Evaluation: Tested on sketch retrieval and recognition tasks using a query set of 34,500 sketches and a gallery of 345,000 sketches.

Key Insights and Ideas

  • Patch-based tasks are a "no-go" for sketches: The paper confirms that Jigsaw-style pretext tasks perform poorly on sketches because the data is too sparse; a single patch of a sketch often contains nothing but a few lines, providing no semantic context.
  • TCN > RNN for Unsupervised Learning: While RNNs are standard for supervised sketch tasks, they often fail to converge in self-supervised settings. The TCN’s ability to use multi-scale 1D convolution kernels allows it to capture "stroke-group" invariance, which is more stable than point-by-point RNN modeling.
  • Style Invariance via Deformation: By forcing the model to recognize artificial deformations, it naturally learns to be invariant to the diverse ways different people draw the same object (e.g., a "fat" cat vs. a "slim" cat).

Key Results

The proposed model was evaluated on two primary tasks:

  • Sketch Retrieval: Achieved an acc@top1 of 0.5024, significantly outperforming the strongest unsupervised baseline, RotNet (0.4706), and crushing patch-based methods like Jigsaw (0.0803).
  • Sketch Recognition: Achieved 56.52% accuracy. While still behind the fully supervised "Sketch-a-Net" (68.71%), it represents a massive leap over other unsupervised methods like Deep Clustering (7.64%) and DCGAN (10.57%).
  • Ablation Success: Combining the CNN and TCN branches consistently yielded better results than either branch alone, proving that the temporal stroke data and static pixel data provide complementary information.

Limitations and Future Work

The authors acknowledge that their current pretext tasks are somewhat "coarse." While they simulate global deformations (like squishing or stretching), they don't yet account for fine-grained, stroke-level variations.

Future directions include: * Developing more granular pretext tasks that analyze individual stroke dynamics. * Exploring more sophisticated fusion strategies for the CNN and TCN branches. * Applying this self-supervised representation to other downstream tasks like sketch synthesis or segmentation.

Summary updated

BibTeX
@article{xu2021deep,
  author = {Peng Xu and Zeyu Song and Qiyue Yin and Yi-Zhe Song and Liang Wang},
  title = {{Deep Self-Supervised Representation Learning for Free-Hand Sketch}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2021},
  url = {https://openreview.net/forum?id=0IgNgtDd1jo},
}

Loading related content...

Figure