mlsanityData to 14 Oct 2026

Learning from Response not Preference: A Stackelberg Approach for LLM Detoxification using Non-parallel Data

arXiv 2410.20298 ↗First posted 27 Oct 2024cs.CL cs.AIcited by 3

On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks

Abstract (arXiv)

Text detoxification, a variant of style transfer tasks, finds useful applications in online social media. This work presents a fine-tuning method that only uses non-parallel data to turn large language models (LLM) into a detoxification rewritter. We model the fine-tuning process as a Stackelberg game between an LLM (leader) and a toxicity screener (follower), which is a binary style classifier (toxic or non-toxic). The LLM aims to align its preference according to the screener and generate paraphases passing the screening. The primary challenge of non-parallel data fine-tuning is incomplete preference. In the case of unsuccessful paraphrases, the classifier cannot establish a preference between the input and paraphrase, as they belong to the same toxic style. Hence, preference-alignment fine-tuning methods, such as direct preference optimization (DPO), no longer apply. To address the challenge of incomplete preference, we propose Stackelberg response optimization (SRO), adapted from DPO, to enable the LLM to learn from the follower's response. The gist is that SRO decreases the likelihood of generating the paraphrase if it fails the follower's screening while performing DPO on the pair of the toxic input and its paraphrase when the latter passes the screening. Experiments indicate that the SRO-fine-tunned LLM achieves satisfying performance comparable to state-of-the-art models regarding style accuracy, content similarity, and fluency. The overall detoxification performance surpasses other computing methods and matches the human reference. Additional empirical evidence suggests that SRO is sensitive to the screener's feedback, and a slight perturbation leads to a significant performance drop. We release the code and LLM models at urlhttps://github.com/XXXinhong/DetoxificationLLM.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 22 of its 34 references that are in the map. First posted on arXiv 27 Oct 2024.

Builds on

22 of 34 references.

References · 22

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  3. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  4. 2018Neural Network Acceptability Judgmentscited by 958
  5. 2023A General Theoretical Paradigm to Understand Learning from Human Preferencescited by 912
  6. 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 557
  7. 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 248
  8. 2018Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfercited by 191
  9. 2017Style Transfer in Text: Exploration and Evaluationcited by 146
  10. 2024A Minimaximalist Approach to Reinforcement Learning from Human Feedbackcited by 144
  11. 2019Beyond BLEU: Training Neural Machine Translation with Semantic Similaritycited by 84
  12. 2020A Probabilistic Formulation of Unsupervised Text Style Transfercited by 70
10 more
  1. 2019A Dual Reinforcement Learning Framework for Unsupervised Text Style Transfercited by 65
  2. 2018Fighting Offensive Language on Social Media with Unsupervised Text Style Transfercited by 55
  3. 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
  4. 2019"Mask and Infill" : Applying Masked Language Model to Sentiment Transfercited by 48
  5. 2023PARL: A Unified Framework for Policy Alignment in Reinforcement Learning from Human Feedbackcited by 40
  6. 2021Civil Rephrases Of Toxic Texts With Self-Supervised Transformerscited by 32
  7. 2021The Confluence of Networks, Games and Learningcited by 26
  8. 2020Stable Style Transformer: Delete and Generate Approach with Encoder-Decoder for Text Style Transfercited by 22
  9. 2020Towards A Friendly Online Community: An Unsupervised Style Transfer Framework for Profanity Redactioncited by 17
  10. 2024Symbiotic Game and Foundation Models for Cyber Deception Operations in Strategic Cyber Warfarecited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Text Detoxification: Data Efficiency, Semantic Preservation and Model Generalization
  2. 2024Large Language Models can be Strong Self-Detoxifiers
  3. 2025GemDetox at TextDetox CLEF 2025: Enhancing a Massively Multilingual Model for Text Detoxification on Low-resource Languages
  4. 2025SMARTER: A Data-efficient Framework to Improve Toxicity Detection with Explanation via Self-augmenting Large Language Models
  5. 2025Detoxification of Large Language Models through Output-layer Fusion with a Calibration Model
  6. 2026Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models
  7. 2026Detoxifying LLMs via Representation Erasure-Based Preference Optimization
  8. 2025<think> So let's replace this phrase with insult... </think> Lessons learned from generation of toxic texts with LLMs