paper-with-me

홈 › Papers

Language Detoxification with Attribute-Discriminative Latent Space

2022-10-19 · Jin Myung Kwak, Minseon Kim, Sung Ju Hwang

Transformer-based Language Models (LMs) have achieved impressive results on natural language understanding tasks, but they can also generate toxic text such as insults, threats, and profanity, limiting their real-world applications. To overcome this issue, a few text generation approaches aim to detoxify toxic texts using additional LMs or perturbations. However, previous methods require excessive memory, computations, and time which are serious bottlenecks in their real-world application. To address such limitations, we propose an effective yet efficient method for language detoxification using an attribute-discriminative latent space. Specifically, we project the latent space of an original Transformer LM onto a discriminative latent space that well-separates texts by their attributes using a projection block and an attribute discriminator. This allows the LM to control the text generation to be non-toxic with minimal memory and computation overhead. We validate our model, Attribute-Discriminative Language Model (ADLM) on detoxified language and dialogue generation tasks, on which our method significantly outperforms baselines both in performance and efficiency.

📄 PDF Abstract BibTeX arXiv:2210.10329

Code (1)

jin8/adlm 공식 구현 pytorch

Tasks

AttributeDialogue GenerationLanguage ModelingLanguage ModellingNatural Language UnderstandingText Generation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Learning Discriminative Latent Attributes for Zero-Shot Classification

2017-10-01 · ICCV 2017 10 · Huajie Jiang, Ruiping Wang, Shiguang Shan, Yi Yang 외

Zero-shot learning (ZSL) aims to transfer knowledge from observed classes to the unseen classes, based on the assumption that both the seen and unseen classes share a common semantic space, among which attributes enjoy a…

AttributeClassificationDictionary LearningGeneral Classification+2

UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation

2025-04-29 · Huimin Lu, Masaru Isonuma, Junichiro Mori, Ichiro Sakata

We present UniDetox, a universally applicable method designed to mitigate toxicity across various large language models (LLMs). Previous detoxification methods are typically model-specific, addressing only individual mod…

Dataset DistillationLanguage ModelingLanguage Modelling

CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation

2023-06-01 · Rahul Madhavan, Rishabh Garg, Kahini Wadhawan, Sameep Mehta

We propose a method to control the attributes of Language Models (LMs) for the text generation task using Causal Average Treatment Effect (ATE) scores and counterfactual augmentation. We explore this method, in the conte…

AttributecounterfactualText Generation

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

Parameter-Efficient Detoxification with Contrastive Decoding

2024-01-13 · Tong Niu, Caiming Xiong, Semih Yavuz, Yingbo Zhou

The field of natural language generation has witnessed significant advancements in recent years, including the development of controllable text generation techniques. However, controlling the attributes of the generated …

AttributeGPULanguage ModelingLanguage Modelling+1