TL;DR
The paper introduces SAM (Sparse Alignment and Unimodal Memory Bank), a framework designed to bridge the "modality gap" in CLIP-based Compositional Zero-Shot Learning (CZSL). By filtering out redundant visual background noise and aligning text directly with specific image patches, SAM balances the information flow between vision and language. It achieves state-of-the-art performance across multiple benchmarks in both closed-world and open-world settings.
What Problem Does This Paper Address?
Compositional Zero-Shot Learning (CZSL) challenges machine learning models to recognize novel combinations of familiar primitives—such as identifying a "black swan" after only being trained on "white swans" and "black cats." Recent state-of-the-art methods leverage vision-language models like CLIP to achieve this.
However, CLIP suffers from an inherent modality gap: image and text embeddings occupy completely disjoint regions in the shared feature space. The authors trace this gap back to an information imbalance. A text prompt is highly concise ("a photo of a white cat"), whereas an image contains rich, redundant background details (a gray sofa, a wooden floor, ambient lighting).
Standard approaches rely on CLIP's global [CLS] token, which forces all this extra background noise into the visual representation. In fine-grained tasks like CZSL, this background clutter contaminates the target attributes, leading to misalignment.
Methods
The authors propose a three-stage framework called SAM to restore information balance and bypass the modality gap:
- Stage I: Sparse Alignment (SA): Instead of using the global
[CLS]token, SAM calculates similarity scores between text prompts and individual visual patch tokens. For each composition, it selects only the patch token with the highest semantic relevance via amaxoperation. This drastically prunes redundant visual data and enforces a strict information balance during initial training. - Stage II: Visual Adaptive Condensation (VAC): Because a rigid patch-selection rule might discard useful context, the VAC module uses a learnable query embedding to adaptively aggregate essential information across all patches via cross-attention. This module is regularized using knowledge distillation from Stage I, ensuring it retains focus on critical cues without re-introducing background noise.
- Stage III: Dynamically Updated Memory Bank: To completely circumvent the cross-modal gap during inference, SAM maintains a visual memory bank. High-confidence visual features from both seen and unseen compositions are stored and continuously updated. At test time, classification is performed intra-modally (visual-to-visual) by retrieving prototypes from this memory bank.
Datasets
The framework was evaluated on three widely accepted CZSL benchmarks:
- UT-Zappos: A dataset of shoes labeled with fine-grained types and states (e.g., "canvas sandals").
- MIT-States: A large-scale dataset featuring diverse objects and nouns modified by states (e.g., "rusty car", "peeled banana").
- C-GQA: A compositional dataset derived from GQA, offering a massive variety of real-world attribute-object pairs.
The models were tested under both closed-world (evaluating only known dataset compositions) and open-world (evaluating all possible attribute-object permutations) settings.
Key Insights and Ideas
- Less is More: In a pilot experiment, the authors discovered that simply dropping random visual tokens at the input stage actually decreased the modality gap and increased downstream task accuracy. Restricting the amount of visual information forced into the model helps match the sparse nature of text.
- Bypassing the Cross-Modal Bottleneck: Cross-modal alignment is difficult due to the geometric separation of text and vision spaces. By transitioning to a visual-only retrieval mechanism at test time (via the memory bank), the model sidesteps the modality gap entirely during inference.
- The Modality Gap-Performance Link: The paper explicitly quantifies the relationship between the Relative Modality Gap (RMG) and performance metrics. Across all experiments, a smaller modality gap consistently correlates with a higher Area Under the Curve (AUC).
Key Results
SAM significantly outperformed existing CLIP-based methods (such as Troika, LogiCzsl, and ClusPro) across all metrics:
- Closed-World Settings: SAM achieved state-of-the-art AUC scores of 50.0 on UT-Zappos, 24.0 on MIT-States, and 16.2 on C-GQA (outperforming the next best method, ClusPro, by up to 3.4 points).
- Open-World Settings: In the highly challenging open-world setup, SAM maintained its lead, achieving an AUC of 4.6 on C-GQA compared to ClusPro's 3.0.
- Plug-and-Play Capability: When the Sparse Alignment (SA) paradigm was integrated into other baseline architectures (like Troika), it consistently boosted their performance without adding any extra learnable parameters.
Limitations and Future Work
While SAM effectively mitigates the modality gap, the authors note that semantic similarity remains a hurdle in failure cases. For instance, the model still occasionally confuses highly similar primitives, such as "red" vs. "maroon" or "suede" vs. "sheepskin."
Additionally, because the memory bank updates dynamically during inference, performance could theoretically be sensitive to the arrival order or distribution of test samples in real-world deployments. Exploring robust test-time adaptation strategies under extreme distribution shifts remains an open direction for future work.
Summary updated