Protecting Your LLMs with Information Bottleneck

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Zichuan, Wang, Zefan, Xu, Linjie, Wang, Jinyu, Song, Lei, Wang, Tianchun, Chen, Chunlin, Cheng, Wei, Bian, Jiang
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917799441465344
author Liu, Zichuan
Wang, Zefan
Xu, Linjie
Wang, Jinyu
Song, Lei
Wang, Tianchun
Chen, Chunlin
Cheng, Wei
Bian, Jiang
author_facet Liu, Zichuan
Wang, Zefan
Xu, Linjie
Wang, Jinyu
Song, Lei
Wang, Tianchun
Chen, Chunlin
Cheng, Wei
Bian, Jiang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_13968
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Protecting Your LLMs with Information Bottleneck
Liu, Zichuan
Wang, Zefan
Xu, Linjie
Wang, Jinyu
Song, Lei
Wang, Tianchun
Chen, Chunlin
Cheng, Wei
Bian, Jiang
Computation and Language
Artificial Intelligence
Cryptography and Security
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.
title Protecting Your LLMs with Information Bottleneck
topic Computation and Language
Artificial Intelligence
Cryptography and Security
url https://arxiv.org/abs/2404.13968