Z-Magic: Zero-shot Multiple Attributes Guided Image Creator
Yingying Deng, Xiangyu He, Fan Tang, Weiming Dong
TL;DR
This work tackles coherence in zero-shot multi-attribute image creation by reframing multi-attribute synthesis as conditional dependencies among attributes within score-based diffusion. It introduces Z-Magic, which sequentially conditions attributes to produce contextually aligned gradients $\nabla_{oldsymbol{x}_t}\log p(\boldsymbol{x}_t|\boldsymbol{\mathbf{c}}_1,...,\boldsymbol{\mathbf{c}}_n)$, and employs a Hessian-trick and multi-task learning (CAGrad) to manage complexity. The approach demonstrates superior coherence over independent-conditioning baselines across face and multi-modal generation tasks, with plug-and-play guidance using text, segmentation, landmarks, identity, content, and style. The method remains training-free, scalable to many attributes, and leverages energy-based guidance and pre-trained encoders to achieve robust, high-quality, attribute-coherent synthesis for AI-assisted design and creativity.
Abstract
The customization of multiple attributes has gained popularity with the rising demand for personalized content creation. Despite promising empirical results, the contextual coherence between different attributes has been largely overlooked. In this paper, we argue that subsequent attributes should follow the multivariable conditional distribution introduced by former attribute creation. In light of this, we reformulate multi-attribute creation from a conditional probability theory perspective and tackle the challenging zero-shot setting. By explicitly modeling the dependencies between attributes, we further enhance the coherence of generated images across diverse attribute combinations. Furthermore, we identify connections between multi-attribute customization and multi-task learning, effectively addressing the high computing cost encountered in multi-attribute synthesis. Extensive experiments demonstrate that Z-Magic outperforms existing models in zero-shot image generation, with broad implications for AI-driven design and creative applications.
