Meta-Learning Hyperparameters for Parameter Efficient Fine-Tuning
Organizations: Singapore Management University · University of Illinois Urbana-Champaign
Abstract
Training large foundation models from scratch for domain-specific applications is almost impossible due to data limits and long-tailed distributions -- taking remote sensing (RS) as an example. Fine-tuning natural image pre-trained models on RS images is a straightforward solution. To reduce computational costs and improve performance on tail classes, existing methods apply parameter-efficient fine-tuning (PEFT) techniques, such as LoRA and AdaptFormer. However, we observe that fixed hyperparameters -- such as intra-layer positions, layer depth, and scaling factors, can considerably hinder PEFT performance, as fine-tuning on RS images proves highly sensitive to these settings. To address this, we propose MetaPEFT, a method incorporating adaptive scalers that dynamically adjust module influence during fine-tuning. MetaPEFT dynamically adjusts three key factors of PEFT on RS images: module insertion, layer selection, and module-wise learning rates, which collectively control the influence of PEFT modules across the network. We conduct extensive experiments on three transfer-learning scenarios and five datasets in both RS and natural image domains. The results show that MetaPEFT achieves state-of-the-art performance in cross-spectral adaptation, requiring only a small amount of trainable parameters and improving tail-class accuracy significantly.
Figures & tables
| Position | CIFAR100 | iNat2018 | Places-LT | DOTA | Avg | Avg tail | ||||||||
| Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | |||
| ATTN | 92.2 | 87.7 | 86.3 | 67.9 | 76.3 | 76.7 | 48.4 | 48.3 | 45.7 | 94.1 | 94.7 | 91.1 | 75.8 | 74.9 |
| FFN | 92.4 | 87.9 | 86.8 | 66.7 | 75.6 | 76.9 | 48.6 | 47.9 | 45.6 | 94.6 | 94.8 | 91.4 | 75.8 | 75.2 |
| ATTN-FFN | 92.3 | 88.1 | 86.6 | 67.7 | 76.8 | 77.5 | 48.2 | 48.3 | 45.5 | 94.6 | 95.4 | 92.4 | 76.1 | 75.5 |
| Module | Position | Accuracy (%) | |||
| Head | Med | Tail | Avg | ||
| ATTN | K | 91.6 | 93.0 | 87.7 | 90.6 |
| Q | 91.4 | 93.1 | 90.0 | 91.5 | |
| V | 94.0 | 94.5 | 90.2 | 92.7 | |
| Out | 93.6 | 94.1 | 90.0 | 92.3 | |
| FFN | MLP 1 | 94.6 | 94.6 | 91.6 | 93.4 |
| Block Group | Many | Med | Few | Avg | Drop (%) |
| L9-11 | 88.1 | 89.8 | 88.8 | 89.0 | 3.2 |
| L6-8 | 92.3 | 93.5 | 89.3 | 91.6 | 0.3 |
| L3-5 | 92.4 | 93.7 | 89.8 | 91.9 | - |
| L0-2 | 90.5 | 92.8 | 88.4 | 90.6 | 1.4 |
| Category | Method | IN21K iNat2018 | IN21K DOTA | SatMAE SAR | Avg | Avg | |||||
| Head | Med | Tail | Head | Med | Tail | Head | Tail | ||||
| Non-additive | VPT-Shallow | 57.5 | 65.5 | 65.9 | 85.4 | 89.0 | 82.4 | 39.8 | 68.4 | 72.23 | 69.24 |
| BitFit | 57.6 | 67.3 | 68.4 | 92.0 | 93.7 | 89.1 | 32.1 | 74.7 | 77.40 | 71.86 | |
| VPT-Deep | 64.9 | 74.2 | 75.9 | 92.1 | 93.5 | 90.2 | 30.6 | 50.0 | 72.03 | 71.43 | |
| Additive | Adapter | 67.9 | 76.8 | 77.7 | 93.2 | 94.9 | 90.6 | 37.9 | 75.8 | 81.37 | 76.85 |
| w/ Ours | 68.2 | 76.9 | 78.1 | 93.2 | 95.1 | 90.7 | 37.7 | 76.0 | 81.60 | 76.99 | |
| Category | Method | Inter-class Distance | |
| Head | Tail | ||
| Non-additive | VPT-Shallow | 0.65 | 0.58 |
| BitFit | 0.81 | 0.75 | |
| VPT-Deep | 0.81 | 0.72 | |
| Additive | Adapter | 0.83 | 0.77 |
| w/ Ours | 0.84 | 0.79 | |
| Ratio (%) | Head | Med | Tail | Avg | Tail (%) |
| 5 | 91.2 | 92.1 | 88.2 | 90.5 | -5.2 |
| 10 | 93.4 | 94.2 | 90.8 | 92.8 | -2.6 |
| 30 | 95.0 | 95.8 | 93.4 | 94.7 | - |
| 50 | 94.8 | 95.6 | 93.0 | 94.5 | -0.4 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Strategy | Head | Med | Tail | Avg |
| Random (20%) | 93.2 | 94.6 | 93.1 | 93.6 |
| Class-Balanced | 93.0 0.2 | 94.5 0.1 | 93.3 0.2 | 93.6 - |
| Tail-Heavy | 92.0 1.2 | 93.4 1.2 | 94.8 1.7 | 93.4 0.2 |
| Random (30%) | 93.5 0.3 | 94.8 0.2 | 93.9 0.8 | 94.1 0.5 |
| Dataset | Dim | LoRA | Adapter | AdaptFormer | |||
| Tuner (M) | Head (M) | Tuner (M) | Head (M) | Tuner (M) | Head (M) | ||
| CIFAR100-IR100 | 4 | 0.249 | 0.076 | 0.101 | 0.076 | 0.101 | 0.076 |
| FUSRS | 4 | 0.197 | 0.005 | 0.136 | 0.005 | 0.136 | 0.005 |
| DOTA | 4 | 0.249 | 0.011 | 0.101 | 0.011 | 0.101 | 0.011 |
| Places-LT | 8 | 0.470 | 0.280 | 0.175 | 0.280 | 0.175 | 0.280 |
| iNat2018 | 256 | 9.437 | 6.253 | 4.749 | 6.253 | 4.749 | 6.253 |
| Position | CIFAR100 | iNat2018 | Places-LT | Avg tail | Avg | ||||||
| Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | |||
| K | 87.3 | 84.6 | 84.0 | 63.2 | 72.3 | 73.3 | 46.5 | 47.0 | 46.4 | 67.9 | 67.9 |
| Q | 87.4 | 84.3 | 84.1 | 63.3 | 72.7 | 73.7 | 46.7 | 47.2 | 46.6 | 68.1 | 68.1 |
| V | 91.8 | 88.1 | 85.6 | 65.9 | 74.8 | 75.8 | 47.9 | 47.7 | 45.7 | 69.0 | 70.1 |
| Out | 91.8 | 88.2 | 85.4 | 65.8 | 75.3 | 75.3 | 47.5 | 47.8 | 46.0 | 68.9 | 70.1 |
| MLP1 | 92.6 | 87.9 | 85.6 | 66.5 | 75.6 | 76.1 | 48.3 | 47.9 | 45.9 | 69.2 | 70.5 |
| Intra-Attn Positions | CIFAR100 | iNat2018 | Places-LT | Avg tail | Avg | |||||||||
| Q | V | K | Out | Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | ||
| ✓ | ✓ | 91.2 | 87.9 | 86.8 | 66.5 | 75.4 | 76.9 | 48.4 | 47.6 | 45.4 | 69.70 | 69.57 | ||
| ✓ | ✓ | ✓ | 91.6 | 87.7 | 86.3 | 66.0 | 75.7 | 76.7 | 48.3 | 47.7 | 46.3 | 69.77 | 69.59 | |
| ✓ | ✓ | ✓ | ✓ | 92.2 | 87.7 | 86.3 | 66.7 | 75.6 | 76.9 | 48.6 | 47.9 | 45.6 | 69.60 | 69.72 |
| Intra-FFN Positions | CIFAR100 | iNat2018 | Places-LT | Avg tail | Avg | |||||||
| MLP1 | MLP2 | Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | ||
| ✓ | 92.6 | 87.9 | 85.6 | 66.5 | 75.6 | 76.1 | 48.3 | 47.9 | 45.9 | 69.20 | 69.60 | |
| ✓ | 92.3 | 88.1 | 86.6 | 65.9 | 75.1 | 76.1 | 47.9 | 47.9 | 45.7 | 69.47 | 69.51 | |
| ✓ | ✓ | 92.4 | 87.9 | 86.8 | 67.9 | 76.3 | 76.7 | 48.4 | 48.3 | 45.7 | 69.73 | 70.04 |
| Method | CIFAR100 | iNat2018 | Places-LT | Avg | ||||||
| Head | Med | Tail | Head | Med | Tail | Head | Med | Tail | ||
| LoRA | 91.2 | 87.9 | 86.8 | 55.8 | 64.0 | 64.7 | 47.5 | 47.8 | 46.1 | 66.5 |
| AdaptFormer | 92.3 | 88.3 | 86.8 | 68.7 | 76.7 | 78.0 | 49.1 | 47.9 | 45.1 | 71.1 |
| LoRA+AdaptFormer | 92.5 | 88.4 | 87.0 | 67.9 | 77.2 | 77.8 | 48.6 | 48.0 | 45.3 | 71.2 |
| Method | IN21K DOTA | ||
| Head | Med | Tail | |
| LIFT [ 49 ] | 93.1 | 94.9 | 90.2 |
| w/ Ours | 93.2 | 94.7 | 90.6 |
| LoTR [ 4 ] | 93.0 | 93.1 | 90.3 |
| w/ Ours | 93.1 | 92.9 | 91.1 |
Parameter-Efficient Fine-Tuning
Parameter-efficient fine-tuning adapts pretrained models by updating small parameter subsets or lightweight modules instead of all weights.
See all 596 papers