arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.00823cs.LGcs.AIcs.CL
收藏

解耦 Transformer 中的知识与推理:一种采用广义交叉注意力的模块化架构

Decoupling Knowledge and Reasoning in Transformers: A Modular Architecture with Generalized Cross-Attention

Tsinghua University(清华大学);Ant Group(蚂蚁集团)

Zhenyu Guo, Wenguang Chen

AI总结:

提出模块化 Transformer,通过带层特定变换的广义交叉注意力解耦知识与推理,并证明标准 FFN 是其特例。

摘要:

Transformer 已在多个不同领域取得显著成功,但其单体架构在可解释性、适应性和可扩展性方面带来挑战。本文提出一种新颖的模块化 Transformer 架构,通过面向全局共享知识库、并结合层特定变换的广义交叉注意力机制,显式解耦知识与推理;该机制专为有效的知识检索而设计。关键在于,我们给出严格的数学推导,证明标准 Transformer 中的前馈网络(FFN)是这种广义交叉注意力的一种特例(一个闭包),揭示了其在隐式知识检索中的作用,并验证了我们的设计。该理论框架为理解 FFN 提供了新视角,并为未来研究奠定基础,以探索增强的可解释性、适应性和可扩展性,从而实现与外部知识库及其他系统更丰富的交互。

英文摘要:

Transformers have achieved remarkable success across diverse domains, but their monolithic architecture presents challenges in interpretability, adaptability, and scalability. This paper introduces a novel modular Transformer architecture that explicitly decouples knowledge and reasoning through a generalized cross-attention mechanism to a globally shared knowledge base with layer-specific transformations, specifically designed for effective knowledge retrieval. Critically, we provide a rigorous mathematical derivation demonstrating that the Feed-Forward Network (FFN) in a standard Transformer is a specialized case (a closure) of this generalized cross-attention, revealing its role in implicit knowledge retrieval and validating our design. This theoretical framework provides a new lens for understanding FFNs and lays the foundation for future research exploring enhanced interpretability, adaptability, and scalability, enabling richer interplay with external knowledge bases and other systems.

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

↑