Learning Flow Fields in Attention for Controllable Person Image Generation
Zijian Zhou, Shikun Liu, Xiao Han, Haozhe Liu, Kam Woh Ng, Tian Xie, Yuren Cong, Hang Li, Mengmeng Xu, Juan-Manuel Pérez-Rúa, Aditya Patel, Tao Xiang, Miaojing Shi, Sen He
TL;DR
This work addresses texture-level distortions in controllable person image generation by introducing Leffa, a regularization loss that learns flow fields in attention to guide the target query toward the correct reference regions during training. Implemented on top of a diffusion-based baseline, Leffa warps the reference using learned flow fields derived from attention maps and supervises the warp to match the target region, without changing inference cost. The method yields state-of-the-art results in both appearance (virtual try-on) and pose control (pose transfer) across multiple datasets and diffusion backbones, and it generalizes to other diffusion models. This attention-flow supervision provides a practical, model-agnostic path to preserve fine-grained details while maintaining high image quality, with broad implications for controllable generation tasks in vision-rich applications.
Abstract
Controllable person image generation aims to generate a person image conditioned on reference images, allowing precise control over the person's appearance or pose. However, prior methods often distort fine-grained textural details from the reference image, despite achieving high overall image quality. We attribute these distortions to inadequate attention to corresponding regions in the reference image. To address this, we thereby propose learning flow fields in attention (Leffa), which explicitly guides the target query to attend to the correct reference key in the attention layer during training. Specifically, it is realized via a regularization loss on top of the attention map within a diffusion-based baseline. Our extensive experiments show that Leffa achieves state-of-the-art performance in controlling appearance (virtual try-on) and pose (pose transfer), significantly reducing fine-grained detail distortion while maintaining high image quality. Additionally, we show that our loss is model-agnostic and can be used to improve the performance of other diffusion models.
