面向方面级情感分析的QLoRA轻量微调与提示视图一致性探索
QLoRA Lightweight Fine-Tuning and Prompt-View Consistency Exploration for Aspect-Based Sentiment Analysis
摘要: 方面级情感分析需要同时抽取评论中的方面词并判定对应情感,传统任务专用模型在资源受限场景中往往需要针对结构和标签重新设计。本文将SemEval-2014 Restaurant的方面–情感抽取统一表述为严格JSON数组生成任务,基于本地Qwen2.5-7B-Instruct构建Prompt-only、4-bit QLoRA及双提示视图一致性约束Co-LoRA实验。所有结果均在Restaurant测试集full800上以aspect-sentiment二元组micro-F1、JSON有效率和精确匹配率评价。实验显示,schema Prompt-only的micro-F1为0.4815;QLoRA-500、QLoRA-1000与QLoRA-full分别达到0.6126、0.6529和0.7334,QLoRA-full相对最优Prompt-only基线提升0.2519,精确匹配率从0.3038提升到0.6913。QLoRA-full单轮训练耗时831.9 s,峰值显存7.91 GB。进一步的Co-LoRA-1000探索获得较高的多提示预测一致性,但schema micro-F1为0.5657,未超过常规QLoRA。结果表明,QLoRA能够以较低资源有效适配结构化ABSA,而提示一致性约束仍需在更充分的对照与多域实验中验证。
Abstract: Aspect-based sentiment analysis requires jointly extracting aspect terms from reviews and determining their corresponding polarities. Traditional task-specific models often need to be redesigned for structures and labels in resource-constrained settings. We formulate aspect-sentiment extraction on the SemEval-2014 Restaurant dataset as strict JSON-array generation and conduct Prompt-only, 4-bit QLoRA, and dual-prompt-view consistency-constrained Co-LoRA experiments based on local Qwen2.5-7B-Instruct. All results are evaluated on the full 800-item Restaurant test set using aspect-sentiment tuple micro-F1, JSON validity, and Exact Match. The experiment shows that the schema Prompt-only micro-F1 is 0.4815, while QLoRA-500, QLoRA-1000, and QLoRA-full achieve 0.6126, 0.6529, and 0.7334, respectively. QLoRA-full improves the best Prompt-only baseline by 0.2519 and raises Exact Match from 0.3038 to 0.6913. It completes one training epoch in 831.9 s with a peak GPU memory usage of 7.91 GB. The exploratory Co-LoRA-1000 setting attains relatively high multi-prompt prediction consistency, but its schema micro-F1 of 0.5657 does not exceed conventional QLoRA. These results show that QLoRA can effectively adapt structured ABSA under modest resource budgets, whereas prompt-consistency constraints require validation with more comprehensive controls and multi-domain experiments.
文章引用:黄永旗. 面向方面级情感分析的QLoRA轻量微调与提示视图一致性探索[J]. 人工智能与机器人研究, 2026, 15(5): 1225-1230. https://doi.org/10.12677/airr.2026.155111

参考文献

[1] Pontiki, M., Galanis, D., Pavlopoulos, J., Papageorgiou, H., Androutsopoulos, I. and Manandhar, S. (2014) Semeval-2014 Task 4: Aspect Based Sentiment Analysis. Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014), Dublin, 23-24 August 2014, 27-35.
https://doi.org/10.3115/v1/s14-2004
[2] Zhang, W., Li, X., Deng, Y., Bing, L. and Lam, W. (2021) Towards Generative Aspect-Based Sentiment Analysis. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), 1-6 August 2021, 504-510.
https://doi.org/10.18653/v1/2021.acl-short.64
[3] Brown, T.B., Mann, B., Ryder, N., et al. (2020) Language Models Are Few-Shot Learners. Proceedings of the 34th International Conference on Neural Information Processing Systems, Vancouver, 6-12 December 2020, 1877-1901.
[4] Hu, E.J., Shen, Y., Wallis, P., et al. (2022) LoRA: Low-Rank Adaptation of Large Language Models. arXiv: 2106.09685.
[5] Dettmers, T., Pagnoni, A., Holtzman, A. and Zettlemoyer, L. (2023) QLoRA: Efficient Finetuning of Quantized LLMs. Proceedings of the 37th International Conference on Neural Information Processing System, New Orleans, 10-16 December 2023, 10088-10115.
https://doi.org/10.52202/075280-0441
[6] Xu, H., Liu, B., Shu, L. and Yu, P. (2019) BERT Post-Training for Review Reading Comprehension and Aspect-Based Sentiment Analysis. Proceedings of the 2019 Conference of the North, Minneapolis, 2-7 June 2019, 2324-2335.
https://doi.org/10.18653/v1/n19-1242
[7] Li, X., Bing, L., Zhang, W. and Lam, W. (2019) Exploiting BERT for End-to-End Aspect-Based Sentiment Analysis. Proceedings of the 5th Workshop on Noisy User-Generated Text (W-NUT 2019), Hong Kong, 4 November 2019, 34-41.
https://doi.org/10.18653/v1/d19-5505
[8] Hosseini-Asl, E., Liu, W. and Xiong, C. (2022) A Generative Language Model for Few-Shot Aspect-Based Sentiment Analysis. Findings of the Association for Computational Linguistics: NAACL 2022, Seattle, 10-15 July 2022, 770-787.
https://doi.org/10.18653/v1/2022.findings-naacl.58
[9] Zhang, W., Li, X., Deng, Y., Bing, L. and Lam, W. (2023) A Survey on Aspect-Based Sentiment Analysis: Tasks, Methods, and Challenges. IEEE Transactions on Knowledge and Data Engineering, 35, 11019-11038.
https://doi.org/10.1109/tkde.2022.3230975
[10] Yang, A., Yang, B., Zhang, B., et al. (2025) Qwen2.5 Technical Report. arXiv: 2412.15115.
[11] Liang, X., Wu, L., Li, J., et al. (2021) R-Drop: Regularized Dropout for Neural Networks. Proceedings of the 35th International Conference on Neural Information Processing Systems, 6-14 December 2021, 10890-10905.