In large language models like the Generative Pre-trained Transformer, the Mixture of Experts paradigm has emerged as a powerful technique for enhancing model expressiveness and accuracy. However, deploying GPT MoE models for parallel inference on distributed systems presents significant challenges, primarily due to the extensive Alltoall communication required for expert routing and aggregation. This communication bottleneck exacerbates the already complex computational landscape, hindering the efficient utilization of high-performance computing resources. In this paper, we propose a lightweight optimization technique called ExFlow, to largely accelerate the inference of these MoE models. We take a new perspective on alleviating the communication overhead by exploiting the inter-layer expert affinity. Unlike previous methods, our solution can be directly applied to pre-trained MoE models without any fine-tuning or accuracy degradation. By proposing a context-coherent expert parallelism on distributed systems, our design only uses one Alltoall communication to deliver the same functionality while previous methods all require two Alltoalls. By carefully examining the conditional probability in tokens' routing across multiple layers, we proved that pre-trained GPT MoE models implicitly exhibit a strong inter-layer expert affinity. We then design an efficient integer programming model to capture such features and show that by properly placing the experts on corresponding GPUs, we can reduce up to 67% cross-GPU routing latency. Our solution beats the cutting-edge MoE implementations with experts from 8 to 64, with up to 2.2x improvement in inference throughput. We further provide a detailed study of how the model implicitly acquires this expert affinity at the very early training stage and how this affinity evolves and stabilizes during training.
The Sharpness Disparity Principle in Transformers for Accelerating Language Model Pre-Training
School of Mathematical Sciences, Peking University(北京大学数学科学学院);Center for Machine Learning Research, Peking University(北京大学机器学习研究中心);Shanghai Jiao Tong University(上海交通大学);AI for Science Institute, Beijing, China(北京人工智能科学研究院)
CreoPep: A Universal Deep Learning Framework for Target-Specific Peptide Design and Optimization
Key Laboratory of Marine Drugs, Chinese Ministry of Education, School of Medicine and Pharmacy, Ocean University of China(海洋大学药理学重点实验室,中国教育部,医学院药学学院,中国海洋大学);Laboratory for Marine Drugs and Bioproducts, Qingdao Marine Science and Technology Center(海洋药物与生物制品实验室,青岛海洋科学与技术中心);Molecular Horizons, Faculty of Science, Medicine and Health, University of Wollongong(分子前沿,科学、医学与健康学院,沃林戈大学);Faculty of Information Science and Engineering, Ocean University of China(信息科学与工程学院,中国海洋大学);Shandong Academy of Pharmaceutical Sciences(山东省药科院);Institute of Bioinformatics and Medical Engineering, School of Electrical and Information Engineering, Jiangsu University of Technology(生物信息学与医学工程学院,江苏科技大学)
Exploiting Pre-trained Models for Drug Target Affinity Prediction with Nearest Neighbors
Gaoling School of AI (GSAI), Renmin University of China(中国人民大学高瓴人工智能学院(GSAI));Microsoft Research(微软研究院);School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院);University of Science and Technology of China(中国科学技术大学);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, Ministry of Education(教育部下一代智能搜索与推荐工程研究中心)
Accelerating trajectory optimization with Sobolev-trained diffusion policies
Inria - Département d’Informatique de l’École normale supérieure, PSL Research University(法国国家科学研究中心-巴黎高等师范学院计算机系,PSL研究大学);Courant Institute, New York University(纽约大学Courant研究所)
SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inference
Dept. of Comp. Sci. and Tech., Institute for AI, BNRist Center, THBI Lab, Tsinghua-Bosch Joint ML Center, Tsinghua University(计算机科学与技术系,人工智能研究所,BNRist中心,THBI实验室,清华-博世联合机器学习中心,清华大学);Institute for Interdisciplinary Information Sciences, Tsinghua University(交叉信息学院,清华大学);EECS, University of California, Berkeley(电子工程与计算机科学系,加州大学伯克利分校)