Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2501.00823v2

Help | Advanced Search

Computer Science > Machine Learning

arXiv:2501.00823v2 (cs)
[Submitted on 1 Jan 2025 (v1) , last revised 6 Jan 2025 (this version, v2)]

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

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

Authors:Zhenyu Guo, Wenguang Chen
Abstract: 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.
Abstract: 变压器在多个领域取得了显著的成功,但其单体架构在可解释性、适应性和可扩展性方面带来了挑战。 本文介绍了一种新颖的模块化变压器架构,通过一种广义的交叉注意力机制,将知识和推理显式解耦,并与全局共享的知识库进行分层特定转换,专门设计用于有效的知识检索。 关键的是,我们提供了严格的数学推导,证明标准变压器中的前馈网络(FFN)是这种广义交叉注意力的一个特例(闭包),揭示了其在隐式知识检索中的作用,并验证了我们的设计。 这一理论框架为理解FFN提供了一个新的视角,并为未来研究增强可解释性、适应性和可扩展性奠定了基础,使与外部知识库和其他系统的更丰富的互动成为可能。
Subjects: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2501.00823 [cs.LG]
  (or arXiv:2501.00823v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2501.00823
arXiv-issued DOI via DataCite

Submission history

From: Zhenyu Guo [view email]
[v1] Wed, 1 Jan 2025 12:55:57 UTC (61 KB)
[v2] Mon, 6 Jan 2025 14:26:41 UTC (61 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
license icon view license
Current browse context:
cs.LG
< prev   |   next >
new | recent | 2025-01
Change to browse by:
cs
cs.AI
cs.CL

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号