Cross-view Masked Diffusion Transformers for Person Image Synthesis

Trung X. Pham, Kang Zhang, Chang D. Yoo

Introduction

Pose-guided Human Image Generation (PHIG) is a computer vision task that involves synthesizing a realistic image of a person in a target pose, given a source image of that person. While diffusion models have significantly advanced the state-of-the-art in image quality, traditional architectures—primarily based on U-Nets—face significant challenges. These models are often computationally expensive, slow during inference, and struggle with maintaining "source-view invariance," where the person's identity or clothing details may shift when viewed from different angles.

To address these hurdles, this paper introduces X-MDPT (Cross-view Masked Diffusion Prediction Transformers). By replacing the standard U-Net with a scalable Transformer backbone and introducing a novel cross-view masking strategy, X-MDPT achieves superior realism and consistency while being significantly more efficient than its predecessors.

The X-MDPT Architecture

X-MDPT departs from the U-Net norm by operating on latent patches using a Transformer backbone. The system is built upon three core innovations:

  1. Transformer-based Denoising Network (TDNet): Utilizing the Diffusion Transformer (DiT) framework, this module performs the denoising process on latent image patches. This shift to Transformers allows the model to benefit from the scalability and efficiency seen in Large Language Models.
  2. Conditional Aggregation Network (CANet): Rather than employing complex, multi-level feature blending, CANet consolidates three distinct inputs—the target pose, local source features (from a VAE), and global identity features (from DINOv2)—into a single, unified vector. This vector guides the entire diffusion process via adaptive layer normalization.
  3. Mask Inter-Prediction Network (MIPNet): This module is the key to learning deep semantic correspondences. During training, the model randomly masks patches of the target image and tasks MIPNet with predicting them based on the source image. This "cross-view" prediction forces the model to understand the relationship between different views of the same person, ensuring high consistency.

Experimental Setup

The model was trained and evaluated on the DeepFashion In-shop Clothes Retrieval Benchmark, a standard dataset containing over 100,000 pairs of person images in various poses. Evaluations were conducted at both $256 \times 256$ and high-resolution $512 \times 512$ scales. Performance was measured using standard metrics including Fréchet Inception Distance (FID), Structural Similarity Index (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS).

Results and Discussion

X-MDPT demonstrates a significant leap in both quality and efficiency. The "Large" variant (X-MDPT-L) achieved a state-of-the-art FID of 6.25 on the DeepFashion dataset, outperforming the previous leading model, PIDM.

Comparison of FID scores versus number of parameters for X-MDPT and other state-of-the-art approaches.

Efficiency and Scalability

One of the most striking findings is the model's efficiency. The "Small" variant (X-MDPT-S), with only 33 million parameters, achieved an FID of 7.42. This surpasses the popular U-Net-based model PoCoLD while using 11x fewer parameters. Furthermore, X-MDPT-L is 5.43x faster at inference than PIDM and reaches full convergence in approximately 15 days on a single A100 GPU, compared to an estimated 104 days for PIDM.

Qualitative Performance

Qualitatively, X-MDPT excels at maintaining identity and clothing details, even when the source and target views differ significantly. By leveraging global features from DINOv2 and the MIPNet masking strategy, the model "understands" the person's appearance well enough to maintain consistency across complex pose changes.

Qualitative comparison of person image synthesis results between X-MDPT (Ours), PIDM, and Ground Truth (GT).

Conclusion and Future Work

X-MDPT proves that a simplified, Transformer-based approach to diffusion can outperform complex U-Net architectures in both speed and quality. While the model sets a new benchmark, limitations remain, particularly regarding noise in training data (e.g., clothing changes in ground truth pairs) and reliance on accurate pose estimation from external tools like OpenPose. Future research will focus on improving generalization by training on more diverse, "in-the-wild" datasets beyond the controlled environments of studio fashion photography.

Summary updated

BibTeX
@inproceedings{pham2024cross,
  author = {Trung X. Pham and Kang Zhang and Chang D. Yoo},
  title = {{Cross-view Masked Diffusion Transformers for Person Image Synthesis}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=jEoIkNkqyc},
}
Figure