DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxification

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hyeonsu, Cho, Kim, Dooyoung, Ko, Youngjoong
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913739369873408
author Hyeonsu, Cho
Kim, Dooyoung
Ko, Youngjoong
author_facet Hyeonsu, Cho
Kim, Dooyoung
Ko, Youngjoong
contents There have been attempts to utilize linear probe for detoxification, with existing studies relying on a single toxicity probe vector to reduce toxicity. However, toxicity can be fine-grained into various subcategories, making it difficult to remove certain types of toxicity by using a single toxicity probe vector. To address this limitation, we propose a category-specific toxicity probe vector approach. First, we train multiple toxicity probe vectors for different toxicity categories. During generation, we dynamically select the most relevant toxicity probe vector based on the current context. Finally, the selected vector is dynamically scaled and subtracted from model. Our method successfully mitigated toxicity from categories that the single probe vector approach failed to detoxify. Experiments demonstrate that our approach achieves up to a 78.52% reduction in toxicity on the evaluation dataset, while fluency remains nearly unchanged, with only a 0.052% drop compared to the unsteered model.
format Preprint
id arxiv_https___arxiv_org_abs_2503_12882
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxification
Hyeonsu, Cho
Kim, Dooyoung
Ko, Youngjoong
Computation and Language
Machine Learning
There have been attempts to utilize linear probe for detoxification, with existing studies relying on a single toxicity probe vector to reduce toxicity. However, toxicity can be fine-grained into various subcategories, making it difficult to remove certain types of toxicity by using a single toxicity probe vector. To address this limitation, we propose a category-specific toxicity probe vector approach. First, we train multiple toxicity probe vectors for different toxicity categories. During generation, we dynamically select the most relevant toxicity probe vector based on the current context. Finally, the selected vector is dynamically scaled and subtracted from model. Our method successfully mitigated toxicity from categories that the single probe vector approach failed to detoxify. Experiments demonstrate that our approach achieves up to a 78.52% reduction in toxicity on the evaluation dataset, while fluency remains nearly unchanged, with only a 0.052% drop compared to the unsteered model.
title DAPI: Domain Adaptive Toxicity Probe Vector Intervention for Fine-Grained Detoxification
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2503.12882