arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.05583cs.CLcs.AI
收藏

ResonatorLM:用于高效长上下文语言模型的因果共振场混合

ResonatorLM: Causal Resonant Field Mixing for Efficient Long-Context Language Modeling

Axionic Labs(轴子实验室)

Archie Chaudhury

AI总结:

研究针对Transformer等模型处理长上下文效率低的问题,提出ResonatorLM机制,将令牌序列视为潜场,用阻尼谐振器因果函数替代注意力点积,在传统架构上实现并测试,取得训练和预填充加速、高解码速度及准确率提升等成果。

摘要:

当代语言模型以Transformer架构为主,它利用自注意力机制在大量文档和语料库上实现更高效、并行化训练,能跨多种模态和上下文有效建模数据。但Transformer以及传统的循环神经网络(RNN)和卷积神经网络(CNN)在处理长上下文时往往难以保持效率。我们引入ResonatorLM,一种用物理衍生方法替代注意力的新机制。它将令牌序列视为单个驱动的一维潜场,用阻尼谐振器的因果函数取代注意力点积。我们在传统网络架构上实现ResonatorLM并在标准长上下文建模任务上测试。发现在6M匹配设置下,训练和预填充加速随序列长度增加,在32K令牌时解码速度比标准优化Transformer快6.47倍,在WikiText上准确率达61.31%(相比55.32%)。

英文摘要:

Contemporary language models are dominated by the transformer architecture, which leverages self-attention mechanisms to enable more efficient, parallelized training across a wide set of documents and corpora. This has allowed transformers to effectively model data across a wide range of modalities and contexts. However, transformers, along with their conventional counterparts such as recurrent neural networks (RNNs) and convolutional neural networks (CNNs), often struggle to maintain efficiency when processing long contexts. We introduce ResonatorLM, a new mechanism that replaces attention with a physics-derived alternative. ResonatorLM treats token sequences as a single, driven one-dimensional latent field and replaces attention dot products with causal functions of damped resonators. We implement ResonatorLM on a traditional network architecture and test it on standard long-context modeling tasks. We find that in a small, 6M matched setting, training and prefill speedups increase with sequence length, decode speed reaches 6.47x compared to that of a standard, optimized transformer at 32K tokens, and accuracy reaches 61.31 percent (compared to 55.32 percent) on WikiText.

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

↑