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
Variable-Length Tokenization via Learnable Global Merging for Diffusion Transformers
Kim Jaechul Graduate School of AI, KAIST, Daejeon, South Korea(韩国科学技术院金载哲人工智能研究生院,大田,韩国);School of Computing, KAIST, Daejeon, South Korea(韩国科学技术院计算学院,大田,韩国)
开放词汇扩散模型永远地改变了图像生成的前景。然而,这些模型的核心是使用Transformers,这使得发电速度很慢。已经出现了更好的实现来增加这些Transformers的吞吐量,但它们仍然评估整个模型。在本文中,我们反而加快扩散模型,利用自然冗余生成的图像合并冗余令牌。在对令牌合并(ToMe)进行了一些特定于扩散的改进之后,我们的ToMe for Stable Diffusion可以将现有稳定扩散模型中的令牌数量减少多达60%,同时仍然可以生成高质量的图像,而无需任何额外的训练。在此过程中,我们将图像生成速度提高了2倍,并将内存消耗减少了5.6倍。此外,这通过xFormers等高效实现加快了堆栈速度,对质量的影响最小,同时对于大型图像的速度提高了5.4倍。代码可在https://github.com/dbolya/tomesd上获得。
MergeTok: Unified Continuous and Discrete Visual Tokenization via Token Merging
Tsinghua University(清华大学);Westlake University(西湖大学);Zhejiang University(浙江大学);Hong Kong University of Science and Technology(香港科学与技术大学);OPPO;Shanghai AI Lab(上海人工智能实验室)
Adaptive Pareto-Optimal Token Merging for Edge Transformer Models in Semantic Communication
Department of Electrical Engineering(电气工程系);KU 6G Research Centre, College of Computing(KU 6G研究中心,计算学院);Mathematical Sciences, Khalifa University, UAE(数学科学,卡利法大学,阿联酋);Department of Electrical and Software Engineering(电气与软件工程系);University of Calgary, Canada(卡尔加里大学,加拿大);Centre for Wireless Communications, University of Oulu, Finland(无线通信中心,奥卢大学,芬兰)
Attend to Not Attended: Structure-then-Detail Token Merging for Post-training DiT Acceleration
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);National Cheng-Kung University(国立成功大学)
针对 DiT 推理计算昂贵的问题,本文提出训练后即插即用的 SDTM,依据“先结构后细节”先验动态合并冗余视觉 token,实现 1.55 倍加速且几乎不损失图像质量。
MergeVQ: A Unified Framework for Visual Generation and Representation with Disentangled Token Merging and Quantization
Zhejiang University(浙江大学);Tsinghua University(清华大学);Westlake University(西湖大学);The Hong Kong University of Science and Technology(香港科技大学);OPPO AI Center(OPPO人工智能中心);CAIR, HKISI-CAS(中国科学院香港中文大学深圳先进集成技术研究所);MAIS CASIA(中国科学院自动化研究所多模态人工智能系统实验室);University of Chinese Academy of Sciences(中国科学院大学)
Token Merging for Training-Free Semantic Binding in Text-to-Image Synthesis
Nankai University(南开大学);Computer Vision Center(计算机视觉中心);Universitat Autònoma de Barcelona(巴塞罗那自治大学);University of Chinese Academy of Sciences(中国科学院大学);Mohamed bin Zayed University of AI(穆罕默德·本·扎耶德人工智能大学);Linkoping University(林雪平大学);NKIARI(深圳市人工智能与机器人研究院)
Not all tokens contribute equally to diffusion learning
School of Mechanical Engineering, Guizhou University, Guizhou, China(贵州大学机械工程学院);School of Information Science and Technology, Hangzhou Normal University, Zhejiang, China(杭州师范大学信息科学与技术学院)
MoE Key Lab of Artificial Intelligence, AI Institute, Shanghai Jiao Tong University(上海交通大学人工智能研究院教育部人工智能重点实验室);vivo Mobile Communication Co., Ltd.(维沃移动通信有限公司)
MergeOver: Post-Training Token Merging for Recursive Vision Transformers
University of Twente(特文特大学);Faculty of Engineering Technology, University of Twente(特文特大学工程技术学院);Computer Architecture for Embedded Systems, University of Twente(特文特大学嵌入式系统计算机架构实验室)
StructSAM: Structure- and Spectrum-Preserving Token Merging for Segment Anything Models
University of Stuttgart(斯图加特大学);DFKI;Max Planck Research School(马克斯·普朗克研究学校);University of Oldenburg(奥尔登堡大学);Technical University of Darmstadt(达姆施塔特技术大学);VinRobotics;VinUniversity(Vin大学);Aalto University(阿莱大学);Queensland University of Technology(昆士兰技术大学);HUST(华中科技大学);Technical University of Denmark(丹麦技术大学);University of Arkansas(阿肯色大学);UC San Diego(圣地亚哥大学);Stanford University(斯坦福大学)
LapMerge: Differentiable Exact-Budget Token Merging in Linear Time
Jagiellonian University in Kraków(克拉科夫雅盖隆大学);Institute of Fundamental Technological Research, Polish Academy of Sciences(波兰科学院基础技术研究所);Centre for Credible AI, Warsaw University of Technology(华沙理工大学可信人工智能中心)
Token Merging via Spatiotemporal Information Mining for Surgical Video Understanding
Department of Electronic and Computer Engineering, The Hong Kong University of Science and Technology(电子与计算机工程系,香港科学与技术大学);School of Electronic Information and Communications, Huazhong University of Science and Technology(电子信息与通信学院,华中科技大学)