TL;DR
Large language models (LLMs) like GPT-2 often generate text that violates social norms. This paper introduces a reinforcement learning (RL) technique that fine-tunes LLMs using a normative text classifier as a reward signal, effectively reducing the generation of non-normative content by up to 61%. This approach offers a practical method for aligning LLM outputs with societal expectations.
What Problem Does This Paper Address?
Modern large-scale language models, trained on vast internet corpora, are prone to generating text that deviates from established social norms. This "non-normative" text can range from rude or offensive language to descriptions of harmful actions, reflecting the diverse and sometimes problematic content present in their training data. The challenge lies in controlling this undesirable output without sacrificing the model's fluency or general language capabilities. While previous work has explored value alignment and debiasing techniques, this paper specifically investigates whether a normative text classifier can be used to fine-tune LLMs to reduce the generation of non-normative descriptions of behavior.
Methods
The core of this paper's contribution is a novel fine-tuning technique that leverages reinforcement learning. The standard cross-entropy loss used for training language models is augmented with a "sentence loss" that incorporates a reward signal derived from a pre-trained normative text classifier.
Here's a breakdown:
- Normative Text Classifier: The authors utilize a classifier (based on Frazier et al., 2019) that can distinguish between normative and non-normative sentences. This classifier acts as the "value alignment" component.
- Reinforcement Learning (RL) Fine-tuning: Instead of directly modifying the training data, the model is trained to maximize a reward signal. When the normative text classifier identifies a generated sentence as non-normative, a penalty is applied to the model's loss function. Conversely, normative sentences receive a reward (or zero penalty).
- Policy Gradient: The technique uses a policy gradient RL approach, where the reward signal is backpropagated through the model to adjust its weights. This allows the model to learn to produce text that is more likely to be classified as normative.
- Sentence-Level Reward: Crucially, the reward is applied at the sentence level, acknowledging that normativity often depends on the context of an entire utterance, not just individual words. This contrasts with some prior methods that operate on a word-by-word basis.
Datasets
The paper uses a variety of datasets for both training classifiers and evaluating the fine-tuning technique:
- Goofus & Gallant (G&G): This children's comic strip serves as a naturally labeled source of normative and non-normative text, used to train the initial normative classifier.
- Science Fiction Plot Summaries (Sci-fi): A corpus of 2,276 stories scraped from fan sites, used to test the transferability of the G&G-trained classifier and for fine-tuning experiments. This dataset presents a "transfer challenge" due to its novel entities.
- Plotto Dataset: 900 sentences extracted from a book cataloging plot points, used for fine-tuning and evaluation. Some anachronistic and misogynistic sentences were pruned.
- ROCstories: A corpus of 52,666 five-sentence stories about everyday events, used for fine-tuning and evaluation. This dataset focuses on more mundane events with less pronounced normativity.
- Sentiment Datasets (IMDb, Yelp, Amazon): Used to test the fine-tuning technique with classifiers other than the normative one, exploring the relationship between sentiment and normativity.
- Toxic Comment Classification Challenge: Used to test the fine-tuning technique with a toxic language classifier.
Key Insights and Ideas
- Normativity is Context-Dependent: The paper highlights that normativity is often best assessed at the sentence level, not just word by word. This justifies their sentence-level reward mechanism.
- Classifier as a "Value Aligned Prior": The normative text classifier acts as a proxy for human judgment, guiding the LLM towards desired behavior without needing explicit human feedback during every generation step.
- Generalizability of the Fine-tuning Technique: The success of the RL fine-tuning approach with both normative classifiers and sentiment/toxic classifiers suggests that the method is robust and can be applied to various forms of text control.
- Trade-off between Normativity and Fluency: The paper aims to reduce non-normative text while maintaining fluency. They observe that perplexity remains steady after fine-tuning, indicating that the models do not significantly degrade in their language generation quality.
- Sentiment vs. Normativity: The study reveals that while negative sentiment often correlates with non-normative behavior, it's not a perfect proxy. A significant portion of sentences exhibit conflicting labels (e.g., normative but negative sentiment), underscoring the need for specific normative classifiers.
Key Results
The primary quantitative results demonstrate a significant reduction in non-normative text generation:
- Reduction in Non-Normative Text: The fine-tuning technique reduced non-normative text generation by 27-61% across different datasets, as measured by both automated classification and human evaluation.
- For GPT-ROCstories, human-labeled non-normative text dropped from 58% to 22% (a 61% decrease).
- For GPT-Plotto, human-labeled non-normative text dropped from 72% to 53% (a 27% decrease).
- For GPT-scifi, human-labeled non-normative text dropped from 26% to 18% (a 31% decrease).
- Classifier Accuracy: The normative text classifier achieved 81-90% accuracy when compared to gold-standard human judgments on generated text.
- Transfer Learning: The G&G-trained normative classifier showed good zero-shot transfer capabilities to novel domains like sci-fi, indicating the robustness of the classifier itself.
- Other Classifiers: Fine-tuning with sentiment classifiers reduced negative sentiment by up to 45%, and with toxic classifiers reduced toxic language by up to 46%.
Limitations and Future Work
- Cultural Specificity of Norms: The authors acknowledge that their normative classifier is trained on Western/American norms. They recognize that culture is not monolithic and that classifiers trained on different sources might yield different results.
- Sentence-Level Context Limitation: The normative classifier, while operating at the sentence level, still has limitations in understanding broader contextual nuances. This could lead to overlooking non-normative sentences that appear normative out of context.
- Neutral Text Generation: The current approach primarily distinguishes between normative and non-normative. For scenarios where neutral text is also desired, the authors suggest using a ternary classifier (normative, non-normative, neutral).
- Data Requirements: Replicating this work for other desirable characteristics requires labeled datasets, which can be challenging to obtain for specific domains.
- Potential for Misuse: The authors note that the reward function could be trivially modified to punish normative text instead of non-normative text, highlighting the dual-use nature of such techniques.
Future work could involve developing more culturally diverse normative classifiers, exploring ternary classification for neutral text, and investigating the application of this technique to even larger models like GPT-3.
Summary updated