Exploiting contextual information to improve stance detection in informal political discourse with LLMs

Arman Engin Sucu, Yixiang Zhou, Mario A. Nascimento, Tony Mullen
2/4/2026
cs.CLcs.AI

No official code found. Best implementation: armansucu/contextual-stance-llms (0 stars, MIT, last commit 2025-07-02).

Abstract

This study investigates the use of Large Language Models (LLMs) for political stance detection in informal online discourse, where language is often sarcastic, ambiguous, and context-dependent. We explore whether providing contextual information, specifically user profile summaries derived from historical posts, can improve classification accuracy. Using a real-world political forum dataset, we generate structured profiles that summarize users' ideological leaning, recurring topics, and linguistic patterns. We evaluate seven state-of-the-art LLMs across baseline and context-enriched setups through a comprehensive cross-model evaluation. Our findings show that contextual prompts significantly boost accuracy, with improvements ranging from +17.5\% to +38.5\%, achieving up to 74\% accuracy that surpasses previous approaches. We also analyze how profile size and post selection strategies affect performance, showing that strategically chosen political content yields better results than larger, randomly selected contexts. These findings underscore the value of incorporating user-level context to enhance LLM performance in nuanced political classification tasks.

View on arXivView PDF

Code Implementations(1)

MIT

Code for our paper on improving political stance detection with LLMs using user profile context. Includes preprocessing, prompting, and evaluation tools. Paper title: Exploiting Contextual Information to Improve Stance Detection in Informal Political Discourse with LLMs.

01PythonJul 1, 20251 years agoMIT

Similar Papers

Cite this paper

@article{sucu2026exploiting,
  title  = {Exploiting contextual information to improve stance detection in informal political discourse with LLMs},
  author = {Arman Engin Sucu and Yixiang Zhou and Mario A. Nascimento and Tony Mullen},
  year   = {2026},
  eprint = {2602.04750},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.04750v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.04750.svg)](https://codeofpaper.com/paper/2602.04750)

Discussion