Emotion Transfer Using Vector-Valued Infinite Task Learning

Alex Lambert, Sanjeel Parekh, Zoltán Szabó, Florence d'Alché-BucarXiv 2021

Abstract

Style transfer is a significant problem of machine learning with numerous successful applications. In this work, we present a novel style transfer framework building upon infinite task learning and vector-valued reproducing kernel Hilbert spaces. We instantiate the idea in emotion transfer where the goal is to transform facial images to different target emotions. The proposed approach provides a principled way to gain explicit control over the continuous style space. We demonstrate the efficiency of the technique on popular facial emotion benchmarks, achieving low reconstruction cost and high emotion classification accuracy.

Introduction

Facial emotion transfer—the process of modifying the emotional expression of a face while preserving the subject's identity—is a complex challenge in computer vision. Traditional state-of-the-art methods, particularly Generative Adversarial Networks (GANs), often struggle with high data requirements and training instability. Furthermore, most existing models treat emotions as discrete categories (e.g., "Happy" vs. "Sad"), failing to capture the nuanced, continuous spectrum of human expression.

This research introduces a functional approach to emotion transfer using vector-valued Infinite Task Learning (vITL). By treating emotion as a continuous coordinate in a latent space rather than a discrete label, the framework allows for smooth, controllable transformations across an infinite range of emotional intensities and blends.

Methodology: The vITL Framework

The core innovation lies in moving from discrete classification to a continuous functional mapping. The framework utilizes several key components:

Landmark Representation

To focus on structural changes and reduce dimensionality, faces are represented as a set of 68 landmark points vectorized into $\mathbb{R}^{136}$. This abstraction allows the model to learn the geometric shifts necessary for expression without the overhead of raw pixel generation.

Continuous Emotion Space

Emotions are embedded into a 2D Valence-Arousal (VA) space. In this coordinate system, valence represents the positivity/negativity of an emotion, while arousal represents its intensity. This allows the model to treat any emotion as a continuous parameter $\theta$.

The 2D Valence-Arousal space used to map discrete emotions into a continuous coordinate system.

Functional Mapping and vRKHS

The authors learn a hypothesis $h$ that maps an input face to a function. This function then maps any target emotion coordinate $\theta$ to the corresponding transformed facial landmarks. To ensure that small movements in the VA space result in smooth facial transitions, the model employs vector-valued Reproducing Kernel Hilbert Spaces (vRKHS). This provides a rigorous mathematical framework for regularization, ensuring that the "trajectories" of facial movement are predictable and realistic.

Optimization

Unlike the iterative and often unstable training of GANs, this method solves a linear system (specifically a Sylvester equation). This approach is computationally efficient, offers a unique solution, and demonstrates remarkable stability even with limited training data.

Experimental Results

The model was evaluated on the KDEF (Karolinska Directed Emotional Faces) and RaFD (Radboud Faces Database) benchmarks.

Facial landmark representations for various emotions across the KDEF and RaFD datasets.

Key Findings

  • Superior Performance: The vITL approach outperformed the StarGAN baseline in both Mean Squared Error (MSE) and emotion classification accuracy.
  • Data Efficiency: The model remained stable even when 70-80% of the training data was removed, highlighting the power of kernel-based regularization in low-data regimes.
  • Continuous Control: The framework enables "continuous expression synthesis," allowing users to morph a face smoothly from one emotion to another or increase the intensity of an expression by moving along the radial axis of the VA space.
  • Identity Preservation: By focusing on landmarks and employing smoothness priors, the model preserved the subject's identity (the face boundary) more effectively than generative baselines.

Conclusion and Future Work

By leveraging vector-valued Infinite Task Learning, this framework provides a principled and efficient alternative to GANs for style transfer. While currently focused on landmark representations, the model offers a robust foundation for continuous style control. Future work may involve integrating these landmark transformations with neural renderers for full-resolution RGB image generation and exploring automated kernel learning to capture even finer nuances of human micro-expressions.

Summary updated

BibTeX
@misc{lambert2021emotion,
  author = {Alex Lambert and Sanjeel Parekh and Zoltán Szabó and Florence d'Alché-Buc},
  title = {{Emotion Transfer Using Vector-Valued Infinite Task Learning}},
  year = {2021},
  eprint = {2102.05075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.05075},
}
Figure