arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.05356cs.CL
收藏

基于Few-Shot分析的情感分析生成语言模型

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

Salesforce AI Research(赛富时人工智能研究院)

Ehsan Hosseini-Asl, Wenhao Liu, Caiming Xiong

摘要:

情感分析是自然语言处理中的一项重要任务。在最近的工作中,预训练的语言模型经常被用来实现最先进的结果,特别是当训练数据是稀缺的。对下游任务进行微调是很常见的,通常是通过在模型的顶部添加特定于任务的层。在本文中,我们专注于基于方面的情感分析,其中包括提取方面的条款,类别,并预测其相应的极性。特别是,我们对Few-Shot设置感兴趣。我们建议重新制定的提取和预测任务的序列生成任务,使用生成语言模型与单向注意(GPT 2,除非另有说明)。这样,模型通过语言生成学习完成任务,而不需要训练特定于任务的层。我们的评估结果表明,我们的方法优于以前的国家的最先进的(基于BERT)的平均性能在Few-Shot和全拍摄设置的大幅度。更重要的是,我们的生成方法显著降低了由低资源数据引起的模型方差。我们进一步证明,建议生成语言模型可以处理联合和多任务设置,不同于以前的工作。我们观察到,当模型通过联合和多任务设置进行训练时,所提出的序列生成方法在极性预测上实现了进一步改进的性能。在相似的情感分析数据集、SST-2、SST-和OOS意图检测上的进一步评估验证了生成语言模型在Few-Shot设置下的优越性和噪声鲁棒性。

英文摘要:

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 fine-tune 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 few-shot 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 state-of-the-art (based on BERT) on average performance by a large margins in few-shot and full-shot 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- and OOS intent detection validates the superiority and noise robustness of generative language model in few-shot settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑