NASiC: 基于3D NAND的CAM选择多比特CIM架构,用于高效设备端混合专家大语言模型推理
NASiC: 3D NAND-based CAM-Selected Multibit CIM Architecture for Efficient On-Device Mixture-of-Experts LLM Inference
AI总结:
针对MoE模型在设备端部署时动态稀疏专家激活导致计算并行度下降和Flash多比特存储能力利用不足的问题,提出NASiC架构,通过CAM掩码机制融合专家选择与CIM计算,结合电路级优化和多比特CIM单元,显著提升吞吐量和能效。
摘要:
混合专家(MoE)模型已成为扩展大语言模型(LLM)而不成比例增加计算成本的最先进范式。然而,其设备端部署面临存储所有专家参数所需大内存的关键挑战。基于3D NAND的存内计算(CIM)架构独特地提供了高存储容量和减少的数据移动,但它们不适合具有动态稀疏专家激活的MoE模型,导致有效计算并行度下降以及Flash单元多比特存储能力的利用不足。在这项工作中,我们提出了一种基于3D NAND的内容可寻址选择CIM架构,称为NASiC,专为MoE模型定制。通过利用3D NAND技术的固有字符串结构,NASiC将基于CAM掩码机制的动态专家选择与通过CIM的激活专家计算融合到一个计算周期中,消除了冗余计算并增强了计算并行度。此外,电路级优化和多比特CIM单元与所提出的NASiC架构协同设计,具有块级并行计算和原位有符号多比特输入和权重扩展的特点,显著提高了NAND CIM阵列的吞吐量和能效,以及高密度3D NAND技术在MoE模型中的利用率。通过广泛的实验结果,我们证明NASiC在最先进的设计上实现了4-114.8倍的性能提升和3.9-70倍的能效提升,同时保持高精度,显示了其在高效设备端MoE LLM推理中的巨大潜力。
英文摘要:
The Mixture-of-Experts (MoE) models have emerged as the state-of-the-art paradigm for scaling up large language models (LLMs) without proportionally increased computational cost. However, its on-device deployment faces a critical challenge due to the large memory requirement for storing all expert parameters. 3D NAND-based computing-in-memory (CIM) architectures uniquely offer high storage capacity and reduced data movement, while they are ill-suited for MoE models with dynamically sparse expert activation, leading to a degradation of effective computational parallelism, along with underutilization of multibit storage capability of Flash cells. In this work, we proposed a 3D NAND-based content addressable-selected CIM architecture, dubbed as NASiC, which is tailored to MoE models. By leveraging the intrinsic string structure of 3D NAND technology, NASiC fuses the dynamical expert selection through CAM-based masking mechanism and activated expert computation through CIM into a single computation cycle, eradicating redundant computation and enhancing computational parallelism. Moreover, circuit-level optimizations and multibit CIM cell are co-designed with proposed NASiC architecture, featuring block-wise parallel computation with in-situ signed multibit input and weight expansion, substantially improving the throughput and energy-efficiency of NAND CIM array, as well as the utilization of high-density 3D NAND technology for MoE models. With extensive experimental results, we demonstrate NASiC achieves 4-114.8x improved performance and 3.9-70x improved energy efficiency over state-of-the-art designs, along with high accuracy, showing its great potential for efficient on-device MoE LLM inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。