Papers
Topics
Authors
Recent
Search
2000 character limit reached

Memorization In Stable Diffusion Is Unexpectedly Driven by CLIP Embeddings

Published 6 Apr 2026 in cs.CV, cs.AI, and cs.LG | (2605.02908v1)

Abstract: Understanding how textual embeddings contribute to memorization in text-to-image diffusion models is crucial for both interpretability and safety. This paper investigates an unexpected behavior of CLIP embeddings in Stable Diffusion, revealing that the model disproportionately relies on specific embeddings. We categorize input tokens as <startoftext>, <prompt>, <endoftext> and <pad> with corresponding embeddings v<sup>sot,</sup>v<sup>pr,</sup>v<sup>eot,</sup>v<sup>pad\mathbf{v}<sup>{\mathbf{sot}},</sup> \mathbf{v}<sup>{\mathbf{pr}},</sup> \mathbf{v}<sup>{\mathbf{eot}},</sup> \mathbf{v}<sup>{\mathbf{pad}}. We discover that v<sup>pr\mathbf{v}<sup>{\mathbf{pr}} contribute minimally to generation in memorized cases. In contrast, v<sup>pad\mathbf{v}<sup>{\mathbf{pad}} strongly affect memorization due to their structural duplication of v<sup>eot\mathbf{v}<sup>{\mathbf{eot}}, the only embedding explicitly optimized during CLIP training. This duplication unintentionally amplifies the influence of v<sup>eot\mathbf{v}<sup>{\mathbf{eot}}, causing the model to over-rely on it, thereby driving memorization. Based on these observations, we propose two simple yet effective inference-time mitigation strategies: (1) Replacing the tokenizer's default <pad> from <eot> to the ! token before embedding, and masking the v<sup>eot\mathbf{v}<sup>{\mathbf{eot}}; (2) Partial masking of v<sup>pad\mathbf{v}<sup>{\mathbf{pad}}. Both suppress memorization without degrading quality, and are readily deployable without prior detection.

Authors (2)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.