mlsanityData to 7 Oct 2026

Sample-specific Masks for Visual Reprogramming-based Prompting

arXiv 2406.03150 ↗First posted 5 Jun 2024cs.LG cs.CVcited by 16

Not on the map. Why?

Abstract (arXiv)

Visual reprogramming (VR) is a prompting technique that aims to re-purpose a pre-trained model (e.g., a classifier on ImageNet) to target tasks (e.g., medical data prediction) by learning a small-scale pattern added into input images instead of tuning considerable parameters within the model. The location of the pattern within input samples is usually determined by a pre-defined mask shared across all samples. In this paper, we show that the shared mask potentially limits VR's generalization and increases its approximation error due to the lack of sample-level adaptation. Motivated by this finding, we design a new framework for VR called sample-specific multi-channel masks (SMM). Specifically, SMM employs a lightweight ConvNet and patch-wise interpolation to generate sample-specific three-channel masks instead of a shared and pre-defined mask. Since we generate different masks for individual samples, SMM is theoretically shown to reduce approximation error for the target tasks compared with existing state-of-the-art VR methods. We also empirically demonstrate its performance gain on both ResNet and ViT. The success of SMM further highlights the broader applicability of VR in leveraging the latent knowledge of pre-trained models for various target tasks. Our code is available at https://github.com/tmlr-group/SMM.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 28 of its 44 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

28 of 44 references.

References · 28

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021Learning to Prompt for Vision-Language Modelscited by 2,269
  5. 2013Describing Textures in the Wildcited by 2,110
  6. 2022Visual Prompt Tuningcited by 1,674
  7. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  8. 2022Conditional Prompt Learning for Vision-Language Modelscited by 1,427
  9. 2022Exploring Visual Prompts for Adapting Large-Scale Modelscited by 271
  10. 2021WARP: Word-level Adversarial ReProgrammingcited by 220
  11. 2018Adversarial Reprogramming of Neural Networkscited by 115
  12. 2021Voice2Series: Reprogramming Acoustic Models for Time Series Classificationcited by 91
16 more
  1. 2022Understanding and Improving Visual Prompting: A Label-Mapping Perspectivecited by 86
  2. 2020Transfer Learning without Knowing: Reprogramming Black-box Machine Learning Models with Scarce Data and Limited Resourcescited by 83
  3. 2023E^2VPT: An Effective and Efficient Approach for Visual Prompt Tuningcited by 70
  4. 2022Model Reprogramming: Resource-Efficient Cross-Domain Machine Learningcited by 64
  5. 2023Equivariant Adaptation of Large Pretrained Modelscited by 40
  6. 2021Cross-modal Adversarial Reprogrammingcited by 34
  7. 2022Fairness Reprogrammingcited by 33
  8. 2023MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosiscited by 33
  9. 2023AutoVP: An Automated Visual Prompting Framework and Benchmarkcited by 29
  10. 2022Watermarking for Out-of-distribution Detectioncited by 28
  11. 2023From English to More Languages: Parameter-Efficient Model Reprogramming for Cross-Lingual Speech Recognitioncited by 23
  12. 2022Low-Resource Music Genre Classification with Cross-Modal Neural Model Reprogrammingcited by 17
  13. 2023TransHP: Image Classification with Hierarchical Promptingcited by 16
  14. 2023Efficient Equivariant Transfer Learning from Pretrained Modelscited by 11
  15. 2023Three Towers: Flexible Contrastive Learning with Pretrained Image Modelscited by 11
  16. 2021Neural Model Reprogramming with Similarity Based Mapping for Low-Resource Spoken Command Recognitioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 10; 2026: 5.

16 papers.

Sort:

By area: