The Curious Case of End Token: A Zero-Shot Disentangled Image Editing using CLIP

Hidir Yesiltepe,Yusuf Dalva,Pinar Yanardag
2024-06-01
Abstract:Diffusion models have become prominent in creating high-quality images. However, unlike GAN models celebrated for their ability to edit images in a disentangled manner, diffusion-based text-to-image models struggle to achieve the same level of precise attribute manipulation without compromising image coherence. In this paper, CLIP which is often used in popular text-to-image diffusion models such as Stable Diffusion is capable of performing disentangled editing in a zero-shot manner. Through both qualitative and quantitative comparisons with state-of-the-art editing methods, we show that our approach yields competitive results. This insight may open opportunities for applying this method to various tasks, including image and video editing, providing a lightweight and efficient approach for disentangled editing.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem discussed in this paper is how to achieve unsupervised and decoupled image editing in diffusion models, especially addressing the difficulties faced by text-to-image diffusion models (such as Stable Diffusion) in precise attribute manipulation, which often struggles to maintain image consistency. The study found that CLIP (Contrastive Language-Image Pretraining), an image-text alignment model based on contrastive learning, can perform decoupled editing in zero-shot settings. Through qualitative and quantitative comparisons with existing state-of-the-art editing methods, the paper demonstrates that competitive image editing can be achieved using the <EOS> (end-of-sequence) token within the CLIP model, and this approach may be lightweight and efficient. This opens up new possibilities for various tasks, including image and video editing, without the need for additional expensive training processes.