arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13386

MoPrO-SD: Modular Prompt Optimization for Stance Detection

Meysam Sabbaghan, Nikesh Gyawali, Arman Zareian Jahromi, Sebastian Loera-Lozano, Doina Caragea, Cornelia Caragea

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Stance detection remains challenging for large language models (LLMs) due to implicit opinions, sarcasm, and context-dependent expressions of stance. Although automatic prompt optimization offers an alternative to fine-tuning without updating model parameters, existing structured approaches are not specifically designed around stance-label semantics and class-specific ambiguities. We introduce MoPrO-SD, a stance-specific prompt optimization framework that decomposes prompts into functional semantic modules and refines them sequentially using LLM-based feedback. We study three refinement strategies—instruction-only optimization (I), instruction with reasoning (I+R), and instruction with per-example reasoning (I+R+E)—using class-conditioned errors for stance-label refinement. We also introduce VaccineStance, a new human-annotated benchmark for vaccine stance detection. Experiments across four datasets and five open-weight LLMs show that MoPrO-SD improves upon the human-written Base prompt in many settings. On SemEval-2016, class-conditioned feedback achieves higher mean Macro-F1 than pooled feedback for four of five backbones. Both reasoning-based strategies, I+R and I+R+E, achieve strong performance, with their relative effectiveness varying across models and datasets, while remaining competitive with recent prompt optimization methods. The MoPrO-SD code and VaccineStance dataset are available on GitHub. 1^{1}

1 Introduction

Stance detection identifies the attitude toward a target or claim, typically categorized as In-Favor, Against, or Neutral (Mohammad et al., 2016). It supports applications including misinformation detection, political opinion analysis, public health monitoring, and social media analytics (Küçük and Can, 2020; AL-Dayel and Magdy, 2021). Despite advances in large language models (LLMs), stance detection remains challenging due to sarcasm, implicit opinions, and context-dependent expressions (Yakura, 2024; Gole et al., 2024; Li et al., 2025).

Prompting offers an alternative to fine-tuning without updating model parameters, but LLMs are sensitive to prompt wording, demonstrations, and example ordering (Zhao et al., 2021; Lu et al., 2022; Shi et al., 2024). Semantically similar prompts can yield different performance (Kojima et al., 2022; Zhou et al., 2023), and effective prompts are often task- and model-dependent (Chen et al., 2023a), motivating automated prompt optimization (Chang et al., 2024).

Recent methods include OPRO (Yang et al., 2024), EvoPrompt (Guo et al., 2024), and CAPO (Zehle et al., 2025), while UniPrompt (Juneja et al., 2025) and SCULPT (Kumar et al., 2025) optimize structured prompt components. Reasoning-based prompting has also shown promise for stance detection (Ma et al., 2024; Gül et al., 2024; Aiyappa et al., 2024). However, existing optimization frameworks are largely task-general rather than organized around stance-specific class structure, where guidelines, label definitions, and output constraints serve distinct roles.

We introduce MoPrO-SD (Modular Prompt Optimization for Stance Detection), which decomposes a stance prompt into six functional modules and refines them sequentially. We study instruction-only (I),

∗^{*}Equal contribution.

1^{1}https://anonymous.4open.science/r/labeled-vaccines-tweets instruction with reasoning (I+R), and instruction with per-example reasoning (I+R+E) optimization. Reasoning-based strategies use misclassification feedback for targeted refinement, with class-conditioned errors informing stance-label modules.

We evaluate MoPrO-SD on SemEval-2016 (Mohammad et al., 2016), COVID-19-Stance (Glandt et al., 2021), Gun-Stance (Gyawali et al., 2024), and VaccineStance using five open-weight LLMs, comparing against OPRO (Yang et al., 2024), CAPO (Zehle et al., 2025), EvoPrompt-GA/DE (Guo et al., 2024), UniPrompt (Juneja et al., 2025), and SCULPT (Kumar et al., 2025). MoPrO-SD improves over the human-written base prompt across many model-dataset settings. We also introduce VaccineStance, a new human-annotated benchmark constructed from vaccine-related social media posts collected between 2013 and 2022.

Our contributions are:

• We introduce MoPrO-SD, combining stance-specific modular refinement with class-conditioned error feedback.

• We evaluate it across four datasets and five LLMs against established baselines, with analyses of modularity, optimization budget, cost, module contributions, few-shot prompting, and external-reasoner transfer.

• We introduce VaccineStance, a new human-annotated benchmark.

References (2)

  • If a tweet implies a stance without directly stating it, use the context and language to determine the intended stance
  • Be aware of sarcasm and irony, which can be used to express an opposing stance