An empirical study of task and feature correlations in the reuse of pre-trained models
Jama Hussein Mohamud, Willie Brink
TL;DR
This work investigates how task and feature correlations influence the reuse of pre-trained models. It develops both synthetic and real-world experiments to show that Bob's transfer performance increases with task and feature correlation, and that meaningful transfer can occur even at zero correlation due to network initialization and architecture. The study introduces a controllable data-generation framework using concatenated images and analyzes layer-wise fine-tuning and attribution to understand where transfer comes from. Real-world case studies with dog-vs-cat and Open Images demonstrate semantic transfer under correlated tasks, with clear guidance on when to fine-tune more layers. Overall, the findings offer practical insights for selecting backbones and fine-tuning strategies based on task similarity and data structure.
Abstract
Pre-trained neural networks are commonly used and reused in the machine learning community. Alice trains a model for a particular task, and a part of her neural network is reused by Bob for a different task, often to great effect. To what can we ascribe Bob's success? This paper introduces an experimental setup through which factors contributing to Bob's empirical success could be studied in silico. As a result, we demonstrate that Bob might just be lucky: his task accuracy increases monotonically with the correlation between his task and Alice's. Even when Bob has provably uncorrelated tasks and input features from Alice's pre-trained network, he can achieve significantly better than random performance due to Alice's choice of network and optimizer. When there is little correlation between tasks, only reusing lower pre-trained layers is preferable, and we hypothesize the converse: that the optimal number of retrained layers is indicative of task and feature correlation. Finally, we show in controlled real-world scenarios that Bob can effectively reuse Alice's pre-trained network if there are semantic correlations between his and Alice's task.
