In this paper, we focus on Dynamic Execution techniques that optimize the computation flow based on input. This aims to identify simpler problems that can be solved using fewer resources, similar to human cognition. The techniques discussed include early exit from deep networks, speculative sampling for language models, and adaptive steps for diffusion models. Experimental results demonstrate that these dynamic approaches can significantly improve latency and throughput without compromising quality. When combined with model-based optimizations, such as quantization, dynamic execution provides a powerful multi-pronged strategy to optimize AI inference.
Generative AI requires a large amount of compute resources. This is expected to grow, and demand for resources in data centers through to the edge is expected to continue to increase at high rates. We take advantage of existing research and provide additional innovations for some generative optimizations. In the case of LLMs, we provide more efficient sampling methods that depend on the complexity of the data. In the case of diffusion model generation, we provide a new method that also leverages the difficulty of the input prompt to predict an optimal early stopping point.
Therefore, dynamic execution methods are relevant because they add another dimension of performance optimizations. Performance is critical from a competitive point of view, but increasing capacity can result in significant power savings and cost savings. We have provided several integrations of these techniques into several Intel performance libraries and Huggingface Optimum. These integrations will make them easier to use and increase the adoption of these techniques.
Semi-Clairvoyant Scheduling of Speculative Decoding Requests to Minimize LLM Inference Latency
School of Cyber Science and Engineering, Xi’an Jiaotong University(西安交通大学计算机科学与工程学院);School of Computer Science and Engineering, The University of Aizu(台湾花莲大学计算机科学与工程学院)
Training-Inference Consistent Segmented Execution for Long-Context LLMs
College of Computer Science, Inner Mongolia University, Hohhot 010021, China;National \& Local Joint Engineering Research Center of Intelligent Information Processing Technology for Mongolian, Hohhot 010021, China;Inner Mongolia Key Laboratory of Multilingual Artificial Intelligence Technology, Hohhot 010021, China;Thrust of Artificial Intelligence, The Hong Kong University of Science
Nested Slice Sampling: Vectorized Nested Sampling for GPU-Accelerated Inference
Kavli Institute for Cosmology Cambridge(剑桥卡维利宇宙研究所);Institute of Astronomy, University of Cambridge(剑桥大学天文研究所);Cavendish Laboratory and Department of Engineering, University of Cambridge(剑桥大学卡文迪许实验室和工程系)
Cloud to Edge: Benchmarking LLM Inference On Hardware-Accelerated Single-Board Computers
Kaze Technologies(凯兹技术);Kaze Consulting(凯兹咨询);Electrical and Computer Engineering(电气与计算机工程);Lebanese American University(黎巴嫩美国大学);Carnegie Mellon University(卡内基梅隆大学);University of Exeter(埃克塞特大学)
John Curtin School of Medical Research, Australian National University(澳大利亚国立大学约翰·库廷医学研究学院);Department of Information Technology and Electrical Engineering, ETH Zürich(苏黎世联邦理工学院信息科技与电气工程系);Mathematical Data Science Centre, Australian National University(澳大利亚国立大学数学数据科学中心);Walter and Eliza Hall Institute(沃尔特和伊丽莎白·霍尔研究所)
SEED RL: Scalable and Efficient Deep-RL with Accelerated Central Inference
Brain Team(大脑团队);Google Research(谷歌研究院)
我们提出了一个现代可扩展的强化学习代理,称为SEED(可扩展的,高效的深度RL)。通过有效地利用现代加速器,我们表明,它不仅可以训练每秒数百万帧,但也降低了成本的实验相比,目前的方法。我们通过一个简单的架构实现了这一点,该架构具有集中式推理和优化的通信层。SEED采用了两种最先进的分布式算法,IMPALA/V-trace(策略梯度)和R2D2(Q-learning),并在Atari-57,DeepMind Lab和Google Research Football上进行了评估。我们提高了足球的艺术水平,并能够在Atari-57上以三倍的速度达到艺术水平。对于我们考虑的场景,运行实验的成本降低了40%到80%。实验的实现是开源的,因此可以复制结果并尝试新的想法。
Hybrid-Adaptive Thread Tuning to Mitigate Simulation Execution Bottlenecks in High-Performance Reinforcement Learning Inference
College of Systems Engineering, National University of Defense Technology(国防科技大学系统工程学院);College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机科学与技术学院)
Intention Inference Under Execution Noise: Separating Aleatoric and Epistemic Uncertainty in Social Dilemmas
University of Cape Town(开普敦大学);Neuroscience Institute, University of Cape Town(开普敦大学神经科学研究所);National Institute for Theoretical & Computational Sciences, Stellenbosch(斯泰伦博斯理论与计算科学国家研究所);Institut National de la recherche scientifique, Montreal(魁北克国家科学研究院(蒙特利尔))
Occult: Optimizing Collaborative Communication across Experts for Accelerated Parallel MoE Training and Inference
The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);University of California, Los Angeles(加州大学洛杉矶分校);University of Minnesota Twin Cities(明尼苏达大学双城分校);The Chinese University of Hong Kong(香港中文大学)
PackInfer: Compute- and I/O-Efficient Attention for Batched LLM Inference
Nanjing University, Nanjing, China(南京大学);Siebel Center for Computer Science, University of Illinois Urbana-Champaign, Urbana, IL, USA(伊利诺伊大学厄巴纳-香槟分校计算机科学中心)
Assessment of Data Consistency through Cascades of Independently Recurrent Inference Machines for fast and robust accelerated MRI reconstruction
Amsterdam UMC(阿姆斯特丹大学医学中心);University of Amsterdam(阿姆斯特丹大学);MS Center Amsterdam(阿姆斯特丹多发性硬化中心);Amsterdam Neuroscience(阿姆斯特丹神经科学研究所);Vrije Universiteit Amsterdam(阿姆斯特丹自由大学);Leiden University(莱顿大学);Delft University of Technology(代尔夫特理工大学)