Skip to main content
QUICK REVIEW

[Paper Review] Queer People are People First: Deconstructing Sexual Identity Stereotypes in Large Language Models

Harnoor Dhingra, Preetiha Jayashanker|arXiv (Cornell University)|Jun 30, 2023
Topic ModelingComputer Science7 citations
TL;DR

This paper investigates and mitigates representational bias in large language models (LLMs) toward queer individuals by measuring regard scores in generated text. Using chain-of-thought prompting and SHAP analysis, the authors identify low-regard words associated with queer identities and apply a post-hoc text-to-text style transfer method to increase regard scores while preserving context, demonstrating a promising debiasing approach for affirming LLM outputs.

ABSTRACT

Large Language Models (LLMs) are trained primarily on minimally processed web text, which exhibits the same wide range of social biases held by the humans who created that content. Consequently, text generated by LLMs can inadvertently perpetuate stereotypes towards marginalized groups, like the LGBTQIA+ community. In this paper, we perform a comparative study of how LLMs generate text describing people with different sexual identities. Analyzing bias in the text generated by an LLM using regard score shows measurable bias against queer people. We then show that a post-hoc method based on chain-of-thought prompting using SHAP analysis can increase the regard of the sentence, representing a promising approach towards debiasing the output of LLMs in this setting.

Motivation & Objective

  • To investigate whether pre-trained LLMs perpetuate measurable, quantifiable bias against queer individuals in generated text.
  • To quantify representational bias using the regard score metric, which reflects social perception of marginalized groups.
  • To develop and evaluate a post-ho debiasing method that enhances regard scores for queer-identified subjects while preserving contextual integrity.
  • To demonstrate that low-regard linguistic patterns in LLM outputs can be systematically identified and rewritten using explainable AI techniques.

Proposed method

  • Gender-neutral biographies from the WikiBio dataset were used as contextually rich, anonymized prompts to minimize confounding gender effects.
  • Trigger words indicating sexual identity (e.g., 'straight', 'gay', 'lesbian') were prepended to prompts to elicit identity-specific LLM outputs.
  • The regard score from Sheng et al. (2019) was used to quantify social perception of the generated descriptions.
  • SHAP analysis was applied to the regard classifier to identify specific words contributing to low regard scores in queer-identity outputs.
  • A post-hoc text-to-text style transfer approach was formulated, rewriting low-regard sentences by replacing bias-indicating words while preserving semantic meaning.
  • Chain-of-thought prompting was used to guide the LLM in identifying and replacing low-regard words, improving regard scores without altering core context.

Experimental results

Research questions

  • RQ1RQ1: Does a pre-trained LLM perpetuate measurable, quantifiable bias against queer people in its text generation?
  • RQ2RQ2: Can we mitigate the said bias in the LLM output while preserving the contextual information using a post-hoc debiasing method?
  • RQ3RQ3: To what extent can SHAP and chain-of-thought prompting identify and correct low-regard linguistic patterns in LLM outputs?

Key findings

  • LLMs generate significantly lower regard scores for individuals identified as queer compared to those identified as straight, indicating measurable representational bias.
  • The use of trigger words indicating queer identity led to outputs that emphasized struggle and philanthropy, while straight-identified subjects were more often described in terms of professional success.
  • SHAP analysis successfully identified specific low-regard words—such as 'gay'—that correlated with reduced regard scores in the model's output.
  • Chain-of-thought prompting enabled the LLM to identify and replace low-regard words, resulting in higher regard scores without altering the core semantic content of the sentence.
  • The post-hoc debiasing method preserved contextual information while increasing regard scores, demonstrating the feasibility of targeted, context-preserving mitigation.
  • The results show that queer individuals are systematically portrayed with lower social perception in LLM outputs, even when contextual biographies are gender-neutral and factually equivalent.

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.