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

基于快速张量卷积与块对角化的高效状态空间模型

Efficient State Space Model via Fast Tensor Convolution and Block Diagonalization

Department of Systems Engineering, City University of Hong Kong(城市大学系统工程系)

Tongyi Liang, Han-Xiong Li

AI总结:

本文提出高效状态空间模型 eSSM,通过系统矩阵对角化、快速张量卷积和块对角化降低参数量并提升计算效率,在多个任务上性能与 S4 相当,且显著优于 Transformer 和 LSTM。

摘要:

现有模型在建模长序列时,面临性能与计算效率之间的平衡瓶颈。尽管状态空间模型(SSM)在处理长序列任务上取得了显著成功,但仍存在参数量过大的问题。为了进一步提高 SSM 的效率,我们提出了一种基于多输入多输出 SSM 的新型状态空间层,称为高效 SSM(eSSM)。我们的 eSSM 建立在多输入多输出(MIMO)SSM 的卷积表示之上。我们提出了多种有效策略来提升计算效率。首先对系统矩阵进行对角化,以解耦原始系统。然后基于快速傅里叶变换提出了一种快速张量卷积方法。此外,SSM 的块对角化进一步减少了模型参数并提高了模型灵活性。大量实验结果表明,所提模型在多个数据库上的性能与最先进模型(如 S4)相当,并显著优于 Transformers 和 LSTM。在模型效率基准测试中,eSSM 的参数量仅为 LSTM 的 12.89%,为 Mamba 的 13.24%。eSSM 的训练速度比 LSTM 快 3.94 倍,比 Mamba 快 1.35 倍。代码可在以下地址获取:https://github.com/leonty1/essm。

英文摘要:

Existing models encounter bottlenecks in balancing performance and computational efficiency when modeling long sequences. Although the state space model (SSM) has achieved remarkable success in handling long sequence tasks, it still faces the problem of large number of parameters. In order to further improve the efficiency of SSM, we propose a new state space layer based on multiple-input multiple-output SSM, called efficient SSM (eSSM). Our eSSM is built on the convolutional representation of multi-input and multi-input (MIMO) SSM. We propose a variety of effective strategies to improve the computational efficiency. The diagonalization of the system matrix first decouples the original system. Then a fast tensor convolution is proposed based on the fast Fourier transform. In addition, the block diagonalization of the SSM further reduces the model parameters and improves the model flexibility. Extensive experimental results show that the performance of the proposed model on multiple databases matches the performance of state-of-the-art models, such as S4, and is significantly better than Transformers and LSTM. In the model efficiency benchmark, the parameters of eSSM are only 12.89\% of LSTM and 13.24\% of Mamba. The training speed of eSSM is 3.94 times faster than LSTM and 1.35 times faster than Mamba. Code is available at: \href{https://github.com/leonty1/essm}{https://github.com/leonty1/essm}.

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

↑