Large Language Models in Targeted Sentiment Analysis

Nicolay Rusnachenko, Anton Golubev, Natalia Loukachevitch
4/18/2024
cs.CL

Official code: nicolay-r/Reasoning-for-Sentiment-Analysis-Framework (4 stars, MIT, last commit 2025-08-08). 1 more implementation below.

Abstract

In this paper we investigate the use of decoder-based generative transformers for extracting sentiment towards the named entities in Russian news articles. We study sentiment analysis capabilities of instruction-tuned large language models (LLMs). We consider the dataset of RuSentNE-2023 in our study. The first group of experiments was aimed at the evaluation of zero-shot capabilities of LLMs with closed and open transparencies. The second covers the fine-tuning of Flan-T5 using the "chain-of-thought" (CoT) three-hop reasoning framework (THoR). We found that the results of the zero-shot approaches are similar to the results achieved by baseline fine-tuned encoder-based transformers (BERT-base). Reasoning capabilities of the fine-tuned Flan-T5 models with THoR achieve at least 5% increment with the base-size model compared to the results of the zero-shot experiment. The best results of sentiment analysis on RuSentNE-2023 were achieved by fine-tuned Flan-T5-xl, which surpassed the results of previous state-of-the-art transformer-based classifiers. Our CoT application framework is publicly available: https://github.com/nicolay-r/Reasoning-for-Sentiment-Analysis-Framework

View on arXivView PDF

Code Implementations(2)

MIT

The official code for CoT / ZSL reasoning framework 🧠, utilized in paper: "Large Language Models in Targeted Sentiment Analysis in Russian"

41Python, Jupyter NotebookFeb 23, 20241 years agoMIT
chainofthoughtcotengineframeworkgenerative-model+9 more
MIT

Named Entity Oriented Sentiment Analysis Task for mass-media texts

116Jupyter NotebookDec 20, 20222 years agoMIT
codalabcodalab-challengelanguage-modelsmachine-learningnlp+1 more

Similar Papers

Cite this paper

@article{rusnachenko2024large,
  title  = {Large Language Models in Targeted Sentiment Analysis},
  author = {Nicolay Rusnachenko and Anton Golubev and Natalia Loukachevitch},
  year   = {2024},
  eprint = {2404.12342},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.12342v1}
}

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/2404.12342.svg)](https://codeofpaper.com/paper/2404.12342)

Discussion