Skip to main content
QUICK REVIEW

[Paper Review] Prompting Language-Informed Distribution for Compositional Zero-Shot Learning

Wentao Bao, Lichang Chen|arXiv (Cornell University)|May 23, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes $π$PLID, a novel CLIP-based method for compositional zero-shot learning that leverages large language models (LLMs) to generate diverse, informative language-informed distributions (LID) for compositional and primitive classes. By prompting these distributions and fusing predictions via stochastic logit mixup on decomposed visual and language primitives, $π$PLID achieves state-of-the-art performance on MIT-States, UT-Zappos, and C-GQA, outperforming prior methods in zero-shot generalization.

ABSTRACT

Compositional zero-shot learning (CZSL) task aims to recognize unseen compositional visual concepts, e.g., sliced tomatoes, where the model is learned only from the seen compositions, e.g., sliced potatoes and red tomatoes. Thanks to the prompt tuning on large pre-trained visual language models such as CLIP, recent literature shows impressively better CZSL performance than traditional vision-based methods. However, the key aspects that impact the generalization to unseen compositions, including the diversity and informativeness of class context, and the entanglement between visual primitives, i.e., state and object, are not properly addressed in existing CLIP-based CZSL literature. In this paper, we propose a model by prompting the language-informed distribution, aka., PLID, for the CZSL task. Specifically, the PLID leverages pre-trained large language models (LLM) to (i) formulate the language-informed class distributions which are diverse and informative, and (ii) enhance the compositionality of the class embedding. Moreover, a visual-language primitive decomposition (VLPD) module is proposed to dynamically fuse the classification decisions from the compositional and the primitive space. Orthogonal to the existing literature of soft, hard, or distributional prompts, our method advocates prompting the LLM-supported class distributions, leading to a better zero-shot generalization. Experimental results on MIT-States, UT-Zappos, and C-GQA datasets show the superior performance of the PLID to the prior arts. Our code and models are released: https://github.com/Cogito2012/PLID.

Motivation & Objective

  • To address the limitations of existing CLIP-based CZSL methods in handling intra-class visual variance and inter-class ambiguity in compositional recognition.
  • To improve zero-shot generalization by generating diverse and informative textual class representations through large language models (LLMs).
  • To reduce entanglement between visual primitives (e.g., state and object) by jointly decomposing visual and language features.
  • To enhance prediction robustness by dynamically fusing decisions from compositional and primitive logit spaces using stochastic logit mixup.
  • To demonstrate that prompting language-informed distributions leads to superior performance compared to hard, soft, or distributional prompt baselines.

Proposed method

  • Leverages pre-trained LLMs (e.g., T5, OPT) to generate multiple descriptive text prompts per class, forming a class-specific language-informed distribution (LID) modeled as a Gaussian distribution.
  • Applies a text feature encoder (TFE) to embed the LLM-generated text descriptions, producing compact and discriminative class embeddings with reduced intra-class variance.
  • Introduces a Visual-Language Primitive Decomposition (VLPD) module that disentangles image features into state and object primitives, enabling re-composition for improved generalization.
  • Employs a Stochastic Logit Mixup (SLM) strategy that combines predictions from both compositional and primitive logit spaces using a learnable beta distribution, enhancing robustness and accuracy.
  • Uses a beta prior to control the trust level in direct compositional predictions versus re-composed predictions, with optimal performance when favoring the former (e.g., Beta(1,9)).
  • Trains the model end-to-end using contrastive learning, where the LID-guided text embeddings are aligned with image features to improve zero-shot generalization.

Experimental results

Research questions

  • RQ1Can LLM-generated, diverse, and informative text descriptions improve zero-shot generalization in compositional visual recognition?
  • RQ2Does prompting language-informed distributions (LID) outperform traditional hard or soft prompt methods in compositional zero-shot learning?
  • RQ3How does joint visual and language primitive decomposition enhance model performance on unseen compositions?
  • RQ4What is the optimal balance between direct compositional predictions and re-composed predictions from primitives?
  • RQ5Does the quality of LLM-generated text descriptions significantly impact CZSL performance on open-vocabulary benchmarks?

Key findings

  • The $π$PLID model achieves state-of-the-art performance on MIT-States, UT-Zappos, and C-GQA, outperforming prior methods including CSP, CoOp, and DFSP.
  • Using OPT over T5 for LLM inference yields better performance on C-GQA due to higher-quality text generation, demonstrating the importance of LLM quality.
  • Applying language-informed distributions (LID) at all three semantic levels—state, object, and composition—yields the best results, indicating broad applicability.
  • The optimal hyperparameters are M=64 (number of text descriptions) and N=8 (number of augmented image views), with performance degrading at higher N due to overfitting.
  • The best performance is achieved with a beta prior of (1,9), indicating that direct compositional predictions should be trusted more than re-composed ones.
  • t-SNE visualizations confirm that $π$PLID produces more compact and well-separated class embeddings in both compositional and primitive spaces, validating improved feature learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.