Abstract
Deformable image manipulation—the process of altering an object's pose or expression while maintaining its identity and background—remains a significant challenge in computer vision. While Diffusion Models (DMs) have surpassed Generative Adversarial Networks (GANs) in image quality, they struggle with the "sparse-to-dense gap," where sparse user-provided key-points fail to provide sufficient guidance for high-fidelity synthesis. This paper introduces the Key-point Guided Diffusion Model (KDM), a two-stage framework that utilizes optical flow as a dense intermediate bridge. By predicting motion before synthesizing pixels, KDM achieves superior photorealism and temporal consistency across diverse domains, including facial expressions, human poses, and medical imaging.
Introduction
Controlling the movement of objects within a static image is a fundamental task with applications ranging from digital animation to medical visualization. Traditional approaches, largely dominated by GANs, often face issues with training instability and limited output diversity. Diffusion Models offer a promising alternative due to their superior mode coverage and synthesis quality. However, when conditioned on sparse inputs like key-points (e.g., the corners of a mouth or joints of a limb), standard diffusion models often produce "hallucinated" backgrounds, lose fine-grained textures, or exhibit temporal flickering in video sequences.
The core difficulty lies in the transition from sparse geometric constraints to dense pixel-wise transformations. To address this, the authors propose KDM, which decouples the manipulation process into two distinct phases: motion estimation and appearance synthesis.
Methodology: The KDM Framework
KDM avoids the pitfalls of direct image synthesis by introducing a dense semantic "blueprint" in the form of optical flow. The framework consists of two primary components: the Key-point to Flow network (K2F-net) and the Flow to Image network (F2I-net).
Stage 1: Key-point to Flow (K2F-net)
Instead of generating pixels immediately, the K2F-net—a Latent Diffusion Model (LDM)—is trained to predict a dense optical flow map based on the source image and target key-points. This flow map represents the per-pixel displacement required to transition the source image to the target pose. To facilitate training, the authors employed an unsupervised OF-net (based on the PWC-net architecture) to generate ground-truth flow maps from real image pairs, ensuring the model learns realistic motion priors.
Stage 2: Flow to Image (F2I-net)
The second stage synthesizes the final image using the source image, target key-points, and the predicted optical flow. A critical innovation in this stage is the Linear Deformation Initialization. Rather than starting the diffusion process from pure Gaussian noise, the model warps the source image using the predicted flow to create an initial "rough draft." This warped image is then injected with a specific amount of noise ($k$ steps). The F2I-net then performs denoising to refine the image, effectively using the diffusion process to correct artifacts caused by warping (such as stretching or occlusions) while preserving the original identity and background.
Experimental Evaluation
The KDM framework was evaluated across three distinct and challenging domains to demonstrate its versatility:
- CelebV-HQ (Facial Manipulation): The model used 68 facial landmarks, reconfigured into 11 colored lines for better spatial conditioning, to manipulate facial expressions.
- IXMAS (Human Pose): Using 25 key-points representing body joints, the model synthesized complex human actions.
- EchoNet-Dynamic (Medical Imaging): The model was tested on 4-chamber echocardiogram videos. This domain is particularly demanding as it requires the preservation of "acoustic speckles" and fine structural details essential for clinical diagnosis.
Quantitative and Qualitative Results
KDM was benchmarked against state-of-the-art models, including DragGan, DragDiffusion, and PIDM. Quantitatively, KDM achieved the best scores across several metrics:
- Mean Distance (MD): Measuring control precision, KDM achieved an MD of 1.874 on facial synthesis, significantly outperforming PIDM's 2.944.
- Perceptual Quality: KDM consistently scored lower (better) in LPIPS and MSE, indicating higher pixel-level and perceptual similarity to ground truth.
Qualitatively, KDM demonstrated a unique ability to maintain background stability. In human pose tasks, it avoided the "ghosting" or warped afterimage artifacts common in competing models. In the medical domain, it was the only framework capable of preserving high-frequency textures critical for echocardiography, whereas other models tended to over-smooth the results.
Discussion and Limitations
A key insight of this research is the role of optical flow as a spatial regularizer. Because flow maps are spatially continuous, they naturally signal the generator to leave static background pixels untouched (where flow is zero). Furthermore, the $k$-step noise trick allows the model to bridge the gap between geometric data and pixel data without losing the "hue and identity" of the source.
However, the model is currently limited by Semantic Dependency. The manipulation is strictly bound by what the key-points define. For instance, in facial experiments where pupils were not included in the landmark set, the model successfully moved the eyelids but left the eyes in a fixed, "staring" position. This suggests that the model's "vocabulary" of movement is only as expressive as the underlying key-point configuration.
Conclusion
KDM represents a significant step forward in controllable image manipulation. By treating optical flow as a dense intermediary, the framework successfully bridges the sparse-to-dense gap that has previously hindered diffusion-based manipulation. Its success in both creative (facial/pose) and high-stakes (medical) domains highlights its potential as a robust tool for high-fidelity, motion-guided synthesis. Future work will focus on expanding key-point configurations to allow for even more nuanced and comprehensive control.
Summary updated