The Scattering Compositional Learner: Discovering Objects, Attributes, Relationships in Analogical Reasoning

Yuhuai Wu, Honghua Dong, Roger B. Grosse, Jimmy Ba

Abstract

In this work, we focus on an analogical reasoning task that contains rich compositional structures, Raven's Progressive Matrices (RPM). To discover compositional structures of the data, we propose the Scattering Compositional Learner (SCL), an architecture that composes neural networks in a sequence. Our SCL achieves state-of-the-art performance on two RPM datasets, with a 48.7% relative improvement on Balanced-RAVEN and 26.4% on PGM over the previous state-of-the-art. We additionally show that our model discovers compositional representations of objects' attributes (e.g., shape color, size), and their relationships (e.g., progression, union). We also find that the compositional representation makes the SCL significantly more robust to test-time domain shifts and greatly improves zero-shot generalization to previously unseen analogies.

Introduction

Systematic generalization remains a significant challenge for deep learning. While humans effortlessly compose known concepts to understand novel scenarios—such as a "flying elephant"—standard neural networks often rely on entangled representations or "shortcuts" that fail when logical rules shift. This paper addresses this gap by focusing on Raven’s Progressive Matrices (RPM), a classic visual IQ test requiring the identification of underlying logical rules across a 3x3 grid of images. To excel at RPMs, a model must hierarchically identify objects, extract their attributes (e.g., color, size, shape), and determine the relationships governing those attributes.

Methodology: The Scattering Compositional Learner

The proposed Scattering Compositional Learner (SCL) moves away from monolithic "black box" architectures in favor of a modular design. The SCL consists of three specialized stages:

  1. Object Networks ($N^o$): Extract individual objects from input panels.
  2. Attribute Networks ($N^a$): Isolate specific features from these objects.
  3. Relationship Networks ($N^r$): Identify the logical rules (e.g., progression, union) governing attributes across the grid.

A key component is the Scattering Transformation, which facilitates efficient composition. It involves splitting representations into multiple "heads," applying shared neural transformations (forcing the networks to learn general concepts like "attribute" or "relationship" regardless of the specific instance), and merging the results. This inductive bias ensures the model learns modular, interchangeable components.

The SCL architecture decomposes the reasoning task into object, attribute, and relationship networks using a scattering transformation.

Performance and Generalization

The SCL was evaluated on the PGM and Balanced-RAVEN benchmarks. On Balanced-RAVEN, which is designed to prevent models from exploiting simple visual shortcuts, SCL achieved a 95.0% accuracy, representing a 48.7% relative improvement over the previous state-of-the-art (63.9%). On the PGM dataset, it achieved 88.9% accuracy, a 26.4% relative improvement.

Beyond raw accuracy, the SCL demonstrates remarkable zero-shot generalization. When tested on attribute-relationship pairs never encountered during training, SCL maintained an average accuracy of 90.0%, whereas the previous leading model, CoPINet, dropped to 34.7%.

Emergent Symbolism and Robustness

One of the most striking findings is the emergence of symbolic-like representations. Without explicit supervision, SCL's internal neurons learned to correlate linearly with symbolic attribute values (e.g., discrete object sizes). As shown in the figure below, neuron activations align closely with symbolic ground truth.

Internal neurons in SCL naturally learn to correlate with symbolic attribute values, such as object size and shape.

This interpretability contributes to the model's robustness against distribution shifts. By learning the fundamental rules of the domain rather than memorizing patterns, the SCL achieves performance levels that, in several categories, exceed average human scores.

Conclusion

The Scattering Compositional Learner demonstrates that explicit modeling of compositional structures—objects, attributes, and relationships—is a powerful path toward systematic generalization in AI. While currently optimized for the hierarchical structure of RPMs, the principles of scattering transformations and modular composition offer a promising framework for more complex, real-world reasoning tasks and potentially other domains like natural language processing.

Summary updated

BibTeX
@misc{wu2020scattering,
  author = {Yuhuai Wu and Honghua Dong and Roger B. Grosse and Jimmy Ba},
  title = {{The Scattering Compositional Learner: Discovering Objects, Attributes, Relationships in Analogical Reasoning}},
  year = {2020},
  eprint = {2007.04212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.04212},
}
Figure