Prompt-Based Continual Compositional Zero-Shot Learning

Sauda Maryam, Sara Nadeem, Faisal Z. Qureshi, Mohsen AliarXiv 2025 · DOI

Introduction: The Challenge of Evolving Compositional Knowledge

Compositional Zero-Shot Learning (CZSL) aims to recognize novel combinations of known primitives, such as identifying a "wet cat" after seeing only "dry cats" and "wet dogs." While traditional CZSL assumes a static environment, real-world applications require models to learn new attributes and objects incrementally. This more complex setting is known as Continual Compositional Zero-Shot Learning (CCZSL).

The CCZSL task involves learning new attribute-object compositions across sequential sessions while retaining knowledge of previous ones.

CCZSL presents two primary hurdles:

  1. Catastrophic Forgetting: The tendency of neural networks to overwrite old knowledge when learning new tasks.
  2. Shared Primitives: Unlike standard continual learning where classes are usually disjoint, CCZSL involves primitives (e.g., the color "red") that reappear across different sessions, complicating the maintenance of a stable semantic space.

PromptCCZSL: A Modular Approach to Incremental Learning

To address these challenges, the authors introduce PromptCCZSL, a framework built upon a frozen Vision-Language Model (CLIP). Instead of fine-tuning the entire backbone, PromptCCZSL utilizes a Soft Prompt Bank—a set of learnable embeddings for attributes and objects. This strategy preserves the model's pre-trained general knowledge while allowing it to adapt to new compositions.

The architecture features two specialized fusion modules:

  • Session-Agnostic Module (SAgM2F): Updates attribute and object prompts to ensure global consistency across the entire learning trajectory.
  • Session-Aware Module (SAwM2F): Refines session-specific composition prompts using cross-attention with visual features, preventing new combinations from interfering with established ones.

The "Loss Trinity" for Semantic Stability

A core innovation of PromptCCZSL is its suite of geometric losses designed to manage the embedding space:

  • Cosine Anchor Loss (CAL): Ensures that primitive embeddings do not drift significantly from their initial semantic "anchors" as new sessions are added.
  • Orthogonal Projection Loss (OPL): Forces new attribute and object embeddings into distinct directions within the vector space, minimizing representational overlap and interference.
  • Intra-Session Diversity Loss (IDL): Encourages distinctness among new prompts introduced within the same session.
Examples of attribute-object compositions that the model must learn to recognize and distinguish, such as "Blue Bird" and "Red Car".

Additionally, the framework employs Recency-Weighted Multi-Teacher Distillation, where the current model learns from its predecessors, prioritizing the most recent versions to balance stability with the plasticity needed for new learning.

Experimental Results and Impact

PromptCCZSL was evaluated on the UT-Zappos and C-GQA benchmarks under the "Constrained-CCZSL" protocol. The results demonstrate a significant leap over previous state-of-the-art methods:

  • UT-Zappos: Achieved an average AUC of 55.86%, representing a +25.4% absolute improvement.
  • C-GQA: Reached an average AUC of 13.2%, outperforming the baseline by +9.91%.

Qualitative analysis via t-SNE visualizations confirms that the OPL and IDL losses effectively produce tighter, more distinct clusters for different attributes and objects, validating the geometric approach to preventing forgetting.

Conclusion and Future Work

PromptCCZSL establishes a new benchmark for continual learning in compositional tasks by leveraging frozen VLMs and structured prompt tuning. While the model excels at handling hundreds of primitives, future research will focus on scaling to thousands of incremental attributes and exploring "Realistic-CCZSL" scenarios, where previously unseen compositions may appear as training data in later sessions.

Summary updated

BibTeX
@misc{maryam2025prompt,
  author = {Sauda Maryam and Sara Nadeem and Faisal Z. Qureshi and Mohsen Ali},
  title = {{Prompt-Based Continual Compositional Zero-Shot Learning}},
  year = {2025},
  eprint = {2512.09172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09172},
}
Figure