Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Models

By Boxin Wang, Wei Ping, Chaowei Xiao, Peng Xu, M. Patwary, Mohammad Shoeybi, Bo Li, Anima Anandkumar, Bryan Catanzaro. 2022

90 citations recorded by the source corpus.

Pre-trained language models (LMs) are shown to easily generate toxic language. In this work, we systematically explore domain-adaptive training to reduce the toxicity of language models. We conduct this study on three dimensions: training corpus, model size, and parameter efficiency. For the training corpus, we propose to leverage the generative power of LMs and generate nontoxic datasets for domain-adaptive training, which mitigates the exposure bias and is shown to be more data-efficient than using a curated pre-training corpus. We demonstrate that the self-generation method consistently outperforms the existing baselines across various model sizes on both automatic and human evaluations, even when it uses a 1/3 smaller training corpus. We then comprehensively study detoxifying LMs with parameter sizes ranging from 126M up to 530B (3x larger than GPT-3), a scale that has never been studied before. We find that i) large LMs have similar toxicity levels as smaller ones given the same pre-training corpus, and ii) large LMs require more endeavor to detoxify. We also explore parameter-efficient training methods for detoxification. We demonstrate that adding and training adapter-only layers in LMs not only saves a lot of parameters but also achieves a better trade-off between toxicity and perplexity than whole model adaptation for the large-scale models.

Subfields: Large Language Models, Safety, Robustness & Interpretability, AI Ethics, Fairness & Society

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Large Language Models

  1. Alexander Wei
  2. Mohammad Shoeybi
  3. Wei Ping
  4. Peng Xu
  5. Bryan Catanzaro
  6. Zhaopeng Tu
  7. Nika Haghtalab
  8. Shuming Shi

In Safety, Robustness & Interpretability

  1. Alexander Wei
  2. Mohammad Shoeybi
  3. Bryan Catanzaro
  4. Nika Haghtalab
  5. Shuming Shi
  6. Nayeon Lee
  7. Jacob Steinhardt
  8. M. Patwary

In AI Ethics, Fairness & Society

  1. Nayeon Lee
  2. Jacob Steinhardt

Citations in the corpus