Introduction
Transfer learning—the practice of fine-tuning a pre-trained model for a new target task—is a cornerstone of modern deep learning. Despite its ubiquity, two critical questions often remain unanswered: Which pre-trained model is most suitable? and Which layer provides the optimal starting point for transfer?
Traditional methods for answering these questions, such as the Taskonomy framework, are computationally exhaustive, often requiring thousands of GPU hours and massive labeled datasets to calculate transferability scores. This paper introduces DEPARA (Deep Attribution gRAph), a novel, architecture-agnostic framework that quantifies knowledge transferability using only a small set of unlabeled "probe" images.
The DEPARA Framework
The core innovation of this work is the representation of a model's "knowledge" as a graph. Unlike previous methods that rely on internal feature embeddings—which can vary wildly between architectures—DEPARA uses input attributions to create a common language for comparison.
The construction process involves passing a set of unlabeled probe images through a model to generate two primary components:
- Nodes (Inclusiveness): Each node represents an attribution map (e.g., via GradientInput*) for a specific image. This captures what features the model prioritizes.
- Edges (Accessibility): Edges represent the topological relationships between these images in the model's embedding space, typically measured via cosine similarity.
By comparing the DEPARA graphs of two different models, researchers can derive a transferability metric that accounts for both the features the model "sees" and how it organizes that information.
Quantifying Transferability through Nodes and Edges
The authors argue that transferability depends on two pillars: Inclusiveness and Accessibility. Inclusiveness asks if the source model contains the features required by the target task, while Accessibility asks if the source model's internal logic is easy to reshape for that task.
As shown in the visualization above, different tasks (e.g., depth estimation vs. semantic segmentation) produce distinct attribution patterns and similarity structures. DEPARA captures these nuances, allowing for a principled comparison between models even if they have completely different architectures or were trained on different datasets.
Experimental Results and Efficiency
The effectiveness of DEPARA was validated using the Taskonomy benchmark, which includes 20 diverse computer vision tasks. Key findings include:
- High Predictive Accuracy: DEPARA’s predicted transferability scores achieved a Spearman’s correlation of 0.913 with actual fine-tuning results, significantly outperforming existing metrics like Representation Similarity Analysis (RSA).
- Computational Efficiency: While Taskonomy required thousands of GPU hours to map task relationships, DEPARA achieved comparable results in just 20 GPU hours.
- Layer Selection: Beyond model selection, DEPARA successfully identified the optimal layers for transfer in VGG-19 architectures, helping to avoid "negative transfer" where transferring deeper layers might actually degrade performance.
- Robustness: The framework proved robust to data distribution shifts, maintaining high performance even when probe images were drawn from datasets (like COCO) different from the training data.
Conclusion
DEPARA offers a scalable and efficient solution to the "black-box" problem of model selection in transfer learning. By leveraging attribution maps as a universal interface, it enables researchers to make informed decisions about model and layer selection without the need for expensive labeled data or massive compute clusters. Future work may explore more advanced attribution methods and automated hyperparameter tuning to further refine the sensitivity of the attribution graphs.
Summary updated