Reprogramming under constraints: Revisiting efficient and reliable transferability of lottery tickets

Diganta Misra, Agam Goyal, Bharat Runwal, Pin-Yu Chen

Abstract

In an age dominated by resource-intensive foundation models, the ability to efficiently adapt to downstream tasks is crucial. Visual Prompting (VP), drawing inspiration from the prompting techniques employed in Large Language Models (LLMs), has emerged as a pivotal method for transfer learning in the realm of computer vision. As the importance of efficiency continues to rise, research into model compression has become indispensable in alleviating the computational burdens associated with training and deploying over-parameterized neural networks. A primary objective in model compression is to develop sparse and/or quantized models capable of matching or even surpassing the performance of their over-parameterized, full-precision counterparts. Although previous studies have explored the effects of model compression on transfer learning, its impact on visual prompting-based transfer remains unclear. This study aims to bridge this gap, shedding light on the fact that model compression detrimentally impacts the performance of visual prompting-based transfer, particularly evident in scenarios with low data volume. Furthermore, our findings underscore the adverse influence of sparsity on the calibration of downstream visual-prompted models. However, intriguingly, we also illustrate that such negative effects on calibration are not present when models are compressed via quantization. This empirical investigation underscores the need for a nuanced understanding beyond mere accuracy in sparse and quantized settings, thereby paving the way for further exploration in Visual Prompting techniques tailored for sparse and quantized models.

Introduction

As AI moves toward massive "Foundation Models," the challenge shifts from training to adaptation. Visual Prompting (VP)—also known as model reprogramming—has emerged as a hyper-efficient way to adapt these giants. Instead of updating millions of weights, VP learns a small "perturbation" (like a decorative frame) added to input images, essentially tricking the frozen model into solving a new task. Simultaneously, model compression (pruning for sparsity or quantization for reduced numerical precision) is used to deploy these models on edge devices. This study investigates whether these two efficiency strategies are compatible.

Methodology

The researchers conducted an extensive empirical study involving over 15,000 experiments across three dimensions:

  1. Compression Type: Sparsity (unstructured pruning like GMP and RigL, and Lottery Ticket Hypothesis solutions) and Quantization (reducing weights from 32-bit to as low as 2-bit).
  2. Adaptation Method: Primarily state-of-the-art Iterative Label Mapping (ILM-VP).
  3. Data Volume: Performance in "few-shot" scenarios (1–100 examples per class) versus full-data regimes.

Beyond accuracy, the study measured Expected Calibration Error (ECE) to evaluate model reliability—specifically, whether models accurately estimate their own confidence.

The Impact of Sparsity and Semantic Misalignment

A key finding is the "Sparsity Tax": pruning is significantly more detrimental to Visual Prompting than to traditional fine-tuning. Sparse models often lose the semantic flexibility required for reprogramming. For instance, in the OxfordPets dataset, the performance gap between dense and sparse models can exceed 50%.

This failure is often rooted in Semantic Misalignment. While a dense model might map a target class to a semantically related source class (e.g., mapping a cat to a dog), a sparse model often defaults to nonsensical mappings (e.g., mapping a cat to a "carton" or "tub").

Figure 1: Visualization of semantic misalignment in label mapping for sparse and quantized models compared to their dense, full-precision counterparts.

Quantization: A More Reliable Alternative

In contrast to sparsity, quantization proves to be a more robust compression method for VP. While pruning ruins calibration—making models "loud and wrong" by assigning high confidence to incorrect labels—quantized models remain well-calibrated. Even at 2-bit precision, quantized models maintain an ECE nearly identical to the 32-bit baseline; as their accuracy drops, their confidence drops accordingly.

Furthermore, 4-bit quantized models often match full-precision performance across various benchmarks, including cross-modal (Vision-to-NLP) tasks.

Figure 4: Test accuracy across different N-shot settings for quantized models. Note that 4-bit quantization (dark purple) closely tracks the 32-bit full-precision baseline (purple triangle).

Key Results and Insights

  • Accuracy Drop: Sparse models (Lottery Tickets) showed an average 20% reduction in top-1 accuracy compared to dense counterparts in 20-shot settings.
  • Reliability: In the Describable Textures Dataset (DTD), sparse models showed a significant spike in ECE, whereas quantized models maintained reliability.
  • Foundation Model Impact: Testing on CLIP revealed that 4x compression led to a performance dip of nearly 45% on certain datasets when using VP.

Conclusion

This research highlights a critical trade-off: while sparsity is a common compression goal, it severely compromises the ability to reprogram models via Visual Prompting and degrades calibration. Quantization emerges as the superior choice for maintaining both accuracy and reliability in constrained environments. Future work should focus on developing "prompting-friendly" compression algorithms that preserve the features most essential for efficient adaptation.

Summary updated

BibTeX
@inproceedings{misra2024reprogramming,
  author = {Diganta Misra and Agam Goyal and Bharat Runwal and Pin-Yu Chen},
  title = {{Reprogramming under constraints: Revisiting efficient and reliable transferability of lottery tickets}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  url = {https://openreview.net/forum?id=jF1sbGvyXx},
}
Figure