SEGA: Instructing Text-to-Image Models using Semantic Guidance
Manuel Brack, Felix Friedrich, Dominik Hintersdorf, Lukas Struppek, Patrick Schramowski, Kristian Kersting
TL;DR
Problem: one-shot diffusion prompts lack precise semantic control, causing unstable edits. Approach: SEGA extracts concept-conditioned directions from the model's noise estimates and combines them with classifier-free guidance without retraining or architectural changes. Contributions: formalizes semantic space, proves robustness, uniqueness, monotonicity, and isolation of concept directions, and demonstrates broad empirical gains across latent and pixel diffusion models, multi-concept edits, style transfer, and safety mitigation. Impact: enables versatile, interactive image editing with strong fidelity and cross-model applicability, informing future work on latent representations and bias-aware editing.
Abstract
Text-to-image diffusion models have recently received a lot of interest for their astonishing ability to produce high-fidelity images from text only. However, achieving one-shot generation that aligns with the user's intent is nearly impossible, yet small changes to the input prompt often result in very different images. This leaves the user with little semantic control. To put the user in control, we show how to interact with the diffusion process to flexibly steer it along semantic directions. This semantic guidance (SEGA) generalizes to any generative architecture using classifier-free guidance. More importantly, it allows for subtle and extensive edits, changes in composition and style, as well as optimizing the overall artistic conception. We demonstrate SEGA's effectiveness on both latent and pixel-based diffusion models such as Stable Diffusion, Paella, and DeepFloyd-IF using a variety of tasks, thus providing strong evidence for its versatility, flexibility, and improvements over existing methods.
