Plug-and-Play Compositionality for Boosting Continual Learning with Foundation Models

Weiduo Liao (Zhejiang University), Fei Han, Hisao Ishibuchi, Qingfu Zhang, Ying Wei

International Conference on Learning Representations 2026 · Oral

Overview

This talk introduces Compo-Slot, a novel plug-and-play compositional framework designed to significantly enhance continual learning (CL) performance, particularly when leveraging powerful foundation models (FMs). Presented by Weiduo Liao from Zhejiang University, the research addresses the persistent challenge of catastrophic forgetting in sequential class-incremental learning tasks. While foundation models provide a robust pre-trained backbone for understanding diverse inputs, they do not inherently solve the problem of models forgetting previously learned knowledge when presented with new tasks and classes. The core insight of Compo-Slot is that current approaches fail to adequately capture and ground decisions on essential conceptual combinations within the high-dimensional, unstructured feature spaces generated by FMs.

Watch on SlidesLive

Visual summary for Plug-and-Play Compositionality for Boosting Continual Learning with Foundation Models by Weiduo Liao, Fei Han, Hisao Ishibuchi, Qingfu Zhang, Ying Wei
Visual summary for Plug-and-Play Compositionality for Boosting Continual Learning with Foundation Models by Weiduo Liao, Fei Han, Hisao Ishibuchi, Qingfu Zhang, Ying Wei

Key moments

  1. 0:00 Introduction to continual learning challenges with foundation models
  2. 2:00 Problem: Foundation models miss essential concepts in features
  3. 5:00 Introducing Compo-Slot architecture and its two main stages
  4. 5:30 Stage 1: Learning conceptual representations via slot attention
  5. 7:00 Stage 2: Grounding classifier decisions with primitive-logits alignment
  6. 9:00 Compo-Slot boosts diverse CL algorithms and shows robustness
  7. 10:30 Q&A: Balancing different loss functions in Compo-Slot

Plug-and-Play Compositionality for Boosting Continual Learning with Foundation Models

Speakers: Weiduo Liao (Zhejiang University), Fei Han, Hisao Ishibuchi, Qingfu Zhang, Ying Wei

Conference: ICLR 2026

YouTube: https://slideslive.com/39062071

Overview

This talk introduces Compo-Slot, a novel plug-and-play compositional framework designed to significantly enhance continual learning (CL) performance, particularly when leveraging powerful foundation models (FMs). Presented by Weiduo Liao from Zhejiang University, the research addresses the persistent challenge of catastrophic forgetting in sequential class-incremental learning tasks. While foundation models provide a robust pre-trained backbone for understanding diverse inputs, they do not inherently solve the problem of models forgetting previously learned knowledge when presented with new tasks and classes. The core insight of Compo-Slot is that current approaches fail to adequately capture and ground decisions on essential conceptual combinations within the high-dimensional, unstructured feature spaces generated by FMs.

The presented work proposes a two-stage solution: first, learning a structured conceptual representation directly from images using a slot attention mechanism, and second, distilling this conceptual understanding into the classifier's logits to guide its decision-making. By explicitly encouraging the model to learn and utilize compositional concepts (e.g., "human" + "tree" vs. "human" + "boat"), Compo-Slot aims to prevent the classifier from lazily relying on superficial features and thereby improve its ability to generalize compositionally and retain knowledge across tasks. This approach is presented as a lightweight, universal plugin that can be integrated with a broad spectrum of existing continual learning algorithms, offering a significant boost to their robustness and performance in dynamic, evolving environments.

The importance of this work lies in its potential to unlock the full capabilities of foundation models for real-world continual learning scenarios. As AI systems become increasingly complex and are deployed in environments requiring continuous adaptation, the ability to learn new information without compromising prior knowledge is paramount. Compo-Slot offers a concrete, technically sound method to bridge the gap between the powerful feature extraction of foundation models and the conceptual grounding necessary for robust and generalizable continual learning, making it a critical contribution to the ongoing research in adaptive AI systems.

Background

▶ Watch: Introduction to continual learning challenges with foundation models (0:00)

Continual learning, also known as lifelong learning or incremental learning, is a fundamental challenge in artificial intelligence where a model must sequentially learn new tasks or classes without forgetting previously acquired knowledge. This is a stark contrast to traditional machine learning paradigms where models are trained once on a fixed dataset. In real-world applications, data streams are dynamic, and models frequently encounter new information. The primary obstacle in continual learning is catastrophic forgetting, a phenomenon where a neural network rapidly loses its ability to perform well on old tasks after being trained on new ones. This occurs because the weights of the network, optimized for the new task, often overwrite or interfere with the weights essential for previous tasks.

The advent of foundation models (FMs), such as large language models (LLMs) and powerful vision transformers, has revolutionized many areas of AI. These models, pre-trained on vast datasets, possess an unparalleled capacity for feature extraction and understanding, providing a strong backbone that can be leveraged for various downstream tasks. In the context of continual learning, FMs offer a promising avenue by providing a rich, pre-existing knowledge base that can potentially mitigate forgetting. The intuition is that a powerful feature extractor, already grounded in a wide array of concepts, might be less susceptible to forgetting specific task-level details.

Despite this promise, current research in continual learning with foundation models still faces significant hurdles. The talk highlights four main directions in contemporary methods:

  1. Prompt-based methods: These approaches fine-tune task-specific prompt tokens while keeping the large foundation model backbone frozen. This minimizes parameter updates, reducing forgetting, but might limit adaptability.
  2. Representation-based methods: These leverage the backbone's features, often with class prototype-based classifiers, to distinguish between classes. The challenge here is managing the high-dimensional nature of these features.
  3. Model mixture-based methods: Techniques like model fusion or ensembling are employed to combine knowledge from multiple models or different stages of learning, aiming for more robust predictions.
  4. Rehearsal or auxiliary supervision: These methods involve storing a small subset of past samples (rehearsal) or using additional supervisory signals to address issues like class imbalance, thereby re-exposing the model to old data.

The core problem, as articulated in the talk, stems from the way classifiers learn in high-dimensional feature spaces provided by FMs. Without explicit guidance, a classifier might "lazily" learn superficial comparison paths to distinguish classes rather than understanding the underlying conceptual combinations. For instance, in a binary classification of "human-tree" vs. "human-boat," a classifier might focus on "tree" vs. "boat" because these are the most salient differences, completely ignoring the shared "human" concept. While this might suffice for the initial task, it leads to catastrophic forgetting when new classes are introduced. If a new class contains a "boat," the classifier might incorrectly activate for "human-boat" even if the essential concept (e.g., "human") is missing or different. This inherent failure to capture feature importance, where essential concepts are "hidden in the high-dimensional noise," is the critical gap that Compo-Slot aims to address. The goal is to move beyond superficial feature comparisons to a deeper, grounded understanding of compositional concepts.

Key Findings

▶ Watch: Introducing Compo-Slot architecture and its two main stages (5:00)

The research presented on Compo-Slot yields several significant findings that underscore its effectiveness in boosting continual learning with foundation models:

  1. Latent Concept Extraction without External Aids: Compo-Slot successfully demonstrates the ability to extract semantically meaningful concepts (referred to as "slots" and "primitives") directly from image data, purely relying on the internal semantic features of the foundation model. This is achieved without requiring explicit concept-level supervision or external knowledge bases. Visualizations confirm that the slot attention modular effectively decomposes images into coherent subparts (e.g., isolating a person or shoes), and the primitive selection modular accurately identifies and aggregates important slots while filtering out background noise, leading to a rich, conceptual representation.
  1. Stability of Concept Extraction across Tasks: A crucial finding for continual learning is that the learned concept extraction mechanism remains remarkably stable even after the model is trained on subsequent tasks. The visualizations of cosine similarity for slots and the reconstruction loss metric after learning new tasks consistently show that the ability to identify and represent core concepts is preserved, mitigating a common failure mode in dynamic learning environments.
  1. Broad Applicability and Consistent Performance Boost: Compo-Slot is shown to be a versatile "plug-and-play" solution, providing consistent performance improvements across a "broader range" of existing continual learning algorithms. The talk mentions testing with four different types of methods, all of which exhibited better continual learning and compositional generalization performance when augmented with Compo-Slot. This indicates that the framework not only helps retain old knowledge but also enables the model to understand and apply compositional rules of concepts more effectively.
  1. Enhanced Compositional Generalization: Beyond simply improving accuracy on old and new tasks, Compo-Slot significantly enhances the model's compositional generalization capabilities. This means the model learns to combine concepts in novel ways, demonstrating a deeper understanding of the relationships between components rather than merely memorizing individual class features. The ability to generalize compositionally is a strong indicator that the model has truly grasped the underlying conceptual structure.
  1. Long-Sequence Robustness: The proposed framework demonstrates impressive robustness over extended continual learning sequences, maintaining its performance over "20 tasks." This is a critical metric for real-world continual learning systems, which often encounter a large number of sequential tasks.
  1. Validation through Ablation Studies: Comprehensive ablation studies were conducted to confirm the necessity of Compo-Slot's components. These studies ruled out the possibility that performance gains were merely due to increased model capacity and investigated the efficacy of different aggregation methods for the primitive selection modular, solidifying the design choices.
  1. Logit-Level Concept Grounding: The method successfully distills pairwise primitive similarity into the classifier's logits. This leads to logits for conceptually different classes being dissimilar according to the primitive metric, a relationship that is not learned by vanilla cross-entropy loss alone. This confirms that Compo-Slot effectively teaches the classifier about conceptual relationships, grounding its decisions more deeply.

Technical Deep Dive

▶ Watch: Stage 1: Learning conceptual representations via slot attention (5:30)

Compo-Slot tackles the challenges of concept awareness and cross-class concept grounding through a two-stage, modular approach that directly manipulates classifier logits.

Stage 1: Concept Learning

The primary goal of this stage is to extract a structured, conceptual representation from raw image inputs. This is achieved through two key modules:

  1. Slot Attention Modular:
  • Purpose: To decompose an image into semantically separated "slots," each corresponding to a distinct region or object within the image. This mechanism is inspired by the human ability to parse complex scenes into individual entities.
  • Mechanism: The slot attention mechanism processes image patches (likely derived from a feature map of the foundation model backbone) and assigns them to a set of learnable "slots." Each slot learns to attend to and represent a specific semantic entity.
  • Output: A set of slot representations, where each slot vector encapsulates the features of a particular semantic component (e.g., "person," "shoes," "tree"). The talk provides examples where slot seven captures the "person" concept and slot nine captures "shoes," demonstrating this granular semantic separation.
  • Stability: A notable finding is that this slot extraction process remains stable across tasks, meaning the learned slots consistently identify the same semantic entities even after the model learns new classes.
  1. Primitive Selection Modular:
  • Purpose: To aggregate the individual slots into a higher-level "primitive" representation, which serves as the conceptual summary of the entire image. This step filters out less important or background elements, focusing on the most salient concepts.
  • Mechanism: This module takes the set of learned slots and computes a weighted sum to form the primitive. The weights are learned, effectively prioritizing important slots (e.g., high weights for "person" or "boat") and down-weighting background or less relevant slots (e.g., low weights for a generic "background" slot).
  • Output: A single "primitive" vector for each image, representing its core conceptual content. This primitive is regarded as the image's conceptual representation.

Learning Objectives for Stage 1:

To ensure the quality and semantic richness of the learned slots and primitives, two loss functions are employed:

  1. Reconstruction Loss:
  • Purpose: To ensure that the learned slots collectively capture the full semantic information of the original image.
  • Mechanism: The slots are used to reconstruct the original image patches. By minimizing the difference between the reconstructed and original patches, the model is compelled to ensure that the slots retain comprehensive semantic details. This prevents slots from becoming overly sparse or losing critical information.
  1. Contrastive Primitive Loss:
  • Purpose: To structure the primitive feature space such that conceptually similar images are close together, and conceptually dissimilar images are far apart.
  • Mechanism: This loss utilizes class-level labels (not concept-level labels, which are generally unavailable) to enforce a contrastive objective on the primitives. It aims to minimize the distance between primitives belonging to the same class (intra-class similarity) and maximize the distance between primitives from different classes (inter-class separation).
  • Outcome: The talk shows that the resulting pairwise similarity matrix for learned primitives closely mimics the similarity of ground truth concepts, even without direct concept-level supervision. This is crucial for building a robust conceptual space.

Stage 2: Concept Grounding

The objective of this stage is to integrate the learned conceptual understanding (primitives) into the classifier's decision-making process, specifically by guiding its output logits.

Learning Objectives for Stage 2:

Two loss functions operate in this stage:

  1. Task Cross-Entropy Loss:
  • Purpose: The standard classification loss, ensuring the model maintains high accuracy on the current task's classes.
  • Mechanism: It measures the difference between the predicted class probabilities (derived from logits) and the true class labels, optimizing the classifier to correctly classify samples.
  1. Contrastive Primitive-Logits Alignment Loss:
  • Purpose: To "teach" the classifier about the conceptual relationships among samples by distilling the pairwise primitive similarity into the logits. This is the core mechanism for concept grounding.
  • Mechanism: This loss takes the batch-wise primitive similarity matrix (computed from the Stage 1 primitives) and encourages the classifier's output logits to reflect this similarity structure. Specifically, if two samples have high primitive similarity (meaning they are conceptually similar), their corresponding logits (or the distances between their logit vectors) should also be similar. Conversely, conceptually dissimilar samples should have dissimilar logits. This loss acts as a regularizer, pushing the classifier to align its decision boundaries with the underlying conceptual structure captured by the primitives.
  • Impact: The talk illustrates that this loss successfully makes logits for conceptually different classes dissimilar according to the primitive metric, a result not achieved by cross-entropy alone. This directly addresses the problem of classifiers lazily learning superficial comparisons by forcing them to consider the deeper conceptual relationships.

Overall Architecture and Integration:

Compo-Slot is designed as a lightweight, universal plug-in. This implies that the foundation model backbone remains frozen (or minimally tuned), and Compo-Slot modules (slot attention, primitive selection) are added on top, operating on its extracted features. The loss functions then guide the learning of these modules and the final classifier, ensuring that the conceptual understanding influences the final predictions. The entire system ensures that decisions are "grounded on concept presence or absence," efficiently suppressing misleading activations that arise from superficial feature matching. The architecture ensures that the high-dimensional feature space is not merely traversed for "easy comparison paths," but is instead structured and interpreted through the lens of fundamental concepts.

Experimental Setup & Results

▶ Watch: Compo-Slot boosts diverse CL algorithms and shows robustness (9:00)

The evaluation of Compo-Slot focused on demonstrating its ability to extract latent concepts, its stability across tasks, its broad applicability to various continual learning algorithms, and its robustness over long task sequences. While specific dataset names (e.g., CIFAR-100, ImageNet subsets) or the exact foundation model backbone (e.g., specific Vision Transformer, CLIP variant) are not explicitly named in the transcript, the experiments are described conceptually.

Concept Extraction Validation:

  • Methodology: To answer the question "Can Compo-Slot extract the latent concepts without external aids?", researchers randomly visualized the extracted primitives and slots.
  • Results: The visualizations clearly showed that the slot attention modular successfully decomposed images into semantically meaningful subparts (slots), such as identifying persons or shoes. Furthermore, the primitive selection modular effectively identified important slots while filtering out background noise, demonstrating its ability to distill core conceptual information.
  • Stability: The stability of concept extraction was assessed by visualizing the cosine similarity for slots after completing each continual task and by monitoring the reconstruction loss metric. The consistent results indicated that the concept extraction process remained stable and effective even after the model learned new information from subsequent tasks, which is critical for preventing conceptual drift in CL.

Continual Learning Performance & Generalization:

  • Baselines/Comparison: Compo-Slot was evaluated by integrating it with "four types of methods" for continual learning. While the specific names of these methods are not provided, this implies a comparison against established approaches in areas like prompt-based, representation-based, or rehearsal-based CL.
  • Metrics: The primary metrics included continual learning performance (likely accuracy on old and new tasks) and compositional generalization performance.
  • Headline Numbers/Results: Compo-Slot consistently achieved "better continual learning and compositional generalization performance" across all four types of methods. The improved compositional generalization performance specifically demonstrated that the model developed a deeper understanding of the "compositional rules of the concept," rather than just memorizing individual features. This suggests a more robust and adaptable knowledge representation.

Ablation Studies:

  • Purpose: To isolate the contribution of Compo-Slot's unique components and rule out alternative explanations for performance gains.
  • Experiments:
  • Model Capacity: An ablation study was conducted to "rule out the effect of increased model capacity." This likely involved comparing Compo-Slot's performance against a baseline model with an equivalent number of additional parameters (but without the specific conceptual learning mechanisms) to ensure that the gains were due to the architectural and algorithmic innovations, not merely a larger model.
  • Aggregation Methods: The effect of "different aggregation methods for primitive selection modular" was studied. This would involve testing various ways to combine slots into primitives (e.g., different weighting schemes, pooling operations) to determine the most effective approach.
  • Results: The ablation studies validated the design choices, confirming that the specific mechanisms of Compo-Slot were responsible for the observed improvements.

Long-Sequence Robustness:

  • Methodology: The system was tested over an extended sequence of tasks.
  • Results: Compo-Slot demonstrated "long sequence robustness over 20 tasks," indicating its ability to maintain performance and resist catastrophic forgetting even when faced with a substantial number of sequential learning increments.

Hyperparameter Tuning Insight:

  • Loss Balancing: During the Q&A, the speaker noted that balancing the different loss functions (e.g., cross-entropy, primitive losses) with a simple hyperparameter like alpha was "not very important."
  • Critical Parameter: The most important parameter was identified as the temperature within the contrastive loss part. This highlights the sensitivity of contrastive learning objectives to scaling factors, which can significantly impact the separation and alignment of embeddings.

In summary, the experimental results strongly support Compo-Slot's ability to provide a more conceptually grounded and robust approach to continual learning with foundation models. The consistent improvements across various CL methods, coupled with strong compositional generalization and long-sequence robustness, position Compo-Slot as a valuable advancement in the field.

Practical Implications

▶ Watch: Q&A: Balancing different loss functions in Compo-Slot (10:30)

The development of Compo-Slot carries significant practical implications for practitioners, infrastructure teams, model builders, and deployers working with AI/ML systems, especially in dynamic environments.

For Model Builders and Researchers:

  • Enhanced Continual Learning Performance: Compo-Slot offers a direct and effective way to mitigate catastrophic forgetting. This means models can be deployed and updated more frequently with new data and classes without needing to be retrained from scratch on the entire historical dataset, saving substantial computational resources and time.
  • Deeper Conceptual Understanding: By explicitly guiding the model to learn and leverage compositional concepts, Compo-Slot moves beyond superficial feature matching. This leads to models that possess a more robust and generalizable understanding of the world, making them less prone to brittle behavior when encountering novel combinations of known concepts.
  • Leveraging Foundation Models More Effectively: The framework allows practitioners to harness the immense power of pre-trained foundation models for continual learning tasks without succumbing to their limitations in conceptual grounding. It provides a blueprint for how to augment FMs to become truly adaptive learners.
  • Broad Compatibility: As a "plug-and-play" solution, Compo-Slot can be integrated with a wide range of existing continual learning algorithms. This reduces the need for wholesale architectural changes and allows researchers to build upon their current CL methods, simply adding Compo-Slot for a performance boost.

For Infrastructure Teams and Deployers:

  • Reduced Retraining Costs: The ability to learn new tasks without catastrophic forgetting drastically reduces the need for expensive, full-dataset retraining cycles. This translates to lower GPU/TPU utilization, less energy consumption, and faster model updates in production.
  • Agile Model Deployment: Models can be incrementally updated in response to new data or evolving requirements, enabling more agile deployment pipelines. This is crucial for applications where data distributions shift rapidly or new classes emerge frequently (e.g., product catalogs, anomaly detection, medical imaging).
  • Robustness in Production: Models that exhibit long-sequence robustness and better compositional generalization are inherently more reliable in production environments. They are better equipped to handle real-world variability and novel situations composed of familiar elements.
  • Simplified Maintenance: By improving the stability of concept extraction across tasks, Compo-Slot simplifies the maintenance of continually learning systems. The core conceptual understanding remains consistent, reducing the chances of unexpected behavior after updates.

Tradeoffs and Limitations:

  • Increased Model Complexity: While described as "lightweight," Compo-Slot introduces additional modules (slot attention, primitive selection) and loss functions. This inevitably adds some computational overhead during training and potentially during inference, although the talk implies this is manageable. Model builders must weigh these costs against the significant benefits in CL performance.
  • Hyperparameter Tuning: While the overall loss balance was deemed less critical, the "temperature" parameter in the contrastive loss was highlighted as very important. Effective deployment will still require careful tuning of such critical hyperparameters.
  • Foundation Model Dependency: The approach relies on the powerful feature extraction capabilities of a pre-trained foundation model. The quality of the foundation model's features will directly impact the effectiveness of Compo-Slot.
  • Interpretability of Slots/Primitives: While visualizations showed meaningful slots, fully quantifying and verifying the "conceptual purity" and completeness of these learned primitives can be challenging. This remains an area of active research in explainable AI.
  • Generalization to All Data Types: The talk primarily refers to image data. While the principles might extend, further research would be needed to confirm its efficacy across other data modalities (e.g., text, audio, time-series) with different types of foundation models.

In summary, Compo-Slot presents a compelling solution for building more intelligent, adaptive, and resource-efficient AI systems. Its practical implications span from improving the core learning capabilities of models to streamlining their deployment and maintenance in complex, evolving operational environments.

Key Takeaways

  • Addressing Catastrophic Forgetting: Compo-Slot directly tackles catastrophic forgetting in continual learning by enabling models to learn and retain essential conceptual knowledge from foundation models.
  • Concept-Grounded Decision Making: The framework ensures classifier decisions are grounded on structured concept combinations, preventing "lazy" learning of superficial features in high-dimensional spaces.
  • Two-Stage Plug-and-Play Approach: It consists of a concept learning stage (using slot attention and primitive selection for conceptual representation) and a concept grounding stage (distilling primitive similarity into classifier logits).
  • Robust and Generalizable: Experiments show Compo-Slot consistently boosts performance across various continual learning algorithms, enhances compositional generalization, and maintains robustness over long sequences of more than 20 tasks.
  • No External Concept Supervision Required: The system learns conceptual representations and their relationships without needing explicit concept-level labels, relying only on class-level supervision and internal semantic features.
  • Practical for Foundation Models: It offers a lightweight, universal method to effectively leverage powerful foundation models for adaptive, lifelong learning applications, reducing retraining costs and improving model reliability.

About the Speaker(s)

The primary speaker for this presentation is Weiduo Liao from Zhejiang University. While specific biographical details beyond his affiliation are not extensively covered in the provided transcript, his work on "Plug-and-Play Compositionality for Boosting Continual Learning with Foundation Models" highlights his expertise in the intersection of continual learning, foundation models, and potentially representation learning or attention mechanisms. He is joined by co-authors Fei Han, Hisao Ishibuchi, Qingfu Zhang, and Ying Wei, indicating a collaborative research effort from Zhejiang University and potentially other institutions. Their collective work is focused on addressing fundamental challenges in machine learning, particularly in enabling AI systems to adapt and learn continuously over time.

Reviews

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026