arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.25977cs.CL
收藏

NeuronMLP:通过AWS Trainium上的奇异值分解压缩和分块实现高效的LLM推理

NeuronMLP: Efficient LLM Inference via Singular Value Decomposition Compression and Tiling on AWS Trainium

University of California, Merced USA;University of Wisconsin, Madison USA;Yotta Labs \& University of California, Merced USA;University of California, Merced;University of Wisconsin, Madison;Yotta Labs \& University of California, Merced

Dinghong Song, Jierui Xu, Weichu Yang, Pengfei Su, Dong Li

AI总结:

本文提出NeuronMLP,基于奇异值分解压缩和分块技术优化AWS Trainium上的LLM推理,通过定制化技术减少数据移动,提升SRAM带宽,实现1.35倍的内核加速和1.21倍的端到端推理加速。

摘要:

新兴的AI加速器开始受到关注,并为大型语言模型(LLM)的高效推理提供了新机会。Trainium是亚马逊网络服务(AWS)最近开发的AI加速器,通过其异构架构为LLM推理提供有吸引力的选择。然而,利用Trainium架构实现高性能具有挑战性,因为其流体数组架构和对数据布局的特殊要求。本文提出NeuronMLP,一种基于奇异值分解(SVD)压缩和分块的高效LLM推理方法,适用于AWS Trainium。我们介绍了基于内核融合和新颖缓存策略的一系列技术,以减少软件管理内存层次结构中的数据移动,最大化SRAM带宽,并避免昂贵的矩阵转置。所提出的方法专门针对LLM中的多层感知机(MLP)层进行优化,这些层在Trainium上的推理中是关键计算内核。在九个数据集和六个最新LLM上评估,我们显示NeuronMLP在Trainium上显著优于AWS实现的基于Neuron Kernel Interface(NKI)的矩阵乘法(matmul)内核:在内核级别,它实现了平均1.35倍的加速,这在压缩比为0.05的情况下,转化为端到端LLM推理的平均1.21倍加速。

英文摘要:

Emerging AI accelerators have started to gain attention and offer new opportunities for efficient inference of large language models (LLMs). Trainium, an AI accelerator recently developed by Amazon Web Services (AWS), provides an attractive option for LLM inference through its heterogeneous architecture. However, leveraging Trainium architecture for high performance can be challenging because of its systolic array architecture and special requirement on data layout. In this paper, we propose NeuronMLP, an efficient LLM inference method based on Singular Value Decomposition (SVD) compression and tiling on AWS Trainium. We introduce a series of techniques customized to Trainium based on kernel fusion and novel caching strategies to reduce data movement across the software-managed memory hierarchy, maximize SRAM bandwidth, and avoid expensive matrix transpose. The proposed method is specifically optimized for multi-layer perceptron (MLP) layers in LLMs, which serve as a critical computational kernel for inference on Trainium. Evaluating on nine datasets and six recent LLMs, we show that NeuronMLP significantly outperforms the state-of-the-art Neuron Kernel Interface (NKI)-based matrix multiplication (matmul) kernel implemented by AWS on Trainium: at the kernel level, it achieves an average 1.35x speedup, which translates to an average 1.21x speedup for end-to-end LLM inference, under a compression ratio of 0.05.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑