Representation Similarity Analysis for Efficient Task Taxonomy & Transfer Learning

Kshitij Dwivedi, Gemma Roig

Introduction

Transfer learning is a cornerstone of modern computer vision, where models pre-trained on large-scale datasets like ImageNet are fine-tuned for specific target tasks. However, as the library of available pre-trained models grows, selecting the optimal source task (e.g., depth estimation vs. object classification) for a new target domain becomes a significant challenge.

Overview of task taxonomy and model selection for transfer learning.

The traditional approach, exemplified by the "Taskonomy" project, involves training thousands of transfer functions to empirically measure task relationships. While effective, this method is computationally prohibitive. This paper introduces a more efficient alternative using Representation Similarity Analysis (RSA)—a technique adapted from computational neuroscience—to map task relationships without the need for additional training.

Methodology: Representation Similarity Analysis (RSA)

The core idea is to compare the internal representations of pre-trained models to determine their relatedness. The process involves two main steps:

  1. Representational Dissimilarity Matrix (RDM) Construction: A small set of images (e.g., 500) is passed through a pre-trained model. For every pair of images, a dissimilarity score is calculated (typically $1 - \text{Pearson correlation}$) based on the model's internal features. This RDM serves as a unique "fingerprint" of how the model perceives the data.
  2. Task Similarity Comparison: To determine the relationship between two tasks, their respective RDMs are compared using Spearman’s correlation. If two models produce similar RDMs, they are considered to have related representational spaces, suggesting high transferability.
The RSA process: comparing RDMs of two DNNs to compute a task similarity score.

Experimental Setup

The authors validated their approach using the Taskonomy Dataset, which contains 4 million indoor scene images annotated for 26 different tasks. They also tested on Pascal VOC to evaluate the method's robustness to domain shift—moving from controlled indoor environments to general-purpose imagery.

Key Insights and Results

The study yielded several critical findings:

  • Representations vs. Labels: Internal features are far more informative for task similarity than raw labels, as they capture the underlying geometry and semantics required for the task.
  • Model Size Invariance: RDMs remain remarkably consistent across different model architectures (e.g., ResNet-50 vs. smaller variants). This allows for "probing" a new task with a lightweight model to find the best high-capacity pre-trained source.
  • Domain Shift Awareness: RSA successfully identifies when a nominally "different" task is a better source than a "same-name" task from a different domain. For instance, on Pascal VOC semantic segmentation, models trained on object classification were found to be better starting points than the Taskonomy semantic segmentation model due to domain mismatch.
  • Efficiency and Accuracy: The RSA method achieved a high correlation ($\rho = 0.70$) with empirical transfer performance and correctly placed the best source model in the Top-5 recommendations for 16 out of 17 tasks.

Conclusion

RSA provides a computationally efficient framework for building task taxonomies and selecting pre-trained models. While the method is sensitive to the choice of network layer—with deeper layers capturing more task-specific information—it significantly reduces the overhead of transfer learning. Future work may explore applying RSA to optimize multi-task learning architectures by grouping tasks with similar representational requirements.

Reference: Dwivedi, K., & Roig, G. (2019). Representation Similarity Analysis for Efficient Task Taxonomy & Transfer Learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

Summary updated

BibTeX
@inproceedings{dwivedi2019representation,
  author = {Kshitij Dwivedi and Gemma Roig},
  title = {{Representation Similarity Analysis for Efficient Task Taxonomy \& Transfer Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.01267},
}
Figure