Abstract
Prompt learning has emerged as an efficient way to adapt vision-language models (VLMs) like CLIP to downstream tasks. However, existing methods often suffer from disjointed modality alignment and catastrophic forgetting of pre-trained general knowledge. We propose COMMA (Co-Articulated Multi-Modal Learning), which introduces a co-articulation mechanism to synchronize vision and text prompts and a late-layer distillation strategy to preserve generalizability. COMMA achieves state-of-the-art results across 11 benchmark datasets, particularly in base-to-novel generalization.
Introduction
Large-scale VLMs are powerful but sensitive to the prompts used for inference. While learnable prompts (e.g., CoOp, MaPLe) improve performance on specific tasks, they often fail to maintain the model's original zero-shot capabilities. This "forgetting" is particularly evident when encountering novel classes. COMMA addresses these challenges by ensuring deep cross-modal interaction and anchoring the learned prompts to the original CLIP embeddings in the deeper layers of the network.
Methodology
COMMA's architecture is built on two key pillars designed to improve alignment and retention.
Correlated Prompt Generation
Unlike prior methods that learn vision and text prompts independently, COMMA employs a co-articulation mechanism. For each transformer layer, vision prompts are dynamically generated using the previous layer's vision prompts as a query and the text prompts as keys and values. This forced interaction ensures that the vision branch actively aggregates complementary semantic information from the text branch throughout the model's depth.
Late-Layer Distillation
The authors observed that the performance drop on unseen classes correlates with prompt divergence in deeper layers. To mitigate this, COMMA introduces a knowledge distillation loss ($L_{kd}$). This loss penalizes the distance between learned prompts and the original frozen CLIP embeddings. Crucially, this constraint is only applied to the final few layers (specifically the last two), allowing earlier layers to specialize while the deep layers act as a "semantic anchor" for general knowledge.
Experimental Results
COMMA was rigorously tested on 11 datasets, including ImageNet, OxfordPets, and EuroSAT, focusing on base-to-novel generalization and cross-dataset transfer.
Base-to-Novel Generalization
COMMA outperformed previous state-of-the-art methods like MaPLe on 10 out of 11 datasets. On the Harmonic Mean (HM) metric, which balances accuracy on seen and unseen classes, COMMA achieved an average of 79.04%, a significant improvement over MaPLe's 78.55%.
Robustness and Efficiency
In cross-dataset evaluations (training on ImageNet and testing on 10 other datasets), COMMA proved superior in 9 out of 10 cases. Despite the additional prompt generation step, COMMA remains computationally efficient, maintaining high inference speeds (FPS) suitable for practical applications.
Conclusion
COMMA demonstrates that co-articulating vision and text modalities significantly enhances the alignment of VLMs. By strategically applying distillation to the deeper layers, the model successfully balances task-specific adaptation with the preservation of general pre-trained knowledge. This approach sets a new standard for robust and generalizable prompt learning in vision-language tasks.
Summary updated