Introduction
Vision-Language Models (VLMs) like CLIP have revolutionized computer vision by learning joint representations of images and text. However, fine-tuning these massive models for specific downstream tasks remains a challenge due to their parameter count and the scarcity of task-specific data. Prompt learning has emerged as a parameter-efficient alternative, yet existing methods often overlook the inherent structural relationships within and between modalities.
The Integrated Structural Prompt (ISP) framework addresses these limitations by explicitly modeling the structural dependencies between learnable prompts and data tokens. By integrating intra-modality attention, inter-modality graph convolutions, and a novel "sample probing" loss, ISP achieves state-of-the-art generalization across a wide array of image classification tasks.
The Integrated Structural Prompt (ISP) Framework
The ISP architecture is designed to move beyond static, independent prompt vectors. It treats prompts as context-aware entities that adapt to the input data's structure.
1. Self-Structural Prompt (SSP)
SSP focuses on intra-modality structure. Instead of using fixed prompts, SSP employs cross-attention to allow learnable prompts to interact with the frozen tokens of their respective modality. To maintain computational efficiency, the module utilizes a "Top-K" selection strategy, attending only to the most responsive tokens. This allows prompts to capture class-specific features while preserving domain stability.
2. Cross-Structural Prompt (CSP)
To facilitate bidirectional synergy between vision and language, CSP builds an affinity graph between the prompts of one modality and the tokens of another. Using Graph Convolutional Networks (GCNs), CSP refines these prompts, ensuring that visual prompts are informed by linguistic context and vice versa. This creates a more cohesive multi-modal representation.
3. Sample Probing (SP)
A common pitfall in prompt learning is overfitting to "easy" samples that the base model already handles well. ISP introduces Sample Probing, a dynamic loss-weighting mechanism. By comparing the predictions of the prompted model against the original zero-shot CLIP model, SP adjusts the loss weight ($\alpha$). If a sample is easily classified by the base model, its weight is reduced, forcing the training process to focus on difficult examples that the base model missed.
Experimental Evaluation
The ISP framework was evaluated across 11 diverse datasets, ranging from general object recognition (ImageNet, Caltech101) to specialized domains like satellite imagery (EuroSAT) and action recognition (UCF101).
Key Results
ISP demonstrates superior performance across multiple evaluation settings:
- Base-to-New Generalization: ISP achieved a Harmonic Mean (HM) of 80.70% across 11 datasets, surpassing previous state-of-the-art methods like MaPLe (78.55%) and MMA (79.87%).
- Cross-Dataset Transferability: When trained on ImageNet and evaluated on 10 other datasets, ISP achieved the highest average accuracy of 66.75%.
- Domain Generalization: ISP proved more robust than standard CLIP and other prompting methods on out-of-distribution (OOD) versions of ImageNet, such as ImageNet-Sketch and ImageNet-R.
Conclusion and Future Work
Integrated Structural Prompting represents a significant step forward in VLM adaptation. By acknowledging that "structure is signal," ISP creates context-aware prompts that bridge the gap between vision and language more effectively than previous methods.
While highly effective, the authors note that the method relies on several scaling factors and specific layer choices (finding layers 10-12 optimal for cross-dataset tasks). Additionally, the inclusion of GCNs and cross-attention adds some computational overhead compared to simpler methods. Future work may explore further optimizing these structural interactions for even broader task diversity beyond standard image classification.
Summary updated