Journal of Frontiers of Computer Science and Technology ›› 2025, Vol. 19 ›› Issue (5): 1322-1333.DOI: 10.3778/j.issn.1673-9418.2406005

• Artificial Intelligence·Pattern Recognition • Previous Articles     Next Articles

Zero-Shot Aspect Category Sentiment Analysis Model with Enhanced PPLM Template

FENG Lizhou, LI Mengsha, WANG Youwei, YANG Guijun   

  1. 1. School of Statistics, Tianjin University of Finance and Economics, Tianjin 300222, China
    2. School of Information, Central University of Finance and Economics, Beijing 100081, China
  • Online:2025-05-01 Published:2025-04-28

基于PPLM模板增强的零样本方面类别情感分析模型

凤丽洲,李梦莎,王友卫,杨贵军   

  1. 1. 天津财经大学 统计学院,天津 300222
    2. 中央财经大学 信息学院,北京 100081

Abstract: Aspect category sentiment analysis (ACSA) is currently constrained by the scarcity of annotated data, making it a research challenge to achieve effective analysis without specific sentiment-labeled data. This paper transforms the zero-shot ACSA task into a natural language inference (NLI) task. Addressing the issue of inadequate semantic expression in traditional prompt templates, this paper proposes a cause supplementation prompt template based on the plug and play language model (PPLM) for text restriction generation. By combining sentiment polarity with its causes, the template helps the model better understand the reasons and motivations behind the sentiments, thereby improving the accuracy and interpretability of sentiment analysis. Furthermore, to enhance the classification performance of ACSA, the performance inversion coefficient is introduced to determine the ensemble weights of various prompt templates in the paper. Experimental results on the public datasets MAMS and Restaurant demonstrate that the proposed model outperforms other zero-shot ACSA models by approximately 7 percentage points in accuracy. The PPLM cause supplementation prompt template can enhance the zero-shot classification performance of NLI models, showing a 2.6 percentage points improvement in Macro F1 score compared with other better traditional templates. Additionally, the improved weight determination strategy also contributes to the model??s sentiment analysis capability in zero-shot scenarios.

Key words: aspect category sentiment analysis, zero-shot learning, prompt template, PPLM text-conditioned generation

摘要: 如今方面类别情感分析(ACSA)因标注数据稀缺而受限,如何在无特定情感标注数据下实现有效分析成为研究挑战。将零样本方面类别情感分析任务转换为自然语言推理(NLI)任务,针对传统提示模板面临语义表达不充分的问题,提出了一种基于PPLM文本限制生成模型的原因补充提示模板,结合情感极性和其原因,使得模板可以帮助模型更好地理解情感背后的原因和动机,从而提高情感分析的准确性和可解释性。为了进一步提升ACSA的分类性能,引入了性能逆序系数来确定文中多种提示模板的集成权重。在公共数据集MAMS和Restaurant的实验结果表明该模型相较于其他零样本ACSA模型,在准确率ACC上提升约7个百分点;PPLM原因补充提示模板可以提升NLI模型的零样本分类性能,其相较于其他较好传统模板在MF1上提升2.6个百分点;同时改进的权重确定策略也对模型在零样本情境下的情感分析能力有一定提升作用。

关键词: 方面类别情感分析, 零样本学习, 提示模板, PPLM文本限制生成