arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.02988cs.LGcs.AI
收藏

NLI:非均匀线性插值近似非线性操作以实现高效的大语言模型推理

NLI:Non-uniform Linear Interpolation Approximation of Nonlinear Operations for Efficient LLMs Inference

Houmo AI;Southeast University(南京东南大学)

Jiangyong Yu, Xiaomeng Han, Xing Hu, Chen Xu, Zhe Jiang, Dawei Yang

AI总结:

本文提出NLI框架,通过非均匀线性插值高效近似非线性操作,提升大语言模型推理效率。

摘要:

大型语言模型(LLMs)在广泛的任务上展示了显著的性能,但其部署通常受到显著的内存足迹和计算成本的限制。尽管先前的工作在压缩和加速线性层方面取得了显著进展,但非线性层(如SiLU、RMSNorm和Softmax)仍然严重依赖高精度浮点运算。在本文中,我们提出了一种无需校准、动态规划最优且硬件友好的框架,称为非均匀线性插值(NLI)。NLI能够高效地近似多种非线性函数,使无缝集成到LLMs和其他深度神经网络成为可能,几乎不损失精度。NLI巧妙地将切点选择转化为动态规划问题,通过Bellman最优性原理,在O(MxN2)时间内实现全局最小插值误差。基于NLI算法,我们还设计并实现了一个即插即用的通用非线性计算单元。硬件实验表明,NLI引擎相比最先进的设计在计算效率上提高了超过4倍。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable performance across a wide range of tasks, but their deployment is often constrained by substantial memory footprints and computational costs. While prior work has achieved significant progress in compressing and accelerating linear layers, nonlinear layers-such as SiLU, RMSNorm, and Softmax-still heavily depend on high-precision floating-point operations. In this paper, we propose a calibration-free, dynamic-programming-optimal, and hardware-friendly framework called Non-uniform Linear Interpolation (NLI). NLI is capable of efficiently approximating a variety of nonlinear functions, enabling seamless integration into LLMs and other deep neural networks with almost no loss in accuracy. NLI ingeniously recasts cutpoint selection as a dynamic-programming problem, achieving the globally minimal interpolation error in O(MxN2) time via Bellman's optimality principle. Based on the NLI algorithm, we also design and implement a plug-and-play universal nonlinear computation unit. Hardware experiments demonstrate that the NLI Engine achieves more than 4x improvement in computational efficiency compared to the state-of-the-art designs.

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

↑