TL;DR
Gradient-based Parameter Selection (GPS) is a new parameter-efficient fine-tuning (PEFT) method that achieves state-of-the-art performance by tuning less than 1% of a model's existing parameters. Unlike popular methods like LoRA or Adapters, GPS introduces zero additional parameters and zero extra computational cost during inference, while outperforming full fine-tuning on diverse tasks.
What Problem Does This Paper Address?
As pre-trained models grow in size, "full fine-tuning"—updating every single parameter for every new task—has become prohibitively expensive in terms of memory and storage.
Existing Parameter-Efficient Fine-Tuning (PEFT) methods try to solve this by adding a small number of trainable parameters (like "prompts" in VPT or "bottleneck layers" in Adapters). However, these approaches have three main drawbacks:
- Inference Overhead: They often increase the computational cost during the actual use of the model.
- Architectural Rigidity: Many methods are designed specifically for Transformers and don't easily translate to CNNs or other architectures.
- Structural Disruption: Adding new modules can disrupt the pre-trained internal representations.
The authors ask: Can we achieve high performance by simply picking and tuning the "right" existing parameters instead of adding new ones?
Methods
The authors propose Gradient-based Parameter Selection (GPS), which operates in two distinct stages:
- Parameter Selection: For a specific downstream task, the model calculates the gradients of the parameters. Instead of standard Cross-Entropy loss, they use Supervised Contrastive Loss (SCL) to get "head-free" gradients that don't depend on a randomly initialized classification layer.
- Masked Fine-tuning: Once the important parameters are identified, a binary mask is created. During training, only these selected parameters are updated; the rest remain frozen.
Crucially, GPS employs Neuron-level Granularity. It doesn't just pick the top gradients from the whole network; it selects the top-K input connections for every single neuron. This ensures that the "tuning" is distributed throughout the entire depth of the network, allowing the model to adjust both low-level features and high-level abstractions without adding new structures.
Key Insights and Ideas
- Granularity is King: The authors found that selecting parameters at the neuron level is significantly better than selecting them at the layer or network level. By ensuring every neuron can "nudge" its activation, the model maintains the flexibility to adapt to very different data distributions.
- The "Head" Problem: Standard fine-tuning gradients are often noisy because they are backpropagated through a randomly initialized final layer. Using Supervised Contrastive Loss (SCL) bypasses this, providing a much cleaner signal for which parameters are actually important for the task's features.
- Sparse Regularization: Mathematically, GPS can be viewed as a form of sparse regularized fine-tuning. This explains why it often generalizes better than full fine-tuning, which is prone to overfitting on small downstream datasets.
- Model Agnostic: Because it operates on the fundamental level of weights and neurons, GPS works equally well on Vision Transformers (ViT, Swin) and modern CNNs (ConvNeXt) without any custom "adapter" design.
Key Results
GPS was evaluated across a massive suite of 27 visual tasks, including Fine-Grained Visual Classification (FGVC) and the Visual Task Adaptation Benchmark (VTAB-1k).
- Superior Accuracy: On the FGVC benchmark, GPS achieved 91.78% accuracy compared to 88.54% for full fine-tuning, while updating only 0.77% of parameters.
- Massive Gains on VTAB: On the 19-task VTAB benchmark, GPS improved accuracy by 9.61% over full fine-tuning (75.18% vs 65.57%) using only 0.25% of parameters.
Beyond classification, GPS showed significant boosts in segmentation. When applied to the Segment Anything Model (SAM) for medical imaging, GPS improved mDice by 17% and mIoU by 16.8%. Most importantly, GPS maintains exactly zero extra cost during inference compared to the original pre-trained model.
Limitations and Future Work
While GPS performed excellently on most benchmarks, it lagged slightly behind the SSF method on the ImageNet-C (corruption) dataset, suggesting room for improvement in handling noisy data. Additionally, the authors note that they haven't yet fully exploited the potential for parameter sharing in multitask learning environments, as GPS currently selects distinct parameters for each individual task.
Summary updated