Scaling sequence modeling to extreme contexts requires balancing computational efficiency with representational expressivity. While Transformers provide precise retrieval via the attention mechanism, their quadratic complexity limits their application to long-horizon tasks. In this work, we propose the , an architecture that decouples sequence modeling into two streams: a global branch utilizing the Convolution Theorem to model long-range decay dynamics in 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智能校验的中文版本