paper-with-me

Papers

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

2024-10-27 · Xinhong Xie, Tao Li, Quanyan Zhu

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 \url{https://github.com/XXXinhong/Detoxification_LLM}.

📄 PDF Abstract BibTeX arXiv:2410.20298

Code (1)

xxxinhong/detoxification_llm 공식 구현

Tasks

Style Transfer

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…
DPO 설명 없음

Similar Papers 제목 키워드 기반

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

2023-09-01 · Daniel Scalena, Gabriele Sarti, Malvina Nissim, Elisabetta Fersini

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 …

Language ModelingLanguage Modellingreinforcement-learning

MultiParaDetox: Extending Text Detoxification with Parallel Data to New Languages

2024-04-02 · Daryna Dementieva, Nikolay Babakov, Alexander Panchenko

Text detoxification is a textual style transfer (TST) task where a text is paraphrased from a toxic surface form, e.g. featuring rude words, to the neutral register. Recently, text detoxification methods found their appl…

Style Transfer

Watch and Learn: Optimizing from Revealed Preferences Feedback

2015-04-04 · Aaron Roth, Jonathan Ullman, Zhiwei Steven Wu

A Stackelberg game is played between a leader and a follower. The leader first chooses an action, then the follower plays his best response. The goal of the leader is to pick the action that will maximize his payoff give…

ParaDetox: Detoxification with Parallel Data

2022-05-01 · ACL 2022 5 · Varvara Logacheva, Daryna Dementieva, Sergey Ustyantsev, Daniil Moskovskiy 외

We present a novel pipeline for the collection of parallel data for the detoxification task. We collect non-toxic paraphrases for over 10,000 English toxic sentences. We also show that this pipeline can be used to distil…

Sentence

Multilingual and Explainable Text Detoxification with Parallel Corpora

2024-12-16 · Daryna Dementieva, Nikolay Babakov, Amit Ronen, Abinew Ali Ayele 외

Even with various regulations in place across countries and social media platforms (Government of India, 2021; European Parliament and Council of the European Union, 2022, digital abusive speech remains a significant iss…

DescriptiveStyle TransferText Style Transfer