Attribute-based Visual Reprogramming for Vision-Language Models

C. Cai, Zesheng Ye, Lei Feng, Jianzhong Qi, Feng Liu
2/12/2026

No official code found. Best implementation: caichengyi/AttrVR (8 stars, MIT, last commit 2025-03-29). 1 more below.

Abstract

Visual reprogramming (VR) reuses pre-trained vision models for downstream image classification tasks by adding trainable noise patterns to inputs. When applied to vision-language models (e.g., CLIP), existing VR approaches follow the same pipeline used in vision models (e.g., ResNet, ViT), where ground-truth class labels are inserted into fixed text templates to guide the optimization of VR patterns. This label-based approach, however, overlooks the rich information and diverse attribute-guided textual representations that CLIP can exploit, which may lead to the misclassification of samples. In this paper, we propose Attribute-based Visual Reprogramming (AttrVR) for CLIP, utilizing descriptive attributes (DesAttrs) and distinctive attributes (DistAttrs), which respectively represent common and unique feature descriptions for different classes. Besides, as images of the same class may reflect different attributes after VR, AttrVR iteratively refines patterns using the $k$-nearest DesAttrs and DistAttrs for each image sample, enabling more dynamic and sample-specific optimization. Theoretically, AttrVR is shown to reduce intra-class variance and increase inter-class separation. Empirically, it achieves superior performance in 12 downstream tasks for both ViT-based and ResNet-based CLIP. The success of AttrVR facilitates more effective integration of VR from unimodal vision models into vision-language models. Our code is available at https://github.com/tmlr-group/AttrVR.

View on arXivView PDF

Code Implementations(2)

tmlr-group/AttrVRCommunity100%
MIT

[ICLR 2025] "Attribute-based Visual Reprogramming for Vision-Language Models" Official Website: https://github.com/tmlr-group/AttrVR

40PythonJan 23, 20251 years agoMIT
caichengyi/AttrVRCommunity70%
MIT

[ICLR 2025] "Attribute-based Visual Reprogramming for Vision-Language Models" Official Website: https://github.com/tmlr-group/AttrVR

82PythonSep 20, 20241 years agoMIT

Similar Papers

Cite this paper

@article{cai2026attributebased,
  title  = {Attribute-based Visual Reprogramming for Vision-Language Models},
  author = {C. Cai and Zesheng Ye and Lei Feng and Jianzhong Qi and Feng Liu},
  year   = {2026},
  eprint = {2501.13982},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2501.13982},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.13982.svg)](https://codeofpaper.com/paper/2501.13982)

Discussion