Let the Models Respond: Interpreting Language Model Detoxification Through the Lens of Prompt Dependence

Daniel Scalena, Gabriele Sarti, Malvina Nissim, Elisabetta Fersini
9/1/2023
cs.CL

No official code found. Best implementation: DanielSc4/RewardLM (11 stars, last commit 2023-09-28).

Abstract

Due to language models' propensity to generate toxic or hateful responses, several techniques were developed to align model generations with users' preferences. Despite the effectiveness of such methods in improving the safety of model interactions, their impact on models' internal processes is still poorly understood. In this work, we apply popular detoxification approaches to several language models and quantify their impact on the resulting models' prompt dependence using feature attribution methods. We evaluate the effectiveness of counter-narrative fine-tuning and compare it with reinforcement learning-driven detoxification, observing differences in prompt reliance between the two methods despite their similar detoxification performances.

View on arXivView PDF

Code Implementations(1)

DanielSc4/RewardLMCommunity100%

Reward a Language Model with pancakes 🥞

110Shell, PythonApr 14, 20233 years ago
deep-learningfine-tuninggenerative-modelinterpretabilitynatural-language-processing+2 more

Similar Papers

Cite this paper

@article{scalena2023models,
  title  = {Let the Models Respond: Interpreting Language Model Detoxification Through the Lens of Prompt Dependence},
  author = {Daniel Scalena and Gabriele Sarti and Malvina Nissim and Elisabetta Fersini},
  year   = {2023},
  eprint = {2309.00751},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.00751v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.00751.svg)](https://codeofpaper.com/paper/2309.00751)

Discussion