Inductive Biases for Relational Tasks

Giancarlo Kerg, Sarthak Mittal, David Rolnick, Yoshua Bengio, Blake Aaron Richards, Guillaume LajoieOSC @ ICLR 2022

TL;DR

Deep learning models struggle with out-of-distribution generalization on relational tasks, unlike humans. This paper proposes that separating relational representations from sensory information is a key inductive bias for robust relational reasoning, showing that a simple MLP decoder on a similarity matrix outperforms complex architectures.

What Problem Does This Paper Address?

Modern deep learning models excel at tasks where training and testing data share similar distributions. However, they often falter when faced with novel scenarios or variations in input, a phenomenon known as out-of-distribution (OoD) generalization. This is particularly true for tasks requiring abstract relational reasoning, such as those found in intelligence tests (e.g., Raven's Progressive Matrices). Humans, on the other hand, are remarkably adept at these tasks, suggesting that our brains possess inherent mechanisms, or "inductive biases," that facilitate such generalization. This paper investigates whether explicitly encoding such biases in artificial systems can improve their performance on relational tasks, especially when encountering unseen objects or rules.

Methods

The core idea explored is the "partitioning" of relational representations from sensory information. The authors build upon prior work like Emergent Symbols through Binding in Memory (ESBN) which already separates sensory and relational encoding. Their approach distills this into a minimal set of inductive biases.

The proposed models, CoRelNet and CoRelNet-T, share a common backbone:

  1. Encoder: Each input object (e.g., an image) is independently encoded into a representation.
  2. Temporal Context Normalization (TCN): This step, known to improve OoD generalization in relational tasks, is applied to the encoded representations.
  3. Similarity Matrix: Self-attention is used to compute a $T \times T$ similarity matrix, where $T$ is the sequence length. This matrix captures pairwise relationships between objects.

The key difference lies in the decoder:

  • CoRelNet: Uses a simple Multi-Layer Perceptron (MLP) to directly process the flattened similarity matrix.
  • CoRelNet-T: Employs a Transformer network to process the similarity matrix.

The authors hypothesize that a minimal set of inductive biases, specifically focusing on the similarity matrix and a simple decoder, is sufficient for robust relational reasoning.

Datasets

The paper evaluates its models on a set of basic and harder relational tasks. These tasks are synthesized and do not appear to be standard, publicly available datasets. The core idea is to generate sequences of objects governed by specific abstract rules (e.g., "same/different," "relational match-to-sample," "distribution-of-three," "identity rules"). Crucially, for OoD evaluation, the models are trained on a subset of object identities and/or rules, and then tested on novel objects and/or rules.

Key Insights and Ideas

  • Separation is Key: Explicitly separating relational information from raw sensory data is a powerful inductive bias for out-of-distribution generalization in relational tasks. Models that rely solely on this separated relational information (represented as a similarity matrix) perform significantly better than those that also incorporate sensory details.
  • Simplicity Wins: A surprisingly simple decoder, like an MLP (as in CoRelNet), can achieve superior OoD generalization on these relational tasks compared to more complex architectures like Transformers or recurrent networks (as in ESBN). This suggests that the complexity of the decoder might not be the bottleneck for relational reasoning.
  • Similarity Matrix Sufficiency: The pairwise similarity matrix between object representations appears to contain all the necessary information for solving these purely relational tasks, even in extreme OoD settings.
  • Sensory Overfitting Hinders Generalization: Including sensory information in the decoder stage, even when relational information is present, can degrade OoD generalization. This is because models may overfit to specific sensory features rather than learning the underlying abstract rules.

Key Results

  • Superior OoD Generalization: CoRelNet and CoRelNet-T consistently outperform ESBN and Transformer models on various relational tasks, especially in extreme out-of-distribution settings where a large proportion of object identities are held out during training.
  • CoRelNet's Advantage: In many scenarios, the simpler CoRelNet model (with an MLP decoder) achieves comparable or even better accuracy than CoRelNet-T (with a Transformer decoder) and ESBN. For instance, on the harder relational tasks, CoRelNet achieves near-perfect accuracy on RMTS 3 and identity rules 4.
  • Sensory Ablation Impact: Figure 7 clearly demonstrates that models incorporating concatenated sensory information (e.g., ESBN_cat, CoRelNet_cat) show a significant drop in accuracy as the out-of-distribution setting becomes more extreme, compared to their counterparts that only use relational information.

Limitations and Future Work

  • Hardcoding Sequence Length: The MLP decoder in CoRelNet requires a hardcoded sequence length, which is a practical limitation. CoRelNet-T addresses this by using a Transformer, but the authors note that the MLP still performs better.
  • Multiple Abstract Rules: The current work focuses on tasks with a single abstract rule. Future work could explore how to handle tasks involving multiple abstract rules that need to be inferred simultaneously.
  • Real-World Spurious Features: Extending these findings to more complex, real-world scenarios with a variety of spurious features (i.e., irrelevant sensory information) is a promising direction.
  • Minimal Inductive Biases for Complex Relations: Investigating how to enable systems to generalize to more complex unseen relations from a minimal set of training examples remains an open area.

Summary updated

BibTeX
@inproceedings{kerg2022inductive,
  author = {Giancarlo Kerg and Sarthak Mittal and David Rolnick and Yoshua Bengio and Blake Aaron Richards and Guillaume Lajoie},
  title = {{Inductive Biases for Relational Tasks}},
  booktitle = {OSC @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=BSgxIBuI5lq},
}
Figure