Zero-shot stance detection in practice: insights on training, prompting, and decoding with a capable lightweight LLM

We investigate the performance of Large Language Model (LLM)-based zero-shot stance detection on tweets. Using FlanT5-XXL, an instruction-tuned open-source LLM, with the SemEval 2016 Tasks 6A, 6B, and P-Stance datasets, we analyze how its performance varies under different prompts and decoding strategies, as well as potential model biases. We show that the zero-shot approach can match or outperform state-of-the-art methods, including fine-tuned models. Additionally, we provide practical insights into its performance, including sensitivity to instructions and prompts, decoding strategies, prompt perplexity, and the role of negations and oppositions. We ensure that the LLM has not been trained on test datasets and identify a positivity bias that may partially explain performance differences across decoding strategies. Finally, we conduct a qualitative analysis of cases where the LLM consistently fails, uncovering questionable ground truth labels and an overconfidence in assigning a stance when none exists. In sum, we provide an in-depth case study of using an LLM for a stance detection task, which can serve as a guide for practitioners seeking to leverage LLMs for similar tasks and use cases.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-02-12
DOI
https://doi.org/10.7717/peerj-cs.3540
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Zero-shot stance detection in practice: insights on training, prompting, and decoding with a capable lightweight LLM

Haewoon Kwak, Shruthi Senthilmani, Jisun An, Rachith Aiyappa et al.
PeerJ Computer Science
Topic Modeling
article

Zero-shot stance detection in practice: insights on training, prompting, and decoding with a capable lightweight LLM

Haewoon Kwak, Shruthi Senthilmani, Jisun An, Rachith Aiyappa, Yong-Yeol Ahn
article en

Abstract

We investigate the performance of Large Language Model (LLM)-based zero-shot stance detection on tweets. Using FlanT5-XXL, an instruction-tuned open-source LLM, with the SemEval 2016 Tasks 6A, 6B, and P-Stance datasets, we analyze how its performance varies under different prompts and decoding strategies, as well as potential model biases. We show that the zero-shot approach can match or outperform state-of-the-art methods, including fine-tuned models. Additionally, we provide practical insights into its performance, including sensitivity to instructions and prompts, decoding strategies, prompt perplexity, and the role of negations and oppositions. We ensure that the LLM has not been trained on test datasets and identify a positivity bias that may partially explain performance differences across decoding strategies. Finally, we conduct a qualitative analysis of cases where the LLM consistently fails, uncovering questionable ground truth labels and an overconfidence in assigning a stance when none exists. In sum, we provide an in-depth case study of using an LLM for a stance detection task, which can serve as a guide for practitioners seeking to leverage LLMs for similar tasks and use cases.

PeerJ Computer ScienceVol. 12
Indiana University Bloomington (US), University of Virginia (US)
Peace, Justice and strong institutions
Openalex Percentile: Top 59%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Zero-shot stance detection in practice: insights on training, prompting, and decoding with a capable lightweight LLM — Haewoon Kwak, Shruthi Senthilmani, et al. · PeerJ Computer Science (2026) | TGRS Research Map | TGRS