arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.01313cs.LG
收藏

频谱-窗口混合(SWH)

Spectral-Window Hybrid (SWH)

Independent Researcher(独立研究者)

Vladimer Khasia

AI总结:

SWH通过结合频谱分析和滑动窗口注意力,实现高效序列建模,在保持局部精度的同时,有效扩展到长序列任务。

摘要:

将序列建模扩展到极端上下文需要在计算效率和表示表达性之间取得平衡。虽然Transformer通过注意力机制提供精确的检索,但其二次O(T²)的复杂度限制了其在长视界任务中的应用。在本工作中,我们提出了频谱-窗口混合(SWH),一种将序列建模分解为两个并行流的架构:一个全局分支利用卷积定理来以O(T log T)的时间建模长距离衰减动态,一个局部分支采用滑动窗口注意力处理受限上下文内的标记交互。通过聚合这些表示,SWH避免了全局注意力的计算瓶颈,同时保留了局部精度。我们证明,SWH在短上下文中与标准Transformer具有相同的困惑度,同时能够高效地线性扩展到更长的序列。代码可在https://github.com/VladimerKhasia/SWH上获得。

英文摘要:

Scaling sequence modeling to extreme contexts requires balancing computational efficiency with representational expressivity. While Transformers provide precise retrieval via the attention mechanism, their quadratic $\mathcal{O}(T^2)$ complexity limits their application to long-horizon tasks. In this work, we propose the \textbf{Spectral-Window Hybrid (SWH)}, an architecture that decouples sequence modeling into two \textit{parallel} streams: a global branch utilizing the Convolution Theorem to model long-range decay dynamics in $\mathcal{O}(T \log T)$ time, and a local branch employing sliding-window attention for token interactions within a bounded context. By aggregating these representations, SWH avoids the computational bottleneck of global attention while retaining local precision. We demonstrate that SWH matches the perplexity of standard Transformers on short contexts while enabling efficient linear scaling to extended sequences. The code is available at https://github.com/VladimerKhasia/SWH

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

↑