Does Continual Learning Meet Compositionality? New Benchmarks and An Evaluation Framework

Weiduo Liao, Ying Wei, Mingchen Jiang, Qingfu Zhang, Hisao IshibuchiNeurIPS 2023

TL;DR

This paper investigates whether Continual Learning (CL) models actually learn the reusable "building blocks" of knowledge—a property called compositionality. The authors introduce two new benchmarks (CGQA and COBJ) and a "Compositional Few-Shot Testing" (CFST) framework to prove that while current models have some compositional ability, they still struggle to match human-like generalization when recombining known concepts in new ways.

What Problem Does This Paper Address?

In the world of AI, Continual Learning (CL) is the quest to create models that learn a sequence of tasks without "catastrophic forgetting"—the tendency to completely erase old knowledge when learning something new.

However, the authors argue that we are missing a crucial piece of the puzzle: compositionality. Humans don't just memorize tasks; we break them down into concepts. If you know what a "red car" and a "blue bike" look like, you can instantly recognize a "red bike" even if you've never seen one. This ability to recombine familiar concepts is vital for "forward transfer" (using old knowledge to learn new things faster).

Existing CL benchmarks (like Split-MNIST or Split-CIFAR) are too simple to test this. They focus on whether a model remembers "Task A" while learning "Task B," but they don't test if the model learned the underlying concepts that make up those tasks.

Methods: Compositional Few-Shot Testing (CFST)

The researchers proposed a new evaluation protocol called Compositional Few-Shot Testing (CFST) to explicitly measure this capability.

Overview of the Compositional Few-Shot Testing (CFST) framework.

The process works in two stages:

  1. Continual Training: The model learns a sequence of tasks (e.g., identifying "Door-Shirt" or "Grass-Table").
  2. Few-Shot Testing: The model’s feature extractor is frozen (no more learning allowed in the backbone). A small, new classifier is then trained on a tiny amount of data to see if the model can recognize novel combinations of the concepts it already saw.

To measure this, they defined five specific testing schemes:

  • Systematicity (sys): Recognizing novel recombinations of familiar concepts (e.g., seeing "Grass-Shirt" after training on "Door-Shirt" and "Grass-Table").
  • Productivity (pro): Recognizing combinations with more concepts than seen during training.
  • Substitutivity (sub): Recognizing concepts when an attribute (like color or texture) is swapped.
  • Non-novel (non): A baseline testing the model on combinations it has already seen.
  • Non-compositional (noc): A lower bound testing the model on entirely unseen concepts.

Datasets: CGQA and COBJ

The paper introduces two new benchmarks specifically designed for compositional CL:

Example of CGQA dataset construction using a 2x2 grid.
  • Compositional GQA (CGQA): A synthetic benchmark derived from the GQA dataset. It uses a 2x2 grid to artificially combine objects, ensuring a controlled environment to test systematicity.
  • Compositional OBJects365 (COBJ): A real-world benchmark based on the massive Objects365 dataset. It uses high-resolution images and a smart cropping strategy to ensure multiple objects appear in a single frame, providing a more "natural" test of compositionality.

Key Insights and Results

  • The "Systematic Gap": Even when a model remembers old tasks, it often fails to recognize the individual concepts within those tasks when they appear in new contexts. There is a clear performance drop between "seen combinations" (non) and "novel combinations" (sys).
  • Multi-Task Learning (MTL) is the Gold Standard: Models trained on all data at once (non-continually) significantly outperform CL models on all compositional metrics (e.g., ~88% vs ~71% accuracy on CGQA Systematicity).
  • CL Performance Decline: Most CL methods (like ER, LwF, and EWC) show a noticeable decline in compositional ability compared to MTL, proving that the sequential nature of CL actively hinders the formation of reusable concept representations.
  • Backbone Biases: The choice of neural network architecture matters. ResNet-18 (which uses convolutions) performed better at Systematicity and Productivity. In contrast, Vision Transformers (ViT) showed a preference for Substitutivity, likely because their attention mechanisms are better at handling attribute-level changes like texture and color.
  • Concept-Level Forgetting: Forgetting isn't just about losing a whole task; it happens at the concept level. Models tend to have better compositional generalization for "fresh" concepts (learned in the most recent task) than for "old" concepts learned at the start of the sequence.
  • Modularity Isn't a Silver Bullet: The authors tested "modularity-based" methods (which use different neural "modules" for different tasks). Surprisingly, these didn't show a massive advantage in compositionality, suggesting that current modular approaches aren't yet learning truly interpretable, reusable concept modules.

Limitations and Future Work

  • Local vs. Global Compositionality: This paper focuses on "local" compositionality (objects within a single image). Future work could explore "global" scopes, such as how these concepts relate to language or complex scene reasoning.
  • Limited Concept Pool: While the benchmarks are more complex than previous ones, the number of candidate concepts is still relatively small compared to the infinite variety of the real world.
  • Interpretable Modules: A major future direction is developing modularity-based CL methods that don't just isolate parameters for tasks, but actually learn discrete, interpretable modules for specific concepts (e.g., a "red" module and a "bike" module).

This work serves as a wake-up call for the CL community: preventing forgetting is only half the battle; the real challenge is building models that can truly understand and recombine the world's building blocks.

Summary updated

BibTeX
@inproceedings{liao2023does,
  author = {Weiduo Liao and Ying Wei and Mingchen Jiang and Qingfu Zhang and Hisao Ishibuchi},
  title = {{Does Continual Learning Meet Compositionality? New Benchmarks and An Evaluation Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xbPWwIDb1H},
}
Figure