Training-Free Sketch-Guided Diffusion with Latent Optimization
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Based on recent advanced diffusion models, Text-to-image (T2I) generation models have demonstrated their capabilities to generate diverse and high-quality images. However, leveraging their potential for real-world content creation, particularly in providing users with precise control over the image generation result, poses a significant challenge. In this paper, we propose an innovative training-free pipeline that extends existing text-to-image generation models to incorporate a sketch as an additional condition. To generate new images with a layout and structure closely resembling the input sketch, we find that these core features of a sketch can be tracked with the cross-attention maps of diffusion models. We introduce latent optimization, a method that refines the noisy latent at each intermediate step of the generation process using cross-attention maps to ensure that the generated images adhere closely to the desired structure outlined in the reference sketch. Through latent optimization, our method enhances the accuracy of image generation, offering users greater control and customization options in content creation.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 38 of its 41 references that are in the map. First posted on arXiv 31 Aug 2024.
Builds on
38 of 41 references.
Closest ancestors · 17
Same direction, newest first
- 2024It's All About Your Sketch: Democratising Sketch Control in Diffusion Models12 Mar
- 2023The Lottery Ticket Hypothesis in Denoising: Towards Semantic-Driven Initialization13 Dec
- 2023Guided Image Synthesis via Initial Image Editing in Diffusion Model5 May
- 2023T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models16 Feb
- 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
- 2022Sketch-Guided Text-to-Image Diffusion Models24 Nov
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
- 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
- 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoisers2 Nov
- 2022Adaptively-Realistic Image Generation from Stroke and Sketch with Diffusion Model26 Aug
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
5 more
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
- 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov
- 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation6 Oct
Other references · 21
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,761
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
9 more
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
- 2023Zero-shot Image-to-Image Translationcited by 505
- 2023Training-Free Layout Control with Cross-Attention Guidancecited by 313
- 2021Adversarial Open Domain Adaptation for Sketch-to-Photo Synthesiscited by 24
- 2023Training-Free Location-Aware Text-to-Image Synthesiscited by 13
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 2.
7 papers.
- 2025IntrinsicEdit: Precise generative image manipulation in intrinsic spacecited by 17
- 2025Diverse Text-to-Image Generation via Contrastive Noise Optimizationcited by 12
- 2025LORE: Latent Optimization for Precise Semantic Control in Rectified Flow-based Image Editingcited by 3
- 2024Scribble-Guided Diffusion for Training-free Text-to-Image Generationcited by 2
- 2025Replace in Translation: Boost Concept Alignment in Counterfactual Text-to-Imagecited by 1
- 2026SketchingReality: From Freehand Scene Sketches To Photorealistic Imagescited by 1
- 2026DiffStyle3D: Consistent 3D Gaussian Stylization via Attention Optimizationcited by 0
- 2026SketchingReality: From Freehand Scene Sketches To Photorealistic Images16 Feb 2026
- 2026DiffStyle3D: Consistent 3D Gaussian Stylization via Attention Optimization27 Jan 2026
- 2025Diverse Text-to-Image Generation via Contrastive Noise Optimization4 Oct 2025
- 2025LORE: Latent Optimization for Precise Semantic Control in Rectified Flow-based Image Editing5 Aug 2025
- 2025Replace in Translation: Boost Concept Alignment in Counterfactual Text-to-Image20 May 2025
- 2025IntrinsicEdit: Precise generative image manipulation in intrinsic space13 May 2025
- 2024Scribble-Guided Diffusion for Training-free Text-to-Image Generation12 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2023DiffSketcher: Text Guided Vector Sketch Synthesis through Latent Diffusion Models
- 2024KnobGen: Controlling the Sophistication of Artwork in Sketch-Based Diffusion Models
- 2025CoProSketch: Controllable and Progressive Sketch Generation with Diffusion Model
- 2023SketchFFusion: Sketch-guided image editing with diffusion model
- 2023Reference-based Image Composition with Sketch via Structure-aware Diffusion Model
- 2022High-Fidelity Guided Image Synthesis with Latent Diffusion Models
- 2023Diffusion Brush: A Latent Diffusion Model-based Editing Tool for AI-generated Images
- 2025d-Sketch: Improving Visual Fidelity of Sketch-to-Image Translation with Pretrained Latent Diffusion Models without Retraining