在忆阻器交叉阵列上实现大语言模型的节能部署:大与小的协同
Enabling Energy-Efficient Deployment of Large Language Models on Memristor Crossbar: A Synergy of Large and Small
AI总结:
本文提出一种新型忆阻器交叉阵列架构,通过大模型与小模型协同解决LLM部署中的规模、多头注意力和非线性运算三大挑战,在单芯片上实现高能效LLM推理,相比TPU/GPU显著降低面积-延迟乘积和能耗。
摘要:
大语言模型(LLMs)因其在多个领域具有广阔的应用前景而受到广泛关注。然而,LLM 规模的不断增大导致训练和部署的计算需求急剧上升。忆阻器交叉阵列已成为一种有前景的解决方案,在计算机视觉(CV)模型中展现出占地面积小和极高的能效。与传统存储技术相比,忆阻器具有更高的密度,使其非常适合有效管理 LLM 相关的超大模型规模。然而,在忆阻器交叉阵列上部署 LLM 面临三大挑战。首先,LLM 的规模迅速增长,已经超越了当前最先进忆阻器芯片的能力。其次,LLM 通常包含多头注意力模块,其中涉及传统忆阻器交叉阵列无法支持的非权重固定乘法。第三,虽然忆阻器交叉阵列擅长执行线性运算,但它们无法执行 LLM 中复杂的非线性运算,如 softmax 和层归一化。为应对这些挑战,我们提出了一种新颖的忆阻器交叉阵列架构,能够在单个芯片或封装上部署最先进的 LLM,消除了片外通信带来的能量和时间低效问题。我们在 BERT_Large 上的测试显示精度损失可忽略不计。与传统忆阻器交叉阵列相比,我们的架构在面积开销上实现了高达 39 倍的改进,在能耗上实现了 18 倍的改进。与现代 TPU/GPU 系统相比,我们的架构在面积-延迟乘积上至少降低了 68 倍,能耗显著降低了 69%。
英文摘要:
Large language models (LLMs) have garnered substantial attention due to their promising applications in diverse domains. Nevertheless, the increasing size of LLMs comes with a significant surge in the computational requirements for training and deployment. Memristor crossbars have emerged as a promising solution, which demonstrated a small footprint and remarkably high energy efficiency in computer vision (CV) models. Memristors possess higher density compared to conventional memory technologies, making them highly suitable for effectively managing the extreme model size associated with LLMs. However, deploying LLMs on memristor crossbars faces three major challenges. Firstly, the size of LLMs increases rapidly, already surpassing the capabilities of state-of-the-art memristor chips. Secondly, LLMs often incorporate multi-head attention blocks, which involve non-weight stationary multiplications that traditional memristor crossbars cannot support. Third, while memristor crossbars excel at performing linear operations, they are not capable of executing complex nonlinear operations in LLM such as softmax and layer normalization. To address these challenges, we present a novel architecture for the memristor crossbar that enables the deployment of state-of-the-art LLM on a single chip or package, eliminating the energy and time inefficiencies associated with off-chip communication. Our testing on BERT_Large showed negligible accuracy loss. Compared to traditional memristor crossbars, our architecture achieves enhancements of up to 39X in area overhead and 18X in energy consumption. Compared to modern TPU/GPU systems, our architecture demonstrates at least a 68X reduction in the area-delay product and a significant 69% energy consumption reduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。