Optimus: A Robust Defense Framework for Mitigating Toxicity while Fine-Tuning Conversational AI

Read full text
Authors: Aravind Cheruvu, Shravya Kanchi, Sifat Muhammad Abdullah, Nicholas Kong, Daphne Yao, Murtuza S. Jadliwala, Bimal Viswanath
Cited by: 0
References: 60

Abstract

Customizing Large Language Models (LLMs) on untrusted datasets poses severe risks of injecting toxic behaviors. In this work, we introduce Optimus, a novel defense framework designed to mitigate fine-tuning harms while preserving conversational utility. Unlike existing defenses that rely heavily on precise toxicity detection or restrictive filtering, Optimus addresses the critical challenge of ensuring robust mitigation even when toxicity classifiers are imperfect or biased. Optimus integrates a training-free toxicity classification scheme that repurposes the safety alignment of commodity LLMs, and employs a dual-strategy alignment process combining synthetic ''healing data'' with Direct Preference Optimization (DPO) to efficiently steer models toward safety. Extensive evaluations demonstrate that Optimus mitigates toxicity even when relying on extremely biased classifiers (with up to 85% degradation in Recall). Optimus outperforms the state-of-the-art defense StarDSS and exhibits strong resilience against adaptive adversarial and jailbreak attacks. Our source code and datasets are available at https://github.com/secml-lab-vt/Optimus

Fields of Study & Subjects

Hate Speech and Cyberbullying Detection AI in Service Interactions Adversarial Robustness in Machine Learning

Publication details

Journal / source
Proceedings of the Sixteenth ACM Conference on Data and Application Security and Privacy
Publisher
ACM
Pages
179–192
Publication date
12 June 2026
Language
EN