This paper, titled AmPLe: Supporting Vision-Language Models via Adaptive-Debiased Ensemble Multi-Prompt Learning, introduces a novel framework to improve how foundation models like CLIP adapt to specific tasks. By tackling two hidden biases in multi-prompt learning, the authors achieve state-of-the-art performance in generalization across diverse datasets.
TL;DR
AmPLe improves vision-language model (VLM) adaptation by ensembling multiple prompts across different model architectures while using information theory to filter out noisy image backgrounds. This "dual-debiasing" approach significantly boosts the model's ability to generalize to new classes, datasets, and domain shifts.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) like CLIP are typically adapted to new tasks using prompts (e.g., "a photo of a [CLASS]"). Recent research has moved toward multi-prompt learning, using several descriptors to capture a class's nuances. However, the authors identify two critical flaws in current methods:
- Model-Prompt Matching Bias: The same prompt can mean different things to different model architectures. For instance, a prompt that works perfectly for a CLIP model with a ViT-B/16 backbone might perform poorly on one with a ViT-B/32 backbone.
- Sample-Prompt Matching Bias: When a model tries to decide which prompt is most relevant to a specific image, it often gets "distracted" by irrelevant information, like the background. If the model uses the entire image to calculate prompt weights, it might focus on the grass rather than the dog, leading to suboptimal predictions.
Methods
The authors propose the AmPLe framework, which consists of two main components:
- Hybrid Model-Prompt Ensemble: Instead of relying on a single model, AmPLe aggregates predictions from multiple prompts across different VLM backbones (specifically CLIP-ViT-B/16 and B/32). This mitigates the bias inherent in any single architecture.
- Adaptive-Debiased Weight Generation: To combine these diverse predictions, the model must calculate "ensemble weights." AmPLe uses a Redundancy Deprivation Network (R) based on information theory.
- It splits image features into "prompt-relevant" and "prompt-irrelevant" components.
- It uses Conditional Mutual Information (CMI) regularization to ensure that the "relevant" features contain only what is needed for the prompts, while the "irrelevant" features (like background noise) are discarded.
- The ensemble weights are then calculated only from the prompt-relevant features.
The authors also provide a Causal Analysis using Structural Causal Models (SCMs), theoretically proving that synthesizing predictions from multiple prompts and models is necessary to capture the true "causal effect" of visual semantics on the final label.
Datasets
The researchers evaluated AmPLe on a massive suite of 15 image classification datasets, covering three main scenarios:
- Base-to-Novel Generalization: Training on one set of classes and testing on unseen ones (e.g., ImageNet, OxfordPets, Caltech101).
- Cross-Dataset Generalization: Training on ImageNet and testing on 10 other diverse datasets (e.g., EuroSAT for satellite imagery, DTD for textures).
- Domain Generalization: Testing robustness against domain shifts using ImageNet variants (ImageNet-V2, -Sketch, -A, and -R).
Key Insights and Ideas
- The "Agreement" Problem: The authors discovered that different CLIP versions often disagree on which prompt is "best" for a given image. This confirms that model architecture is a "confounder" that must be accounted for via ensembling.
- Background is Noise: Standard attention maps often show models looking at the whole image to decide prompt weights. AmPLe’s information-theoretic constraints force the model to ignore the background, resulting in much cleaner, object-focused attention maps (e.g., focusing strictly on the "Guacamole" in a bowl rather than the table).
- Plug-and-Play: AmPLe is model-agnostic. The authors successfully integrated it into three existing state-of-the-art methods (MaPLe, MMA, and MMRL), improving all of them.
Key Results
AmPLe consistently outperformed baseline methods across all three evaluation scenarios:
- Base-to-Novel: When added to the MMRL baseline, it achieved a Harmonic Mean of 82.56%, a significant improvement over the standalone baseline.
- Cross-Dataset: It provided average gains of +1.6% to +2.59% across 10 different datasets. The most striking gains were on challenging shifts like EuroSAT (+11.66%).
- Domain Generalization: It reached the highest average accuracy (60.82%) across ImageNet variants, proving its robustness to sketches and adversarial examples.
- Efficiency: While adding a second VLM backbone increases the parameter count (e.g., from 3.55M to 6.73M for MaPLe), the authors note that the overhead remains acceptable for the performance gains achieved.
Limitations and Future Work
The authors acknowledge a few areas for improvement:
- Static Prompt Design: The multiple prompts are currently generated based on class labels (using GPT-4) before seeing the images. This might miss specific, fine-grained details present in a particular photo.
- Future Direction: The team intends to explore contextually relevant prompts that adapt dynamically to the specific visual content of an image, rather than just the general class description.
Summary updated