Expert-Guided Extinction of Toxic Tokens for Debiased Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sun, Xueyao, Shi, Kaize, Tang, Haoran, Xu, Guandong, Li, Qing
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916265251045376
author Sun, Xueyao
Shi, Kaize
Tang, Haoran
Xu, Guandong
Li, Qing
author_facet Sun, Xueyao
Shi, Kaize
Tang, Haoran
Xu, Guandong
Li, Qing
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_19299
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Expert-Guided Extinction of Toxic Tokens for Debiased Generation
Sun, Xueyao
Shi, Kaize
Tang, Haoran
Xu, Guandong
Li, Qing
Computation and Language
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.
title Expert-Guided Extinction of Toxic Tokens for Debiased Generation
topic Computation and Language
url https://arxiv.org/abs/2405.19299