Decoupling Knowledge and Reasoning in Transformers: A Modular Architecture with Generalized Cross-Attention
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 17 of its 22 references that are in the map. First posted on arXiv 1 Jan 2025.
Builds on
17 of 22 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020Efficient Transformers: A Surveycited by 784
- 2014Neural Turing Machinescited by 630
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
5 more
- 2015Neural Module Networkscited by 375
- 2014Memory Networkscited by 354
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2016A Joint Many-Task Model: Growing a Neural Network for Multiple NLP Taskscited by 62
- 2024Looking into Black Box Code Language Modelscited by 5
Built on by
Not cited yet.