InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity

Qing Yan

TL;DR

This paper introduces InfiniteYou (InfU), a novel framework for identity-preserving image generation that leverages advanced Diffusion Transformers (DiTs) like FLUX. InfU addresses key limitations of previous methods by introducing InfuseNet for robust identity injection and a multi-stage training strategy to improve text-image alignment and overall image quality, achieving state-of-the-art results.

What Problem Does This Paper Address?

Generating realistic images of a specific person based on text descriptions while perfectly preserving their identity is a challenging task. Existing methods, often built on U-Net architectures, struggle with maintaining high identity similarity, achieving accurate text-image alignment, and producing aesthetically pleasing, high-quality images. While newer Diffusion Transformers (DiTs) like FLUX offer superior image generation capabilities, adapting them for identity-preserving tasks has been difficult due to a lack of specialized modules, scaling challenges, and insufficient high-quality training data. This paper aims to bridge this gap by developing a DiT-based framework that effectively preserves identity while enhancing generation quality and text-image coherence.

Methods

The core of InfiniteYou (InfU) lies in two main innovations:

  • InfuseNet: This module acts as a generalized version of ControlNet. It's designed to inject identity information into the DiT base model (e.g., FLUX) through residual connections. This approach disentangles identity injection from text injection, preventing potential entanglement and preserving the base model's generative capabilities. InfuseNet predicts residual connections for specific DiT blocks in the base model, allowing for flexible integration.
  • Multi-Stage Training Strategy: To further enhance performance, InfU employs a two-stage training process:
  • Stage-1 Pretraining: This stage uses real single-person-single-sample (SPSS) data to train the model for basic reconstruction and identity preservation.
  • Stage-2 Supervised Fine-Tuning (SFT): This stage utilizes synthetic single-person-multiple-sample (SPMS) data. This synthetic data is generated by combining real identity images with high-quality outputs from off-the-shelf modules (like aesthetic enhancers and LoRAs). This strategy significantly improves text-image alignment, image quality, and aesthetics, while also mitigating face copy-pasting issues.

The InfU framework keeps the DiT base model frozen during training, making only InfuseNet and a projection network trainable. This design ensures compatibility with various existing methods and allows for easy replacement of the base DiT model.

Datasets

The paper utilizes a comprehensive set of datasets for training and evaluation:

  • Training Data: A total of 43 million samples for pretraining and 2 million for SFT were used, drawn from nine open-source datasets (VGGFace2, MillionCelebs, CelebA, CelebV-HQ, FFHQ, VFHQ, EasyPortrait, CelebV-Text, CosmicManHQ-1.0) and several internal datasets.
  • Evaluation Data: A set of 200 prompts generated by GPT-40 and 15 representative identity samples were used for testing, resulting in 1,497 testing outputs.

No new benchmarks were introduced; instead, existing datasets were curated and pre-processed.

Key Insights and Ideas

  • DiTs are Superior for Identity Preservation: The paper strongly advocates for using DiTs over U-Net based models for identity-preserving tasks, demonstrating their superior performance in image quality and overall appeal.
  • Residual Injection is Key: Injecting identity features via residual connections (InfuseNet) is crucial for preserving the generative power of the base DiT model, unlike methods that modify attention layers (e.g., IP-Adapter), which can degrade performance.
  • Synthetic Data Generation is Powerful: The multi-stage training strategy, particularly the use of SPMS synthetic data in stage-2 SFT, is vital for achieving high text-image alignment and aesthetic quality, even if it slightly impacts raw identity similarity compared to stage-1.
  • Plug-and-Play Design is Valuable: The InfU framework's compatibility with other modules and base models makes it a versatile tool for the community, extending its utility beyond its core function.

Key Results

  • State-of-the-Art Performance: InfU significantly outperforms baselines like FLUX.1-dev IP-Adapter and PuLID-FLUX across key metrics.
  • Quantitative Improvements:
    • ID Loss: InfU achieved the lowest ID Loss (0.209), indicating superior identity similarity.
  • CLIPScore: InfU achieved a high CLIPScore (0.318), demonstrating excellent text-image alignment.
  • PickScore: InfU achieved the best PickScore (0.221), signifying high overall image quality and aesthetic appeal.
  • Qualitative Improvements: Visual comparisons show InfU generating images with better identity preservation, more accurate adherence to text prompts, and higher overall visual quality compared to baselines.
  • User Study: InfU achieved a 72.8% selection rate in a user study, significantly outperforming PuLID-FLUX (27.2%), indicating a strong preference for InfU's results.

Limitations and Future Work

  • Limitations:
    • While InfU shows strong identity similarity, the paper notes that stage-1 pretraining without stage-2 SFT can yield even higher identity similarity, though at the cost of text-image alignment and image quality.
  • The use of IP-Adapter with InfuseNet for identity injection, while possible, leads to a deterioration in text-image alignment, image quality, and aesthetics, highlighting its sub-optimality.
  • Future Work: The authors suggest exploring enhancements in scalability and efficiency, as well as expanding InfU's applications to other domains. They also mention that discussions on limitations and societal impact are available in the supplementary material.

Summary updated

BibTeX
@inproceedings{yan2025infiniteyou,
  author = {Qing Yan},
  title = {{InfiniteYou: Flexible Photo Recrafting While Preserving Your Identity}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=SaPYQpbH5O},
}
Figure