聚焦你的注意力(使用自适应 IIR 滤波器)
Focus Your Attention (with Adaptive IIR Filters)
AI总结:
提出一种基于二阶动态 IIR 滤波器的新型注意力层,在保持次平方时间复杂度和极少参数下,性能媲美 SOTA 网络。
摘要:
我们提出了一种新层,其中使用二阶动态(即依赖输入的)无限脉冲响应(IIR)滤波器在应用传统注意力之前处理输入序列。输入被分割成块,这些滤波器的系数基于先前的块确定以保持因果性。尽管阶数相对较低,但因果自适应滤波器被证明能将注意力集中在相关序列元素上。新层以控制理论为基础,并被证明能推广对角状态空间层。该层与最先进的网络表现相当,但仅使用其一小部分参数,且时间复杂度相对于输入大小呈次平方关系。所得层在参数数量和在多个长程序列问题上的性能水平方面,均优于 Heyna、GPT2 和 Mega 等层。
英文摘要:
We present a new layer in which dynamic (i.e.,input-dependent) Infinite Impulse Response (IIR) filters of order two are used to process the input sequence prior to applying conventional attention. The input is split into chunks, and the coefficients of these filters are determined based on previous chunks to maintain causality. Despite their relatively low order, the causal adaptive filters are shown to focus attention on the relevant sequence elements. The new layer is grounded in control theory, and is shown to generalize diagonal state-space layers. The layer performs on-par with state-of-the-art networks, with a fraction of their parameters and with time complexity that is sub-quadratic with input size. The obtained layer is favorable to layers such as Heyna, GPT2, and Mega, both with respect to the number of parameters and the obtained level of performance on multiple long-range sequence problems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。