mlsanityData to 14 Oct 2026

Neural Attention: Enhancing QKV Calculation in Self-Attention Mechanism with Neural Networks

arXiv 2310.11398 ↗First posted 17 Oct 2023cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

In the realm of deep learning, the self-attention mechanism has substantiated its pivotal role across a myriad of tasks, encompassing natural language processing and computer vision. Despite achieving success across diverse applications, the traditional self-attention mechanism primarily leverages linear transformations for the computation of query, key, and value (QKV), which may not invariably be the optimal choice under specific circumstances. This paper probes into a novel methodology for QKV computation-implementing a specially-designed neural network structure for the calculation. Utilizing a modified Marian model, we conducted experiments on the IWSLT 2017 German-English translation task dataset and juxtaposed our method with the conventional approach. The experimental results unveil a significant enhancement in BLEU scores with our method. Furthermore, our approach also manifested superiority when training the Roberta model with the Wikitext-103 dataset, reflecting a notable reduction in model perplexity compared to its original counterpart. These experimental outcomes not only validate the efficacy of our method but also reveal the immense potential in optimizing the self-attention mechanism through neural network-based QKV computation, paving the way for future research and practical applications. The source code and implementation details for our proposed method can be accessed at https://github.com/ocislyjrti/NeuralAttention.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 7 of its 14 references that are in the map. First posted on arXiv 17 Oct 2023.

Builds on

7 of 14 references.

References · 7

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2016Layer Normalizationcited by 5,669
  6. 2017A Structured Self-attentive Sentence Embeddingcited by 318
  7. 2018Marian: Fast Neural Machine Translation in C++cited by 203

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 0; 2026: 1.

3 papers.