Prompting Fairness: Integrating Causality to Debias Large Language Models
Jingling Li, Zeyu Tang, Xiaoyu Liu, Peter Spirtes, Kun Zhang, Liu Leqi, Yang Liu
TL;DR
This work targets social biases in large language models by introducing a causality-guided debiasing framework that treats data generation and model reasoning as causal processes. It proposes three prompting strategies—nudging toward social-agnostic facts, counteracting historical biases, and nudging away from social-salient text—enabled by selection mechanisms to regulate information flow. Empirically, the approach yields significant bias reductions on WinoBias and BBQ across multiple models, including black-box access scenarios, with the strongest results when all strategies are combined. The framework thus offers theoretically grounded, practically applicable prompting guidelines for debiasing LLMs in high-stakes settings and opens avenues for reward-modeling and broader fairness research.
Abstract
Large language models (LLMs), despite their remarkable capabilities, are susceptible to generating biased and discriminatory responses. As LLMs increasingly influence high-stakes decision-making (e.g., hiring and healthcare), mitigating these biases becomes critical. In this work, we propose a causality-guided debiasing framework to tackle social biases, aiming to reduce the objectionable dependence between LLMs' decisions and the social information in the input. Our framework introduces a novel perspective to identify how social information can affect an LLM's decision through different causal pathways. Leveraging these causal insights, we outline principled prompting strategies that regulate these pathways through selection mechanisms. This framework not only unifies existing prompting-based debiasing techniques, but also opens up new directions for reducing bias by encouraging the model to prioritize fact-based reasoning over reliance on biased social cues. We validate our framework through extensive experiments on real-world datasets across multiple domains, demonstrating its effectiveness in debiasing LLM decisions, even with only black-box access to the model.
