Lune

NeurIPS2024Top-tier venue

Bayesian-guided Label Mapping for Visual Reprogramming

Chengyi Cai, Zesheng Ye, Lei Feng, Jianzhong Qi, Feng Liu

Abstract

Visual reprogramming (VR) leverages the intrinsic capabilities of pretrained vision models by adapting their input or output interfaces to solve downstream tasks whose labels (i.e., downstream labels) might be totally different from the labels associated with the pretrained models (i.e., pretrained labels). When adapting the output interface, label mapping methods transform the pretrained labels to downstream labels by establishing a gradient-free one-to-one correspondence between the two sets of labels. However, in this paper, we reveal that one-to-one mappings may overlook the complex relationship between pretrained and downstream labels. Motivated by this observation, we propose a Bayesian-guided Label Mapping (BLM) method. BLM constructs an iteratively-updated probabilistic label mapping matrix, with each element quantifying a pairwise relationship between pretrained and downstream labels. The assignment of values to the constructed matrix is guided by Bayesian conditional probability, considering the joint distribution of the downstream labels and the labels predicted by the pretrained model on downstream samples. Experiments conducted on both pretrained vision models (e.g., ResNeXt) and vision-language models (e.g., CLIP) demonstrate the superior performance of BLM over existing label mapping methods. The success of BLM also offers a probabilistic lens through which to understand and analyze the effectiveness of VR. Our code is available at https://github.com/tmlr-group/BayesianLM.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learning cites Conditional Prompt Learning for Vision-Language Models
  • ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Enhancing Visual Prompting through Expanded Transformation Space and Overfitting Mitigation cites Conditional Prompt Learning for Vision-Language Models
  • Enhancing Visual Prompting through Expanded Transformation Space and Overfitting Mitigation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Enhancing Visual Prompting through Expanded Transformation Space and Overfitting Mitigation cites Learning Transferable Visual Models From Natural Language Supervision
  • Towards Out-of-Modal Generalization without Instance-level Modal Correspondence cites Learning Transferable Visual Models From Natural Language Supervision
  • Conditional Prompt Learning for Vision-Language Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Conditional Prompt Learning for Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • CALM: Consensus-Aware Localized Merging for Multi-Task Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CALM: Consensus-Aware Localized Merging for Multi-Task Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Prime Once, then Reprogram Locally: An Efficient Alternative to Black-Box Service Model Adaptation cites Conditional Prompt Learning for Vision-Language Models
  • Prime Once, then Reprogram Locally: An Efficient Alternative to Black-Box Service Model Adaptation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Prime Once, then Reprogram Locally: An Efficient Alternative to Black-Box Service Model Adaptation cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Prime Once, then Reprogram Locally: An Efficient Alternative to Black-Box Service Model AdaptationYunbei Zhang, Chengyi Cai, Feng Liu, Jihun HammCVPR 2026 · 5 citations
  2. Generalization-Preserved Learning: Closing the Backdoor to Catastrophic Forgetting in Continual Deepfake DetectionXueyi Zhang, Peiyin Zhu, Chengwei Zhang, Zhiyuan Yan et al.ICCV 2025 · 3 citations
  3. Enhancing Visual Prompting through Expanded Transformation Space and Overfitting MitigationShohei EnomotoNeurIPS 2025 · 1 citation
  4. Towards Out-of-Modal Generalization without Instance-level Modal CorrespondenceZhuo Huang, Gang Niu, Bo Han, Masashi Sugiyama et al.ICLR 2025
  5. CALM: Consensus-Aware Localized Merging for Multi-Task LearningKunda Yan, Min Zhang, Sen Cui, Zikun Qu et al.ICML 2025

Builds on27

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain AdaptationJian Liang, Dapeng Hu, Jiashi FengICML 2020 · 1,624 citations
  4. Conditional Prompt Learning for Vision-Language ModelsKaiyang Zhou, Jingkang Yang, Chen Change Loy, Ziwei LiuCVPR 2022 · 1,438 citations
  5. ST-Adapter: Parameter-Efficient Image-to-Video Transfer LearningJunting Pan, Ziyi Lin, Xiatian Zhu, Jing Shao et al.NeurIPS 2022 · 290 citations

Related papers

  1. Understanding Model Reprogramming for CLIP via Decoupling Visual PromptsChengyi Cai, Zesheng Ye, Lei Feng, Jianzhong Qi et al.ICML 2025
  2. Understanding and Improving Visual Prompting: A Label-Mapping PerspectiveAochuan Chen, Yuguang Yao, Pin-Yu Chen, Yihua Zhang et al.CVPR 2023
  3. Attribute-based Visual Reprogramming for Vision-Language ModelsChengyi Cai, Zesheng Ye, Lei Feng, Jianzhong Qi et al.ICLR 2025
  4. Boosting Visual Reprogramming for CLIP with Dual Granularity AlignmentJiayang Wu, Xinyang Chen, Ke Lv, Weili GuanCVPR 2026
  5. MaPLe: Multi-modal Prompt LearningMuhammad Uzair Khattak, Hanoona Abdul Rasheed, Muhammad Maaz, Salman H. Khan et al.CVPR 2023
Dusk over the sea between two cliffs drawn in fine vertical lines