Abstract
Conventional Text-guided single-image editing approaches require a two-step process, including fine-tuning the target text embedding for over 1K iterations and the generative model for another 1.5K iterations. Although it ensures that the resulting image closely aligns with both the input image and the target text, this process often requires 7 minutes per image, posing a challenge for practical application due to its time-intensive nature. To address this bottleneck, we introduce FastEdit, a fast text-guided single-image editing method with semantic-aware diffusion fine-tuning, dramatically accelerating the editing process to only 17 seconds. FastEdit streamlines the generative model's fine-tuning phase, reducing it from 1.5K to a mere 50 iterations. For diffusion fine-tuning, we adopt certain time step values based on the semantic discrepancy between the input image and target text. Furthermore, FastEdit circumvents the initial fine-tuning step by utilizing an image-to-image model that conditions on the feature space, rather than the text embedding space. It can effectively align the target text prompt and input image within the same feature space and save substantial processing time. Additionally, we apply the parameter-efficient fine-tuning technique LoRA to U-net. With LoRA, FastEdit minimizes the model's trainable parameters to only 0.37% of the original size. At the same time, we can achieve comparable editing outcomes with significantly reduced computational overhead. We conduct extensive experiments to validate the editing performance of our approach and show promising editing capabilities, including content addition, style transfer, background replacement, and posture manipulation, etc.
Introduction
Text-guided single-image editing—tasks such as changing a subject's posture or adding specific objects—is a notoriously difficult "overfitting" problem. To preserve the unique details of a single input image while adhering to a text prompt, current state-of-the-art methods like Imagic utilize a slow, two-step process involving extensive embedding optimization and full model fine-tuning. This 7-minute-per-image bottleneck makes such tools impractical for real-time creative workflows. FastEdit aims to break this bottleneck, achieving high-quality non-rigid edits in just 17 seconds.
Methodology
FastEdit introduces three key innovations to bypass traditional processing bottlenecks:
Image-to-Image Conditioning
Instead of the slow process of optimizing text embeddings to "fit" an image, FastEdit utilizes an image-to-image variant of Stable Diffusion. By extracting features directly from the input image using a CLIP image encoder, the model aligns the image and text prompts in the same latent space instantly. This completely removes the initial 2-minute optimization step found in previous methods.
Semantic-Aware Diffusion Fine-Tuning
Research indicates a trade-off in diffusion timesteps ($t$): small values preserve texture but may distort structure, while large values preserve structure but lose texture. FastEdit calculates the semantic discrepancy (cosine distance) between the input image and target text to customize the range of timesteps used during fine-tuning. This targeted approach allows the model to converge in just 50 iterations rather than 1,500.
LoRA Integration
Rather than fine-tuning the entire 860M parameter U-Net, FastEdit applies Low-Rank Adaptation (LoRA). This reduces trainable parameters to just 0.37% (3.2M) of the original size, preventing "language drift" and significantly reducing computational overhead.
Experimental Results
The researchers evaluated FastEdit using TEdBench and a custom dataset of 54 high-resolution image-text pairs. FastEdit outperforms baselines across almost every metric while being orders of magnitude faster.
Key Performance Metrics
- Speed: 17 seconds per image on a single NVIDIA A6000 GPU (vs. ~420 seconds for Imagic).
- Text Alignment: Achieved a CLIP Score of 0.269, higher than Imagic (0.248) and SVDiff (0.247).
- Human Preference: In a user study with 120 participants, FastEdit was preferred 37.6% of the time, significantly higher than the next best method.
Conclusion
FastEdit demonstrates that high-quality, non-rigid image editing can be achieved in seconds. By bypassing iterative text optimization and utilizing semantic-aware timestep selection, the framework provides a practical solution for real-time creative tools. Future work will explore even more granular semantic strategies, such as applying different timestep ranges to specific layers of the U-Net to further decouple global structure from local texture.
Summary updated