Learning Abstract Classes using Deep Learning

Sebastian Stabinger, Antonio Jose Rodríguez-Sánchez, Justus H. Piater

TL;DR

This paper investigates whether state-of-the-art Convolutional Neural Networks (CNNs) can move beyond recognizing concrete objects (like "dog" or "car") to learn abstract concepts like spatial orientation. The researchers found that while a standard GoogLeNet can learn to distinguish horizontal from vertical shapes with as few as 10 training images, its ability to generalize that knowledge across different visual styles—such as moving from outlines to filled shapes—is surprisingly fragile.

What Problem Does This Paper Address?

While CNNs have reached human-level performance in classifying specific object categories, humans possess a far more flexible type of "abstract" vision. We can easily identify if an object is "horizontal" or "vertical" regardless of whether it is a rectangle, an ellipse, or a squiggly line, and whether it is a solid silhouette or just an outline.

The authors aim to determine if CNNs truly capture these abstract concepts or if they are merely "overfitting" to specific pixel arrangements. They use the concept of Bongard problems—visual puzzles that require identifying a common abstract rule across different sets of images—as inspiration to test the limits of deep learning's reasoning capabilities.

Methods

The researchers used GoogLeNet (the Inception architecture) as their primary model, implemented via the Caffe framework. Unlike many studies that use pre-trained models, they trained the network from scratch to observe how it develops abstract representations.

The core experimental design involved:

  1. Training the network on one type of visual representation (e.g., filled rectangles).
  2. Testing the network on a different representation of the same abstract concept (e.g., filled ellipses or outlines).
  3. Varying the training set size (from 1 to 10,000 images per class) to see how much data is required for abstraction to emerge.

Datasets

The authors generated several synthetic datasets for these experiments:

  • Simple Geometric Shapes: Randomly generated filled rectangles and ellipses.
  • Outlines: The same geometric shapes but rendered only as wireframes.
  • Random Shapes: Highly varied, irregular shapes created using an adapted version of the SVRT (Synthetic Visual Reasoning Test) framework.
  • Textured Shapes: Random shapes filled with a texture where the texture's orientation was orthogonal (perpendicular) to the shape's orientation, specifically designed to confuse the classifier.

Key Insights and Ideas

  • Data Efficiency for Simple Abstraction: To the authors' surprise, the CNN achieved ~90% accuracy on the horizontal vs. vertical task with only 10 training images per class when the test shapes (ellipses) were visually similar to the training shapes (rectangles).
  • The "Representation Gap": The network struggled significantly when asked to generalize from outlines to filled shapes. This suggests that the CNN learns features specific to "outlines" rather than the abstract concept of "orientation" that applies to both.
  • Forced Abstraction: By adding more variety to the training set (e.g., training on both rectangle and ellipse outlines), the network's performance on filled shapes improved. This implies that visual diversity is a prerequisite for a CNN to "ignore" specific geometry and focus on the abstract rule.
  • Texture vs. Shape: When shapes were filled with conflicting textures, the network's performance became extremely volatile. This indicates that the network often prioritizes local texture over global shape, a known characteristic of CNNs that differs from human perception.

Key Results

  • Rectangle to Ellipse: Near 100% accuracy was reached with approximately 100 training images per class.
  • Outline to Filled: Generalization was much poorer and showed high variance. Even with 10,000 training images, the network often failed to reach the same level of stability seen in the filled-to-filled experiments.
  • Random Shapes: The network was capable of learning orientation for highly irregular shapes, but the "representation gap" between outlines and filled versions remained a major hurdle.

Limitations and Future Work

The authors acknowledge that humans have a massive advantage: evolutionary and developmental "pre-training." Our brains are already wired to understand shapes and orientations before we ever see a specific test. A CNN starting from scratch lacks this foundational "world model."

Future work could explore:

  • Pre-training strategies: Would pre-training on a massive variety of abstract tasks (rather than just ImageNet) help CNNs solve Bongard-style problems?
  • Architectural changes: Are standard CNNs fundamentally limited in their ability to reason abstractly, or do we simply need better training data that "forces" the network to look past pixel-level features?

Summary updated

BibTeX
@inproceedings{stabinger2015learning,
  author = {Sebastian Stabinger and Antonio Jose Rodríguez-Sánchez and Justus H. Piater},
  title = {{Learning Abstract Classes using Deep Learning}},
  booktitle = {BICT},
  year = {2015},
  url = {https://openreview.net/forum?id=2Jy68F_gVW7},
}
Figure