Dense Interspecies Face Embedding

Sejong Yang, Subin Jeon, Seonghyeon Nam, Seon Joo KimNeurIPS 2022

Introduction

While computer vision has achieved remarkable success in human face understanding thanks to massive, manually annotated datasets, animal faces remain a significant "low-resource" challenge. We lack the same volume of annotated data for dogs, cats, or wildlife. Dense Interspecies Face Embedding (DIFE) is a novel framework designed to bridge this gap by learning a shared, high-resolution feature space for faces across different species.

The authors identify three main hurdles in interspecies face understanding:

  1. Data Scarcity: A severe lack of labeled animal data compared to human datasets.
  2. Ambiguous Connections: The mathematical difficulty of mapping features across different geometries (e.g., mapping a human nose to a dog's snout).
  3. Extreme Variance: Huge differences in shape, fur texture, and style across species.

Existing methods like Continuous Surface Embedding (CSE) work for full bodies but are too coarse for the fine details of a face. DIFE aims to create a "universal language" for facial pixels across the animal kingdom, enabling precise facial keypoint transfer and image manipulation without requiring expensive, manually annotated animal datasets.

Methodology

To overcome the lack of manual labels, DIFE employs a multi-stage approach utilizing synthetic data and knowledge distillation:

  • Multi-Teacher Knowledge Distillation: The DIFE model (a student network) learns from two "teachers" simultaneously. The first teacher, CSE, provides geometric guidance, teaching the model how to associate different species in a common space. The second teacher, StyleGAN2, provides generative guidance, teaching fine-grained facial details like posture and expression.
  • Pseudo-Paired Data Synthesis: Because exact real-world pairs (e.g., a human and a dog making the exact same face) do not exist, the authors leverage StyleGAN2’s latent space. They find a latent code that generates an animal face with the same pose as a given human face, creating "pseudo-pairs" for training.
  • Semantic Matching Loss: Direct pixel-to-pixel matching fails due to extreme shape differences between species. To address this, the authors introduce a "soft" semantic matching loss. This compares a pixel in one image to a weighted region in the other, allowing the model to find the best semantic correspondence despite geometric distortions.

Datasets

The DIFE model is trained entirely on synthetic data generated by StyleGAN2, utilizing weights from FFHQ for humans and AFHQ for animals. For evaluation, the authors used standard human face datasets (MAFL & WFLW), a large-scale benchmark for animal pose estimation (AP-10K), and a dataset with diverse animal face annotations (AnimalWeb).

Key Insights

The core innovation of DIFE lies in using generative models as teachers. Pre-trained StyleGAN2 models already possess a deep, implicit understanding of facial structure. By distilling this latent knowledge, DIFE bypasses the need for human-annotated landmarks. Furthermore, using the latent space to force-align poses between species is a clever strategy to generate ground-truth-like data for a task where no real ground truth exists. The resulting embedding combines CSE's cross-domain association with StyleGAN2's fine details, achieving the distinctiveness required for precise tracking across species.

Key Results

DIFE significantly outperforms existing baselines (such as CSE, DVE, and CATs) in interspecies keypoint transfer tasks.

  • Quantitative: On the Human-to-Dog transfer task, DIFE achieved a pixel error of 11.73, compared to CSE's 19.00 and CATs' 14.78. Similar performance leads were maintained across Human-to-Cat and Dog-to-Cat pairs.
  • Qualitative: The model successfully performs "dense" keypoint transfer, mapping high-resolution grids from humans to various animals like tigers and dogs. It also enables seamless image manipulation, such as accurately placing human-sized glasses or masks onto different animal faces.
Dense keypoint transfer and interspecies face manipulation using DIFE.

Limitations and Future Work

While DIFE presents a significant step forward, it has limitations. The method is domain-dependent, relying on the availability of a pre-trained StyleGAN2 model for the target species (currently limited to humans, dogs, cats, and some wild animals). It struggles when the animal species is unknown or lacks a pre-trained generative model. Additionally, like many face-centric models, DIFE can fail under extreme conditions such as heavy occlusion or poor illumination. Future directions include extending the framework to more animal species and exploring practical applications in ecological research and automated farm monitoring.

Summary updated

BibTeX
@inproceedings{yang2022dense,
  author = {Sejong Yang and Subin Jeon and Seonghyeon Nam and Seon Joo Kim},
  title = {{Dense Interspecies Face Embedding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=m67FNFdgLO9},
}
Figure