Learning scale-variant and scale-invariant features for deep image classification

Nanne van Noord, Eric O. Postma · DOI

TL;DR

While most computer vision research focuses on making neural networks "blind" to scale (scale-invariance), this paper argues that the specific scale of a feature—like the thickness of a brushstroke—is often a vital clue for classification. By using a multi-scale CNN ensemble trained on a high-resolution art dataset, the authors demonstrate that combining scale-invariant and scale-variant features significantly boosts accuracy in complex tasks like artist attribution.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) are typically designed to be scale-invariant. This means if the network learns to recognize a "dog," it should recognize that dog whether it's 50 pixels wide or 500 pixels wide. However, the authors argue that scale-invariance is an incomplete representation of an image.

In many domains—specifically fine art—the absolute scale of a pattern (scale-variance) matters. A specific artist might use a particular hatching technique that only appears at a certain physical resolution. If a network is forced to be entirely scale-invariant, it might discard these "fine-grained" stylistic markers. The challenge lies in building a system that can handle the natural variations in object size while still capturing the scale-specific details that distinguish one class from another.

Methods

The authors propose a multi-scale CNN architecture that functions as an ensemble of independent networks.

  1. Gaussian Pyramid Input: Instead of just resizing images, they create a four-level Gaussian pyramid (256, 512, 1024, and 2048 pixels on the shortest side). This involves low-pass filtering (blurring) before downsampling to prevent aliasing—visual artifacts that occur when fine details are crammed into too few pixels.
  2. Independent CNNs: They train a separate, identical CNN for each scale. These networks are based on a fully convolutional architecture (modified from the "All Convolutional Net") using global average pooling. This allows the networks to process images of any size without forced cropping.
  3. Ensembling: At test time, the softmax class probabilities from all four networks are averaged to produce a final prediction.
  4. Visualization: They use Guided Backpropagation to visualize which parts of an image "excite" the network at different scales, proving that the models actually look at different types of features (e.g., composition at low scales vs. texture at high scales).

Datasets

The study introduces and utilizes a high-resolution dataset of 58,630 digital reproductions of print artworks from the Rijksmuseum in the Netherlands.

  • Scope: 210 different artists.
  • Uniqueness: Unlike standard datasets (like ImageNet), these images contain extremely fine details (0.5 to 10 pixels per mm) that are essential for distinguishing between artists with similar styles.
  • Benchmark: The authors compare their Gaussian pyramid approach against standard "multi-scale training" (which often ignores aliasing) and single-scale baselines.

Key Insights and Ideas

  • Scale-Variance as a Feature: The "aha moment" is that scale-variant information isn't just noise to be ignored; it's a signal. For artist attribution, the physical size of a brushstroke is a "signature" that scale-invariant models might miss.
  • The Resolution/Scale Trade-off: The paper formalizes the link between resolution (pixel count) and scale (spatial frequency). They show that simply increasing resolution doesn't always help; the best-performing single scale was 512px, not the highest 2048px.
  • Complementary Information: The low correlation between the errors made at different scales (especially 256px vs 2048px) suggests that the networks are learning truly different, non-redundant information.
  • Artist-Specific Scales: Some artists are perfectly identified at one scale but completely missed at another. This confirms that stylistic markers are often scale-dependent.

Key Results

  • Ensemble Superiority: The multi-scale ensemble achieved a Mean Class Accuracy (MCA) of 82.11%, significantly outperforming the best single-scale model (512px at 75.69%).
  • Beating Standard Multi-Scale: Their approach outperformed the standard multi-scale training method (79.98% MCA), likely due to the reduction of aliasing via the Gaussian pyramid.
  • Scale Sensitivity: For certain artists, like Cornelis van Dalen (II), the model achieved 100% accuracy across all scales. For others, like Charles Meryon, accuracy jumped from 64% at the lowest scale to 100% at the 1024px scale, before dropping off at the highest resolution.

Limitations and Future Work

  • Computational Cost: Because the model uses an ensemble of independent CNNs, it requires significantly more parameters and memory than a single-scale network. The authors acknowledge that a single, much deeper "super-network" might achieve similar results, though it would be harder to train.
  • Implicit Invariance: The current model doesn't explicitly learn scale-invariant features; they are expected to emerge naturally. Future work could explore architectures that explicitly bridge the gap between scale-variant and scale-invariant representations.
  • Generalization: While highly effective for art, the authors suggest testing this on other "texture-heavy" domains like aerial imagery or medical pathology, where absolute scale is equally critical.

Summary updated

BibTeX
@article{noord2017learning,
  author = {Nanne van Noord and Eric O. Postma},
  title = {{Learning scale-variant and scale-invariant features for deep image classification}},
  journal = {Pattern Recognition},
  year = {2017},
  doi = {10.1016/j.patcog.2016.06.005},
}
Figure