数学联邦政治世界观
超小超大

空间模型

An available state space model for modeling long sequences

Paper: Efficiently Modeling Long Sequences with Structured State Spaces

Motivation and current problem

• A central problem in sequence modeling is efficiently handling data that contains long-range dependencies (LRDs). 一般要求上万步(16k),现在能做到几千步就不错了。

• 用special matrix(HIPPO)武装起来的latent space model本来具有长时间记忆的能力,但在计算上不可行:O(N 2L) operations and O(N L) space。 尽管依据经典linear algebra的降维算法被提出了,但是在数值上不稳定:A的条件数比较大。

• 希望有一个general-purpose sequence model: 现在的model总是针对一个particular domain(images, audio,text, time-series),处理一个narrow range of problems ( efficient training,fast generation, handling irregularly sampled data).这种现状的原因是这些模型想要高效,就需要domain-specific preprocessing,inductive biases, and architectures.

Contribution

1. S4解决了SSM模型过往的computational neck;在speed和memory overhead 上都达到了efficient transformer的水平;

2. 在LRD任务上成为SOTA,特别地,第一次解决了长达16k,涉及到图像空间推理的Path-X问题;

3. 除了LRD任务,S4具备成为general-purpose sequence model的潜力:

具有efficient training, fast generation, handling irregularly sampled data(比如说调整speech的采样频率)的多种功能

在不调整结构的情况下,能handle diverse domains:surpasses Speech CNNs on speech classification, outperforms the specialized Informer model on time-series forecasting problems, and matches a 2-D ResNet on sequential CIFAR with over 90% accuracy.

Preliminary

1.SSM Model

The state space model is defined by the sinple equation (1). lt maps a 1-D input signal u(t) to an H-D latent state x(t) before projecting to a 1-D output signal y(t).

x'(t)=Ax(t)+Bu(t)

y(t)=Cx(t)+Du(t)

2.Hippo非常重要!!!

3.Discretization

To discretize the continuous-time SSM,we follow prior work in using the bilinear method [43],which converts the state matrix A into an approximation ˉA. The discrete SSM is

xₖ=ˉAxₖ₋₁+ˉBuₖ ˉA=(l – Δ/2 · A)⁻¹ (l+Δ/2 · A)

yₖ=ˉCxₖ ˉB=(l – Δ/2 · A)⁻¹ΔB ˉC=C.

Solution:

• 把Hippo matrix A 分解成normal matrix+ low-rank

• 序列模型并行可以转化为一个卷积运算,但卷积核需要处理一个连乘。如果A diagonal,那一切好说;但他现在不是,所以转化成为Normal Plus Low-Rank。处理NPLR的幂需要用到三个技巧

• 用cauchy kernel来处理对角阵求逆的问题;

• 用Woodbury identity把NPLR变成对角阵的问题;

• 计算截断的generating function,再用inverse FFT变回来。

数学联邦政治世界观提示您:看后求收藏(笔尖小说网http://www.bjxsw.cc),接着再看更方便。

相关小说

疯子又来啦! 连载中
疯子又来啦!
星之曰月
修仙小说,随便磕回魂肉魄轮回尽,亦是相回白雪纷。每世抗命残伤奄,血发污衣浸红身。自曾梦影现故因,终是相遇还恩人。二世帮协将死人,长貌如吾一相......
2.3万字6个月前
慢穿结束后,重回14岁带飞全家 连载中
慢穿结束后,重回14岁带飞全家
宋软烟
[无cp+重生+金手指+空间+马甲+大女主]苏明瑶上辈子实惨,一心搞教培,谁知不仅遇上双减,还遭闺蜜背叛。欠下百万债务,差点跳了楼。幸有家人......
2.2万字6个月前
鬼神回忆录 连载中
鬼神回忆录
暮色之中
雾散,梦醒,我终于看见真实,那是千帆过尽的沉寂
0.3万字3个月前
西幻:大小姐的抽卡生涯 连载中
西幻:大小姐的抽卡生涯
渣渣羽
【无cp】+【西幻】+【抽卡系统】+【穿越】+【少女漫】+【微无敌流】池念穿越了,穿进了一本名叫《灰姑娘的复仇生涯》的打着大女主标签的玛丽苏......
1.0万字3个月前
白痴我在结界当猎人 连载中
白痴我在结界当猎人
淼淼猫_8697846306955834
弑神,一切都是喜剧,世界永远也跳不出被控制的命运,我们都是演员。都是表演者,都是为了取悦他人,取悦那个控制我们的人
0.7万字1个月前
ourname 连载中
ourname
木楚晴天
一丢丢科幻,青春的故事,我们在一起的美好日子和一些无法用言语理解的事情
2.3万字1个月前