Expert-Guided Extinction of Toxic Tokens for Debiased Generation

Xueyao Sun, Kaize Shi, Haoran Tang, Guandong Xu, Qing Li
5/29/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) can elicit social bias during generations, especially when inference with toxic prompts. Controlling the sensitive attributes in generation encounters challenges in data distribution, generalizability, and efficiency. Specifically, fine-tuning and retrieval demand extensive unbiased corpus, while direct prompting requires meticulously curated instructions for correcting the output in multiple rounds of thoughts but poses challenges on memory and inference latency. In this work, we propose the Expert-Guided Extinction of Toxic Tokens for Debiased Generation (EXPOSED) to eliminate the undesired harmful outputs for LLMs without the aforementioned requirements. EXPOSED constructs a debiasing expert based on the abundant toxic corpus to expose and elicit the potentially dangerous tokens. It then processes the output to the LLMs and constructs a fair distribution by suppressing and attenuating the toxic tokens. EXPOSED is evaluated on fairness benchmarks over three LLM families. Extensive experiments demonstrate that compared with other baselines, the proposed EXPOSED significantly reduces the potential social bias while balancing fairness and generation performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{sun2024expertguided,
  title  = {Expert-Guided Extinction of Toxic Tokens for Debiased Generation},
  author = {Xueyao Sun and Kaize Shi and Haoran Tang and Guandong Xu and Qing Li},
  year   = {2024},
  eprint = {2405.19299},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19299v1}
}

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/2405.19299.svg)](https://codeofpaper.com/paper/2405.19299)

Discussion