paper-with-me

홈 › Papers

Alternatives to the Scaled Dot Product for Attention in the Transformer Neural Network Architecture

2023-11-15 · James Bernhard

The transformer neural network architecture uses a form of attention in which the dot product of query and key is divided by the square root of the key dimension before applying softmax. This scaling of the dot product is designed to avoid the absolute value of the dot products becoming so large that applying softmax leads to vanishing gradients. In this paper, we propose some alternative scalings, including dividing the dot product instead by the sum of the key lengths before applying softmax. We use simulated keys and queries to show that in many situations this appears to be more effective at avoiding regions where applying softmax leads to vanishing gradients.

📄 PDF Abstract BibTeX arXiv:2311.09406

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

EcoTransformer: Attention without Multiplication

2025-07-27 · Xin Gao, Xingming Xu, Shirin Amiraslani, Hong Xu arxiv

The Transformer, with its scaled dot-product attention mechanism, has become a foundational architecture in modern AI. However, this mechanism is computationally intensive and incurs substantial energy costs. We propose …

Continual Low-Rank Scaled Dot-product Attention

2024-12-04 · Ginés Carreto Picón, Illia Oleksiienko, Lukas Hedegaard, Arian Bakhtiarnia 외

Transformers are widely used for their ability to capture data relations in sequence processing, with great success for a wide range of static tasks. However, the computational and memory footprint of their main componen…

Action DetectionAudio ClassificationOnline Action Detection

Challenges and Thrills of Legal Arguments

2020-06-06 · Anurag Pallaprolu, Radha Vaidya, Aditya Swaroop Attawar

State-of-the-art attention based models, mostly centered around the transformer architecture, solve the problem of sequence-to-sequence translation using the so-called scaled dot-product attention. While this technique i…

Translation

Symmetric Dot-Product Attention for Efficient Training of BERT Language Models

2024-06-10 · Martin Courtois, Malte Ostendorff, Leonhard Hennig, Georg Rehm

Initially introduced as a machine translation model, the Transformer architecture has now become the foundation for modern deep learning architecture, with applications in a wide range of fields, from computer vision to …

Machine Translation

Horizontal and Vertical Attention in Transformers

2022-07-10 · Litao Yu, Jian Zhang

Transformers are built upon multi-head scaled dot-product attention and positional encoding, which aim to learn the feature representations and token dependencies. In this work, we focus on enhancing the distinctive repr…

Dimensionality Reduction