Accelerating Transformers with Spectrum-Preserving Token Merging
University of Science - VNUHCM(胡志明市国家大学自然科学大学);Max Planck Research School for Intelligent Systems (IMPRS-IS)(马克斯·普朗克智能系统研究院(IMPRS-IS));University of Stuttgart(斯图加特大学);Dublin City University(都柏林城市大学);University of Queensland(昆士兰大学);University of Arkansas(阿肯色大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);UC San Diego(加利福尼亚大学圣地亚哥分校);Oldenburg University(奥尔登堡大学);Stanford University(斯坦福大学)
Hoai-Chau Tran, Duy M. H. Nguyen, Duy M. Nguyen, Trung-Tin Nguyen, Ngan Le, Pengtao Xie, Daniel Sonntag, James Y. Zou, Binh T. Nguyen, Mathias Niepert
Increasing the throughput of the Transformer architecture, a foundational component used in numerous state-of-the-art models for vision and language tasks (e.g., GPT, LLaVa), is an important problem in machine learning. One recent and effective strategy is to merge token representations within Transformer models, aiming to reduce computational and memory requirements while maintaining accuracy. Prior works have proposed algorithms based on Bipartite Soft Matching (BSM), which divides tokens into distinct sets and merges the top k similar tokens. However, these methods have significant drawbacks, such as sensitivity to token-splitting strategies and damage to informative tokens in later layers. This paper presents a novel paradigm called PiToMe, which prioritizes the preservation of informative tokens using an additional metric termed the energy score. This score identifies large clusters of similar tokens as high-energy, indicating potential candidates for merging, while smaller (unique and isolated) clusters are considered as low-energy and preserved. Experimental findings demonstrate that PiToMe saved from 40-60\% FLOPs of the base models while exhibiting superior off-the-shelf performance on image classification (0.5\% average performance drop of ViT-MAE-H compared to 2.6\% as baselines), image-text retrieval (0.3\% average performance drop of CLIP on Flickr30k compared to 4.5\% as others), and analogously in visual questions answering with LLaVa-7B. Furthermore, PiToMe is theoretically shown to preserve intrinsic spectral properties of the original token space under mild conditions
HierMoE: Accelerating MoE Training with Hierarchical Token Deduplication and Expert Swap
School of Computer Science and Technology(计算机科学与技术学院);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Data Science and Analytics Thrust, The Hong Kong University of Science and Technology (Guangzhou)(数据科学与分析方向,香港科技大学(广州));Department of Computer Science and Engineering, The Hong Kong University of Science and Technology(计算机科学与工程系,香港科技大学)
Accelerating Multi-Model Inference by Merging DNNs of Different Weights
Seoul National University(首尔国立大学);Qualcomm AI Research(高通人工智能研究院)
已被证明在机器学习任务上表现良好的标准化DNN模型被广泛使用,并经常被原样采用以解决下游任务,形成了迁移学习范式。然而,当从GPU服务器的集群服务这种DNN模型的多个实例时,用于提高GPU利用率的现有技术(诸如GPU)是不适用的,因为模型通常由于微调而不共享权重。我们提出了一种融合多个DNN模型的技术,这些模型共享相同的架构,但具有不同的权重和不同的输入。通过将操作替换为更一般的对应操作,可以使Networds成为可能,这些操作允许一组权重仅与某组输入相关联。在ResNet-50、ResNeXt-50、BERT和XLNet上进行的实验表明,NetCore在合并32个模型实例时,可以将DNN推理时间在NVIDIA V100 GPU上加快3.6倍,在TITAN Xp GPU上加快3.0倍,同时仅使用少量额外的GPU内存。
Window-Diffusion: Accelerating Diffusion Language Model Inference with Windowed Token Pruning and Caching
School of Computer Science and Technology, University of Science and Technology of China(计算机科学与技术学院,中国科学技术大学);Suzhou Institute of Advanced Research, University of Science and Technology of China(苏州先进研究院,中国科学技术大学)
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(斯坦福大学)
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(无线通信中心,奥卢大学,芬兰)
Accelerating Diffusion Transformers with Token-wise Feature Caching
Shanghai Jiao Tong University(上海交通大学);University of Electronic Science & Technology of China(电子科技大学);Sichuan University(四川大学);National University of Defense Technology(国防科技大学);Zhejiang University(浙江大学)
针对 Diffusion Transformer 计算成本高的问题,提出逐 token 自适应特征缓存,并按层类型与深度设置缓存比例,在 PixArt-α、OpenSora 和 DiT 上免训练实现近无损加速。
Shanghai Jiao Tong University(上海交通大学);South China University of Technology(南方科技大学);Beihang University(北航);Huawei Technologies Ltd(华为技术有限公司);Shanghai AI Lab(上海人工智能实验室);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findings
Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究院)