Preprint
Buckle Up: Robustifying LLMs at Every Customization Stage via Data Curation
ArXiv.org
Cornell University
10/03/2024
DOI: 10.48550/arxiv.2410.02220
Abstract
Large language models (LLMs) are extensively adapted for downstream applications through a process known as "customization," with fine-tuning being a common method for integrating domain-specific expertise. However, recent studies have revealed a vulnerability that tuning LLMs with malicious samples can compromise their robustness and amplify harmful content, an attack known as "jailbreaking." To mitigate such attack, we propose an effective defensive framework utilizing data curation to revise commonsense texts and enhance their safety implication from the perspective of LLMs. The curated texts can mitigate jailbreaking attacks at every stage of the customization process: before customization to immunize LLMs against future jailbreak attempts, during customization to neutralize jailbreaking risks, or after customization to restore the compromised models. Since the curated data strengthens LLMs through the standard fine-tuning workflow, we do not introduce additional modules during LLM inference, thereby preserving the original customization process. Experimental results demonstrate a substantial reduction in jailbreaking effects, with up to a 100% success in generating responsible responses. Notably, our method is effective even with commonsense texts, which are often more readily available than safety-relevant data. With the every-stage defensive framework and supporting experimental performance, this work represents a significant advancement in mitigating jailbreaking risks and ensuring the secure customization of LLMs.
Details
- Title: Subtitle
- Buckle Up: Robustifying LLMs at Every Customization Stage via Data Curation
- Creators
- Xiaoqun Liu - Southern University of Science and TechnologyJiacheng Liang - Stony Brook UniversityLuoxi Tang - Binghamton UniversityChenyu You - Stony Brook UniversityMuchao Ye - University of IowaZhaohan Xi - Binghamton University
- Resource Type
- Preprint
- Publication Details
- ArXiv.org
- DOI
- 10.48550/arxiv.2410.02220
- ISSN
- 2331-8422
- Publisher
- Cornell University; Ithaca, New York
- Language
- English
- Date posted
- 10/03/2024
- Academic Unit
- Computer Science
- Record Identifier
- 9984722935202771
Metrics
23 Record Views