LBFTI: Layer-Based Facial Template Inversion for Identity-Preserving Fine-Grained Face Reconstruction

Zixuan Shen, Zhihua Xia, Kaikai Gan, Peipeng YuarXiv 2026 · arXiv

TL;DR

Facial Template Inversion (FTI) attacks can reconstruct face images from stored biometric embeddings, but existing methods produce distorted images that fail human inspection. This paper introduces LBFTI, a layer-based inversion framework that decomposes face reconstruction into foreground, midground, and background layers, successfully fooling both deep face recognition systems and human reviewers.

What Problem Does This Paper Address?

To comply with privacy regulations like GDPR, modern face recognition systems don't store raw photos; instead, they store compact mathematical embeddings called facial templates. However, if a database leaks, attackers can use Facial Template Inversion (FTI) to reverse-engineer these templates back into face images.

While current state-of-the-art FTI methods are highly effective at fooling machines (achieving high authentication pass rates), they suffer from a major flaw: the reconstructed faces look bizarre, distorted, or completely different to the human eye. In real-world security checkpoints that involve a human-in-the-loop (like customs or manual ID verification), these automated attacks fail instantly. This paper bridges the gap between machine-targeted optimization and human visual perception.

Figure 1: Limitations of existing FTI methods: (a) original images, (b) images reconstructed by a custom-built inverter [33], and (c) images reconstructed by a pre-trained network- based inverter [5]. Although the images in columns (b) and (c) can pass machine authentication, their facial attributes are inconsistent with those in column (a) from the perspec- tive of human visual perception. In contrast, the images in (d) reconstructed by our proposed LBFTI can not only pass machine authentication, but also maintain consistent facial attributes with the original images.

Methods

Instead of generating the entire face monolithically, the authors propose a "divide-and-conquer" layer-based architecture that splits the face into three distinct structural components:

  1. Foreground Layers: Four dedicated, lightweight generators independently reconstruct localized, high-fidelity facial attributes: eyebrows, eyes, nose, and mouth.
  2. Midground Layer: One lightweight generator focuses purely on continuous skin texture.
  3. Background Layer: A more complex Panorama Generator integrates the foreground and midground layers with the remaining background context.
Figure 2: Architecture of the proposed LBFTI. It comprises four foreground generators, one midground generator, and one panorama generator, governed by a three-stage training strategy: Stage 1 trains the foreground and midground generators; Stage 2 freezes the former two and trains the panorama generator; Stage 3 jointly fine-tunes all modules.

To make this work seamlessly, LBFTI uses a three-stage training strategy:

  • Stage 1: Train the foreground and midground generators independently using a mix of template, pixel, and perceptual losses.
  • Stage 2: Freeze the component generators and train the panorama generator. Crucially, they introduce a secondary template injection mechanism here to prevent identity features from washing out during layer fusion.
  • Stage 3: Unfreeze all weights for end-to-end joint fine-tuning to optimize inter-layer coherence.

The authors also introduce two new evaluation metrics to quantify fine-grained attribute similarity: Facial Attribute Pixel Deviation (FAPD) for pixel-level accuracy and Facial Attribute Perceptual Consistency (FAPC) for deep semantic consistency.

Datasets

The framework was trained and evaluated using three standard face datasets:

  • FFHQ (Flickr-Faces High-Quality): 70,000 high-quality images used exclusively as the training dataset (without identity annotations).
  • LFW (Labeled Faces in the Wild): 13,233 images from 5,749 individuals, serving as the primary testing benchmark for cross-model verification.
  • AgeDB: 16,488 images with severe age variations, used as a challenging testing benchmark to evaluate robustness against real-world disturbances.

Key Insights and Ideas

  • The Machine-Human Disconnect: A reconstructed face can easily achieve a high embedding similarity score (fooling a model like ArcFace) while missing critical human-perceived identity markers (like eye shapes or mouth contours). Machines and humans look at faces differently.
  • Isolating Local Features Prevents Blurring: Monolithic networks often smooth out fine details like eyebrow textures when trying to optimize global face structure. Forcing independent, lightweight networks to focus solely on localized patches preserves these fine-grained attributes.
  • Secondary Injection is Essential: Fusing independent image layers naturally degrades the underlying identity embedding. Re-injecting the original facial template directly into the panorama generator during fusion acts as a regularizer that preserves machine authentication rates.

Key Results

  • Machine Authentication: On the LFW dataset against an ArcFace target model, LBFTI achieved a Type-II True Accept Rate (TAR) of 95.09% at a strict 0.1% False Accept Rate (FAR)—outperforming existing state-of-the-art methods by roughly 25-30%.
  • Cross-Model Generalization: When tested against an entirely "unseen" model (ElasticFace), LBFTI maintained a high Type-II TAR of 94.08%, proving that it extracts robust, generalized identity features rather than just overfitting to one target system.
  • Human Realism: LBFTI reduced pixel-level attribute deviation (FAPD) by 33.5% compared to Adv-StyleGAN3.
  • User Study: In an online questionnaire with 156 valid human participants, LBFTI reconstructions achieved a 91.79% human recognition accuracy (matching the generated face to the correct original photo) and secured 85.00% of the preference votes against competing methods.

Limitations and Future Work

While LBFTI demonstrates impressive fidelity, its performance relies heavily on accurate facial landmark detection to isolate the foreground attributes during training. In scenarios with extreme head poses, severe occlusions (like sunglasses or hands), or poor lighting, landmark detection might fail, subsequently degrading the layer decomposition.

The authors suggest that this disentangled, layer-based synthesis paradigm is highly versatile and could be extended to other conditional image generation and face editing tasks in the future.

Summary updated

Abstract

In face recognition systems, facial templates are widely adopted for identity authentication due to their compliance with the data minimization principle. However, facial template inversion technologies have posed a severe privacy leakage risk by enabling face reconstruction from templates. This paper proposes a Layer-Based Facial Template Inversion (LBFTI) method to reconstruct identity-preserving fine-grained face images. Our scheme decomposes face images into three layers: foreground layers (including eyebrows, eyes, nose, and mouth), midground layers (skin), and background layers (other parts). LBFTI leverages dedicated generators to produce these layers, adopting a rigorous three-stage training strategy: (1) independent refined generation of foreground and midground layers, (2) fusion of foreground and midground layers with template secondary injection to produce complete panoramic face images with background layers, and (3) joint fine-tuning of all modules to optimize inter-layer coordination and identity consistency. Experiments demonstrate that our LBFTI not only outperforms state-of-the-art methods in machine authentication performance, with a 25.3% improvement in TAR, but also achieves better similarity in human perception, as validated by both quantitative metrics and a questionnaire survey.
BibTeX
@misc{shen2026lbfti,
  author = {Zixuan Shen and Zhihua Xia and Kaikai Gan and Peipeng Yu},
  title = {{LBFTI: Layer-Based Facial Template Inversion for Identity-Preserving Fine-Grained Face Reconstruction}},
  year = {2026},
  eprint = {2604.18358},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.18358},
}

Loading related content...

Figure