The Curious Case of End Token: A Zero-Shot Disentangled Image Editing using CLIP
Hidir Yesiltepe, Yusuf Dalva, Pinar Yanardag
TL;DR
This work tackles disentangled attribute editing in diffusion-based image synthesis, where editing often entangles multiple regions. It reveals that the CLIP EOS token can serve as a zero-shot editing signal by swapping the EOS embedding of a target attribute into a source embedding, formalized as $sigma(s,g) = [s_{<SOS>:N} | w * g_{<EOS>}]$, enabling training-free edits. Compared with state-of-the-art methods such as SEGA, Ledits++, and Cycle Diffusion, the EOS-based approach yields competitive edit quality and disentanglement, with NSFW moderation demonstrated and a mean-opinion-score study supporting effectiveness. The method is lightweight and widely applicable to image and potentially video editing, offering a practical pathway for rapid, attribute-specific manipulation in diffusion models.
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.
