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

IMSSA:在现代忆阻器存内计算硬件上部署状态空间模型

IMSSA: Deploying modern state-space models on memristive in-memory compute hardware

Peter-Gruenberg-Institute (PGI-14)(彼得-格鲁恩贝格研究所);Forschungszentrum Juelich GmbH(尤利希研究中心)

Sebastian Siegel, Ming-Jay Yang, John-Paul Strachan

AI总结:

本文提出IMSSA,通过量化感知训练缩减S4D模型规模,并首次在忆阻器存内计算硬件上部署S4内核,实现边缘设备上的高效长序列处理。

摘要:

处理长时间序列是深度学习中的一个关键挑战。近年来,Transformer已成为此任务的最先进技术,但由于需要显式存储序列,其内存需求过高。为解决此问题,结构化状态空间序列(S4)模型近期出现,其提供固定的内存状态,同时仍能处理非常长的序列上下文。这些模型中状态的循环线性更新使其在现代图形处理单元(GPU)上通过将循环展开为卷积而变得高效。然而,这种方法需要大量内存和大规模并行计算,而这仅在最新的GPU上可用。在这项工作中,我们旨在通过量化感知训练显著减小S4D模型的规模和计算需求,从而将S4模型的能力带到边缘硬件,甚至针对一个简单的现实任务实现三元权重。为此,我们扩展了传统的量化感知训练,以使其适用于模拟存内计算硬件。然后,我们展示了在忆阻器交叉阵列上部署循环S4D内核,使其能够以存内计算方式进行计算。据我们所知,这是首次在存内计算硬件上实现S4内核。

英文摘要:

Processing long temporal sequences is a key challenge in deep learning. In recent years, Transformers have become state-of-the-art for this task, but suffer from excessive memory requirements due to the need to explicitly store the sequences. To address this issue, structured state-space sequential (S4) models recently emerged, offering a fixed memory state while still enabling the processing of very long sequence contexts. The recurrent linear update of the state in these models makes them highly efficient on modern graphics processing units (GPU) by unrolling the recurrence into a convolution. However, this approach demands significant memory and massively parallel computation, which is only available on the latest GPUs. In this work, we aim to bring the power of S4 models to edge hardware by significantly reducing the size and computational demand of an S4D model through quantization-aware training, even achieving ternary weights for a simple real-world task. To this end, we extend conventional quantization-aware training to tailor it for analog in-memory compute hardware. We then demonstrate the deployment of recurrent S4D kernels on memrisitve crossbar arrays, enabling their computation in an in-memory compute fashion. To our knowledge, this is the first implementation of S4 kernels on in-memory compute hardware.

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

↑