Introduction
Text-to-image (T2I) models like Stable Diffusion have revolutionized creative workflows, yet they remain difficult to steer precisely. Users often find themselves in a repetitive cycle of prompt engineering and seed swapping, hoping for a single "lucky" generation where every element—subject, background, and lighting—aligns perfectly. While spatial guidance tools like ControlNet offer more control, the stochastic nature of the diffusion process still results in inconsistencies across different runs.
Generative Photomontage addresses this by treating image creation as a collaborative, multi-image composition task. Instead of settling for one imperfect image, users can select the best components from a stack of generated candidates and merge them into a single, high-fidelity composite.
Methodology
The framework employs a three-stage pipeline designed to maintain generative harmony while allowing for precise local edits.
1. Image Stack Generation
The process begins by generating a set of spatially aligned images using a fixed spatial condition (e.g., a Canny edge map or depth map) via ControlNet. By varying the random seeds or slightly adjusting prompts, the system produces a "stack" of variations that share a common structure but differ in textures, colors, and background details.
2. Feature-Space Segmentation
To combine these images, users provide sparse brush strokes to indicate preferred regions. Unlike traditional methods that operate on pixels, this framework performs multi-label graph-cut optimization within the diffusion model’s feature space. By utilizing the "Key" ($K$) features from self-attention layers, the algorithm identifies "semantic seams" that follow natural object boundaries rather than simple color gradients, leading to more realistic transitions.
3. Self-Attention Feature Injection
The final blending step avoids simple "copy-pasting." Instead, it constructs composite Query ($Q$), Key ($K$), and Value ($V$) feature maps. A critical innovation is the use of "Query Adaptation": for the base image regions, the model is allowed to generate its own Query features ($Q^{model}$) during the blending pass. This flexibility enables the diffusion process to dynamically adjust the image near seams—for instance, by automatically rendering contact shadows or reflections for a newly introduced object.
Results and Evaluation
Generative Photomontage was evaluated against established baselines such as Blended Latent Diffusion and MasaCtrl. Quantitative results show that the method achieves a superior PSNR (22.46), indicating high preservation of local details. Qualitatively, the approach effectively eliminates common artifacts like color bleeding and structural ghosting.
In user studies, participants overwhelmingly preferred Generative Photomontage for its ability to produce realistic, seamless composites. The method proved particularly effective in four key scenarios: appearance mixing, shape correction, artifact removal, and complex prompt alignment.
Conclusion
By shifting the composition process from pixel space to the diffusion feature space, Generative Photomontage provides a robust solution to the "trial-and-error" bottleneck of T2I generation. It transforms the creative process from a game of chance into a deliberate selection and blending task, ensuring that the final output reflects the user's intent across every region of the image.
Summary updated