Neural Implicit Morphing of Face Images

Guilherme Schardong, Tiago Novello, Hallison Paz, Iurii Medvedev, Vinícius da Silva, Luiz Velho, Nuno Gonçalves · DOI

TL;DR

This paper introduces Neural Implicit Morphing, a framework that leverages coordinate-based neural networks to create smooth, high-quality face transitions. By disentangling spatial warping from color blending and using continuous energy functionals for regularization, the method produces seamless morphs between unaligned faces of different genders and ethnicities, outperforming state-of-the-art generative models in both visual fidelity and temporal coherence.

What Problem Does This Paper Address?

Face morphing—the process of creating a smooth transition between two different faces—is a cornerstone of computer graphics with critical implications for digital forensics (e.g., "face-morphing attacks" on biometric systems).

Traditional methods often rely on discrete meshes, which can lead to artifacts. Conversely, modern generative models like StyleGAN or Diffusion Autoencoders (diffAE) are excellent at blending but often struggle with feature alignment. Because these models don't explicitly model the "path" a pixel takes, features like eyes or ears can "ghost" or pop in and out of existence during a transition. Furthermore, most generative approaches require faces to be strictly pre-aligned (eyes and mouths in fixed positions), making it impossible to morph between faces in different poses or rotations.

Methods

The authors propose a two-step approach: Neural Warping followed by Neural Blending.

1. Neural Warping

Instead of a discrete grid, the authors use a sinusoidal Multi-Layer Perceptron (MLP)—a type of coordinate-based network—to represent a time-dependent transformation $T(x, t)$. This network maps a point $x$ at time $t$ to its corresponding location in the source or target image.

  • Self-Inverting: The network is trained to encode both direct and inverse transformations in a single model, satisfying the property that $T_{-t}$ is the inverse of $T_t$.
  • Continuous Regularization: Because the MLP is differentiable, the authors apply thin-plate energy directly in the loss function. This penalizes sharp distortions, ensuring that the "path" each facial feature takes is physically plausible and smooth.
Figure 1. Schematic illustration of the neural warping T being used to aligning the initial images Ii

2. Neural Blending

Once the features are aligned via warping, the images must be blended. The authors explore three techniques:

  • Linear Interpolation: A simple weighted average of the warped images.
  • Gradient-Domain Blending: Inspired by Poisson image editing, this uses another neural network to blend the gradients of the images. This allows for "seamless cloning," where features from one face are integrated into the structure of another without harsh edges.
  • Generative Blending: The warped images are embedded into the latent space of a Diffusion Autoencoder (diffAE). The transition happens in this semantic latent space, combining the alignment of warping with the high-frequency detail of diffusion models.

Datasets

The primary dataset used for training and evaluation is the FRLL (Face Research Lab London) dataset, which contains high-quality face images with diverse ethnicities and genders. For quantitative comparisons, the authors generated 1,220 morphs following standard forensic protocols. They also utilized pre-trained models (like diffAE) originally trained on the FFHQ dataset.

Key Insights and Ideas

  • Disentanglement is Key: By separating the warping (where things go) from the blending (what they look like), the method avoids the "ghosting" artifacts common in pure generative interpolation.
  • No Discretization Needed: Using coordinate-based networks allows for calculating derivatives in closed form. This means physical constraints like thin-plate energy can be applied exactly, rather than approximated on a mesh.
  • Handling the "Wild": Unlike StyleGAN, which requires rigid alignment, this method can handle "unaligned" faces in different poses because the neural warping learns the specific transformation required for that pair of images.
Figure 4. Comparing different neural blendings of two faces Ii. Line 1/2 shows examples of cloning the half-space region of I1 into I0. In Column 1 we do not align the image landmarks, the remaining columns use our neural warping for the alignment. Column 2 uses U=Jac(I1) and I∗=I0 in the neural blending. Columns 3 and 4 applies the mixed and normal seamless clone respectively.

Key Results

  • Visual Fidelity: The "Seamless Mix" version of their method achieved a Fréchet Inception Distance (FID) of 22.604, significantly better than StyleGAN3 (35.653) and diffAE (41.356).
  • Perceptual Similarity: In LPIPS tests (which measure how "real" a transition looks to human perception), the method consistently outperformed classical OpenCV warping and generative baselines.
  • Forensic Impact: The authors tested their morphs against Face Morphing Attack Detectors (MAD). Their "Mix" and "diffAE" morphs proved highly challenging for current detectors to identify, suggesting this method could be used to create more robust training data for biometric security systems.
Morphing comparisons between the proposed method and generative baselines

Limitations and Future Work

  • Invertibility Issues: While the network is trained to be invertible, extreme deformations (like a region of the image collapsing to a point) can still cause mathematical inconsistencies.
  • Landmark Dependency: The quality of the warping depends on the accuracy of the initial landmarks (though the authors show that automatic detection via DLib works well).
  • Future Directions: The authors plan to extend this framework to non-facial images and 3D surface morphing. They also aim to release larger datasets to help the community build better morphing attack detectors.

Summary updated

Abstract

Face morphing is a problem in computer graphics with numerous artistic and forensic applications. It is challenging due to variations in pose, lighting, gender, and ethnicity. This task consists of a warping for feature alignment and a blending for a seamless transition between the warped images. We propose to leverage coord-based neural networks to represent such warpings and blendings of face images. During training, we exploit the smoothness and flexibility of such networks by combining energy functionals employed in classical approaches without discretizations. Additionally, our method is time-dependent, allowing a continuous warping/blending of the images. During morphing inference, we need both direct and inverse transformations of the time-dependent warping. The first (second) is responsible for warping the target (source) image into the source (target) image. Our neural warping stores those maps in a single network dismissing the need for inverting them. The results of our experiments indicate that our method is competitive with both classical and generative models under the lens of image quality and face-morphing detectors. Aesthetically, the resulting images present a seamless blending of diverse faces not yet usual in the literature.
BibTeX
@misc{schardong2023neural,
  author = {Guilherme Schardong and Tiago Novello and Hallison Paz and Iurii Medvedev and Vinícius da Silva and Luiz Velho and Nuno Gonçalves},
  title = {{Neural Implicit Morphing of Face Images}},
  year = {2023},
  eprint = {2308.13888},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.13888},
}
Figure