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

CAWN:连续声波网络用于自回归语言建模

CAWN: Continuous Acoustic Wave Networks for Autoregressive Language Modeling

Singidunum University(辛吉杜努姆大学)

Dejan Čugalj, Aleksandar Jevremovic

AI总结:

CAWN提出一种连续序列混合架构,通过相位累积机制实现序列混合,结合选择性相位共振机制和深度谐波卷积,提升超长上下文处理能力,实验证明其在词汇获取和上下文去噪方面的优越性。

摘要:

现代大语言模型(LLMs)依赖于Transformer自注意力机制,其计算复杂度与序列长度平方成正比。最近的线性时间替代方案,如状态空间模型(SSMs),在长上下文中常出现信号退化问题。我们引入了连续声波网络(CAWN),一种完全连续的序列混合架构。CAWN将隐藏状态投影到多头复数域相量中,通过因果的O(L)相位累积机制实现序列混合。为防止超长上下文中的信号退化,我们引入了双门控选择性相位共振机制,包含频率依赖保留、硬阈值门控(通过直通估计)和时间语法缓存,以捕捉短期局部依赖。我们还用深度谐波卷积替代标准密集线性投影,以优化空间频率混合,并通过块注意力残差实现深度状态路由。在150M参数模型上,CAWN利用定制的Triton内核实现硬件高效的浮点32真复相位累积。通过在1000亿词语料库上持续流式训练,原型在50亿词里程碑上进行评估。通过目标语义检索协议的实验证明,CAWN在词汇获取和扩展显式学习上下文去噪方面表现出鲁棒性。通过利用O(1)状态传递(分块预填充),模型在200万词内检索目标信息,同时严格保持8.72 GB峰值VRAM,实验证明其克服了O(L²)上下文内存瓶颈。

英文摘要:

Modern Large Language Models (LLMs) rely on Transformer self-attention, which scales quadratically with sequence length. Recent linear-time alternatives, like State Space Models (SSMs), often suffer from signal degradation over extended contexts. We introduce the Continuous Acoustic Wave Network (CAWN), a fully continuous sequence-mixing architecture. Instead of discrete matrix-based attention, CAWN projects hidden states into multi-headed complex-domain phasors, achieving sequence mixing through a causal, $O(L)$ Phase Accumulation mechanism. To prevent signal degradation over ultra-long contexts, we introduce a dual-gated Selective Phase Resonance mechanism incorporating Frequency-Dependent Retention, Hard-Threshold Gating via Straight-Through Estimation, and a Temporal Syntax Cache to capture short-term local dependencies. We also replace standard dense linear projections with Depth-wise Harmonic Convolutions for optimal spatial frequency mixing, augmented by Block Attention Residuals for depth-wise state routing. Scaled to a 150M-parameter model, CAWN utilizes custom Triton kernels for hardware-efficient, true-complex phase accumulation in float32. Trained via a continuous streaming loop on a 100-Billion-token corpus, the prototype is evaluated at a 5-Billion-token milestone. Empirical evaluations via a Targeted Semantic Retrieval protocol demonstrate robust vocabulary acquisition and extended explicitly learned contextual denoising. By leveraging $O(1)$ state-passing via chunked prefill, the model retrieves targeted information across 2,000,000 tokens while strictly plateauing at 8.72 GB of Peak VRAM, empirically overcoming the $O(L^2)$ context memory wall.

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

↑