SCAN: Learning Abstract Hierarchical Compositional Visual Concepts

Irina Higgins, Nicolas Sonnerat, Loïc Matthey, Arka Pal, Christopher Burgess, Matthew Botvinick, Demis Hassabis, Alexander LerchnerarXiv 2017

Abstract

The seemingly infinite diversity of the natural world arises from a relatively small set of coherent rules, such as the laws of physics or chemistry. We conjecture that these rules give rise to regularities that can be discovered through primarily unsupervised experiences and represented as abstract concepts. If such representations are compositional and hierarchical, they can be recombined into an exponentially large set of new concepts. This paper describes SCAN (Symbol-Concept Association Network), a new framework for learning such abstractions in the visual domain. SCAN learns concepts through fast symbol association, grounding them in disentangled visual primitives that are discovered in an unsupervised manner. Unlike state of the art multimodal generative model baselines, our approach requires very few pairings between symbols and images and makes no assumptions about the form of symbol representations. Once trained, SCAN is capable of multimodal bi-directional inference, generating a diverse set of image samples from symbolic descriptions and vice versa. It also allows for traversal and manipulation of the implicit hierarchy of visual concepts through symbolic instructions and learnt logical recombination operations. Such manipulations enable SCAN to break away from its training data distribution and imagine novel visual concepts through symbolically instructed recombination of previously learnt concepts.

Introduction

Despite the massive success of deep learning, state-of-the-art models remain "data-hungry" and brittle. While a human child can learn the concept of a "dog" after seeing one or two examples and then imagine a "purple dog" without ever seeing one, standard neural networks require thousands of labeled images and struggle to generalize outside their training distribution.

The core issue is a lack of compositionality. Most models learn flat representations where features are tangled together. If a model hasn't seen a "blue suitcase" during training, it often fails to recognize or generate one, even if it knows "blue" and "suitcase" separately. SCAN (Symbol-Concept Association Network) addresses this by bridging the gap between unsupervised sensory learning and symbolic reasoning.

Conceptual hierarchy in SCAN: Mapping visual primitives to a hierarchy of abstract concepts ranging from superordinate to subordinate.

Methods

The SCAN architecture operates in three distinct stages to learn and manipulate visual abstractions:

  1. Learning Primitives ($\beta$-VAE): First, the model uses a $\beta$-Variational Autoencoder to learn "disentangled" visual primitives from raw images in a completely unsupervised way. This results in a latent space where individual dimensions correspond to interpretable factors like object color, floor color, or shape.
  2. Symbol-Concept Association: SCAN then learns to associate symbols (labels) with these primitives. Crucially, it uses a Forward KL Divergence loss. This allows the model to learn which primitives are relevant to a concept (e.g., "red" cares about color) while "ignoring" irrelevant ones (e.g., "red" doesn't care if the object is a hat or a suitcase) by letting those irrelevant dimensions default to a broad prior.
  3. Logical Recombination: The authors introduce a convolutional module that learns logical operators: AND (union of primitives), IN COMMON (intersection), and IGNORE (set difference). This allows the model to traverse the hierarchy of concepts—moving from a specific "red suitcase" to a general "red object" or a "suitcase."
SCAN Architecture Overview: The model associates symbols (y) with visual primitives (z_x) learned by a $\beta$-VAE using a KL divergence loss.

Key Insights and Ideas

  • Abstraction via Variance: SCAN defines a "concept" as a subset of visual primitives. A specific concept (subordinate) has many fixed primitives (low variance), while a general concept (superordinate) has fewer.
  • The Power of the Forward KL: Unlike standard VAEs that try to match distributions exactly, the forward KL encourages the model to cover all visual examples of a symbol. If "apple" images have many different backgrounds, the model learns that background is irrelevant to the "apple" concept.
  • Imagination through Logic: Because the model understands concepts as sets of primitives, it can follow symbolic instructions like "blue" AND "suitcase" to generate an image of a blue suitcase, even if that specific combination was never present in the training data.

Experiments and Results

The authors evaluated SCAN on three datasets: DeepMind Lab (synthetic 3D), dSprites (disentanglement benchmark), and CelebA (real-world celebrity faces).

  • Sample Efficiency: SCAN learned meaningful concepts from as few as five image-symbol pairs.
  • Accuracy vs. Diversity: In quantitative tests on DeepMind Lab, SCAN significantly outperformed baselines like JMVAE and Triple ELBO. It maintained high accuracy (generating the right object) while preserving high diversity (varying the irrelevant factors like background).
  • Zero-Shot Generalization: SCAN successfully "imagined" 50 novel test concepts by applying learned recombination operators to known concepts, a feat baseline models could not reliably replicate.

Discussion and Limitations

While SCAN demonstrates powerful compositional abilities, its performance is heavily dependent on the underlying $\beta$-VAE's ability to disentangle features. If the unsupervised stage fails to separate features (e.g., if color and shape are fused), SCAN cannot manipulate them independently. Future work includes using pre-trained word embeddings to handle language-based relationships more fluidly and addressing dataset biases revealed in real-world experiments.

Summary updated

BibTeX
@misc{higgins2017scan,
  author = {Irina Higgins and Nicolas Sonnerat and Loïc Matthey and Arka Pal and Christopher Burgess and Matthew Botvinick and Demis Hassabis and Alexander Lerchner},
  title = {{SCAN: Learning Abstract Hierarchical Compositional Visual Concepts}},
  year = {2017},
  eprint = {1707.03389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.03389},
}
Figure