Image Translation as Diffusion Visual Programmers
Cheng Han, James C. Liang, Qifan Wang, Majid Rabbani, Sohail Dianat, Raghuveer Rao, Ying Nian Wu, Dongfang Liu
TL;DR
This work reframes image translation as a two-stage process combining a condition-flexible diffusion model with a GPT-driven planner to produce a sequence of visual programs for targeted RoI editing and translation. By decoupling high-dimensional concepts into low-dimensional symbols through in-context visual programming, DVP achieves context-free, local edits with improved explainability and controllability. The key innovations include instance normalization guidance to remove reliance on hand-tuned guidance scales, a neuro-symbolic planning framework with explicit intermediate symbols, and a modular pipeline that integrates off-the-shelf vision models with diffusion. Empirical results on a new 100-pair benchmark demonstrate superior fidelity and qualitative performance against multiple baselines, along with ablation studies validating the contributions and identifying limitations related to occlusions and challenging lighting conditions.
Abstract
We introduce the novel Diffusion Visual Programmer (DVP), a neuro-symbolic image translation framework. Our proposed DVP seamlessly embeds a condition-flexible diffusion model within the GPT architecture, orchestrating a coherent sequence of visual programs (i.e., computer vision models) for various pro-symbolic steps, which span RoI identification, style transfer, and position manipulation, facilitating transparent and controllable image translation processes. Extensive experiments demonstrate DVP's remarkable performance, surpassing concurrent arts. This success can be attributed to several key features of DVP: First, DVP achieves condition-flexible translation via instance normalization, enabling the model to eliminate sensitivity caused by the manual guidance and optimally focus on textual descriptions for high-quality content generation. Second, the framework enhances in-context reasoning by deciphering intricate high-dimensional concepts in feature spaces into more accessible low-dimensional symbols (e.g., [Prompt], [RoI object]), allowing for localized, context-free editing while maintaining overall coherence. Last but not least, DVP improves systemic controllability and explainability by offering explicit symbolic representations at each programming stage, empowering users to intuitively interpret and modify results. Our research marks a substantial step towards harmonizing artificial image translation processes with cognitive intelligence, promising broader applications.
