CLOct 23, 2023

Sentiment analysis with adaptive multi-head attention in Transformer

arXiv:2310.14505v49 citationsh-index: 5
Originality Synthesis-oriented
AI Analysis

This is an incremental improvement for sentiment analysis tasks, specifically for movie review datasets.

The authors tackled sentiment analysis of movie reviews by proposing an adaptive multi-head attention architecture (AdaptAttn) that varies the number of attention heads based on sentence length, resulting in an F1 score on par with the baseline model.

We propose a novel framework based on the attention mechanism to identify the sentiment of a movie review document. Previous efforts on deep neural networks with attention mechanisms focus on encoder and decoder with fixed numbers of multi-head attention. Therefore, we need a mechanism to stop the attention process automatically if no more useful information can be read from the memory.In this paper, we propose an adaptive multi-head attention architecture (AdaptAttn) which varies the number of attention heads based on length of sentences. AdaptAttn has a data preprocessing step where each document is classified into any one of the three bins small, medium or large based on length of the sentence. The document classified as small goes through two heads in each layer, the medium group passes four heads and the large group is processed by eight heads. We examine the merit of our model on the Stanford large movie review dataset. The experimental results show that the F1 score from our model is on par with the baseline model.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes