paper-with-me

홈 › Papers

Robustifying Safety-Aligned Large Language Models through Clean Data Curation

2024-05-24 · Xiaoqun Liu, Jiacheng Liang, Muchao Ye, Zhaohan Xi

Large language models (LLMs) are vulnerable when trained on datasets containing harmful content, which leads to potential jailbreaking attacks in two scenarios: the integration of harmful texts within crowdsourced data used for pre-training and direct tampering with LLMs through fine-tuning. In both scenarios, adversaries can compromise the safety alignment of LLMs, exacerbating malfunctions. Motivated by the need to mitigate these adversarial influences, our research aims to enhance safety alignment by either neutralizing the impact of malicious texts in pre-training datasets or increasing the difficulty of jailbreaking during downstream fine-tuning. In this paper, we propose a data curation framework designed to counter adversarial impacts in both scenarios. Our method operates under the assumption that we have no prior knowledge of attack details, focusing solely on curating clean texts. We introduce an iterative process aimed at revising texts to reduce their perplexity as perceived by LLMs, while simultaneously preserving their text quality. By pre-training or fine-tuning LLMs with curated clean texts, we observe a notable improvement in LLM robustness regarding safety alignment against harmful queries. For instance, when pre-training LLMs using a crowdsourced dataset containing 5\% harmful instances, adding an equivalent amount of curated texts significantly mitigates the likelihood of providing harmful responses in LLMs and reduces the attack success rate by 71\%. Our study represents a significant step towards mitigating the risks associated with training-based jailbreaking and fortifying the secure utilization of LLMs.

📄 PDF Abstract BibTeX arXiv:2405.19358

Code (0)

등록된 구현이 없습니다.

Tasks

Safety Alignment

Similar Papers 제목 키워드 기반

Robustifying Vision-Language Models via Dynamic Token Reweighting

2025-05-22 · Tanqiu Jiang, Jiacheng Liang, Rongyi Zhu, Jiawei Zhou 외

Large vision-language models (VLMs) are highly vulnerable to jailbreak attacks that exploit visual-textual interactions to bypass safety guardrails. In this paper, we present DTR, a novel inference-time defense that miti…

Image to text

Safeguard Fine-Tuned LLMs Through Pre- and Post-Tuning Model Merging

2024-12-27 · Hua Farn, Hsuan Su, Shachi H Kumar, Saurav Sahay 외

Fine-tuning large language models (LLMs) for downstream tasks is a widely adopted approach, but it often leads to safety degradation in safety-aligned LLMs. Currently, many solutions address this issue by incorporating a…

One Trigger Token Is Enough: A Defense Strategy for Balancing Safety and Usability in Large Language Models

2025-05-12 · Haoran Gu, Handing Wang, Yi Mei, Mengjie Zhang 외

Large Language Models (LLMs) have been extensively used across diverse domains, including virtual assistants, automated code generation, and scientific research. However, they remain vulnerable to jailbreak attacks, whic…

Code GenerationSafety Alignment

Attributing and Exploiting Safety Vectors through Global Optimization in Large Language Models

2026-01-22 · Fengheng Chu, Jiahao Chen, Yuhong Wang, Jun Wang 외 arxiv

While Large Language Models (LLMs) are aligned to mitigate risks, their safety guardrails remain fragile against jailbreak attacks. This reveals limited understanding of components governing safety. Existing methods rely…

A safety realignment framework via subspace-oriented model fusion for large language models

2024-05-15 · Xin Yi, Shunfan Zheng, LinLin Wang, Xiaoling Wang 외

The current safeguard mechanisms for large language models (LLMs) are indeed susceptible to jailbreak attacks, making them inherently fragile. Even the process of fine-tuning on apparently benign data for downstream task…

Instruction FollowingMath