NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Low-Cost Transfer Learning of Face Tasks

Thrupthi Ann John, Isha Dua, Vineeth N. Balasubramanian, C. V. JawahararXiv 2019

TL;DR

This paper introduces a computationally efficient method to transfer knowledge from a pre-trained face recognition network to other face-related tasks (like age, gender, or pose estimation) without traditional, resource-intensive transfer learning. By analyzing which filters in the network encode information about these other tasks, they can effectively prune the network, leading to significant reductions in size and computation while maintaining performance.

What Problem Does This Paper Address?

Deep neural networks, particularly for face recognition, learn powerful feature representations. However, understanding what these learned features represent and how they can be repurposed for related tasks is challenging. Traditional transfer learning often involves fine-tuning large portions of a pre-trained network, which can be computationally expensive and time-consuming, especially when dealing with limited data for the target task. This paper addresses the need for a more efficient way to leverage existing, powerful face recognition models for a variety of other face-related tasks, aiming to reduce computational overhead and data requirements.

Methods

The core of the paper's methodology lies in analyzing the internal representations of a pre-trained face recognition network (specifically VGG-Face). Instead of traditional fine-tuning, they propose a "low-cost transfer learning" approach:

  1. Filter Analysis: They hypothesize that individual filters within the convolutional layers of a face recognition network encode information about various face attributes (e.g., age, gender, pose).
  2. Linear Regression for Transfer: For a given satellite task (e.g., age estimation), they extract the activation maps from a specific convolutional layer of the pre-trained network. These activation maps are then globally averaged to form a feature vector. A simple linear regression model is trained using these feature vectors to predict the labels for the satellite task. This bypasses the need for complex network architectures or extensive fine-tuning.
  3. Task-Specific Pruning: By analyzing the performance of the linear regression model with varying numbers of filters from each layer, they identify which filters are most informative for a given satellite task. This allows them to prune away redundant filters, creating a smaller, more efficient network tailored to the specific task. They use LASSO (L1-regularized regression) to select a subset of filters.

Datasets

The paper utilizes several datasets:

  • CelebA: Used for training and evaluating identity, gender, facial hair, and accessories tasks.
  • IMDB-WIKI: Used to generate ground truth for age estimation.
  • FER2013: Used for emotion (valence) prediction.
  • Annotated Facial Landmarks in the Wild (AFLW): Used for head pose (yaw) estimation.
  • AgeDB: Used for age prediction.
  • AFEW-VA: Used for emotion (valence) estimation.

Key Insights and Ideas

  • Filters Encode Diverse Information: A single face recognition network, trained on a large dataset, implicitly learns filters that capture information relevant to a wide range of other face-related tasks, even those it wasn't explicitly trained for.
  • Linear Models Suffice for Transfer: Surprisingly, simple linear regression models applied to the activation maps of pre-trained convolutional layers can achieve performance comparable to traditional transfer learning methods for related tasks.
  • Information is Concentrated: Crucially, the information for many satellite tasks is encoded in a relatively small subset of filters within each layer. This sparsity is key to enabling significant network pruning.
  • Task Relationships Vary: Not all face tasks are equally transferable. Face recognition models are good at predicting gender, facial hair, and accessories. However, emotion detection appears to be more independent, with models trained on it being less useful for transferring to other tasks.
  • Pruning is Effective: By identifying and removing filters that are not informative for a specific satellite task, the network can be drastically compressed without a significant loss in performance.

Key Results

  • Speed-up: The proposed low-cost transfer learning method is significantly faster than traditional transfer learning, achieving a speed-up of up to 78X (10 seconds vs. 780 seconds for a single task).
  • Compression: Pruning based on filter importance leads to substantial reductions in network size (up to 98%) and computational complexity (up to 60-78%).
  • Performance: The pruned networks achieve accuracies comparable to networks trained from scratch or using traditional transfer learning, with only a slight reduction in performance (e.g., a 1.93% RMSE increase for valence with VGG-Face).
  • Generalizability: The method demonstrates effectiveness across different tasks (gender, age, pose, emotion, facial hair, accessories) and even different architectures (VGG-Face and LightCNN).

Limitations and Future Work

  • Threshold Selection: The paper notes that selecting the optimal threshold for pruning (to balance compression and accuracy) is an important consideration, and they found 0.01 to be a good general trade-off.
  • Layer Importance Varies: The best layer for extracting features for transfer varies depending on the satellite task. For example, head pose and gender are best learned from later layers (like layer 13), while emotion might be better represented in earlier layers (like layer 10).
  • Future Directions: The authors suggest that this filter-level understanding can be used for more targeted network design, such as creating identity-agnostic emotion recognition models by removing identity-specific filters. They also highlight the potential for this approach in scenarios with very limited data for the target task.

Summary updated

Abstract

Do we know what the different filters of a face network represent? Can we use this filter information to train other tasks without transfer learning? For instance, can age, head pose, emotion and other face related tasks be learned from face recognition network without transfer learning? Understanding the role of these filters allows us to transfer knowledge across tasks and take advantage of large data sets in related tasks. Given a pretrained network, we can infer which tasks the network generalizes for and the best way to transfer the information to a new task.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Unspecified face-related tasksFilter-reuse methodnetwork size reduction95\%compressed
Source quote
L6: We demonstrate a computationally inexpensive algorithm to reuse the filters of a face network for a task it was not trained for. Our analysis proves these attributes can be extracted with an accuracy comparable to what is obtained with transfer learning, but 10 times faster. We show that the information about other tasks is present in relatively small number of filters. We use these insights to do task specific pruning of a pretrained network. Our method gives significant compression ratios with reduction in size of 95% and computational reduction of 60%
Unspecified face-related tasksFilter-reuse methodcomputational cost reduction60\%compressed
Source quote
L6: We demonstrate a computationally inexpensive algorithm to reuse the filters of a face network for a task it was not trained for. Our analysis proves these attributes can be extracted with an accuracy comparable to what is obtained with transfer learning, but 10 times faster. We show that the information about other tasks is present in relatively small number of filters. We use these insights to do task specific pruning of a pretrained network. Our method gives significant compression ratios with reduction in size of 95% and computational reduction of 60%
Face tasks (specific task not stated for this maximum)Task-specific pruning of a pretrained VGG-Face networkcomputational complexity reduction78\%compressed · backbone=VGG-Face
Source quote
L21: Our framework is pivoted on understanding the role and information contained in different filters in a convolutional layer with respect to other tasks that the base network was not originally trained for. Consider the last convolutional layer of the trained VGG-Face \cite{VGGFace} model which has 512 convolutional filters. Different filters contain information about different face tasks. Figure \ref{fig:venndiagram} shows the distribution of these tasks in the 512 filters. We observe that while many filters are not relevant for other tasks, some filters are fairly general and can be easily adapted to solve other face tasks. Complementarily, we observe that when finetuning a pretrained network for a different face task, the task-specific filters (that do not show relevance for use in the other task) can be removed, resulting in a highly streamlined network without much reduction in performance. We provide a pruning algorithm that removes these redundant filters so that the network can be used for a task it was not originally trained for. We achieve up to 98% reduction in size and 78% reduction in computational complexity with comparable performance.
BibTeX
@misc{john2019low,
  author = {Thrupthi Ann John and Isha Dua and Vineeth N. Balasubramanian and C. V. Jawahar},
  title = {{Low-Cost Transfer Learning of Face Tasks}},
  year = {2019},
  eprint = {1901.02675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.02675},
}

Loading related content...

Figure