Lune

EMNLP Findings2025

Enhancing Hate Speech Classifiers through a Gradient-assisted Counterfactual Text Generation Strategy

Michael van Supranes, Shaowen Peng, Shoko Wakamiya, Eiji Aramaki

摘要

Counterfactual data augmentation (CDA) is a promising strategy for improving hate speech classification, but automating counterfactual text generation remains a challenge.Strong attribute control can distort meaning, while prioritizing semantic preservation may weaken attribute alignment.We propose Gradientassisted Energy-based Sampling (GENES) for counterfactual text generation, which restricts accepted samples to text meeting a minimum BERTScore threshold and applies gradient-assisted proposal generation to improve attribute alignment.Compared to other methods that solely rely on either prompting, gradient-based steering, or energy-based sampling, GENES is more likely to jointly satisfy attribute alignment and semantic preservation under the same base model.When applied to data augmentation, GENES achieved the best macro F1-score in two of three test sets, and it improved robustness in detecting targeted abusive language.In some cases, GENES exceeded the performance of prompt-based methods using a GPT-4o-mini, despite relying on a smaller model (Flan-T5-Large).Based on our cross-dataset evaluation, the average performance of models aided by GENES is the best among those methods that rely on a smaller model (Flan-T5-L).These results position GENES as a possible lightweight and open-source alternative.Warning: this paper shows texts or examples that may be offensive or upsetting.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 BERTScore: Evaluating Text Generation with BERT
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper17

  1. BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger 等ICLR 2020 · 8,443 次引用
  2. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
  3. A Survey of Data Augmentation Approaches for NLPSteven Y. Feng, Varun Gangal, Jason Wei, Sarath Chandar 等ACL Findings 2021 · 708 次引用
  4. COLD Decoding: Energy-based Constrained Text Generation with Langevin DynamicsLianhui Qin, Sean Welleck, Daniel Khashabi, Yejin ChoiNeurIPS 2022 · 217 次引用
  5. Latent Hatred: A Benchmark for Understanding Implicit Hate SpeechMai ElSherief, Caleb Ziems, David Muchlinski, Vaishnavi Anupindi 等EMNLP 2021 · 159 次引用

相关 Paper

  1. People Make Better Edits: Measuring the Efficacy of LLM-Generated Counterfactually Augmented Data for Harmful Language DetectionIndira Sen, Dennis Assenmacher, Mattia Samory, Isabelle Augenstein 等EMNLP 2023 · 7 次引用
  2. Fight Fire with Fire: Fine-tuning Hate Detectors using Large Samples of Generated Hate SpeechTomer Wullach, Amir Adler, Einat MinkovEMNLP Findings 2021 · 33 次引用
  3. A little goes a long way: Improving toxic language classification despite data scarcityMika Juuti, Tommi Gröndahl, Adrian Flanagan, N. AsokanEMNLP Findings 2020 · 16 次引用
  4. NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data AugmentationPhillip Howard, Gadi Singer, Vasudev Lal, Yejin Choi 等EMNLP Findings 2022 · 15 次引用
  5. Controlled LLM Decoding via Discrete Auto-regressive BiasingPatrick Pynadath, Ruqi ZhangICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖