Walking in Others' Shoes: How Perspective-Taking Guides Large Language Models in Reducing Toxicity and Bias

Rongwu Xu, Zi'an Zhou, Tianwei Zhang, Zehan Qi, Su Yao +3 more
7/22/2024
cs.CLcs.AIcs.CY

No official code found. Best implementation: pillowsofwind/Toxicity-and-Bias-Reduction (0 stars, last commit 2025-03-05).

Abstract

The common toxicity and societal bias in contents generated by large language models (LLMs) necessitate strategies to reduce harm. Present solutions often demand white-box access to the model or substantial training, which is impractical for cutting-edge commercial LLMs. Moreover, prevailing prompting methods depend on external tool feedback and fail to simultaneously lessen toxicity and bias. Motivated by social psychology principles, we propose a novel strategy named \textbf{perspective-taking prompting (\textsc{PeT})} that inspires LLMs to integrate diverse human perspectives and self-regulate their responses. This self-correction mechanism can significantly diminish toxicity (up to $89\%$) and bias (up to $73\%$) in LLMs' responses. Rigorous evaluations and ablation studies are conducted on two commercial LLMs (ChatGPT and GLM) and three open-source LLMs, revealing \textsc{PeT}'s superiority in producing less harmful responses, outperforming five strong baselines.

View on arXivView PDF

Code Implementations(1)

[EMNLP 2024] The official GitHub repo for the paper "Walking in Others' Shoes: How Perspective-Taking Guides Large Language Models in Reducing Toxicity and Bias"

00PythonMar 5, 20251 years ago
biasllmresponsible-aitoxicity

Similar Papers

Cite this paper

@article{xu2024walking,
  title  = {Walking in Others' Shoes: How Perspective-Taking Guides Large Language Models in Reducing Toxicity and Bias},
  author = {Rongwu Xu and Zi'an Zhou and Tianwei Zhang and Zehan Qi and Su Yao and Ke Xu and Wei Xu and Han Qiu},
  year   = {2024},
  eprint = {2407.15366},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.15366v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.15366.svg)](https://codeofpaper.com/paper/2407.15366)

Discussion