简化并理解基于对角线性RNN的状态空间模型
Simplifying and Understanding State Space Models with Diagonal Linear RNNs
AI总结:
提出无需离散化的对角线性RNN模型DLR,在多种基准上与SSM相当,并通过13个合成任务揭示SSM在需多卷积核或上下文相关操作时的局限,但在长输入高阶推理任务上表现良好。
摘要:
基于线性状态空间(SSM)的序列模型近来已成为在各种模态下建模长距离依赖关系的有前途的架构选择。然而,它们无一例外地依赖于连续状态空间的离散化,这使它们的表述和理解变得复杂。在这项工作中,我们省去了离散化步骤,提出了一种基于原始对角线性RNN(DLR)的模型。我们通过实验表明,尽管概念上简单得多,但DLR在多种任务和基准(包括Long Range Arena和原始语音分类)上的表现与先前提出的SSM相当。此外,我们通过一套包含13个合成序列到序列任务(涉及数万个token的交互,范围从简单操作(如平移输入序列)到在展平图像中检测长空间范围内的相互依赖的视觉特征)来刻画SSM(包括DLR)和基于注意力模型的表现力。我们发现,虽然SSM在可通过少量卷积核建模的任务上报告了近乎完美的性能,但它们在需要许多此类核的任务上表现不佳,尤其是在所需的序列操作是上下文相关的情况下。尽管存在这些局限性,DLR在两个高阶推理任务ListOpsSubTrees和PathfinderSegmentation-256上达到了高性能,输入长度分别为8K和65K,并在输入长度为262K的PathfinderSegmentation-512上给出了令人鼓舞的性能,而注意力在此长度下不是可行的选择。
英文摘要:
Sequence models based on linear state spaces (SSMs) have recently emerged as a promising choice of architecture for modeling long range dependencies across various modalities. However, they invariably rely on discretization of a continuous state space, which complicates their presentation and understanding. In this work, we dispose of the discretization step, and propose a model based on vanilla Diagonal Linear RNNs ($\mathrm{DLR}$). We empirically show that, despite being conceptually much simpler, $\mathrm{DLR}$ is as performant as previously-proposed SSMs on a variety of tasks and benchmarks including Long Range Arena and raw speech classification. Moreover, we characterize the expressivity of SSMs (including $\mathrm{DLR}$) and attention-based models via a suite of $13$ synthetic sequence-to-sequence tasks involving interactions over tens of thousands of tokens, ranging from simple operations, such as shifting an input sequence, to detecting co-dependent visual features over long spatial ranges in flattened images. We find that while SSMs report near-perfect performance on tasks that can be modeled via $\textit{few}$ convolutional kernels, they struggle on tasks requiring $\textit{many}$ such kernels and especially when the desired sequence manipulation is $\textit{context-dependent}$. Despite these limitations, $\mathrm{DLR}$ reaches high performance on two higher-order reasoning tasks $\mathrm{ListOpsSubTrees}$ and $\mathrm{PathfinderSegmentation}\text{-}\mathrm{256}$ with input lengths $8K$ and $65K$ respectively, and gives encouraging performance on $\mathrm{PathfinderSegmentation}\text{-}\mathrm{512}$ with input length $262K$ for which attention is not a viable choice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。