[Paper Review] Learning to Decompose Visual Features with Latent Textual Prompts
This paper proposes Decomposed Feature Prompting (DeFo), a novel vision-language inference framework that replaces hard textual class names with learnable, disentangled textual prompts to improve zero-shot and linear-probing accuracy. By decoupling visual features from semantic class labels and using a learnable linear classifier, DeFo achieves 73.2% top-1 accuracy on ImageNet with a ResNet-50 backbone—15.0 percentage points higher than zero-shot CLIP and 7.6 points above state-of-the-art prompt tuning methods—without fine-tuning any pretrained weights.
Recent advances in pre-training vision-language models like CLIP have shown great potential in learning transferable visual representations. Nonetheless, for downstream inference, CLIP-like models suffer from either 1) degraded accuracy and robustness in the case of inaccurate text descriptions during retrieval-based inference (the challenge for zero-shot protocol); or 2) breaking the well-established vision-language alignment (the challenge for linear probing). To address them, we propose Decomposed Feature Prompting (DeFo). DeFo leverages a flexible number of learnable embeddings as textual input while maintaining the vision-language dual-model architecture, which enables the model to learn decomposed visual features with the help of feature-level textual prompts. We further use an additional linear layer to perform classification, allowing a scalable size of language inputs. Our empirical study shows DeFo's significance in improving the vision-language models. For example, DeFo obtains 73.2% test accuracy on ImageNet with a ResNet-50 backbone without tuning any pretrained weights of both the vision and language encoder, outperforming zero-shot CLIP by a large margin of 15.0%, and outperforming state-of-the-art vision-language prompt tuning method by 7.6%.
Motivation & Objective
- To address expressive sensitivity in CLIP-like models, where inference accuracy degrades due to reliance on specific class name wording.
- To overcome conceptual sensitivity, where rare or out-of-distribution concepts are poorly recognized in zero-shot settings.
- To maintain vision-language alignment during linear probing by preserving the language encoder, thus improving few-shot and transfer learning performance.
- To enable scalable, high-accuracy zero-shot and linear-probing inference without fine-tuning pretrained vision or language encoders.
- To develop a dual-model prompting framework that disentangles visual feature representation from hard semantic targets.
Proposed method
- DeFo introduces a set of learnable, task-agnostic textual embeddings (prompts) as input to the language encoder, decoupled from class names.
- The model uses a dual-encoder architecture, preserving the vision-language alignment learned during pretraining.
- Visual features from the vision encoder are projected and classified via a learnable linear layer on top of the language encoder’s output.
- The number of learnable prompts (n) and their length (m) are hyperparameters, with experiments showing robustness to moderate variations.
- The method enables both zero-shot and linear probing inference by using the same frozen vision and language encoders with a trainable classifier.
- DeFo’s textual prompts are trained end-to-end to decompose visual features into semantically meaningful components, improving feature disentanglement.
Experimental results
Research questions
- RQ1Can a learnable, disentangled textual prompt mechanism improve zero-shot accuracy in vision-language models without fine-tuning pretrained weights?
- RQ2Does decoupling visual features from hard class name targets mitigate expressive sensitivity in CLIP-style models?
- RQ3Can maintaining the language encoder during linear probing preserve vision-language alignment and improve few-shot and transfer learning performance?
- RQ4How does the number and length of learnable prompts affect performance and robustness in DeFo?
- RQ5To what extent do the learned textual prompts capture meaningful semantic concepts beyond the original class labels?
Key findings
- DeFo achieves 73.2% top-1 accuracy on ImageNet using a ResNet-50 backbone without fine-tuning any pretrained weights, outperforming zero-shot CLIP by 15.0 percentage points.
- On 11 diverse image classification benchmarks, DeFo achieves an average accuracy of 79.9%, which is 21.0 percentage points higher than zero-shot CLIP and 6.2 points above CoOp.
- Ablation studies show that DeFo is robust to hyperparameters: reducing the number of prompts from 2048 to 256 yields only a 0.7% drop in accuracy.
- The performance gain from DeFo is not due to the additional linear classifier, as adding the same layer to CLIP or CoOp yields only a 4% improvement at most.
- Qualitative analysis confirms that DeFo learns semantically meaningful features, such as color (e.g., 'red'), shape (e.g., 'ring'), and background (e.g., 'snow'), and even captures parent categories like 'dogs' and 'sunflowers'.
- DeFo maintains strong few-shot and transfer learning performance by preserving the language encoder, which helps bound visual feature projections and sustain alignment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.