Advancing Sentiment Analysis: A Novel LSTM Framework with Multi-head Attention

Jingyuan Yi, Peiyang Yu, Tianyi Huang, Xiaochuan Xu
3/11/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

This work proposes an LSTM-based sentiment classification model with multi-head attention mechanism and TF-IDF optimization. Through the integration of TF-IDF feature extraction and multi-head attention, the model significantly improves text sentiment analysis performance. Experimental results on public data sets demonstrate that the new method achieves substantial improvements in the most critical metrics like accuracy, recall, and F1-score compared to baseline models. Specifically, the model achieves an accuracy of 80.28% on the test set, which is improved by about 12% in comparison with standard LSTM models. Ablation experiments also support the necessity and necessity of all modules, in which the impact of multi-head attention is greatest to performance improvement. This research provides a proper approach to sentiment analysis, which can be utilized in public opinion monitoring, product recommendation, etc.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yi2025advancing,
  title  = {Advancing Sentiment Analysis: A Novel LSTM Framework with Multi-head Attention},
  author = {Jingyuan Yi and Peiyang Yu and Tianyi Huang and Xiaochuan Xu},
  year   = {2025},
  eprint = {2503.08079},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08079v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08079.svg)](https://codeofpaper.com/paper/2503.08079)

Discussion