From Continuity to Editability: Inverting GANs with Consecutive Images

Yangyang Xu, Yong Du, Wenpeng Xiao, Xuemiao Xu, Shengfeng He

Introduction: The GAN Inversion Paradox

Generative Adversarial Networks (GANs) have revolutionized image synthesis, particularly for human faces. However, "inverting" these networks—mapping a real-world image back into the latent space to enable editing—remains a significant challenge. Researchers face a persistent trade-off: methods that achieve high reconstruction fidelity often result in latent codes that are difficult to edit, while those that prioritize editability frequently lose the subject's unique identity. This "paradox" stems from the limited information available in a single static image, which often leads the inversion process into "dead zones" of the latent space where semantic edits produce unnatural results.

Methodology: Leveraging Temporal Continuity

The proposed research addresses this limitation by inverting consecutive images, such as video frames, rather than isolated snapshots. By exploiting the natural continuity between frames, the method anchors latent codes in a domain that is both high-fidelity and highly editable.

The core of the approach is a joint optimization framework featuring two key constraints:

  1. Mutually Accessible Constraint (MAC): This constraint assumes that the latent code of a subsequent frame is a transformation of the previous frame's code via a learned semantic direction (e.g., a change in expression or pose). This forces the inversion to remain within the GAN's well-behaved, editable manifold.
  2. Inversion Consistency Constraint (ICC): Utilizing a pretrained FlowNet, the model calculates optical flow to ensure pixel-level consistency across the sequence. This multi-source supervision allows the model to capture fine details that single-image methods often overlook.
Figure 1: High-fidelity reconstruction achieved by the proposed method, maintaining identity and cleanliness.

Results and Performance

Evaluated on datasets like RAVDESS-12 and synthesized StyleGAN sequences, the method demonstrates superior performance over state-of-the-art competitors such as pSp and Image2StyleGAN (I2S). Quantitatively, the approach achieved a 31% improvement in Mean Square Error (MSE) on the RAVDESS-12 dataset compared to previous editable inversion techniques.

Qualitatively, the method effectively eliminates common artifacts. While traditional high-fidelity inverters often suffer from "ghosting" or noise when the latent code and high-frequency components become uncoupled during editing, the joint optimization approach keeps these elements aligned, ensuring smooth transitions and clean results.

Figure 3: Example of noisy artifacts and "ghosting" typically seen in existing inversion methods that fail to balance fidelity and editability.

Conclusion

By treating temporal continuity as a powerful regularizer, this work provides a robust solution to the GAN inversion paradox. The ability to perform clean, identity-preserving edits while maintaining high reconstruction fidelity opens new doors for video editing and unsupervised semantic transfer. Future work will focus on reducing computational overhead and extending the method to longer video sequences while maintaining global identity consistency.

Summary updated

BibTeX
@inproceedings{xu2021from,
  author = {Yangyang Xu and Yong Du and Wenpeng Xiao and Xuemiao Xu and Shengfeng He},
  title = {{From Continuity to Editability: Inverting GANs with Consecutive Images}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01365},
}
Figure