[Paper Review] Understanding and Improving Visual Prompting: A Label-Mapping Perspective
This paper proposes ILM-VP, a novel visual prompting framework that co-optimizes label mapping (LM) and visual prompting to improve zero-shot transfer accuracy. By iteratively refining the LM between source and target classes using bi-level optimization, ILM-VP achieves state-of-the-art performance—boosting accuracy by 7.9% on Flowers102 and 6.7% on CIFAR100 when reprogramming ImageNet-pretrained ResNet-18, and 13.7% on Flowers102 with CLIP-based prompting.
We revisit and advance visual prompting (VP), an input prompting technique for vision tasks. VP can reprogram a fixed, pre-trained source model to accomplish downstream tasks in the target domain by simply incorporating universal prompts (in terms of input perturbation patterns) into downstream data points. Yet, it remains elusive why VP stays effective even given a ruleless label mapping (LM) between the source classes and the target classes. Inspired by the above, we ask: How is LM interrelated with VP? And how to exploit such a relationship to improve its accuracy on target tasks? We peer into the influence of LM on VP and provide an affirmative answer that a better 'quality' of LM (assessed by mapping precision and explanation) can consistently improve the effectiveness of VP. This is in contrast to the prior art where the factor of LM was missing. To optimize LM, we propose a new VP framework, termed ILM-VP (iterative label mapping-based visual prompting), which automatically re-maps the source labels to the target labels and progressively improves the target task accuracy of VP. Further, when using a contrastive language-image pretrained (CLIP) model, we propose to integrate an LM process to assist the text prompt selection of CLIP and to improve the target task accuracy. Extensive experiments demonstrate that our proposal significantly outperforms state-of-the-art VP methods. As highlighted below, we show that when reprogramming an ImageNet-pretrained ResNet-18 to 13 target tasks, our method outperforms baselines by a substantial margin, e.g., 7.9% and 6.7% accuracy improvements in transfer learning to the target Flowers102 and CIFAR100 datasets. Besides, our proposal on CLIP-based VP provides 13.7% and 7.1% accuracy improvements on Flowers102 and DTD respectively. Our code is available at https://github.com/OPTML-Group/ILM-VP.
Motivation & Objective
- To understand the role of label mapping (LM) in visual prompting (VP), which has been overlooked in prior work.
- To address the lack of interpretability and suboptimal performance in VP due to inconsistent or arbitrary LM.
- To co-optimize visual prompting and label mapping for improved accuracy and explainability in zero-shot transfer learning.
- To extend the framework to CLIP-based prompting by integrating LM for optimal text prompt selection.
- To provide a unified, explainable, and accurate VP framework that outperforms existing state-of-the-art methods.
Proposed method
- Proposes ILM-VP, a bi-level optimization framework that jointly trains visual prompts and refines label mapping (LM) between source and target classes.
- Introduces an iterative label mapping process that improves mapping precision and explanation quality, enhancing VP performance.
- Uses a BLO (bi-level optimization) formulation to optimize the visual prompt and LM function simultaneously, ensuring alignment between input perturbations and label assignments.
- Applies the ILM-VP framework to CLIP-based prompting by treating context-fused text prompts as 'virtual source labels' and optimizing their mapping to target labels.
- Employs a contrastive learning objective to guide the selection of optimal text prompt templates, improving both accuracy and semantic interpretability.
- Integrates the optimized LM into the prompt generation pipeline, enabling automatic and explainable selection of high-quality text prompts for CLIP.
![Figure 1 : Overview of VP pipelines (prior art [ 1 , 2 ] and our proposal termed ILM-VP ) and accuracy improvement achieved by ILM-VP on target image classification tasks at-a-glance. Generally speaking, VP aims to generate a universal input perturbation template ( i.e. , ‘visual prompt’) and levera](https://ar5iv.labs.arxiv.org/html/2211.11635/assets/AChen/figs/ILM_first_figure_final.png)
Experimental results
Research questions
- RQ1How does label mapping (LM) influence the effectiveness of visual prompting (VP) in zero-shot transfer learning?
- RQ2Why does VP remain effective even with seemingly arbitrary or ruleless label mappings between source and target classes?
- RQ3Can iterative refinement of label mapping improve both the accuracy and interpretability of visual prompting?
- RQ4How can label mapping be systematically optimized in CLIP-based visual prompting to improve downstream task performance?
- RQ5Can a co-design of visual prompting and label mapping outperform existing VP methods in terms of accuracy and explainability?
Key findings
- ILM-VP achieves a 7.9% accuracy improvement over SOTA baselines on the Flowers102 dataset when reprogramming an ImageNet-pretrained ResNet-18.
- On CIFAR100, ILM-VP improves accuracy by 6.7% compared to the state-of-the-art visual prompting methods.
- For CLIP-based prompting, ILM-VP achieves a 13.7% accuracy gain on Flowers102 and a 7.1% gain on DTD over the baseline VP+TP method.
- The optimized label mapping leads to more semantically meaningful text prompt templates, such as 'a close-up photo of a {}' for 'buttercup' instead of 'This is a photo of a {}'.
- In domain shift benchmarks like ImageNet-R and ImageNet-Sketch, the selected prompts reflect domain-specific characteristics, enhancing interpretability.
- The method demonstrates consistent performance gains across 13 diverse target datasets, confirming the generalizability and robustness of the ILM-VP framework.

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.