Skip to main content
QUICK REVIEW

[论文解读] Diagonal State Spaces are as Effective as Structured State Spaces

Ankit Gupta, Gu, Albert|arXiv (Cornell University)|Mar 27, 2022
Topic ModelingComputer Science被引用 64
一句话总结

本文表明,状态空间的完全对角参数化(DSS)在长范围任务上与 S4 模型的性能相当,同时实现和分析更为简单。

ABSTRACT

Modeling long range dependencies in sequential data is a fundamental step towards attaining human-level performance in many modalities such as text, vision, audio and video. While attention-based models are a popular and effective choice in modeling short-range interactions, their performance on tasks requiring long range reasoning has been largely inadequate. In an exciting result, Gu et al. (ICLR 2022) proposed the $ extit{Structured State Space}$ (S4) architecture delivering large gains over state-of-the-art models on several long-range tasks across various modalities. The core proposition of S4 is the parameterization of state matrices via a diagonal plus low rank structure, allowing efficient computation. In this work, we show that one can match the performance of S4 even without the low rank correction and thus assuming the state matrices to be diagonal. Our $ extit{Diagonal State Space}$ (DSS) model matches the performance of S4 on Long Range Arena tasks, speech classification on Speech Commands dataset, while being conceptually simpler and straightforward to implement.

研究动机与目标

  • 在多模态(文本、图像、音频)中激发对长程依赖建模的兴趣。
  • 评估对角状态空间参数化是否能匹配基于 DLPR 的 S4 架构的性能。
  • 提供一个比 S4 更简单、更加透明的替代方案,在长距离基准测试中具有竞争力的准确性。

提出的方法

  • 通过强制对角状态矩阵并推导用于序列处理的核,介绍对角状态空间(DSS)模型。
  • 为稳定训练的两种 DSS 变体:DSS exp(使用具有负实部的对角 A 以及受 HiPPO 启发的特征结构)和 DSS softmax(对行内的指数进行归一化以限制增长)。
  • 通过对离散化核与输入序列进行快速卷积(基于 FFT),高效计算状态空间核。
  • 提供初始化方案(Skew-Hippo)和训练细节,以稳定学习并实现强性能。
  • 描述在自回归解码期间通过具有封闭形式递推的对角 A 获取状态的方法。

实验结果

研究问题

  • RQ1一个完全对角的状态空间参数化(DSS)是否能够在长距离序列任务中达到与 DLPR S4 模型相当的性能?
  • RQ2简化状态空间参数化(仅对角)是否能在提高简便性和可解释性的同时保留表达能力?
  • RQ3初始化和核长度如何影响文本、图像、音频模态下的长距离任务性能?
  • RQ4在长序列上,DSS 相较于 S4 与基于注意力的变换器的实际权衡(计算效率、稳定性)有哪些?

主要发现

  • DSS softmax 的平均 LRA 准确度为 81.88,接近 S4(80.21),并比 Transformer 基线高出约 20 点。
  • DSS exp 同样表现具有竞争力(平均 81.18),且训练更简单;DSS exp-no-scale 在长距离任务上通常表现不佳。
  • 在 Speech Commands 原始音频任务中,DSS 变体达到 98.2%(DSS exp),其他变体为 97.7–98.2%,可与 S4(98.1–98.32%)相比,显示跨领域的有效性。
  • 消融研究表明对角特征值的随机初始化会降低性能,核长度截断会降低准确性,这凸显了长距离建模和适当初始化的重要性。
  • 核可视化显示某些任务(Path-X)依赖长距离交互,而其他任务(Image、SC)更具局部性,解释了对核长度敏感性的任务差异。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。