State Key Laboratory of AI Safety(人工智能安全国家重点实验室);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)
Existing detoxification methods for large language models mainly focus on post-training stage or inference time, while few tackle the source of toxicity, namely, the dataset itself. Such training-based or controllable decoding approaches cannot completely suppress the model's inherent toxicity, whereas detoxifying the pretraining dataset can fundamentally reduce the toxicity that the model learns during training. Hence, we attempt to detoxify directly on raw corpora with SoCD (Soft Contrastive Decoding), which guides an LLM to localize and rewrite toxic spans in raw data while preserving semantics, in our proposed HSPD (Hierarchical Semantic-Preserving Detoxification) pipeline, yielding a detoxified corpus that can drop-in replace the original for fine-tuning or other training. On GPT2-XL, HSPD attains state-of-the-art detoxification, reducing Toxicity Probability (TP) from 0.42 to 0.18 and Expected Maximum Toxicity (EMT) from 0.43 to 0.20. We further validate consistent best-in-class results on LLaMA2-7B, OPT-6.7B, and Falcon-7B. These findings show that semantics-preserving, corpus-level rewriting with HSPD effectively suppresses downstream toxicity while retaining data utility and allowing seamless source-level mitigation, thereby reducing the cost of later model behavior adjustment. (Code is available at: https://github.com/ntsw2001/data_detox_for_llm)
DSCD: Large Language Model Detoxification with Self-Constrained Decoding
Hubei Provincial Key Laboratory of Artificial Intelligence and Smart Learning(湖北人工智能与智能学习省级重点实验室);National Language Resources Monitoring and Research Center for Network Media(网络媒体语言资源监测与研究国家中心);Central China Normal University(中央财经大学);Wuhan University of Technology(武汉理工大学)
Evaluating Text Style Transfer: A Nine-Language Benchmark for Text Detoxification
AIRI;Universidade de Santiago de Compostela(圣塞巴斯蒂安大学);Technical University of Munich (TUM)(慕尼黑技术大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Skoltech
Cross-Lingual Transfer of Debiasing and Detoxification in Multilingual LLMs: An Extensive Investigation
Institute for Logic, Language and Computation, University of Amsterdam(逻辑、语言与计算研究所,阿姆斯特丹大学);Center for Language and Cognition, University of Groningen(语言与认知中心,格罗宁根大学)
MultiParaDetox: Extending Text Detoxification with Parallel Data to New Languages
Technical University of Munich(慕尼黑工业大学);Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS)(智能技术 singular 研究中心(CiTIUS));Universidade de Santiago de Compostela(圣地亚哥德孔波斯特拉大学);Skolkovo Institute of Science and Technology(斯科尔科沃科技学院);Artificial Intelligence Research Institute(人工智能研究院)
Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing
SKLCCSE, Beihang University(北航智能计算与复杂系统研究院);National University of Singapore(新加坡国立大学);Zhongguancun Laboratory, Beijing(中关村实验室);Institute of Dataspace, Hefei(合肥数据空间研究院);Nanyang Technological University(南洋理工大学)
GloSS over Toxicity: Understanding and Mitigating Toxicity in LLMs via Global Toxic Subspace
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Dalian University of Technology(大连理工大学)
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Subspace Intervention
Department of Computer Science(计算机科学系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);Department of Electronics and Communications Engineering(电子与通信工程系)
First Tragedy, then Parse: History Repeats Itself in the New Era of Large Language Models
Kempner Institute at Harvard University(哈佛大学坎普纳研究所);University of California - Berkeley(加州大学伯克利分校);New York University(纽约大学);Genentech(基因泰克公司);University of Edinburgh(爱丁堡大学)
Self-Control of LLM Behaviors by Compressing Suffix Gradient into Prefix Controller
Shenzhen University(深圳大学);Rensselaer Polytechnic Institute(伦斯勒理工学院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Tsinghua University(清华大学);The University of Hong Kong(香港大学);California Institute of Technology(加州理工学院)
Countering Reward Over-optimization in LLM with Demonstration-Guided Reinforcement Learning
INRIA(法国国家信息与自动化研究所);Cohere(Cohere公司);DeepMind(DeepMind公司);EHESS(法国高等社会科学研究院);ENS-PSL(巴黎高等师范学院-巴黎文理研究大学);CNRS(法国国家科学研究中心);Meta AI Research(Meta人工智能研究院)