TL;DR
This paper introduces TR-PTS, a novel framework for efficient fine-tuning of large Vision Transformer (ViT) models. By adaptively selecting task-relevant parameters and tokens, TR-PTS significantly reduces computational cost and memory usage while achieving state-of-the-art performance, outperforming full fine-tuning and other parameter-efficient methods.
What Problem Does This Paper Address?
Large pre-trained Vision Transformers (ViTs) have achieved remarkable success in various computer vision tasks. However, fine-tuning these massive models for specific downstream tasks is computationally expensive and requires significant storage. Traditional full fine-tuning updates all model parameters, which is impractical for many applications. Parameter-Efficient Fine-Tuning (PEFT) methods aim to mitigate this by updating only a subset of parameters or introducing lightweight modules. Yet, many existing PEFT methods are task-agnostic, failing to fully exploit task-specific adaptations, leading to suboptimal efficiency and performance. This paper addresses the need for a more intelligent and task-aware approach to fine-tuning that balances computational efficiency with high accuracy.
Methods
TR-PTS introduces a unified framework that combines two key strategies:
- Task-Relevant Parameter Selection: Instead of relying on gradient magnitudes, which can be noisy, TR-PTS uses the Fisher Information Matrix (FIM) to quantify the sensitivity of parameters to task-specific adaptations. This allows for a layer-wise allocation of trainable parameters, prioritizing layers that are more critical for the target task. A neuron-level selection strategy further refines this by ensuring each neuron retains a subset of high-FIM parameters.
- Task-Relevant Token Selection: This strategy leverages attention scores from the
[CLS]token to identify and retain the most informative image tokens. Less informative tokens are then merged via weighted averaging. This process is applied progressively, with token reduction being more aggressive in layers that have fewer task-relevant parameters, creating a synergistic effect with parameter selection.
By jointly optimizing these two components, TR-PTS ensures that the model focuses its computational resources on the most discriminative information for the given task.
Datasets
The paper evaluates TR-PTS on two main benchmarks:
- FGVC (Fine-Grained Visual Classification): This benchmark includes five downstream tasks: CUB-200-2011, NABirds, Oxford Flowers, Stanford Dogs, and Stanford Cars.
- VTAB-1k (Visual Task Adaptation Benchmark): This benchmark comprises 19 visual classification tasks grouped into Natural, Specialized, and Structured sets.
The models are pre-trained on ImageNet-21k.
Key Insights and Ideas
- Task-Awareness is Crucial: The paper strongly emphasizes that both parameter importance and token relevance are highly task-dependent. A one-size-fits-all approach to fine-tuning is suboptimal.
- FIM for Parameter Importance: Using the Fisher Information Matrix is a more robust way to identify task-relevant parameters compared to gradient-based methods, as it captures parameter sensitivity more effectively.
- Synergy Between Parameter and Token Selection: The paper highlights a crucial insight: layers with fewer task-relevant parameters often encode less informative tokens. TR-PTS exploits this by applying token reduction more aggressively in parameter-sparse layers, creating a powerful feedback loop for efficiency.
- Progressive Refinement: Applying token selection and merging progressively through the layers of the ViT allows the model to focus on more abstract and critical features as the sequence is processed, reducing computational overhead in deeper layers.
Key Results
- State-of-the-Art Performance: TR-PTS achieves state-of-the-art performance on both FGVC and VTAB-1k benchmarks.
- Significant Efficiency Gains:
- On FGVC, TR-PTS surpasses full fine-tuning by 3.40% accuracy while tuning only 0.60% of parameters.
- On VTAB-1k, TR-PTS achieves a 10.35% accuracy improvement over full fine-tuning, tuning only 0.34% of parameters.
- Reduced Computational Cost: TR-PTS demonstrates the lowest FLOPs and memory usage among compared methods, with competitive test times.
- Layer-wise Adaptation: Analysis shows that TR-PTS dynamically allocates parameters based on layer importance, with different datasets prioritizing different layers (e.g., Sun397 relies heavily on early layers, while Flower102 focuses on later ones).
Limitations and Future Work
- Limitations: The paper notes that while TR-PTS achieves significant gains, fine-grained classification still presents inherent challenges due to subtle inter-class differences. The effectiveness of token selection is also shown to be sensitive to the position within the network, with aggressive pruning in highly task-relevant layers potentially harming performance.
- Future Work: The authors suggest extending TR-PTS to other vision tasks like segmentation and detection. They also propose exploring adaptive token selection across Transformer layers to further enhance efficiency and generalization.
Summary updated