Skip to main content
QUICK REVIEW

[Paper Review] In-Contextual Gender Bias Suppression for Large Language Models

Daisuke Oba, Masahiro Kaneko|arXiv (Cornell University)|Sep 13, 2023
Text Readability and SimplificationComputer Science3 citations
TL;DR

This paper proposes bias suppression, a prompt-based method to mitigate gender bias in large language models (LLMs) without requiring access to model parameters or decoding interventions. By using carefully designed textual preambles—counterfactual statements and descriptive occupation sentences—it effectively suppresses gender bias in two open-source LLMs with minimal degradation in downstream task performance, achieving up to 5% accuracy drop on COPA and 2–3% on HellaSwag.

ABSTRACT

Despite their impressive performance in a wide range of NLP tasks, Large Language Models (LLMs) have been reported to encode worrying-levels of gender biases. Prior work has proposed debiasing methods that require human labelled examples, data augmentation and fine-tuning of LLMs, which are computationally costly. Moreover, one might not even have access to the model parameters for performing debiasing such as in the case of closed LLMs such as GPT-4. To address this challenge, we propose bias suppression that prevents biased generations of LLMs by simply providing textual preambles constructed from manually designed templates and real-world statistics, without accessing to model parameters. We show that, using CrowsPairs dataset, our textual preambles covering counterfactual statements can suppress gender biases in English LLMs such as LLaMA2. Moreover, we find that gender-neutral descriptions of gender-biased objects can also suppress their gender biases. Moreover, we show that bias suppression has acceptable adverse effect on downstream task performance with HellaSwag and COPA.

Motivation & Objective

  • Address the challenge of mitigating gender bias in closed-source or API-accessible LLMs where fine-tuning or decoding interventions are not feasible.
  • Develop a method that enables end users to suppress bias independently, without relying on model providers.
  • Minimize adverse effects on downstream task performance while effectively reducing gender bias in LLMs.
  • Explore the effectiveness of different preamble types—counterfactual and descriptive—on bias suppression and model performance.
  • Investigate whether bias suppression can be applied to general-purpose LLMs without compromising their broad utility.

Proposed method

  • Design CF-* preambles using templates that contradict gender stereotypes, such as 'Despite being a male, {male-name} became a(n) {female-job}' to counteract biased associations.
  • Create Desc-* preambles that describe occupations in a gender-neutral way, using either three or seven descriptive words to assess length effects.
  • Ensure preambles are balanced in word count across types to avoid length-based bias in model attention.
  • Use the Relative Bias Score (RBS) to quantitatively measure gender bias suppression on the Crows-Pairs benchmark.
  • Evaluate downstream performance on COPA and HellaSwag using perplexity-based selection of the best-performing preamble pairs.
  • Apply the method to two open-source LLMs: OpenLLaMA-7B and MPT-7B, using standard NLP benchmarks to assess both bias and task performance.

Experimental results

Research questions

  • RQ1Can in-context textual preambles effectively suppress gender bias in LLMs without access to model parameters?
  • RQ2How do counterfactual preambles (CF-*) and descriptive preambles (Desc-*) compare in their ability to suppress gender bias?
  • RQ3What is the impact of preamble length and type on downstream task performance in common sense reasoning benchmarks?
  • RQ4Does bias suppression via preambles lead to significant performance degradation on standard NLP tasks like COPA and HellaSwag?
  • RQ5Can this method be generalized to other types of social bias beyond binary gender bias?

Key findings

  • Both CF-* and Desc-* preambles significantly suppress gender bias in OpenLLaMA-7B and MPT-7B, as measured by the Relative Bias Score (RBS).
  • The method achieves up to 5% performance drop on the COPA benchmark and 2–3% on HellaSwag, indicating minimal adverse impact on downstream tasks.
  • Surprisingly, CF-detailed preambles sometimes outperform the no-preamble (nc) baseline on HellaSwag, suggesting potential performance gains in specific contexts.
  • No significant performance differences were observed across preamble types or varying numbers of preambles, indicating robustness and consistency.
  • The method maintains effectiveness across different LLM architectures (OpenLLaMA-7B and MPT-7B), suggesting broad applicability.
  • The approach is effective even in low-resource settings, as CF-detailed preambles help smaller models by providing clearer context, improving inference reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.