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

奇妙的矩阵:用于语言建模任务的更高效且更有效的架构

Wonderful Matrices: More Efficient and Effective Architecture for Language Modeling Tasks

Jingze Shi, Bingheng Wu, Lu He, Luchang Jiang

AI总结:

本文提出基础模型架构Wonderful Matrices,结合内积形式位置编码、带动态掩码的内部函数注意力与跨域混合专家,提升了状态空间对偶算法的表达能力与参数利用率,在语言建模任务中表现出更高的效率与有效性。

摘要:

我们证明了内积形式位置编码在状态空间对偶算法中的可用性,并研究了不同位置嵌入在混合二次因果自注意力与状态空间对偶算法中的有效性。我们提出了带有动态掩码的内部函数注意力,它能够提升注意力算法的表达能力,并避免序列噪声显著影响注意力分数的准确性。我们还设计了跨域混合专家,能够在保持参数利用率和检索效率的同时,提升稀疏激活前馈网络的粒度。这些方法的结合构成了我们的基础模型架构:Wonderful Matrices。我们在语言建模任务上进行了实验,发现 Wonderful Matrices 在处理复杂语言任务时更加高效且有效。

英文摘要:

We prove the availability of inner product form position encoding in the state space dual algorithm and study the effectiveness of different position embeddings in the hybrid quadratic causal self-attention and state space dual algorithms. We propose inner function attention with dynamic mask, which can improve the expressiveness of the attention algorithm and avoid the sequence noise significantly affecting the accuracy of the attention score. We also design cross domain mixture of experts, which can improve the granularity of the sparse activation feedforward network while maintaining the efficiency of parameter utilization and retrieval. The combination of these methods constitutes our foundation model architecture: Wonderful Matrices. We conduct experiments on the language modeling task and find that Wonderful Matrices are more efficient and effective in handling complex language tasks.

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

↑