Skip to main content
QUICK REVIEW

[Paper Review] Adding guardrails to advanced chatbots

Yanchen Wang, Lisa Singh|arXiv (Cornell University)|Jun 13, 2023
Artificial Intelligence in Healthcare and EducationMedicine6 citations
TL;DR

This paper evaluates fairness in ChatGPT across career-related queries, finding it performs well as a search engine but exhibits demographic biases in text and code generation. It proposes prompt and response bias correction, response bans, and an independent advisory board to mitigate harms, emphasizing urgent need for ethical safeguards in black-box LLMs.

ABSTRACT

Generative AI models continue to become more powerful. The launch of ChatGPT in November 2022 has ushered in a new era of AI. ChatGPT and other similar chatbots have a range of capabilities, from answering student homework questions to creating music and art. There are already concerns that humans may be replaced by chatbots for a variety of jobs. Because of the wide spectrum of data chatbots are built on, we know that they will have human errors and human biases built into them. These biases may cause significant harm and/or inequity toward different subpopulations. To understand the strengths and weakness of chatbot responses, we present a position paper that explores different use cases of ChatGPT to determine the types of questions that are answered fairly and the types that still need improvement. We find that ChatGPT is a fair search engine for the tasks we tested; however, it has biases on both text generation and code generation. We find that ChatGPT is very sensitive to changes in the prompt, where small changes lead to different levels of fairness. This suggests that we need to immediately implement "corrections" or mitigation strategies in order to improve fairness of these systems. We suggest different strategies to improve chatbots and also advocate for an impartial review panel that has access to the model parameters to measure the levels of different types of biases and then recommends safeguards that move toward responses that are less discriminatory and more accurate.

Motivation & Objective

  • To assess the fairness of ChatGPT responses across diverse career-related queries such as salaries, job descriptions, and education requirements.
  • To identify how prompt variations affect response fairness and detect sensitivity to input framing.
  • To investigate biases in code generation and text generation outputs from ChatGPT.
  • To propose actionable mitigation strategies for reducing demographic and ethical biases in large language models.
  • To advocate for an independent review panel with access to model parameters to measure and recommend safeguards against bias.

Proposed method

  • Conducted comparative analysis of ChatGPT responses against authoritative sources (Bureau of Labor Statistics, Glassdoor) for accuracy and fairness.
  • Evaluated prompt sensitivity by rephrasing identical queries to assess changes in response fairness and content.
  • Proposed pre-processing bias correction via algorithms that detect and rephrase biased prompts using NLP techniques like BERT-based toxicity detection.
  • Proposed post-processing response correction to neutralize gendered or demographic-biased language using masked word replacement and gender-neutral alternatives.
  • Suggested implementation of response bans on ethically sensitive or harmful queries until model robustness improves.
  • Advocated for an impartial advisory board of researchers, ethicists, and legal experts to audit bias and recommend safeguards.
Figure 1: Experiment setup to explore bias in text generation from ChatGPT
Figure 1: Experiment setup to explore bias in text generation from ChatGPT

Experimental results

Research questions

  • RQ1How fairly does ChatGPT respond to career-related queries such as average salaries, job descriptions, and education requirements compared to authoritative sources?
  • RQ2To what extent do minor prompt rephrasing changes affect the fairness and demographic neutrality of ChatGPT’s responses?
  • RQ3What types of biases emerge in code generation and text generation outputs from ChatGPT, and how do they reflect training data biases?
  • RQ4How effective are prompt and response bias correction techniques in reducing demographic bias in LLM outputs?
  • RQ5What institutional mechanisms, such as independent advisory boards, are needed to ensure ethical oversight and continuous bias mitigation in generative AI systems?

Key findings

  • ChatGPT performs comparably to a search engine for factual queries, accurately reporting average salaries and job requirements with cited sources.
  • Despite strong factual performance, ChatGPT exhibits demographic biases in both text and code generation, particularly when prompted with biased or ambiguous inputs.
  • Small prompt rephrasing leads to significant changes in response fairness, indicating high sensitivity to input framing and lack of robustness.
  • The model demonstrates confirmation bias, reinforcing existing stereotypes and preferences present in training data, especially in gendered language and role assumptions.
  • Response bans on ethically sensitive or harmful queries are necessary to prevent the propagation of discriminatory content until model reliability improves.
  • An independent advisory board with access to model parameters is essential to measure bias types and recommend effective, transparent safeguards.

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.