Transfer Learning for Illustration Classification

Manuel Lagunas, Elena Garces

TL;DR

This paper explores how to adapt deep learning models trained on natural photographs to the world of illustrations and clip art. By using a novel "adaptive layer-based optimization" strategy—which retrains a network's low-level feature extractors while preserving its high-level understanding of shapes—the authors achieved a significant jump in classification accuracy, from a baseline of 26.5% to 86.61%.

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) like VGG19 have mastered image classification for natural photographs, largely thanks to massive datasets like ImageNet. However, these models often stumble when presented with illustrations, cartoons, or clip art.

The core challenge is a "domain gap." At a high level, a pelican is still a pelican whether it’s in a photo or a drawing—the basic arrangement of parts (beak, wings, body) remains the same. However, at a low level, the statistics are completely different: photos rely on complex gradients and textures, while illustrations use distinct strokes, flat colors, and stylized edges. Standard transfer learning often fails here because the "eyes" of the network (the early layers) are tuned specifically for the physics of light in the real world, not the abstraction of an artist's pen.

Methods

The authors propose a two-stage transfer learning approach to bridge this gap:

  1. Baseline VGG19 + SVM: First, they used a pre-trained VGG19 as a fixed feature extractor. They took the "neural codes" from the second fully-connected layer and used them to train a Support Vector Machine (SVM). This provided a significant boost over the raw VGG19 output but still struggled with highly abstract styles.
  2. Optimized VGG19 + SVM: This is the paper's primary contribution. They implemented an adaptive layer-based optimization strategy:
  3. Low/Medium Layers (1-10): The weights were restarted and trained with a high learning rate ($10^{-2}$). This forced the network to learn new "visual primitives" (strokes and edges) specific to illustrations.
  4. High-Level Layers (11-16): These layers, which capture complex shapes and object parts, were kept mostly intact with a very low learning rate ($10^{-4}$). This preserved the "object knowledge" learned from ImageNet.
  5. Classifier Layers (17-19): These were restarted to map the new features to the illustration classes.
  6. Final Refinement: After optimizing the CNN on a large "noisy" dataset, they extracted features to train a final non-linear SVM on a smaller, high-quality "curated" dataset.

Datasets

The study utilized three main data sources:

  • ImageNet: The source domain containing 1.2 million natural photographs.
  • Noisy Illustration Dataset: A large-scale collection of ~180,000 clip art images across 826 classes. This was created by automatically mapping keywords from an existing dataset to ImageNet classes, resulting in some labeling errors.
  • Curated Illustration Dataset (New): A high-quality benchmark introduced by the authors. It contains 4,091 manually verified images across 23 classes. They used web-scraping to supplement classes that had too few samples.

Key Insights and Ideas

  • Shape is Universal, Style is Local: The most profound insight is that the "concept" of an object is stored in the deeper layers of a CNN, while the "style" is encoded in the earlier layers. By selectively retraining only the early layers, you can change the "medium" the network sees without losing its understanding of "content."
  • The "Eyes" Need Retraining: In traditional transfer learning, researchers often only retrain the final classification layer. This paper argues that for cross-domain tasks (photo to illustration), you must retrain the early feature-extraction layers because the fundamental building blocks of the images have changed.
  • Noisy Data as a Stepping Stone: The authors demonstrate that a large, imperfect dataset is incredibly valuable for "warming up" the network's feature extractors before fine-tuning on a smaller, clean dataset.

Key Results

The performance improvements were dramatic across the curated illustration dataset:

  • Baseline VGG19 (Pre-trained on ImageNet): 26.50% Top-1 accuracy.
  • VGG19 + SVM: 62.04% Top-1 accuracy.
  • Optimized VGG19 + SVM: 86.61% Top-1 accuracy (and 97.21% Top-5).

Crucially, the authors also tested their optimized model back on natural photographs. They found that despite being tuned for illustrations, the network retained its ability to recognize objects in photos, proving that the adaptive optimization didn't cause "catastrophic forgetting" of the original domain.

Limitations and Future Work

  • Dataset Scale: While the curated dataset is high quality, it only covers 23 classes. Expanding this to the full 1000 classes of ImageNet remains a massive manual task.
  • Manual Curation: The authors acknowledge that manual cleaning of datasets is a bottleneck and suggest crowd-sourcing as a potential solution.
  • Gestalt Laws: The authors express interest in exploring whether these networks are implicitly learning "Gestalt laws" (principles of how humans perceive visual components as organized patterns) and if they can identify the "essential edges" that make an object recognizable even at high levels of abstraction.

Summary updated

Abstract

The field of image classification has shown an outstanding success thanks to the development of deep learning techniques. Despite the great performance obtained, most of the work has focused on natural images ignoring other domains like artistic depictions. In this paper, we use transfer learning techniques to propose a new classification network with better performance in illustration images. Starting from the deep convolutional network VGG19, pre-trained with natural images, we propose two novel models which learn object representations in the new domain. Our optimized network will learn new low-level features of the images (colours, edges, textures) while keeping the knowledge of the objects and shapes that it already learned from the ImageNet dataset. Thus, requiring much less data for the training. We propose a novel dataset of illustration images labelled by content where our optimized architecture achieves 86.61% of top-1 and 97.21% of top-5 precision. We additionally demonstrate that our model is still able to recognize objects in photographs.
BibTeX
@inproceedings{lagunas2017transfer,
  author = {Manuel Lagunas and Elena Garces},
  title = {{Transfer Learning for Illustration Classification}},
  booktitle = {CEIG},
  year = {2017},
  url = {https://openreview.net/forum?id=FOfpp1gsNU},
}
Figure