284
v1v2 (latest)

Dynamic Guided and Domain Applicable Safeguards for Enhanced Security in Large Language Models

Zijing Liu
Yu Wang
Yuan Yao
Yu Li
Main:7 Pages
19 Figures
Bibliography:3 Pages
14 Tables
Appendix:12 Pages
Abstract

With the extensive deployment of Large Language Models (LLMs), ensuring their safety has become increasingly critical. However, existing defense methods often struggle with two key issues: (i) inadequate defense capabilities, particularly in domain-specific scenarios like chemistry, where a lack of specialized knowledge can lead to the generation of harmful responses to malicious queries. (ii) over-defensiveness, which compromises the general utility and responsiveness of LLMs. To mitigate these issues, we introduce a multi-agents-based defense framework, Guide for Defense (G4D), which leverages accurate external information to provide an unbiased summary of user intentions and analytically grounded safety response guidance. Extensive experiments on popular jailbreak attacks and benign datasets show that our G4D can enhance LLM's robustness against jailbreak attacks on general and domain-specific scenarios without compromising the model's general functionality.

View on arXiv
Comments on this paper