Skip to main content
QUICK REVIEW

[Paper Review] TransTailor: Pruning the Pre-trained Model for Improved Transfer Learning

Bingyan Liu, Yifeng Cai|arXiv (Cornell University)|Mar 2, 2021
Domain Adaptation and Few-Shot LearningComputer Science28 references6 citations
TL;DR

TransTailor proposes a novel transfer learning method that improves performance by pruning pre-trained models based on target-aware weight importance, rather than relying solely on fine-tuning weights. By iteratively pruning and fine-tuning using task-specific importance scores, TransTailor generates a smaller, optimized sub-model that achieves state-of-the-art accuracy with reduced FLOPs, outperforming standard fine-tuning and pruning baselines on multiple datasets.

ABSTRACT

The increasing of pre-trained models has significantly facilitated the performance on limited data tasks with transfer learning. However, progress on transfer learning mainly focuses on optimizing the weights of pre-trained models, which ignores the structure mismatch between the model and the target task. This paper aims to improve the transfer performance from another angle - in addition to tuning the weights, we tune the structure of pre-trained models, in order to better match the target task. To this end, we propose TransTailor, targeting at pruning the pre-trained model for improved transfer learning. Different from traditional pruning pipelines, we prune and fine-tune the pre-trained model according to the target-aware weight importance, generating an optimal sub-model tailored for a specific target task. In this way, we transfer a more suitable sub-structure that can be applied during fine-tuning to benefit the final performance. Extensive experiments on multiple pre-trained models and datasets demonstrate that TransTailor outperforms the traditional pruning methods and achieves competitive or even better performance than other state-of-the-art transfer learning methods while using a smaller model. Notably, on the Stanford Dogs dataset, TransTailor can achieve 2.7% accuracy improvement over other transfer methods with 20% fewer FLOPs.

Motivation & Objective

  • To address the structural mismatch between pre-trained models and target tasks in transfer learning, which existing methods ignore by only tuning weights.
  • To improve transfer performance by optimizing both model structure and weights, rather than treating model architecture as fixed.
  • To develop a pruning strategy that tailors the pre-trained model's architecture to the specific target task, rather than the source task.
  • To generate an optimal, task-specific sub-model through iterative pruning and fine-tuning guided by target-aware filter importance.
  • To demonstrate that model structure tuning via pruning can yield better performance than standard fine-tuning, even with smaller models.

Proposed method

  • Proposes a learning-based method to estimate target-aware filter importance without relying on heuristics or source-task metrics.
  • Introduces a transformation process to convert source-task importance scores into target-task-aware importance for pruning decisions.
  • Applies iterative pruning and fine-tuning, where each step uses the updated importance scores to guide the next round of pruning and optimization.
  • Uses the computed target-aware importance to guide both the pruning process and the subsequent fine-tuning, ensuring the pruned model remains effective for the target task.
  • Employs a search strategy that identifies the optimal sub-model by balancing accuracy and model size, focusing on task-specific performance rather than compression ratio.
  • Applies the method across multiple architectures (ResNet-101, VGG-16, EfficientNet-B0) and datasets to validate generalization.

Experimental results

Research questions

  • RQ1Can pruning the pre-trained model based on target-aware importance lead to better transfer learning performance than standard fine-tuning?
  • RQ2Does structure tuning via pruning mitigate the structural mismatch between source and target tasks in transfer learning?
  • RQ3How does the performance of a pruned, task-optimized sub-model compare to standard fine-tuning and other pruning baselines across different model architectures?
  • RQ4What patterns emerge in filter pruning distribution across layers when the optimal sub-model is generated for different target tasks?
  • RQ5Can the proposed method achieve superior accuracy with fewer FLOPs compared to state-of-the-art transfer learning methods?

Key findings

  • On the Stanford Dogs dataset, TransTailor achieves a 2.7% accuracy improvement over other transfer methods while reducing FLOPs by 20%.
  • With a 50% FLOPs reduction, TransTailor outperforms baselines by 8.1% on the Stanford Dogs dataset, highlighting its advantage in high-compression scenarios.
  • On VGG-16, TransTailor consistently outperforms both standard fine-tuning and full fine-tuning while reducing FLOPs by 20% to 50%.
  • On EfficientNet-B0, TransTailor achieves 7.0% higher accuracy than standard fine-tuning and 0.7% higher than full fine-tuning with 20% fewer FLOPs.
  • The pruned filters are not uniformly distributed: shallow layers retain more filters due to their general feature representation, while deeper layers show more pruning, especially in the last convolutional layer.
  • On ResNet-101, the filter pruning distribution lacks the regularity seen in VGG-16, likely due to the ensemble nature of residual blocks, which diminishes the assumption of shared low-level features in shallow layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.