TFGNet: Target Face Generation from Low-Quality Images via Textual Guidance

Xin Wen, Zhiyuan Zha, Shigang Wang, Bihan Wen, Xin Yuan, Jiantao Zhou, zipei fan, Gang Yan, Ce ZhuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

TFGNet is a novel framework designed to generate high-quality (HQ), identity-preserving face images from severely degraded, low-quality (LQ) inputs. By leveraging textual descriptions as semantic guidance and employing a codebook-based enhancement module alongside a diffusion generator, it outperforms current state-of-the-art methods in both visual fidelity and identity retention.

What Problem Does This Paper Address?

In fields like urban surveillance and forensic investigation, the "input" image is rarely a studio-quality headshot. More often, it is a blurry, noisy, or low-resolution frame captured under poor lighting or adverse weather.

While recent advances in text-to-image diffusion models (like SDXL) allow for impressive face customization, they typically assume the reference image is already high-quality. When these models are fed low-quality (LQ) images, they struggle to maintain the subject's identity, often "hallucinating" a different person or failing to reconstruct sharp facial details. The authors identify a critical gap: how do we bridge the divide between a degraded reference image and a photorealistic, identity-consistent output?

Methods

TFGNet tackles this through a multi-stage architecture that combines structural priors with generative flexibility:

  1. Image Enhancement Module (Codebook & Transformer): Instead of feeding raw pixels to the generator, the model uses a discrete codebook learned from HQ face images. A Transformer predicts the "correct" HQ code sequence from the LQ input. This acts as a structural anchor, stabilizing facial features like edges and textures before the generation even begins.
  2. Multimodal Embedding Fusion: The system extracts features from both the image and the text using CLIP. It identifies key semantic terms (e.g., "man," "woman") in the prompt and fuses their feature vectors with the image embeddings using a Multi-Layer Perceptron (MLP). This creates "Stacked ID Embeddings" that represent the subject more expressively than an image alone.
  3. Diffusion Generation: These fused embeddings are injected into the cross-attention layers of a diffusion model (based on SDXL). This allows the model to attend to identity-specific visual features while remaining conditioned on the full textual prompt.
  4. Masked Diffusion Loss: To ensure the model doesn't waste "attention" on irrelevant backgrounds, the authors introduced a masked loss. Using a segmentation tool (Mask2Former), the model focuses its learning signal specifically on the face and clothing regions, significantly improving identity (ID) consistency.

Datasets

The authors utilized a mix of established and custom-built datasets:

  • FFHQ: Used for training the image-related modules (a subset of 10,000 images).
  • Face500: A competition dataset containing triplets of LQ images, HQ targets, and textual descriptions.
  • T2F500 (New Benchmark): The authors introduced this dataset to address the scarcity of high-quality "LQ-HQ-Text" triplets. They took 500 pairs from the CelebA dataset, applied a realistic degradation pipeline (blur, noise, JPEG compression) to one image in each pair, and manually annotated them with descriptive text.

Key Insights and Ideas

  • Text as a Semantic Anchor: The core "aha moment" is treating text not just as a stylistic choice, but as a necessary prior to resolve ambiguity in blurry pixels. If the image is too blurry to see eye color, the text "blue eyes" provides the missing information needed to maintain ID.
  • Quantization as a Prior: By forcing the model to map LQ features to a discrete codebook of HQ facial components, the authors prevent the "feature drift" that often happens in purely continuous latent spaces, leading to sharper reconstructions.
  • Spatial Awareness via Masking: The masked diffusion loss proves that where you calculate the loss is just as important as how you calculate it. By ignoring the background during the ID-preservation phase, the model becomes much more robust at capturing the essence of the subject.

Key Results

TFGNet was compared against 17 state-of-the-art methods, including Photomaker, InstantID, and MoMA.

  • Quantitative: On the T2F500 benchmark, TFGNet achieved a Face Similarity score of 32.50%, significantly higher than Photomaker (27.01%) and MoMA (26.03%). It also achieved the best FID (76.77), indicating superior overall image quality.
  • Qualitative: Visual comparisons show that TFGNet is far more capable of handling complex situations, such as profile views or faces partially occluded by hats and glasses, where other models often lose the subject's likeness entirely.

Limitations and Future Work

  • Computational Cost: The authors note that TFGNet introduces a moderate computational overhead compared to simpler, faster methods. While the quality gains justify this for many applications, optimizing inference speed remains a goal.
  • Prompt Sensitivity: Like most text-guided models, the quality of the output is somewhat dependent on the accuracy of the manual text description.
  • Future Directions: The researchers suggest expanding the multimodal dataset further and exploring ways to automate the textual annotation process to handle even larger-scale training.

Summary updated

Abstract

Recent advances indicate that text-guided face generation has attracted considerable attention in the field of computer vision. However, most existing methods assume high-quality (HQ) face inputs, while how to generate HQ and identity-preserving faces from low-quality (LQ) images is still an open problem. In this paper, we propose a novel face generation approach named TFGNet, which generates HQ face images from LQ inputs guided by textual descriptions. Unlike most existing methods that depend on HQ inputs, TFGNet leverages external textual descriptions as semantic guidance to directly generate HQ and identity-preserving faces from degraded images. First, we design a unified framework that integrates a Transformer-based encoder, a codebook mechanism, and multimodal representations extracted from contrastive language-image pretraining (CLIP) model to produce enhanced cross-modal embeddings, which are then decoded by a diffusion model to generate target face images with both high visual fidelity and accurate identity retention. Second, we propose a masked diffusion loss that emphasizes identity-related regions and incorporate it into a dynamically weighted total loss, enabling a balanced trade-off among visual fidelity, semantic coherence, and identity consistency. Third, we build a multimodal dataset comprising LQ face images, HQ targets, and manually annotated textual descriptions to address the scarcity of suitable text-image pairs for this task. Extensive experimental results demonstrate that the proposed TFGNet approach outperforms many state-of-the-art techniques in face generation in terms of both objective metrics and perceptual quality.
BibTeX
@misc{wen2026tfgnet,
  author = {Xin Wen and Zhiyuan Zha and Shigang Wang and Bihan Wen and Xin Yuan and Jiantao Zhou and zipei fan and Gang Yan and Ce Zhu},
  title = {{TFGNet: Target Face Generation from Low-Quality Images via Textual Guidance}},
  year = {2026},
  url = {https://openreview.net/forum?id=oMnYaV29A7},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure