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

QV可能足够:探索Transformer架构中注意力的本质

QV May Be Enough: Toward the Essence of Attention in LLMs

Aliyun(阿里云)

Zhang Edward

AI总结:

本文从词性标注和句法分析出发,探讨Transformer中QKV机制的本质,提出QV范式并验证其有效性,通过实验验证QV-Ka优化方案,为大语言模型发展奠定理论基础。

摘要:

本文从第一性原理和以词性标注和句法分析为中心的语言学视角出发,探讨并推导Transformer架构中查询-键-值(QKV)机制的本质。基于此理论基础,我们为当前架构的有效性提供统一解释框架,包括MQA、GQA和MLA,并识别其内在权衡和潜在优化路径。我们引入QV范式并提供实证证据证明其有效性。在此基础上,我们提出QV-Ka优化方案,并通过实验验证其有效性。本文对QKV机制的可解释理论分析为未来大语言模型架构的发展奠定了坚实基础。

英文摘要:

Starting from first principles and a linguistic perspective centered on part-of-speech (POS) and syntactic analysis, this paper explores and derives the underlying essence of the Query-Key-Value (QKV) mechanism within the Transformer architecture. Based on this theoretical foundation, we provide a unified explanatory framework for the efficacy of contemporary architectures, including MQA, GQA, and MLA, while identifying their inherent trade-offs and potential optimization trajectories. We introduce the QV paradigm and provide empirical evidence for its validity. Building upon this, we propose the QV-Ka optimization scheme, which is further substantiated through experimental validation. The interpretable theoretical analysis of the QKV mechanism presented in this work establishes a robust foundation for the future evolution of large language model architectures.

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

↑