atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

Sample-specific Masks for Visual Reprogramming-based Prompting

ICML 2024 · Label-efficient and robust learning › Recognition and long-tail · approach: Dense features and foundation priors · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SMM, a visual reprogramming framework that replaces a shared binary mask with a lightweight CNN generating sample-specific three-channel masks (plus patch-wise upsampling), with theory showing lower approximation error and gains on ResNet and ViT across 11 datasets.

Problem

Visual reprogramming (VR) uses a pattern added to inputs at a location fixed by a mask shared across all samples, which limits generalization and increases approximation error when re-purposing pre-trained classifiers to target tasks.

Approach

Replace the fixed shared binary mask with a sample-specific three-channel mask produced by a lightweight CNN generator, upscaled by a parameter-free patch-wise interpolation, multiplied with a shared learnable pattern; theoretically shown to have lower approximation error than shared-mask and sample-specific-pattern hypothesis spaces.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the full shared watermark mask with sample-specific three-channel masksVisual reprogramming with ResNet-18 · 11-dataset averageaccuracy: 46.85 -> 52.53Helped
Replace the full shared watermark mask with sample-specific three-channel masksVisual reprogramming with ResNet-50 · 11-dataset averageaccuracy: 52.10 -> 56.35Helped
Replace the medium shared watermark mask with sample-specific three-channel masksVisual reprogramming with ViT-B32 · 11-dataset averageaccuracy: 65.2 -> 72.4Helped
Add the sample-specific mask generator to the shared pattern (ablation)SMM with ResNet-18 · 11-dataset averageaccuracy: 46.85 -> 52.53Helped
Add the shared pattern δ to the sample-specific mask generator (ablation)SMM with ResNet-18 · 11-dataset averageaccuracy: 42.59 -> 52.53Helped
Use a three-channel mask instead of a single-channel mask (ablation)SMM with ResNet-18 · 11-dataset averageaccuracy: 49.70 -> 52.53Helped
Use a single-channel mask instead of a three-channel mask (ablation)SMM with ResNet-18 · GTSRBaccuracy: 80.4 -> 70.7Hurt
Use a single-channel mask instead of a three-channel mask (ablation)SMM with ResNet-18 · Flowers102accuracy: 38.7 -> 30.2Hurt
Use a single-channel mask instead of a three-channel mask (ablation)SMM with ResNet-18 · CIFAR10accuracy: 72.6 ±2.6 -> 72.8 ±0.7No clear effect
Use specific rather than unified learning parameters (ablation)SMM with ViT-B32 · UCF101accuracy: 42.6 -> 49.9Helped
Replace bilinear interpolation with patch-wise interpolation (ablation)Mask resizing with ResNet-18/50 · Batch processingtime per batch (s): 0.062±0.001 -> 0.026±0.004Helped
Replace bicubic interpolation with patch-wise interpolation (ablation)Mask resizing with ViT-B32 · Batch processingtime per batch (s): 0.486±0.026 -> 0.069±0.004Helped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR10 CIFAR100 SVHN GTSRB Flowers102 DTD UCF101 Food101 SUN397 EuroSAT OxfordPets ImageNet-1K

Benchmarks: CIFAR10 CIFAR100 SVHN GTSRB Flowers102 DTD UCF101 Food101 SUN397 EuroSAT OxfordPets

Metrics: test accuracy (mean ± std over three seeds) training loss/accuracy curves t-SNE feature visualization

Baselines: Pad Narrow watermark Medium watermark Full watermark AutoVP

Builds on: watermarking reprogramming AutoVP visual prompt tuning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy