Boosting Visual Reprogramming for CLIP with Dual Granularity Alignment

Jia Wu, Xinyang Chen, Ke Lv, Wei-Li Guan
1/1/2026
transformer-attention

No official code found. Best implementation: iLearn-Lab/CVPR26-DGA (5 stars, MIT, last commit 2026-05-15).

Abstract

Model reprogramming adapts pretrained models to downstream tasks by modifying their input and output spaces. Visual reprogramming, as a prominent instance, has been explored in pioneer works on CLIP, which introduces learnable input transformations as visual prompts to repurpose its visual-language alignment for downstream visual tasks.

Show full abstract

Existing VR methods focus on single-level alignment between prompted images and text descriptions, overlooking inherent structural information in data that facilitates alignment: semantic granularity from label hierarchies and visual granularity from multi-scale representations. To address this gap, we propose Dual Granularity Alignment (DGA) with two key components for multi-level fusion. For visual granularity, we generate multi-scale images and introduce Uncertainty-calibrated Prediction Fusion (UPF), which fuses predictions based on uncertainty estimation to capture hierarchical spatial information. For semantic granularity, we construct category hierarchies via Prototype-guided Label Hierarchization and develop Hierarchical Knowledge Propagation (HKP), which transfers superclass knowledge for coherent multi-level visual prompts alignment. Our DGA collaboratively integrates both granularities to enhance alignment effectiveness. Experiments across 12 downstream datasets demonstrate DGA's superiority over baselines on both ViT-based and ResNet-based CLIP architectures. Specifically, DGA achieves a 4.5% improvement over the previous state-of-the-art method on ViT-16-based CLIP. By explicitly modeling structural granularities, DGA establishes a new paradigm for visual reprogramming.

Semantic Scholar

Code Implementations(1)

MIT

Official repository for "Boosting Visual Reprogramming for CLIP with Dual Granularity Alignment" [CVPR 2026 Highlight]

50Mar 7, 20266 months agoMIT

Similar Papers

Cite this paper

@article{wu2026boosting,
  title  = {Boosting Visual Reprogramming for CLIP with Dual Granularity Alignment},
  author = {Jia Wu and Xinyang Chen and Ke Lv and Wei-Li Guan},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:2cdf5e2de389ac215c12d51c37e5be999a3957f7},
  journal = {Computer Vision and Pattern Recognition}
}

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/2cdf5e2de389ac215c12d51c37e5be999a3957f7.svg)](https://codeofpaper.com/paper/2cdf5e2de389ac215c12d51c37e5be999a3957f7)

Discussion