RCMHA: Relative Convolutional Multi-Head Attention for Natural Language Modelling
Herman Sugiharto, Aradea, Husni Mubarok

TL;DR
This paper introduces RCMHA, a novel attention mechanism combining relative positional encoding with depth-wise convolution, achieving higher accuracy and reduced memory usage in natural language modeling.
Contribution
It proposes a new attention module that integrates relative positional encoding with depth-wise convolution to improve accuracy and efficiency in language models.
Findings
RCMHA outperforms existing attention modules in accuracy (score of 0.572).
RCMHA reduces memory consumption compared to RMHA, using only 2.98 GB.
Empirical results demonstrate RCMHA's effectiveness in natural language modeling tasks.
Abstract
The Attention module finds common usage in language modeling, presenting distinct challenges within the broader scope of Natural Language Processing. Multi-Head Attention (MHA) employs an absolute positional encoding, which imposes limitations on token length and entails substantial memory consumption during the processing of embedded inputs. The current remedy proposed by researchers involves the utilization of relative positional encoding, similar to the approach adopted in Transformer-XL or Relative Multi-Head Attention (RMHA), albeit the employed architecture consumes considerable memory resources. To address these challenges, this study endeavors to refine MHA, leveraging relative positional encoding in conjunction with the Depth-Wise Convolutional Layer architecture, which promises heightened accuracy coupled with minimized memory usage. The proposed RCMHA framework entails the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Online Learning and Analytics · Advanced Neural Network Applications
Methods*Communicated@Fast*How Do I Communicate to Expedia? · Multi-Head Attention · Attention Is All You Need · Cosine Annealing · Adaptive Softmax · Softmax · Variational Dropout · Layer Normalization · Linear Layer · Adam
