DELMAN: Dynamic Defense Against Large Language Model Jailbreaking with Model Editing

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Yi, Weng, Fenghua, Yang, Sibei, Qin, Zhan, Huang, Minlie, Wang, Wenjie
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908384012271616
author Wang, Yi
Weng, Fenghua
Yang, Sibei
Qin, Zhan
Huang, Minlie
Wang, Wenjie
author_facet Wang, Yi
Weng, Fenghua
Yang, Sibei
Qin, Zhan
Huang, Minlie
Wang, Wenjie
contents Large Language Models (LLMs) are widely applied in decision making, but their deployment is threatened by jailbreak attacks, where adversarial users manipulate model behavior to bypass safety measures. Existing defense mechanisms, such as safety fine-tuning and model editing, either require extensive parameter modifications or lack precision, leading to performance degradation on general tasks, which is unsuitable to post-deployment safety alignment. To address these challenges, we propose DELMAN (Dynamic Editing for LLMs JAilbreak DefeNse), a novel approach leveraging direct model editing for precise, dynamic protection against jailbreak attacks. DELMAN directly updates a minimal set of relevant parameters to neutralize harmful behaviors while preserving the model's utility. To avoid triggering a safe response in benign context, we incorporate KL-divergence regularization to ensure the updated model remains consistent with the original model when processing benign queries. Experimental results demonstrate that DELMAN outperforms baseline methods in mitigating jailbreak attacks while preserving the model's utility, and adapts seamlessly to new attack instances, providing a practical and efficient solution for post-deployment model protection.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11647
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DELMAN: Dynamic Defense Against Large Language Model Jailbreaking with Model Editing
Wang, Yi
Weng, Fenghua
Yang, Sibei
Qin, Zhan
Huang, Minlie
Wang, Wenjie
Cryptography and Security
Artificial Intelligence
Large Language Models (LLMs) are widely applied in decision making, but their deployment is threatened by jailbreak attacks, where adversarial users manipulate model behavior to bypass safety measures. Existing defense mechanisms, such as safety fine-tuning and model editing, either require extensive parameter modifications or lack precision, leading to performance degradation on general tasks, which is unsuitable to post-deployment safety alignment. To address these challenges, we propose DELMAN (Dynamic Editing for LLMs JAilbreak DefeNse), a novel approach leveraging direct model editing for precise, dynamic protection against jailbreak attacks. DELMAN directly updates a minimal set of relevant parameters to neutralize harmful behaviors while preserving the model's utility. To avoid triggering a safe response in benign context, we incorporate KL-divergence regularization to ensure the updated model remains consistent with the original model when processing benign queries. Experimental results demonstrate that DELMAN outperforms baseline methods in mitigating jailbreak attacks while preserving the model's utility, and adapts seamlessly to new attack instances, providing a practical and efficient solution for post-deployment model protection.
title DELMAN: Dynamic Defense Against Large Language Model Jailbreaking with Model Editing
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2502.11647