Mitigating Biases of Large Language Models in Stance Detection with Calibration

Ang Li, Jingqian Zhao, Bin Liang, Lin Gui, Hui Wang, Xi Zeng, Kam-Fai Wong, Ruifeng Xu · OpenReview

Abstract

Large language models (LLMs) have achieved remarkable progress in many natural language processing tasks. However, our experiment reveals that, in stance detection tasks, LLMs may generate biased stances due to sentiment-stance spurious correlations and preference towards certain individuals and topics, thus harming their performance. Therefore, in this paper, we propose to Mitigate Biases of LLMs in stance detection with Calibration (MB-Cal). To be specific, a novel calibration network is devised to calibrate potential bias in the stance prediction of LLMs. Further, to address the challenge of effectively learning bias representations and the difficulty in the generalizability of debiasing, we construct counterfactual augmented data. This approach enhances the calibration network, facilitating the debiasing and out-of-domain generalization. Experimental results on in-target and zero-shot stance detection tasks show that the proposed MB-Cal can effectively mitigate biases of LLMs, achieving state-of-the-art results.

Introduction

Stance detection—the task of identifying whether a text expresses a Favor, Against, or Neutral position toward a specific target—is a critical component of social media analysis and public opinion mining. While Large Language Models (LLMs) like GPT-3.5 and LLaMA-2 have demonstrated impressive capabilities across various NLP benchmarks, they often struggle with stance detection due to deep-seated biases. These models frequently rely on superficial heuristics rather than logical reasoning, leading to significant performance degradation in complex or politically charged contexts.

The Bias Challenge in Stance Detection

Research identifies two primary forms of bias that plague LLMs in this domain:

  1. Sentiment-Stance Spurious Correlation (SSC): LLMs often conflate positive sentiment with a "favor" stance. For instance, a sarcastic or dismissive tweet might use uplifting language while expressing an "against" stance. LLMs frequently misinterpret these positive cues as support for the target.
  2. Target Preference Bias (TPB): LLMs inherit human prejudices from their massive training corpora. They may possess an inherent bias toward or against specific public figures (e.g., Donald Trump) or sensitive topics, leading them to predict a stance based on their internal "preference" rather than the provided text.
Examples of sentiment-stance spurious correlations and target preference bias leading to incorrect stance predictions.

As illustrated in the figure above, a model might incorrectly label a statement as "Favoring" a concern for climate change simply because the text sounds "positive and uplifting," ignoring the underlying message that downplays the issue's importance.

The FACTUAL Framework

To address these issues without the prohibitive cost of retraining or fine-tuning entire LLMs, the authors propose FACTUAL (Counterfactual Augmented Calibration Network), also referred to as MB-Cal. This framework treats the LLM as a feature extractor and introduces a secondary calibration layer to "filter" the output.

The FACTUAL framework architecture, featuring counterfactual data generation and a calibration network.

Calibration Network

The core of the framework is a RoBERTa-base calibration network. It processes three distinct inputs: the original text, the LLM’s initial stance prediction, and the LLM’s rationale (its explanation for the prediction). By analyzing the rationale, the calibrator can often detect the "seeds" of the model's error—such as when a model explicitly cites sentiment as a reason for its stance—and correct it.

Counterfactual Augmented Data (CAD)

To ensure the calibrator is robust and generalizes well, the authors utilize Counterfactual Augmented Data. Using an LLM, they generate "what-if" scenarios:

  • Non-Causal CAD: The text is rewritten to change bias-inducing features (like sentiment) while keeping the stance constant. This teaches the network that sentiment is not a reliable indicator of stance.
  • Causal CAD: The text is rewritten to explicitly reverse the stance, forcing the model to identify the true logical indicators of an opinion.

Experimental Results

The FACTUAL framework was evaluated on three major benchmarks: SemEval-2016 (Sem16), P-Stance (political targets), and VAST (zero-shot topics). The results demonstrate that FACTUAL achieves state-of-the-art (SOTA) performance:

  • In-Target Accuracy: On Sem16, FACTUAL (using GPT-3.5) achieved a macro F1-score of 76.16%, a significant improvement over the base model's 61.02%.
  • Zero-Shot Generalization: On the VAST dataset, which features entirely unseen topics, FACTUAL reached 79.98% F1, compared to just 50.21% for vanilla GPT-3.5.
  • Bias Mitigation: The framework successfully reduced bias metrics across all datasets. For LLaMA-2 on Sem16, the SSC bias dropped from 17.80 to 9.61, and TPB dropped from 17.59 to 5.52.

Conclusion

Simply prompting LLMs to "be unbiased" is insufficient, as these biases are deeply embedded in their weights. The FACTUAL framework provides a lightweight, effective solution by using counterfactual data to train a calibration network. By focusing on the logical rationales provided by LLMs and correcting for spurious correlations, FACTUAL significantly enhances the reliability of stance detection in both familiar and novel domains.

Summary updated

Abstract

Large language models (LLMs) have achieved remarkable progress in many natural language processing tasks. However, our experiment reveals that, in stance detection tasks, LLMs may generate biased stances due to sentiment-stance spurious correlations and preference towards certain individuals and topics, thus harming their performance. Therefore, in this paper, we propose to Mitigate Biases of LLMs in stance detection with Calibration (MB-Cal). To be specific, a novel calibration network is devised to calibrate potential bias in the stance prediction of LLMs. Further, to address the challenge of effectively learning bias representations and the difficulty in the generalizability of debiasing, we construct counterfactual augmented data. This approach enhances the calibration network, facilitating the debiasing and out-of-domain generalization. Experimental results on in-target and zero-shot stance detection tasks show that the proposed MB-Cal can effectively mitigate biases of LLMs, achieving state-of-the-art results.
BibTeX
@inproceedings{li2025mitigating,
  author = {Ang Li and Jingqian Zhao and Bin Liang and Lin Gui and Hui Wang and Xi Zeng and Kam-Fai Wong and Ruifeng Xu},
  title = {{Mitigating Biases of Large Language Models in Stance Detection with Calibration}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.362},
}
Figure