Fine-Tuning a Transformer-Based Language Model to Avoid Generating Non-Normative Text

By Xiangyu Peng, Siyan Li, Spencer J. Frazier, Mark O. Riedl. 2020

8 citations recorded by the source corpus.

Large-scale, transformer-based language models such as GPT-2 are pretrained on diverse corpora scraped from the internet. Consequently, they are prone to generating content that one might find inappropriate or non-normative (i.e. in violation of social norms). In this paper, we describe a technique for fine-tuning GPT-2 such that the amount of non-normative content generated is significantly reduced. A model capable of classifying normative behavior is used to produce an additional reward signal; a policy gradient reinforcement learning technique uses that reward to fine-tune the language model weights. Using this fine-tuning technique, with 24,000 sentences from a science fiction plot summary dataset, halves the percentage of generated text containing non-normative behavior from 35.1% to 15.7%.

Subfields: Artificial Intelligence

How researchers see this paper

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

In Artificial Intelligence

  1. Patrick Schramowski
  2. Kristian Kersting
  3. Constantin A. Rothkopf
  4. Sriraam Natarajan
  5. Luc De Raedt
  6. David Poole
  7. Christopher Morris
  8. Mathias Niepert

Citations in the corpus