arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08413cs.ARcs.LG
收藏

内存即一切:用于加速大语言模型推理的存内计算架构综述

Memory Is All You Need: An Overview of Compute-in-Memory Architectures for Accelerating Large Language Model Inference

Technical University of Munich(慕尼黑工业大学);The University of Tokyo(东京大学);Stanford University(斯坦福大学)

Christopher Wolters, Xiaoxuan Yang, Ulf Schlichtmann, Toyotaro Suzumura

AI总结:

本文综述面向大语言模型推理加速的存内计算架构,分析 transformer 算子、硬件方案及内存墙等挑战。

摘要:

大语言模型(LLM)近期改变了自然语言处理,使机器能够生成类人文本并进行有意义的对话。随着这些系统的计算和内存需求呈指数级增长,这一发展要求 LLM 推理具备速度、效率和可访问性。与此同时,计算和内存能力的进步却滞后,摩尔定律的终结更使情况恶化。由于 LLM 已超出单块 GPU 的容量,它们需要复杂的、专家级的并行处理配置。内存访问的成本显著高于计算,这给高效扩展带来挑战,即所谓的内存墙。在此背景下,存内计算(CIM)技术通过直接在内存中执行模拟计算,为加速 AI 推理提供了一种有前景的解决方案,有望降低延迟和功耗。通过紧密集成内存与计算单元,CIM 消除了冯·诺依曼瓶颈,减少了数据移动并提高了能效。本综述论文对基于 transformer 的模型进行概述和分析,回顾多种 CIM 架构,并探讨它们如何应对现代 AI 计算系统迫在眉睫的挑战。我们讨论了与 transformer 相关的算子及其硬件加速方案,并强调相应 CIM 设计中的挑战、趋势和洞见。

英文摘要:

Large language models (LLMs) have recently transformed natural language processing, enabling machines to generate human-like text and engage in meaningful conversations. This development necessitates speed, efficiency, and accessibility in LLM inference as the computational and memory requirements of these systems grow exponentially. Meanwhile, advancements in computing and memory capabilities are lagging behind, exacerbated by the discontinuation of Moore's law. With LLMs exceeding the capacity of single GPUs, they require complex, expert-level configurations for parallel processing. Memory accesses become significantly more expensive than computation, posing a challenge for efficient scaling, known as the memory wall. Here, compute-in-memory (CIM) technologies offer a promising solution for accelerating AI inference by directly performing analog computations in memory, potentially reducing latency and power consumption. By closely integrating memory and compute elements, CIM eliminates the von Neumann bottleneck, reducing data movement and improving energy efficiency. This survey paper provides an overview and analysis of transformer-based models, reviewing various CIM architectures and exploring how they can address the imminent challenges of modern AI computing systems. We discuss transformer-related operators and their hardware acceleration schemes and highlight challenges, trends, and insights in corresponding CIM designs.

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

↑