Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Protecting Your LLMs with Information Bottleneck

About

The advent of large language models (LLMs) has revolutionized the field of natural language processing, yet they might be attacked to produce harmful content. Despite efforts to ethically align LLMs, these are often fragile and can be circumvented by jailbreaking attacks through optimized or manual adversarial prompts. To address this, we introduce the Information Bottleneck Protector (IBProtector), a defense mechanism grounded in the information bottleneck principle, and we modify the objective to avoid trivial solutions. The IBProtector selectively compresses and perturbs prompts, facilitated by a lightweight and trainable extractor, preserving only essential information for the target LLMs to respond with the expected answer. Moreover, we further consider a situation where the gradient is not visible to be compatible with any LLM. Our empirical evaluations show that IBProtector outperforms current defense methods in mitigating jailbreak attempts, without overly affecting response quality or inference speed. Its effectiveness and adaptability across various attack methods and target LLMs underscore the potential of IBProtector as a novel, transferable defense that bolsters the security of LLMs without requiring modifications to the underlying models.

Zichuan Liu, Zefan Wang, Linjie Xu, Jinyu Wang, Lei Song, Tianchun Wang, Chunlin Chen, Wei Cheng, Jiang Bian• 2024

Related benchmarks

TaskDatasetResultRank
Instruction FollowingAlpacaEval
Win Rate96.8
420
Jailbreak DefenseAdvBench
ASR (PAIR)0.00e+0
115
Jailbreak DefenseHarmBench
PAIR ASR0.3
91
Defense against adaptive attacksHarmBench
ASR12.8
28
Jailbreak DefenseAdvBench Mistral-7B v0.2
ASR44.2
7
Jailbreak DefenseAdvBench Vicuna-7B v1.5
ASR25
7
Jailbreak DefenseAdvBench Qwen-7B-chat
Attack Success Rate (ASR)28.3
7
Jailbreak DefenseAdvBench LLaMA3-8B-instruct
Attack Success Rate (ASR)8.3
7
Showing 8 of 8 rows

Other info

Follow for update