Computer and Modernization ›› 2025, Vol. 0 ›› Issue (01): 1-6.doi: 10.3969/j.issn.1006-2475.2025.01.001

    Next Articles

Stance Detection with LoRA-based Fine-tuning General Language Model

  

  1. (The 30th Research Institute of China Electronics Technology Group Corporation, Chengdu 610000, China)
  • Online:2025-01-27 Published:2025-01-27

Abstract:  Stance detection is a key task in natural language processing, which determines the stance of an author based on text analysis. Text stance detection methods transition from early machine learning methods to BERT models, and then evolve to the latest large language models such as ChatGPT. Distinguishing from the closed-source feature of ChatGPT, this paper proposes a text stance detection model, ChatGLM3-LoRA-Stance, by using the domestic open-source ChatGLM3 model. In order to apply large models in professional vertical fields, this paper uses LoRA efficient fine-tuning method. Compared with P-Tuning V2 efficient fine-tuning method, LoRA is more suitable for zero-shot and few-shot text stance detection tasks in text. The paper uses the publicly available VAST dataset to fine-tune the ChatGLM3 model, evaluating the performance of existing models in zero-shot and few-shot scenarios. Experimental results indicate that ChatGLM3-LoRA-Stance model has significantly higher F1 scores than other models on zero-shot and few-shot detection tasks. Therefore, the results verify the potential of large language models on text stance detection tasks, and suggest that that the use of LoRA efficient fine-tuning technology can significantly improve the performance of ChatGLM3 large language model in text stance detection tasks.

Key words:  , LoRA-based fine-tuning, general language large model GLM, stance detection, zero-shot and few-shot detection

CLC Number: