Litcius/Paper detail

A Generative Language Model for Few-shot Aspect-Based Sentiment Analysis

Ehsan Hosseini-Asl, Wenhao Liu, Caiming Xiong

2022Findings of the Association for Computational Linguistics: NAACL 202230 citationsDOIOpen Access PDF

Abstract

Sentiment analysis is an important task in natural language processing. In recent works, pre-trained language models are often used to achieve state-of-the-art results, especially when training data is scarce. It is common to finetune on the downstream task, usually by adding task-specific layers on top of the model. In this paper, we focus on aspect-based sentiment analysis, which involves extracting aspect term, category, and predicting their corresponding polarities. In particular, we are interested in fewshot settings. We propose to reformulate the extraction and prediction tasks into the sequence generation task, using a generative language model with unidirectional attention (GPT2 is used unless stated otherwise). This way, the model learns to accomplish the tasks via language generation without the need of training task-specific layers. Our evaluation results on the single-task polarity prediction show that our approach outperforms the previous stateof-the-art (based on BERT) on average performance by a large margins in few-shot and fullshot settings. More importantly, our generative approach significantly reduces the model variance caused by low-resource data. We further demonstrate that the proposed generative language model can handle joint and multi-task settings, unlike previous work. We observe that the proposed sequence generation method achieves further improved performances on polarity prediction when the model is trained via joint and multi-task settings. Further evaluation on similar sentiment analysis datasets, SST-2, SST-5 and OOS intent detection validates the superiority and noise robustness of generative language model in few-shot settings.

Topics & Concepts

Computer scienceGenerative modelSentiment analysisGenerative grammarLanguage modelArtificial intelligenceRobustness (evolution)Task (project management)Natural language processingMachine learningSpeech recognitionGeneChemistryManagementBiochemistryEconomicsSentiment Analysis and Opinion MiningTopic ModelingComputational and Text Analysis Methods
A Generative Language Model for Few-shot Aspect-Based Sentiment Analysis | Litcius