Reproduce “Prompting Fairness: Integrating Causality to Debias Large Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jingling Li, Zeyu Tang, Xiaoyu Liu, Peter Spirtes, Kun Zhang, Liu Leqi, Yang Liu

A causality-guided framework is introduced to debias Large Language Models (LLMs) by integrating causal inference principles into prompt design. The proposed Dual Directional Prompting (DDP) method significantly reduces social biases in black-box LLMs, for example, lowering the gender bias gap on GPT-4's WinoBias Type I tasks from 15.47% to 2.17%.

Key insights

  • Social biases in LLM training data can be understood as selection mechanisms, providing a mechanistic causal explanation for their manifestation.
  • Explicitly encouraging fact-based reasoning is a crucial, complementary approach to discouraging biased reasoning for comprehensive debiasing.
  • A theoretical guarantee (Theorem 3.1) shows that fulfilling the conditional independence objectives of the three proposed strategies can entirely remove objectionable dependence between LLM decisions and social categories.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.