Skip to main content
QUICK REVIEW

[Paper Review] Stance Detection on Social Media with Fine-Tuned Large Language Models

İlker Gül, Rémi Lebret|arXiv (Cornell University)|Apr 18, 2024
Sentiment Analysis and Opinion MiningComputer Science11 citations
TL;DR

The paper fine-tunes ChatGPT, LLaMa-2, and Mistral-7B using multiple public datasets to evaluate stance detection in zero-shot, few-shot, and fine-tuned settings, showing strong performance, especially for fine-tuned LLMs like ChatGPT-ft and LLaMa-2/Mistral variants.

ABSTRACT

Stance detection, a key task in natural language processing, determines an author's viewpoint based on textual analysis. This study evaluates the evolution of stance detection methods, transitioning from early machine learning approaches to the groundbreaking BERT model, and eventually to modern Large Language Models (LLMs) such as ChatGPT, LLaMa-2, and Mistral-7B. While ChatGPT's closed-source nature and associated costs present challenges, the open-source models like LLaMa-2 and Mistral-7B offers an encouraging alternative. Initially, our research focused on fine-tuning ChatGPT, LLaMa-2, and Mistral-7B using several publicly available datasets. Subsequently, to provide a comprehensive comparison, we assess the performance of these models in zero-shot and few-shot learning scenarios. The results underscore the exceptional ability of LLMs in accurately detecting stance, with all tested models surpassing existing benchmarks. Notably, LLaMa-2 and Mistral-7B demonstrate remarkable efficiency and potential for stance detection, despite their smaller sizes compared to ChatGPT. This study emphasizes the potential of LLMs in stance detection and calls for more extensive research in this field.

Motivation & Objective

  • Assess progression of stance detection methods from traditional ML to BERT and LLMs in social media contexts.
  • Evaluate fine-tuned LLMs (ChatGPT, LLaMa-2, Mistral-7B) on stance detection datasets.
  • Compare zero-shot, few-shot, and fully fine-tuned performance across diverse targets and topics.

Proposed method

  • Fine-tune ChatGPT, LLaMa-2 (7B/13B), and Mistral-7B using LoRA on SemEval-2016, P-Stance, and Twitter Stance 2020 datasets.
  • Use warmup with 10% data, 3 epochs, LR=3e-4, batch=128, BF16 on A100 GPUs.
  • Evaluate zero-shot and few-shot prompts with instruction-tuned variants for compare and contrast.
  • Ground prompts with dataset-specific templates and appendices for prompting strategies.
  • Report F_avg and F1-macro as primary metrics across targets.

Experimental results

Research questions

  • RQ1How do fine-tuned LLMs compare to traditional baselines in stance detection on social media datasets?
  • RQ2What is the impact of training size and prompting strategy (zero-shot, few-shot, fine-tuned) on stance detection performance?
  • RQ3Which targets (political figures and topics) are most improved by fine-tuning across SemEval-2016, P-Stance, and Twitter Stance 2020?

Key findings

  • Fine-tuned LLMs substantially outperform baselines on SemEval-2016, with ChatGPT-ft achieving up to 79.7 in FM and LLaMa-2-13b-ft reaching 86.5 in HC.
  • On P-Stance, ChatGPT-ft yields the highest F_avg (81.8 for Bernie, 89.7 for Biden, 91.9 for Trump).
  • On Twitter Stance 2020, ChatGPT-ft achieves F1-macro of 85.1 (Biden) and 85.6 (Trump).
  • Zero-shot and few-shot prompts show notable gains when moving to fine-tuned models; e.g., LLaMa-2-7b-ft improves from 51.6 (zero-shot) to 73.3 (fine-tuned) on FM.
  • Training size experiments reveal that 70% data can nearly match full training for some targets (e.g., HC with LLaMa-2-7b).
  • Open-source LoRA-tuned LLMs provide competitive stance detection with efficiency close to or surpassing baselines, highlighting cost-effective, accurate analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.