InstantPortrait: One-Step Portrait Editing via Diffusion Multi-Objective Distillation

Zhixin Lai, Keqiang Sun, Fu-Yun Wang, Dhritiman Sagar, Erli Ding

Overview

InstantPortrait (IPNet) is a pioneering diffusion-based model designed to achieve high-quality, instruction-based portrait editing in just a single inference step. By combining a two-stage training process with a novel "Multi-Objective Distillation" strategy, researchers have successfully broken the traditional trade-off between lightning-fast inference speed, precise identity preservation, and creative stylistic flexibility.

Diverse portrait edits generated by InstantPortrait in a single step, demonstrating strong identity preservation across extreme stylistic changes.

The Portrait Editing Trilemma

Generative AI portrait editing typically faces a "trilemma" where three conflicting objectives must be balanced simultaneously:

  1. Identity Preservation: The subject in the output must remain highly recognizable and visually identical to the person in the input image.
  2. Instruction Fidelity: The model must accurately execute the user's text prompt (e.g., "make them a cyberpunk warrior"), applying deep stylistic changes rather than superficial tints.
  3. Speed: For practical applications like augmented reality (AR) filters or real-time video communications, the model must operate with minimal latency.

Current models usually compromise on at least one of these fronts. "Edit-first" models like InstructPix2Pix excel at following instructions but often distort or "melt" the subject's face into a generic identity. Conversely, "identity-first" models like InstantID preserve facial features well but struggle to apply heavy stylistic transformations and require 30–50 denoising steps, rendering them far too slow for real-time use.

Methodology: A Two-Stage Approach

To resolve these conflicting goals, the authors introduce IPNet, which is trained in two distinct stages.

Stage 1: The Teacher (IDE-Net)

The first stage involves training an Identity Enhancement Network (IDE-Net). The core innovation here is the Annealing Identity Loss ($L_{aid}$). In diffusion models, early timesteps define the global structure (like identity and pose), while later steps add fine details (like style and texture). The authors utilize an annealing strategy that applies heavy identity supervision early in the process and gradually relaxes it as denoising progresses. This dynamic weighting allows the model to lock in facial consistency while leaving ample room for the text prompt to alter the background, clothing, and overall aesthetic.

Stage 2: The Student (IPNet)

To achieve one-step inference, the teacher model (IDE-Net) is distilled into a student model (IPNet) using Diffusion Multi-Objective Distillation. This distillation process relies on three key components:

  • Adversarial Loss ($L_{adv}$): Borrowing principles from Generative Adversarial Networks (GANs), this loss forces the model to produce high-quality, realistic images in a single step.
  • Identity Distillation Loss ($L_{distill}$): This ensures the student retains the identity-preserving capabilities of the teacher. It uses a mix of stochastic sampling and DDIM inversion to keep the student's output tightly aligned with the teacher's.
  • Face-Style Enhancing Triplet Loss ($L_{triplet}$): This clever "push-pull" mechanism utilizes DINOv2 embeddings to ensure the output image is closer to the target style than the input image, while maintaining a safe margin so the core identity is never discarded.

Training Data

Finding existing datasets insufficient for this complex task, the researchers built a massive synthetic dataset containing 10 million image pairs.

To generate this data, they used GPT-4 to create diverse editing prompts, followed by SDXL combined with ControlNet and IP-Adapter to generate high-fidelity target images. Crucially, the "input" images were generated from the "target" images to guarantee perfect structural alignment during training. The model was subsequently benchmarked against the FFHQ dataset (100 images) paired with 40 diverse editing prompts.

Performance and Results

IPNet significantly outperforms State-of-the-Art (SOTA) models across all critical metrics:

  • Speed: It achieves 1-step inference, a massive leap over competitors like InstantID or MagicBrush, which require 30–50 steps.
  • Identity: On the FaceNet similarity metric, IPNet scored 0.867, surpassing the previous best (IP-Control-1.5 at 0.794).
  • Style/Text Fidelity: It achieved the highest CLIP-Vit-H scores (0.309), proving it follows text instructions more accurately than models that take 50 times longer to run.
  • Visual Quality: Qualitative tests show IPNet produces sharper images with fewer artifacts than InstructPix2Pix or MagicBrush, effectively eliminating the "identity distortion" common in complex edits.

Limitations and Future Directions

While highly effective for stylistic changes, the authors note that altering dynamic attributes—such as facial expressions—remains a limitation. Because the training dataset focused heavily on static features like makeup, clothing, and art style, the model is less responsive to instructions like "make the person laugh."

Future work will focus on expanding the dataset to include diverse facial expressions and extending this one-step architecture to video portrait editing, where temporal consistency and real-time speed are paramount.

Summary updated

BibTeX
@inproceedings{lai2025instantportrait,
  author = {Zhixin Lai and Keqiang Sun and Fu-Yun Wang and Dhritiman Sagar and Erli Ding},
  title = {{InstantPortrait: One-Step Portrait Editing via Diffusion Multi-Objective Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ZkFMe3OPfw},
}
Figure