paper-with-me

홈 › Papers

Negative Token Merging: Image-based Adversarial Feature Guidance

2024-12-02 · Jaskirat Singh, Lindsey Li, Weijia Shi, Ranjay Krishna, Yejin Choi, Pang Wei Koh, Michael F. Cohen, Stephen Gould, Liang Zheng, Luke Zettlemoyer

Text-based adversarial guidance using a negative prompt has emerged as a widely adopted approach to steer diffusion models away from producing undesired concepts. While useful, performing adversarial guidance using text alone can be insufficient to capture complex visual concepts or avoid specific visual elements like copyrighted characters. In this paper, for the first time we explore an alternate modality in this direction by performing adversarial guidance directly using visual features from a reference image or other images in a batch. We introduce negative token merging (NegToMe), a simple but effective training-free approach which performs adversarial guidance through images by selectively pushing apart matching visual features between reference and generated images during the reverse diffusion process. By simply adjusting the used reference, NegToMe enables a diverse range of applications. Notably, when using other images in same batch as reference, we find that NegToMe significantly enhances output diversity (e.g., racial, gender, visual) by guiding features of each image away from others. Similarly, when used w.r.t. copyrighted reference images, NegToMe reduces visual similarity to copyrighted content by 34.57%. NegToMe is simple to implement using just few-lines of code, uses only marginally higher (<4%) inference time and is compatible with different diffusion architectures, including those like Flux, which don't natively support the use of a negative prompt. Code is available at https://negtome.github.io

📄 PDF Abstract BibTeX arXiv:2412.01339

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

ReToMe-VA: Recursive Token Merging for Video Diffusion-based Unrestricted Adversarial Attack

2024-08-10 · Ziyi Gao, Kai Chen, Zhipeng Wei, Tingshu Mou 외

Recent diffusion-based unrestricted attacks generate imperceptible adversarial examples with high transferability compared to previous unrestricted attacks and restricted attacks. However, existing works on diffusion-bas…

Adversarial AttackDenoising

Learning to Merge Tokens via Decoupled Embedding for Efficient Vision Transformers

2024-12-13 · Dong Hoon Lee, Seunghoon Hong

Recent token reduction methods for Vision Transformers (ViTs) incorporate token merging, which measures the similarities between token embeddings and combines the most similar pairs. However, their merging policies are d…

Token Reduction

ToSA: Token Merging with Spatial Awareness

2025-06-24 · Hsiang-Wei Huang, Wenhao Chai, Kuang-Ming Chen, Cheng-Yen Yang 외

Token merging has emerged as an effective strategy to accelerate Vision Transformers (ViT) by reducing computational costs. However, existing methods primarily rely on the visual token's feature similarity for token merg…

Embodied Question AnsweringQuestion Answering

Local Representative Token Guided Merging for Text-to-Image Generation

2025-07-17 · Min-Jeong Lee, Hee-Dong Kim, Seong-Whan Lee arxiv

Stable diffusion is an outstanding image generation model for text-to-image, but its time-consuming generation process remains a challenge due to the quadratic complexity of attention operations. Recent token merging met…

Text-to-Image GenerationComputational Efficiency

Token Fusion: Bridging the Gap between Token Pruning and Token Merging

2023-12-02 · Minchul Kim, Shangqian Gao, Yen-Chang Hsu, Yilin Shen 외

Vision Transformers (ViTs) have emerged as powerful backbones in computer vision, outperforming many traditional CNNs. However, their computational overhead, largely attributed to the self-attention mechanism, makes depl…

Computational EfficiencyImage Generation