NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pro-Tuning: Unified Prompt Tuning for Vision Tasks

Xing Nie, Bolin Ni, Jianlong Chang, Gaofeng Meng, Chunlei Huo, Shiming Xiang, Qi Tian · DOI

TL;DR

This paper introduces "Pro-tuning," a novel parameter-efficient method for adapting pre-trained vision models to new tasks. By learning small, task-specific "prompts" that guide the frozen pre-trained model, Pro-tuning achieves performance comparable to or better than full fine-tuning across various vision tasks, while drastically reducing the number of trainable parameters.

What Problem Does This Paper Address?

The standard approach for leveraging powerful pre-trained vision models for new tasks is "fine-tuning," where the entire model's parameters are updated. While effective, this method has two major drawbacks: 1) it's computationally expensive, requiring separate storage and training for each new task, and 2) it heavily relies on large, high-quality downstream datasets, which are often unavailable in real-world scenarios. This paper aims to bridge this gap by offering a more efficient and data-friendly alternative that retains the benefits of pre-trained models.

Methods

The core innovation is "Pro-tuning," which draws inspiration from prompt-based learning in Natural Language Processing (NLP). Instead of fine-tuning the entire model, Pro-tuning keeps the pre-trained vision model frozen and learns a small set of "prompt blocks." These blocks are designed to generate task-specific prompts that are blended with intermediate feature maps within the pre-trained model. This process guides the frozen model to adapt to the downstream task without altering its original weights.

Key aspects of Pro-tuning include:

  • Prompt-based Tuning: Learning task-specific prompts that are prepended or integrated into the model's processing pipeline.
  • Parameter Efficiency: Only training a small number of additional parameters (the prompt blocks and a final classification head), significantly reducing computational and storage costs.
  • Multi-stage Prompt Blocks: The prompts are generated and integrated at multiple stages of the pre-trained model, allowing for richer adaptation across different levels of feature representation.
  • Generic Architecture: Pro-tuning is designed to be a plug-and-play module that can be applied to various CNN and Transformer-based vision architectures.

Datasets

The paper evaluates Pro-tuning on a wide array of datasets across different vision tasks:

  • Image Classification: CIFAR-10, CIFAR-100, Oxford-IIIT Pets, Oxford 102 Flowers, Stanford Dogs, Clothing1M, Caltech-101.
  • Challenging Classification Scenarios:
    • Class Imbalance: Long-tailed CIFAR-10 (LT-10) and CIFAR-100 (LT-100) with imbalanced ratios of 50 and 100.
  • Image Corruption: CIFAR-10-C and CIFAR-100-C.
  • Adversarial Robustness: ImageNet-A.
  • Out-of-Distribution Generalization: ImageNet-R.
  • Dense Prediction:
    • Object Detection: COCO 2017 validation set.
  • Semantic Segmentation: ADE20K validation set.

Key Insights and Ideas

  • Prompting Works for Vision Too: The success of prompt-based learning in NLP is transferable to vision tasks, offering a powerful alternative to traditional fine-tuning.
  • Parameter Efficiency is Key: The ability to achieve competitive or superior performance with drastically fewer trainable parameters is a major advantage, especially for deployment in resource-constrained environments or when managing many downstream tasks.
  • Multi-stage Adaptation Matters: Integrating prompts at various levels of the network (low, mid, and high-level features) allows for more comprehensive adaptation than a single-stage approach.
  • Frozen Backbone is Viable: Keeping the pre-trained backbone frozen is not only parameter-efficient but also surprisingly effective, suggesting that the pre-trained features are highly generalizable with the right guidance.
  • Robustness Gains: Pro-tuning demonstrates significant improvements in robustness against image corruption and out-of-distribution shifts, highlighting its ability to generalize better.

Key Results

Pro-tuning consistently outperforms or matches fine-tuning across numerous benchmarks, often with a dramatic reduction in trainable parameters:

  • Image Classification:
    • On long-tailed CIFAR-100 (ratio 100), Pro-tuning achieved +0.6% and +2.1% accuracy gains over fine-tuning under Swin-S and ResNet-101, respectively, while reducing trainable parameters by up to 31x.
  • On CIFAR-100-C, Pro-tuning achieved +1.2% accuracy gain over fine-tuning with over 83.9% fewer trainable parameters.
  • On ImageNet-A, Pro-tuning surpassed fine-tuning by +4.8% accuracy with 25.7x fewer parameters.
  • Object Detection (COCO val2017): Pro-tuning achieved comparable performance to full fine-tuning (42.3 AP vs. 42.2 AP) under HTC, reducing trainable parameters by 25.5%.
  • Semantic Segmentation (ADE20K): Pro-tuning achieved +0.6 mIoU gain (41.3 mIoU vs. 40.7 mIoU) over full fine-tuning under UperNet, with a 29.9% reduction in trainable parameters.
  • Few-Shot Learning: Pro-tuning demonstrated strong few-shot learning capabilities, requiring only 4 shots to achieve a significant margin over fine-tuning on CIFAR-10.

Limitations and Future Work

The authors acknowledge the following limitations:

  • Closed-Set Categories: Pro-tuning is currently applicable to settings where the downstream task categories are within the closed set of the pre-training data.
  • Reliance on Strong Pre-trained Models: The effectiveness of Pro-tuning is dependent on the quality of the initial pre-trained model.
  • Inference Cost: While training is efficient, the inference still incurs the full computational cost of the pre-trained model, which might be a limitation for edge devices.

Future work could explore extending Pro-tuning to open-set scenarios, investigating its application to even larger models, and optimizing inference for edge deployment. The paper also suggests that further research into the optimal placement and capacity of prompt blocks could yield additional improvements.

Summary updated

BibTeX
@article{nie2024pro,
  author = {Xing Nie and Bolin Ni and Jianlong Chang and Gaofeng Meng and Chunlei Huo and Shiming Xiang and Qi Tian},
  title = {{Pro-Tuning: Unified Prompt Tuning for Vision Tasks}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  doi = {10.1109/tcsvt.2023.3327605},
}
Figure