Introduction
Large pre-trained vision-language models (PVLs) like CLIP have set new standards in computer vision. However, adapting these models to specific downstream tasks remains a challenge. Current state-of-the-art approaches often rely on prompt tuning, where the model's parameters are frozen, and only a small set of "prompt" vectors are optimized.
Despite their success, existing prompt tuning methods face two significant hurdles. First, they typically employ a single-mode focus, learning only one prompt per modality (e.g., a single text prompt for the category "dog"). This fails to account for the inherent diversity within a class—a "dog" can appear as a husky in a snowy landscape or a chihuahua on a couch. Second, they rely on holistic alignment, matching global features of an entire image to an entire sentence. This approach ignores fine-grained details, such as matching specific text tokens like "fur" to corresponding image patches.
The ALIGN Framework
To address these limitations, the authors propose ALIGN (Multi-mode Token-level Prompt Alignment). ALIGN conceptualizes prompt tuning as a distribution matching problem, implemented through a two-level hierarchical alignment strategy.
The core innovations of ALIGN include:
- Multi-mode Prompts: Instead of a single prompt, ALIGN learns a set of $M$ visual prompts and $N$ textual prompts. This allows the model to represent various "modes" or visual sub-concepts within a single category.
- Token-level Optimal Transport (OT): Within each prompt, the model aligns individual image patches with specific text tokens. It utilizes Optimal Transport—a mathematical framework for efficient distribution transformation—to calculate distances between these token sets.
- Prompt-level Optimal Transport: A second layer of OT aligns the sets of prompts themselves. The "cost" of moving between prompts is derived from the fine-grained token-level similarities established in the previous step.
As illustrated in the architecture overview, this hierarchical approach ensures that global similarity is built from the bottom up, capturing both diversity and fine-grained detail. Qualitative analysis via t-SNE (Figure 2b) demonstrates that ALIGN effectively partitions classes into distinct visual sub-concepts.
Experimental Evaluation
The researchers evaluated ALIGN across a comprehensive suite of 15 datasets, including general objects (ImageNet), fine-grained categories (OxfordPets, StanfordCars), and specialized domains (EuroSAT, DTD).
Key Results
ALIGN consistently outperformed state-of-the-art competitors across several benchmarks:
- Few-Shot Learning: ALIGN showed significant gains in low-data regimes (1, 2, and 4-shot). Notably, on the DTD texture dataset, it improved accuracy by over 9% compared to the UPT baseline.
- Base-to-New Generalization: The model achieved the highest average harmonic mean (H-score) across 11 datasets, indicating superior generalization to unseen classes.
- Cross-Dataset and Domain Transfer: When trained on ImageNet and tested on diverse datasets or under distribution shifts (e.g., sketches vs. photos), ALIGN maintained robust performance, proving the effectiveness of its feature extraction.
Conclusion and Future Work
ALIGN demonstrates that moving beyond "one-size-fits-all" global alignment significantly enhances the performance and robustness of vision-language models. By embracing diversity through multi-mode prompts and precision through hierarchical Optimal Transport, it provides a unified framework that encompasses many previous methods as special cases.
While ALIGN offers superior accuracy, it introduces higher computational overhead and memory requirements compared to simpler single-prompt methods. Future research may focus on knowledge distillation to compress these multi-mode prompts into more efficient forms, aiming to combine the high performance of ALIGN with the inference speed of lightweight models.
Summary updated