计算机科学 > 机器学习
[提交于 2025年1月7日]
标题:Decoupling Knowledge and Reasoning in Transformers: A Modular Architecture with Generalized Cross-Attention
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Zhenyu Guo[v1] 2025年1月7日 星期二 00:00:00 UTC