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

基于多路复用和缓存的混合专家模型内存计算面积高效方法

Area-Efficient In-Memory Computing for Mixture-of-Experts via Multiplexing and Caching

University of Virginia(弗吉尼亚大学)

Hanyuan Gao, Xiaoxuan Yang

AI总结:

本文提出了一种基于多路复用和缓存的混合专家模型存内计算架构,通过减少面积开销和优化负载平衡,提高了MoE的面积效率和生成性能。

摘要:

混合专家(MoE)层激活模型权重子集,即专家,以提高模型性能。MoE在过程存内(PIM)架构上的部署尤为有前景,因为PIM可以自然地将专家分开并为能效带来巨大好处。然而,PIM芯片常常面临较大的面积开销,尤其是在外围电路方面。在本文中,我们提出了一种适用于MoE变压器的面积高效的存内计算架构。首先,为了减少面积,我们提出了一种在交叉bar层面的多路复用策略,利用MoE稀疏性:专家部署在交叉bar上,多个交叉bar共享相同的外围电路。其次,我们提出专家分组和组级调度方法,以缓解由于共享导致的负载不平衡和竞争开销。此外,为了解决专家选择路由器在生成过程中需要访问所有隐藏状态的问题,我们提出了一种门输出(GO)缓存来存储必要的结果并绕过昂贵的额外计算。实验显示,我们的方法将MoE部分的面积效率提高了2.2倍,相比最先进的架构。在生成过程中,缓存将性能和能效分别提高了4.2倍和10.1倍,当生成8个token时。总性能密度达到15.6 GOPS/W/mm2。代码在https://github.com/superstarghy/MoEwithPIM上开源。

英文摘要:

Mixture-of-Experts (MoE) layers activate a subset of model weights, dubbed experts, to improve model performance. MoE is particularly promising for deployment on process-in-memory (PIM) architectures, because PIM can naturally fit experts separately and provide great benefits for energy efficiency. However, PIM chips often suffer from large area overhead, especially in the peripheral circuits. In this paper, we propose an area-efficient in-memory computing architecture for MoE transformers. First, to reduce area, we propose a crossbar-level multiplexing strategy that exploits MoE sparsity: experts are deployed on crossbars and multiple crossbars share the same peripheral circuits. Second, we propose expert grouping and group-wise scheduling methods to alleviate the load imbalance and contention overhead caused by sharing. In addition, to address the problem that the expert choice router requires access to all hidden states during generation, we propose a gate-output (GO)cache to store necessary results and bypass expensive additional computation. Experiments show that our approaches improve the area efficiency of the MoE part by up to 2.2x compared to a SOTA architecture. During generation, the cache improves performance and energy efficiency by 4.2x and 10.1x, respectively, compared to the baseline when generating 8 tokens. The total performance density achieves 15.6 GOPS/W/mm2. The code is open source at https://github.com/superstarghy/MoEwithPIM.

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

↑