Not All Models Are Equal: Predicting Model Transferability in a Self-challenging Fisher Space

Wenqi Shao, Xun Zhao, Yixiao Ge, Zhaoyang Zhang, Lei Yang +3 more
7/7/2022
45 citations
cs.LGcs.AI

Official code: TencentARC/SFDA (21 stars, Python, last commit 2022-07-20).

Abstract

This paper addresses an important problem of ranking the pre-trained deep neural networks and screening the most transferable ones for downstream tasks. It is challenging because the ground-truth model ranking for each task can only be generated by fine-tuning the pre-trained models on the target dataset, which is brute-force and computationally expensive.

Show full abstract

Recent advanced methods proposed several lightweight transferability metrics to predict the fine-tuning results. However, these approaches only capture static representations but neglect the fine-tuning dynamics. To this end, this paper proposes a new transferability metric, called \textbf{S}elf-challenging \textbf{F}isher \textbf{D}iscriminant \textbf{A}nalysis (\textbf{SFDA}), which has many appealing benefits that existing works do not have. First, SFDA can embed the static features into a Fisher space and refine them for better separability between classes. Second, SFDA uses a self-challenging mechanism to encourage different pre-trained models to differentiate on hard examples. Third, SFDA can easily select multiple pre-trained models for the model ensemble. Extensive experiments on $33$ pre-trained models of $11$ downstream tasks show that SFDA is efficient, effective, and robust when measuring the transferability of pre-trained models. For instance, compared with the state-of-the-art method NLEEP, SFDA demonstrates an average of $59.1$\% gain while bringing $22.5$x speedup in wall-clock time. The code will be available at \url{https://github.com/TencentARC/SFDA}.

View on arXivView PDF

Code Implementations(1)

TencentARC/SFDAOfficial100%
210PythonJun 16, 20224 years ago

Similar Papers

Cite this paper

@article{shao2022models,
  title  = {Not All Models Are Equal: Predicting Model Transferability in a Self-challenging Fisher Space},
  author = {Wenqi Shao and Xun Zhao and Yixiao Ge and Zhaoyang Zhang and Lei Yang and Xiaogang Wang and Ying Shan and Ping Luo},
  year   = {2022},
  eprint = {2207.03036},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.03036v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.03036.svg)](https://codeofpaper.com/paper/2207.03036)

Discussion