Taskonomy: Disentangling Task Transfer Learning

Amir Roshan Zamir, Alexander Sax, William B. Shen, Leonidas J. Guibas, Jitendra Malik, Silvio Savarese

TL;DR

This paper introduces "Taskonomy," a computational framework that maps the intricate relationships between various visual tasks. By discovering a "taxonomic map" of task transferability, they demonstrate how to significantly reduce the need for labeled data by intelligently reusing learned representations, achieving substantial performance gains with less supervision.

What Problem Does This Paper Address?

The field of computer vision has made incredible strides by tackling individual tasks in isolation, often relying on massive amounts of task-specific labeled data. However, this approach ignores the inherent, often non-obvious, relationships between different visual tasks. For instance, understanding surface normals might intuitively help with depth estimation, but the exact nature and strength of such connections are not well-understood. This siloing of tasks leads to inefficient learning, requiring each new task or a comprehensive system to be trained from scratch, demanding immense computational resources and labeled data. The paper aims to computationally discover and leverage this underlying structure of visual task dependencies to enable more efficient and data-light learning.

Methods

The core of Taskonomy is a four-step computational process:

  1. Task-Specific Modeling: They first train individual, fully supervised neural networks (encoder-decoder architectures) for each task in their dictionary. The encoder is designed to extract rich representations, while the decoder is kept smaller to focus on learning the specific task output.
  2. Transfer Modeling: For every possible pair of source and target tasks, they train a "transfer function." This function is a small readout network that learns to map the frozen representations from the source task's encoder to the target task's labels. They also explore "higher-order transfers" where multiple source task representations are combined to predict a target task output.
  3. Task Affinity Normalization (AHP): To compare the performance of different transfers, they use the Analytic Hierarchy Process (AHP). This method normalizes the raw transfer performance metrics (which can have vastly different scales) into a consistent affinity matrix, reflecting the relative strength of each transfer.
  4. Global Taxonomy Computation (BIP): Finally, they use a Binary Integer Programming (BIP) formulation to select an optimal global transfer policy. This policy considers a given supervision budget (the number of tasks to train from scratch) and aims to maximize the collective performance across all target tasks by selecting the best combination of source tasks and transfer functions.

Datasets

The paper introduces a newly created dataset of 4 million images of indoor scenes from approximately 600 buildings. This dataset is unique because it provides annotations for all tasks in their dictionary on the same set of registered and aligned images. This ensures that transferability is not influenced by variations in input data. For tasks requiring labels (like scene classes), they generated them using Knowledge Distillation. They also evaluated their findings on the ImageNet and MIT Places datasets to assess dataset dependency.

Key Insights and Ideas

  • Task relationships are non-trivial and computationally discoverable: The paper moves beyond human intuition to computationally map the complex web of dependencies between visual tasks, revealing surprising connections.
  • A "taxonomic map" of visual tasks is feasible: They demonstrate that a structured representation of task transferability can be learned, providing a principled way to navigate the space of visual tasks.
  • Intelligent transfer learning significantly reduces supervision needs: By leveraging the discovered taxonomy, they show it's possible to achieve high performance on many tasks with substantially less labeled data than traditional methods.
  • Higher-order transfers can be crucial: Combining representations from multiple source tasks can unlock even better transfer performance than single-source transfers.
  • The structure is surprisingly robust: The learned task taxonomy shows good generalization to novel, out-of-dictionary tasks and remains stable even when changing aspects of the training process or datasets.

Key Results

  • The Taskonomy framework can achieve good performance on a set of tasks with a supervision budget significantly smaller than the number of tasks, reducing labeled data requirements by roughly 2/3 while maintaining performance.
  • The computed taxonomy outperforms random transfer policies by a large margin, demonstrating the significance of the discovered structure.
  • When generalizing to novel tasks, the Taskonomy-suggested policies show a significant win rate against various self-supervised methods and ImageNet features.
  • The learned taxonomy exhibits a notable correlation (Spearman's rho of 0.857 on Places and 0.823 on ImageNet) when evaluated on external datasets, suggesting the discovered structure is not entirely dataset-specific.

Limitations and Future Work

The authors acknowledge several limitations:

  • Model Dependence: The findings are based on neural networks and the specific datasets used. While they tested for stability, the taxonomy is inherently tied to the chosen model class and data.
  • Compositionality: The current framework models common human-defined tasks. A more compositional approach, viewing these tasks as compositions of latent subtasks, could offer deeper insights.
  • Space Regularity: The dense task space is sampled. While robust, formal studies on the regularity of the computed space are needed for guaranteed generalization.
  • Lifelong Learning: The current modeling is done "in one go." Extending this to systems that continuously learn and adapt their structure over time is a promising future direction.

They also suggest that the framework can be extended to incorporate expansion mechanisms for new beliefs in scenarios like lifelong learning.

Summary updated

BibTeX
@inproceedings{zamir2018taskonomy,
  author = {Amir Roshan Zamir and Alexander Sax and William B. Shen and Leonidas J. Guibas and Jitendra Malik and Silvio Savarese},
  title = {{Taskonomy: Disentangling Task Transfer Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1109/cvpr.2018.00391},
}
Figure