Frustratingly Easy Transferability Estimation
About
Transferability estimation has been an essential tool in selecting a pre-trained model and the layers in it for transfer learning, to transfer, so as to maximize the performance on a target task and prevent negative transfer. Existing estimation algorithms either require intensive training on target tasks or have difficulties in evaluating the transferability between layers. To this end, we propose a simple, efficient, and effective transferability measure named TransRate. Through a single pass over examples of a target task, TransRate measures the transferability as the mutual information between features of target examples extracted by a pre-trained model and their labels. We overcome the challenge of efficient mutual information estimation by resorting to coding rate that serves as an effective alternative to entropy. From the perspective of feature representation, the resulting TransRate evaluates both completeness (whether features contain sufficient information of a target task) and compactness (whether features of each class are compact enough for good generalization) of pre-trained features. Theoretically, we have analyzed the close connection of TransRate to the performance after transfer learning. Despite its extraordinary simplicity in 10 lines of codes, TransRate performs remarkably well in extensive evaluations on 32 pre-trained models and 16 downstream tasks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Transferability Estimation | PACS v1 (test) | Mean Spearman Correlation0.1829 | 16 | |
| Transfer Performance Prediction | Amazon Reviews (test) | Mean Spearman Correlation6.29 | 16 | |
| Sentiment Analysis | Amazon Reviews 31 | MCI19.48 | 16 | |
| Transferability Estimation | DomainNet | MCI (%pt.)12.71 | 16 | |
| Transferability Estimation | DomainNet v1 (test) | Mean Spearman Correlation-21.9 | 16 | |
| Transferability Estimation | ImageNet-C Severity 1 1.0 | Mean Correlation Improvement (MCI)10.57 | 16 | |
| Transferability Prediction | PACS | MCI (%pt.)-27.38 | 16 | |
| Sentiment Analysis | EuroEval 34 | MCI (%pt.)4.1 | 16 | |
| Transfer Performance Prediction | EuroEval (test) | Mean Spearman Correlation2.1 | 16 | |
| Transferability Prediction | OfficeHome | MCI-3.12 | 16 |