Improving Compositional Generalization using Iterated Learning and Simplicial Embeddings

Yi Ren, Samuel Lavoie, Mikhail Galkin, Danica J. Sutherland, Aaron Courville

Abstract

Deep neural networks frequently struggle with compositional generalization—the ability to recombine known concepts to interpret novel scenarios. We present SEM-IL, a training framework that integrates Iterated Learning (IL) with Simplicial Embeddings (SEM) to induce a preference for simpler, more structured representations. By simulating the evolutionary pressure found in human language development, SEM-IL encourages models to discover the underlying generative factors of a dataset. Our results across controlled vision tasks and molecular property prediction benchmarks demonstrate that SEM-IL significantly enhances out-of-distribution performance and representation quality compared to standard architectures.

Introduction

While deep learning excels at recognizing patterns within a training distribution, it often fails in "out-of-distribution" scenarios involving novel combinations of known factors. For instance, a model trained on "red squares" and "blue circles" may fail to recognize a "red circle." Humans solve this through compositionality: breaking the world into atomic, reusable concepts like color, shape, and size. Current AI models, however, often take "shortcuts," learning holistic mappings that work for training data but lack the structural integrity to generalize. This paper introduces SEM-IL, a method designed to bridge this gap by introducing inductive biases—specifically compressibility pressure—that encourage models to discover the true underlying rules of a dataset rather than memorizing samples.

Methodology

The SEM-IL framework employs a two-pronged approach to foster compositional representations:

1. Iterated Learning (IL)

Inspired by the evolution of human language across generations, training is divided into successive generations. Each generation consists of two distinct phases:

  • Imitation Phase: A "student" model attempts to mimic the internal representations (the "language") of the "teacher" (the previous generation's model). This creates a transmission bottleneck that favors simpler, more "compressible" information.
  • Interaction Phase: The student is then fine-tuned on the actual downstream task, such as image regression or molecular property prediction.

2. Simplicial Embeddings (SEM)

To maximize the effectiveness of the imitation phase, the authors utilize a specific architectural bottleneck. Instead of standard continuous vectors, SEM employs a "soft" discretization via sparse softmax. This forces the model to represent data as a collection of categorical-like factors, aligning with the theoretical concept of Kolmogorov complexity. Compositional mappings are mathematically simpler because they reuse rules; SEM-IL acts as a regularizer that favors these low-complexity, highly generalizable mappings.

Experimental Setup

The researchers evaluated SEM-IL across two primary domains:

  • Controlled Vision Tasks: Using datasets like 3dShapes, dSprites, and MPI3D-real, where ground-truth latent factors (e.g., floor color, object shape) are known. This allowed for precise measurement of how closely the model's internal representations mirrored the physical properties of the scene.
  • Molecular Graph Prediction: Testing on real-world chemistry benchmarks from the Open Graph Benchmark (OGB), including ogbg-molhiv and PCQM4Mv2. These tasks are challenging because the underlying latent factors of molecules are complex and not explicitly defined.

Key Results and Insights

Performance Gains

  • Vision: On the 3dShapes regression task, SEM-IL significantly outperformed standard ResNets and models using only SEM or only IL. It achieved markedly higher "topological similarity" to ground-truth factors, suggesting a more faithful internal model of the world.
  • Chemistry: SEM-IL consistently improved performance on molecular property prediction. On the PCQM dataset, it reduced the Mean Absolute Error (MAE) from a baseline of 0.125 to 0.102.

Representation Quality

  • The Ladder of Compositionality: The authors propose a framework to measure representation quality, ranging from basic task-solving (Stage I) to achieving an "isomorphism" where the model's internal logic perfectly mirrors the world's structure (Stage IV).
  • Emergent Substructures: By probing learned embeddings, the authors found that SEM-IL naturally discovers chemical substructures, such as benzene rings, without explicit supervision. This indicates the model is successfully identifying the "atoms" of the domain.
  • The Role of Discretization: A key finding was that Iterated Learning alone is insufficient for standard continuous networks. The combination of IL with the discrete-like bottleneck of SEM is what allows the model to filter noise and focus on core semantic factors.

Discussion and Limitations

While SEM-IL shows great promise in improving generalization, it introduces certain trade-offs. The primary drawback is computational cost, as training multiple generations of teacher-student pairs is more resource-intensive than standard training. Additionally, while the discrete bias of SEM-IL is highly effective for categorical factors, its application to purely continuous latent factors (such as precise rotation angles) requires further investigation. Future work may focus on achieving similar compressibility pressure within a single generation or more streamlined training loops.

Summary updated

BibTeX
@inproceedings{ren2023improving,
  author = {Yi Ren and Samuel Lavoie and Mikhail Galkin and Danica J. Sutherland and Aaron Courville},
  title = {{Improving Compositional Generalization using Iterated Learning and Simplicial Embeddings}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=irRHgjePdR},
}
Figure