# Pro-tuning: Unified Prompt Tuning for Vision Tasks

Pro-tuning: 비전 과제를 위한 통합 프롬프트 튜닝

Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang 외 3명 · arXiv · 2022년 7월 28일

- **연구 문제** 사전학습된 시각 모델의 fine-tuning은 과제마다 전체 파라미터를 갱신하고 저장해야 하며, 하위 데이터 품질에 크게 의존합니다.
- **연구 방법** Pro-tuning은 pre-training 모델을 고정하고 단계별 프롬프트 블록과 헤드만 학습하여 중간 특징을 과제에 맞게 혼합합니다.
- **주요 결과** 분류, 검출, 분할 실험에서 Pro-tuning은 여러 설정에서 fine-tuning과 head retraining에 비해 비슷하거나 높은 성능을 보이며 학습 파라미터는 적게 사용합니다.

## pre-training 시각 모델의 fine-tuning 문제

사전학습된 시각 모델을 하위 과제에 적응시키는 표준 방법은 fine-tuning입니다. fine-tuning은 pre-training 모델의 모든 파라미터를 하위 과제 데이터로 갱신하므로, 과제마다 전체 모델 파라미터를 따로 저장해야 합니다. 모델 용량이 계속 커지는 상황에서 이 저장과 갱신 비용은 실용적인 부담이 됩니다. 또한 원문은 fine-tuning의 효과가 고품질 하위 데이터에 크게 의존한다고 지적합니다. 원문 Figure 1의 실험에서 fine-tuning은 CIFAR-100에서는 높은 정확도를 보였지만, 불균형 비율 100의 롱테일 CIFAR-100에서는 원래 CIFAR-100 대비 12% 이상의 검증 정확도 하락을 보였습니다. 이 논문은 이러한 문제를 다루기 위해 pre-training 모델을 고정하고 가벼운 과제별 프롬프트만 학습하는 방법을 제안합니다.

## Pro-tuning의 단계별 프롬프트 블록 구조

Pro-tuning은 사전학습된 시각 모델 G를 고정한 상태에서, 각 단계 g\_i 뒤에 프롬프트 블록 f\_i를 삽입하는 방법입니다. 각 단계의 중간 특징 맵 x\_i는 프롬프트 블록의 출력 f\_i(x\_i)와 학습 가능한 비율 β로 혼합되어 다음 단계의 입력이 됩니다. 원문 식 (1)은 이 혼합을 x̃\_i = x\_i + β·f\_i(x\_i)로 표현합니다. 여기서 x\_i는 중간 특징 맵, β는 두 항의 균형을 조절하는 학습 파라미터, f\_i는 과제별 프롬프트를 만드는 함수입니다. 프롬프트 블록은 1×1 합성곱, 5×5 깊이별 합성곱, 1×1 합성곱의 세 층과 SE 모듈로 구성됩니다. 기본 설정은 각 단계 뒤에 프롬프트 블록을 하나씩 두는 것이며, 최상단에는 완전연결층 h가 추가됩니다.

![Figure 2: An overview of our proposed Pro-tuning](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-84675fbc0c47ae07c81cf743944f05aa.png?thumb=512)

**Figure 2** : An overview of our proposed Pro-tuning.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 고정된 백본과 학습 대상 파라미터

학습 중에는 pre-training 파라미터 φ0를 고정하고, 추가 모듈의 파라미터 θ만 갱신합니다. 이 추가 모듈에는 프롬프트 블록 집합 {f\_i}과 최상단 헤드 h가 포함됩니다. 원문은 이 방식이 백본 가중치를 수정하거나 재학습할 필요 없이 과제마다 적은 수의 파라미터만 추가하는 구조라고 설명합니다. 목적함수는 교차엔트로피 손실을 최소화하는 형태로 제시됩니다. 백본은 고정되지만 기울기는 고정된 백본을 통과하여 프롬프트 블록까지 역전파되므로, 프롬프트 블록이 사전학습된 지식을 활용하여 학습됩니다. 원문은 또한 백본과 프롬프트를 함께 학습하면 일반화 성능이 떨어진다고 보고합니다.

## 분류 과제에서의 비교 결과

분류 실험에서 Pro-tuning은 여러 백본에서 fine-tuning 및 head retraining과 비교되었습니다. 롱테일 CIFAR-100(불균형 비율 100)에서 ResNet-101 백본을 사용할 때, Pro-tuning의 검증 정확도는 63.9%로 보고되었고 fine-tuning은 61.8%, head retraining은 58.9%였습니다. ImageNet-A에서 DeiT-S 백본을 사용할 때 Pro-tuning은 fine-tuning보다 +4.8% 절대 성능 이득을 보고합니다. ImageNet-R에서는 DeiT-S와 Swin-S 등 네 가지 pre-training 모델에서 head retraining을 능가했다고 보고됩니다. 이 결과들은 각 데이터셋과 백본 설정에서 얻은 것이며, 다른 데이터셋이나 백본 전체에 그대로 일반화되지는 않습니다.

![Table 1: The performance of our proposed Pro-tuning and other tuning paradigms under three CNN-based pre-trained models on nine benchmarks. Notably,Params† den…](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-a39e5567436377e521c1882f1866fc44.png?thumb=512)

**Table 1** : The performance of our proposed Pro-tuning and other tuning paradigms under three CNN-based pre-trained models on nine benchmarks. Notably,Params† denotes the maximum number of trainable parameters. “TS”: training from scratch, “HR”: head retraining, “FT”: ﬁne-tuning.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 2: The performance of our proposed Pro-tuning and other tuning paradigms under four Transformer-based pre-trained models on nine benchmarks. Notably,Para…](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-bd8616f3007b7ee06a1008e17297b2fc.png?thumb=512)

**Table 2** : The performance of our proposed Pro-tuning and other tuning paradigms under four Transformer-based pre-trained models on nine benchmarks. Notably,Params† denotes the maximum number of trainable parameters. “TS”: training from scratch, “HR”: head retraining, “FT”: ﬁne-tuning.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 4: The performance of Pro-tuning and other tuning paradigms on ImageNet-A and ImageNet-R. “FT”: ﬁne-tuning, “HR”: head retraining, “TS”: training from ra…](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-d43295227c196c18ca3b6d81a0b5c006.png?thumb=512)

**Table 4** : The performance of Pro-tuning and other tuning paradigms on ImageNet-A and ImageNet-R. “FT”: ﬁne-tuning, “HR”: head retraining, “TS”: training from random initialization.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 객체 검출과 의미 분할 결과

조밀 예측 과제에서 Pro-tuning은 COCO 객체 검출과 ADE20K 의미 분할에서 평가되었습니다. COCO val2017에서 HTC를 사용한 설정에서 Pro-tuning은 42.2 AP를 보여 fine-tuning의 42.3 AP와 비슷했습니다. 훈련 가능한 파라미터는 Pro-tuning이 60.4M, fine-tuning이 80.0M입니다. ADE20K에서 UperNet을 사용한 설정에서는 Pro-tuning이 41.3 mIoU, fine-tuning이 40.7 mIoU로 0.6 mIoU 높았습니다. 두 결과 모두 ImageNet으로 사전학습된 ResNet-50 백본을 사용했으며, 검출과 분할에서 얻은 수치는 각각의 아키텍처와 학습 설정에서 나온 것입니다.

![Table 5: Results of object detection on COCO2017 val set under Cascade Mask RCNN \[4\] and HTC \[6\] with ImageNet pre-training](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-80f3463e7b8ec07496239b5a5c0e8da3.png?thumb=512)

**Table 5** : Results of object detection on COCO2017 val set under Cascade Mask RCNN \[4\] and HTC \[6\] with ImageNet pre-training.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 6: Results of semantic segmentation on ADE20K val set under UperNet \[ 50\] and FCN \[35\] with ImageNet pre-training](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d/figures/figure-310927d911510a34c231527024f70e68.png?thumb=512)

**Table 6** : Results of semantic segmentation on ADE20K val set under UperNet \[ 50\] and FCN \[35\] with ImageNet pre-training.

[원문](https://arxiv.org/abs/2207.14381v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan · Pro-tuning: Unified Prompt Tuning for Vision Tasks · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

저자들은 Pro-tuning의 한계를 세 가지로 제시합니다. 첫째, 범주가 폐쇄 집합에 속하는 설정에 적용할 수 있습니다. 둘째, 강력한 pre-training 모델에 의존합니다. 셋째, 추론 시 pre-training 모델의 전체 계산 비용이 그대로 남습니다. 따라서 엣지 장치에서의 활용에는 제약이 있을 수 있다고 저자들은 해석합니다. 이 방법은 분류, 검출, 분할 실험에서 효과를 보였지만, 원문이 밝힌 실험 범위를 벗어난 과제나 모델 계열에 대한 결론은 이 논문만으로 확정할 수 없습니다.

## 논문 정보

- **저자**: Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 7월 28일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 8월 23일
- **버전**: v3
- **arXiv**: 2207.14381
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2207.14381v3) · [원문 PDF ↗](https://arxiv.org/pdf/2207.14381v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

In computer vision, fine-tuning is the de-facto approach to leverage pre-trained vision models to perform downstream tasks. However, deploying it in practice is quite challenging, due to adopting parameter inefficient global update and heavily relying on high-quality downstream data. Recently, prompt-based learning, which adds a task-relevant prompt to adapt the downstream tasks to pre-trained models, has drastically boosted the performance of many natural language downstream tasks. In this work, we extend this notable transfer ability benefited from prompt into vision models as an alternative to fine-tuning. To this end, we propose parameter-efficient Prompt tuning (Pro-tuning) to adapt frozen vision models to various downstream vision tasks. The key to Pro-tuning is prompt-based tuning, i.e., learning task-specific vision prompts for downstream input images with the pre-trained model frozen. By only training a few additional parameters, it can work on diverse CNN-based and Transformer-based architectures. Extensive experiments evidence that Pro-tuning outperforms fine-tuning in a broad range of vision tasks and scenarios, including image classification (generic objects, class imbalance, image corruption, adversarial robustness, and out-of-distribution generalization), and dense prediction tasks such as object detection and semantic segmentation.

## 원문 인용

Xing Nie, Bolin Ni, Jianlong Chang, Gaomeng Meng, Chunlei Huo, Zhaoxiang Zhang, Shiming Xiang, Qi Tian, Chunhong Pan (2022). Pro-tuning: Unified Prompt Tuning for Vision Tasks. arXiv:2207.14381v3. https://arxiv.org/abs/2207.14381v3

**BibTeX**

```
@misc{nie2022tuning,
  title = {{Pro-tuning: Unified Prompt Tuning for Vision Tasks}},
  author = {Xing Nie and Bolin Ni and Jianlong Chang and Gaomeng Meng and Chunlei Huo and Zhaoxiang Zhang and Shiming Xiang and Qi Tian and Chunhong Pan},
  year = {2022},
  eprint = {2207.14381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.14381v3}
}
```

## 이 논문의 용어

- [mIoU](https://refivu.com/terms/901dcc5384c2-miou)
- [미세조정](https://refivu.com/terms/0ac87f78df46-fine-tuning)
- [AP](https://refivu.com/terms/476f7c8deadf-ap)
- [ImageNet-A](https://refivu.com/terms/4f583f637004-imagenet-a)
- [UperNet](https://refivu.com/terms/d07802fe3627-upernet)
- [ImageNet-R](https://refivu.com/terms/6603f46dd44e-imagenet-r)
- [prompt-based learning](https://refivu.com/terms/36ba366626c3-prompt-based-learning)

## 다른 논문 해설

- [Referring Segmentation in Images and Videos with Cross-Modal Self-Attention Network](https://refivu.com/papers/6d4bd49c-656f-4b64-8a1e-7463a0da6425-referring-segmentation-in-images-and-videos-with-cross.md)
- [Hyperspectral Sensors and Autonomous Driving: Technologies, Limitations, and Opportunities](https://refivu.com/papers/46369f58-1984-42e5-bfb0-ea9ccd323e5b-hyperspectral-sensors-and-autonomous-driving-technologies.md)
- [Vision-Based Human Pose Estimation via Deep Learning: A Survey](https://refivu.com/papers/8d6e580a-09b8-4c09-ab29-ea5a4c8438ed-vision-based-human-pose-estimation-via-deep-learning.md)
- [Scalable Detection and Tracking of Geometric Extended Objects](https://refivu.com/papers/36daa5f8-2e2b-410f-8b6d-beda3972604d-scalable-detection-and-tracking-of-geometric-extended.md)
- [A Dependable Hybrid Machine Learning Model for Network Intrusion Detection](https://refivu.com/papers/ed6bed44-96ef-4320-bbfe-461ed585a922-a-dependable-hybrid-machine-learning-model-for-network.md)
- [Learning Generalized Spatial-Temporal Deep Feature Representation for No-Reference Video Quality Assessment](https://refivu.com/papers/1290a37a-949e-4f2c-8055-4e248cabee19-learning-generalized-spatial-temporal-deep-feature.md)
- [Hierarchical Multi-Agent DRL-Based Framework for Joint Multi-RAT Assignment and Dynamic Resource Allocation in Next-Generation HetNets](https://refivu.com/papers/967ee93f-c3c3-4ed1-a757-9f15d03f2a28-hierarchical-multi-agent-drl-based-framework-for-joint.md)
- [Emojis as Anchors to Detect Arabic Offensive Language and Hate Speech](https://refivu.com/papers/54ae4dfd-b346-4202-8849-71299de38771-emojis-as-anchors-to-detect-arabic-offensive-language.md)
- [Contact-Aware Safety in Soft Robots Using High-Order Control Barrier and Lyapunov Functions](https://refivu.com/papers/ec1a05d1-ce8e-4bd6-9d77-906b010c6893-contact-aware-safety-in-soft-robots-using-high.md)
- [Deep Learning for Survival Analysis: A Review](https://refivu.com/papers/ca68147b-3a65-44fa-a65b-4f1885aac451-deep-learning-for-survival-analysis-a-review.md)
- [Deep reinforcement learning for irrigation scheduling using high-dimensional sensor feedback](https://refivu.com/papers/870a3e0a-1d1e-449c-9bfe-8069d8a2ed5f-deep-reinforcement-learning-for-irrigation-scheduling-using.md)
- [Language Knowledge-Assisted Representation Learning for Skeleton-Based Action Recognition](https://refivu.com/papers/606f8e68-1af8-4a10-856d-bd1487d12ab3-language-knowledge-assisted-representation-learning-for.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d-pro-tuning-unified-prompt-tuning-for-vision-tasks)
