作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (10): 106-115. doi: 10.19678/j.issn.1000-3428.0070397

• 计算智能与模式识别 • 上一篇    

基于三角形特征融合与感知注意力的方面级情感分析

彭李湘松1, 张著洪1,2   

  1. 1. 贵州大学大数据与信息工程学院, 贵州 贵阳 550025;
    2. 贵州省系统优化与科学计算特色重点实验室, 贵州 贵阳 550025
  • 收稿日期:2024-09-23 修回日期:2025-01-08 发布日期:2025-03-18
  • 作者简介:彭李湘松,男,硕士研究生,主研方向为自然语言处理;张著洪(通信作者),教授、博士,E-mail:zhzhang@gzu.edu.cn。
  • 基金资助:
    国家自然科学基金(62063002)。

Aspect-Based Sentiment Analysis Based on Triangular Feature Fusion and Perceptual Attention

PENG Lixiangsong1, ZHANG Zhuhong1,2   

  1. 1. College of Big Data and Information Engineering, Guizhou University, Guiyang 550025, Guizhou, China;
    2. Guizhou Provincial Characteristic Key Laboratory of System Optimization and Scientific Computation, Guiyang 550025, Guizhou, China
  • Received:2024-09-23 Revised:2025-01-08 Published:2025-03-18

摘要: 方面级情感分析(ABSA)旨在获取句法结构复杂的语句中特定方面词的情感极性。现有基于依存树与图神经网络(GNN)的模型因难以完整提取句法结构与深层语义特征,以及特征融合机制难以有效融合语义特征与句法结构,导致情感分析中句子情感极性判断的准确率较低。为此,建立基于DeBERTa的新型ABSA模型。首先,借助DeBERTa生成文本词向量,同时利用方面感知注意力机制提取方面词的特征,利用抽象语义表示获取文本句法结构,减少特征信息因提取不完整而对后续情感分析的影响;其次,构建融合句法结构与深层语义特征的新型三角形乘法机制;最后,通过三角形自注意力机制和全连接网络,将方面词的情感极性特征映射到情感分类层,使无关噪声的干扰得到有效抑制,从而提升情感极性判断的准确率。实验结果表明,相较于最新的基线模型,该模型的情感极性判断准确率和宏平均F1值分别平均提升0.93和1.39百分点,其能有效获取句子的句法结构与深层语义,且情感极性的分类准确率较高。

关键词: DeBERTa, 方面感知注意力机制, 三角形乘法机制, 三角形自注意力机制, 方面级情感分析

Abstract: Aspect-Based Sentiment Analysis (ABSA) aims to determine the sentiment polarity of specific aspect terms in sentences with complex syntactic structures. Existing models based on dependency trees and Graph Neural Networks (GNN) suffer from difficulty in fully extracting syntactic structures and deep semantic features, and their feature fusion mechanisms fail to effectively integrate semantic features with syntactic structures, resulting in low accuracy in sentence-level sentiment polarity judgment. To address this issue, a novel ABSA model based on DeBERTa is proposed. First, DeBERTa is employed to generate textual word embeddings, whereas an aspect-aware attention mechanism is utilized to extract aspect term features and abstract semantic representations are leveraged to capture textual syntactic structures, thereby reducing the impact of incomplete feature extraction on subsequent sentiment analysis. Second, a novel triangular multiplicative fusion mechanism that integrates syntactic structures with deep semantic features is constructed. Finally, through a triangular self-attention mechanism and fully connected networks, the sentiment polarity features of aspect terms are mapped to a sentiment classification layer, effectively suppressing the interference of irrelevant noise and thereby improving the accuracy of the sentiment polarity judgment. Experimental results demonstrate that, compared with the latest baseline models, the proposed model achieves an average improvement of 0.93 percentage points in sentiment polarity judgment accuracy and 1.39 percentage points in the macro-averaged F1 value. This model can effectively capture both the syntactic structures and deep semantics of sentences, yielding high accuracy in sentiment polarity classification.

Key words: DeBERTa, aspect-aware attention mechanism, triangular multiplication mechanism, triangular self-attention mechanism, Aspect-Based Sentiment Analysis (ABSA)

中图分类号: