计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260700056-251.doi: 10.11896/jsjkx.260700056

• 人工智能 • 上一篇    

基于对抗训练与动态掩码注意力的哈萨克语方面级情感分析方法

张海军1,2, 任麟昊1, 赵新元1,2   

  1. 1 新疆师范大学计算机科学技术学院 乌鲁木齐 830054
    2 新疆智慧教育及应用工程技术研究中心 乌鲁木齐 830054
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 赵新元(Xyzhao@xjnu.edu.cn)
  • 作者简介:(zhjlp@163.com)
  • 基金资助:
    国家自然科学基金(62306263);教育部人文社科项目(23XJJC740001)

Kazakh Aspect-based Sentiment Analysis Method Based on Adversarial Training and Dynamic Masked Attention

ZHANG Haijun1,2, REN Linhao1, ZHAO Xinyuan1,2   

  1. 1 College of Computer Science and Technology,Xinjiang Normal University,Urumqi 830054,China
    2 Xinjiang Engineering Research Center for Smart Education and Application,Urumqi 830054,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:ZHANG Haijun,born in 1973,Ph.D,professor,master’s supervisor.His main research interests include educational technology,multimodal sentiment analysis,and multilingual information processing.
    ZHAO Xinyuan,born in 1974,Ph.D,associate professor.His main research interests include natural language processing and so on.
  • Supported by:
    This work was supported by the National Natural Science Foundation of China(62306263) and Humanities and Social Sciences Project of the Ministry of Education(23XJJC740001).

摘要: 针对哈萨克语方面级情感分析中词形变化复杂、模型鲁棒性不足以及方面词与情感线索对齐困难等问题,提出一种面向低资源哈萨克语的细粒度情感分析方法。具体地,构建Kaz-ABSA数据集,并提出BGE-M3-AMR模型。该模型以BGE-M3多语言预训练模型为编码基座,引入FGM对抗训练增强嵌入表示的鲁棒性,同时设计ADM-MHA机制,根据当前方面词位置生成动态Aspect Mask,并将其融入多头注意力计算过程,以强化模型对目标方面词相关情感线索的聚焦能力。实验结果表明,BGE-M3-AMR在Kaz-ABSA数据集上取得81.82%的Accuracy和81.25%的Macro-F1,相较于BGE-M3基线分别提升2.82和2.67个百分点。消融实验进一步验证了FGM与ADM-MHA的有效性,说明该方法能够缓解低资源哈萨克语ABSA任务中的噪声干扰和极性偏移问题。

关键词: 方面级情感分析, 动态掩码多头注意力, 对抗训练

Abstract: To address challenges such as complex morphological variations,insufficient model robustness and difficulties in aligning aspect terms with sentiment clues in Kazakh aspect-based sentiment analysis(ABSA),this paper proposes a fine-grained sentiment analysis method tailored to low-resource Kazakh.Specifically,a Kaz-ABSA dataset is constructed,and a BGE-M3-AMR model is proposed.The model adopts the multilingual pre-trained BGE-M3 model as the encoding backbone,introduces fast gra-dient method(FGM) adversarial training to enhance the robustness of embedding representations,and designs an aspect-aware dynamic masked multi-head attention(ADM-MHA) mechanism.Based on the position of the current aspect term,ADM-MHA ge-nerates a dynamic Aspect Mask and incorporates it into the multi-head attention computation,thereby strengthening the model’s ability to focus on sentiment clues related to the target aspect term.Experimental results show that BGE-M3-AMR achieves 81.82% Accuracy and 81.25% Macro-F1 on Kaz-ABSA,surpassing BGE-M3 by 2.82 and 2.67 percentage points,respectively.Ablation experiments further verify the effectiveness of FGM and ADM-MHA,indicating that the proposed method can alleviate noise interference and polarity shift in low-resource Kazakh ABSA tasks.

Key words: Aspect-based sentiment analysis, Dynamic masked multi-head attention, Adversarial training

中图分类号: 

  • TP391.1
[1] ZHANG W,LI X,DENG Y,et al.A survey on aspect-based sentiment analysis:Tasks,methods,and challenges[J].IEEE Transactions on Knowledge and Data Engineering,2022,35(11):11019-11038.
[2] ŠMÍD J,KRAL P.Cross-lingual aspect-based sentiment anal-ysis:A survey on tasks,approaches,and challenges[J].Information Fusion,2025,120:103073.
[3] DEWANGAN L,SAYEED Z A,MAURYA C.Benchmark Creation for Aspect-Based Sentiment Analysis in Low-Resource Odia Language and Evaluation through Fine-Tuning of Multilingual Models[C]//Proceedings of the 31st International Confe-rence on Computational Linguistics.2025:5863-5869.
[4] WU C,MA B,LIU Y,et al.M-ABSA:A Multilingual Dataset for Aspect-Based Sentiment Analysis[C]//Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing.2025:2530-2557.
[5] XU H,ZHANG Y,WANG Q,et al.Ds2-absa:Dual-stream data synthesis with label refinement for few-shot aspect-based sentiment analysis[C]//Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2025:15460-15478.
[6] ŠMÍD J,PŘIBÁŇ P,KRÁL P.LACA:Improving Cross-lingualAspect-Based Sentiment Analysis with LLM Data Augmentation[C]//Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2025:839-853.
[7] CHEN J,XIAO S,ZHANG P,et al.Bge m3-embedding:Multi-lingual,multi-functionality,multi-granularity text embeddings through self-knowledge distillation[J].arXiv:2402.03216,2024.
[8] GOODFELLOW I J,SHLENS J,SZEGEDY C.Explaining and harnessing adversarial examples[J].arXiv:1412.6572,2014.
[9] VASWANI A,SHAZEER N,PARMAR N,et al.Attention isall you need[C]//Proceedings of the 31st International Confe-rence on Neural Information Processing Systems.2017.
[10] PIRES T,SCHLINGER E,GARRETTE D.How multilingual is multilingual BERT?[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.2019:4996-5001.
[11] CONNEAU A,KHANDELWAL K,GOYAL N,et al.Unsupervised cross-lingual representation learning at scale[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.2020:8440-8451.
[12] JUN Y,LEE H.Dynamic order template prediction for generative aspect-based sentiment analysis[C]//Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics(Volume 2:Short Papers).2025:614-626.
[13] FAN R,LI S,HE T,et al.Aspect-based sentiment analysis with syntax-opinion-sentiment reasoning chain[C]//Proceedings of the 31st International Conference on Computational Iinguistics.2025:3123-3137.
[14] WANG Q,DING K,GAO H,et al.Error Comparison Optimization for Large Language Models on Aspect-Based Sentiment Analysis[C]//Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2025:18630-18646.
[15] SHEN C,WEI W,WANG D,et al.Zero-Shot Cross-Domain Aspect-Based Sentiment Analysis via Domain-Contextualized Chain-of-Thought Reasoning[C]//Findings of the Association for Computational Linguistics:EMNLP 2025.2025:4558-4573.
[16] MIYATO T,DAI A M,GOODFELLOW I.Adversarial training methods for semi-supervised text classification[J].arXiv:1605.07725,2016.
[17] SZEGEDY C,VANHOUCKE V,LOFFE S,et al.Rethinking the inception architecture for computer vision[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2016:2818-2826.
[18] PONTIKI M,GALANIS D,PAPAGEORGIOU H,et al.Semeval-2016 task 5:Aspect based sentiment analysis[C]//Procee-dings of the 10th International Workshop on Semantic Evaluation(SemEval-2016).2016:19-30.
[19] DONG L,WEI F,TAN C,et al.Adaptive recursive neural network for target-dependent twitter sentiment classification[C]//Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics(volume 2:Short papers).2014:49-54.
[20] PASZKE A,GROSS S,MASSA F,et al.Pytorch:An imperative style,high-performance deep learning library[J].Advances in neural information processing systems,2019,32.
[21] KINGMA D P,BA J.Adam:A method for stochastic optimization[J].arXiv:1412.6980,2014.
[22] SOKOLOVA M,LAPALME G.A systematic analysis of per-formance measures for classification tasks[J].Information processing & management,2009,45(4):427-437.
[23] DEVLIN J,CHANG M W,LEE K,et al.BERT:Pre-training of Deep Bidirectional Transformers for Language Understanding[C]//Proceedings of NAACL-HLT.2019:4171-4186.
[24] YANG Z,XU Z,CUI Y,et al.CINO:A Chinese Minority Pre-trained Language Model[C]//Proceedings of the 29th International Conference on Computational Linguistics.2022:3937-3949.
[25] FENG F,YANG Y,CER D,et al.Language-agnostic BERTSentence Embedding[C]//Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics.2022:878-891.
[26] CHEN P,SUN Z,BING L,et al.Recurrent attention network on memory for aspect sentiment analysis[C]//Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing.2017:452-461.
[27] FAN F,FENG Y,ZHAO D.Multi-grained attention network for aspect-level sentiment classification[C]//Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing.2018:3433-3442.
[28] ZHANG C,LI Q,SONG D.Aspect-based sentiment classifica-tion with aspect-specific graph convolutional networks[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing(EMNLP-IJCNLP).2019:4568-4578.
[29] LIANG Y,MENG F,ZHANG J,et al.A dependency syntactic knowledge augmented interactive architecture for end-to-end aspect-based sentiment analysis[J].Neurocomputing,2021,454:291-302.
[30] FENG S,WANG B,YANG Z,et al.Aspect-based sentiment analysis with attention-assisted graph and variational sentence representation[J].Knowledge-based systems,2022,258:109975.
[31] WANG Z,ZHANG B,YANG R,et al.DAGCN:Distance-based and aspect-oriented graph convolutional network for aspect-based sentiment analysis[C]//Findings of the Association for Computational Linguistics:NAACL 2024.2024:1863-1876.
[32] LI R,CHEN H,FENG F,et al.Dual graph convolutional networks for aspect-based sentiment analysis[C]//Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing(Volume 1:Long Papers).2021:6319-6329.
[33] YIN S,ZHONG G.Textgt:A double-view graph transformer ontext for aspect-based sentiment analysis[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2024:19404-19412.
[34] TIAN Y,CHEN W,HU B,et al.End-to-end aspect-based sentiment analysis with combinatory categorial grammar[C]//Fin-dings of the Association for Computational Linguistics:ACL 2023.2023:13597-13609.
[35] HU E J,SHEN Y,WALLIS P,et al.Lora:Low-rank adaptation of large language models[C]//ICIR.2022.
[36] LI X L,LIANG P.Prefix-tuning:Optimizing continuous pro-mpts for generation[C]//Proceedings of the 59th Annual Mee-ting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing(Volume 1:Long Papers).2021:4582-4597.
[37] HUANG Z Y,LI B C,WEI W.Aspect-level Sentiment Analysis Model Fusing Syntactic and Semantic Information[J].Computer Science,2025,52(S1):283-289.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!