AdaptiveGuard: Towards Adaptive Runtime Safety for LLM-Powered Software

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yang, Rui, Fu, Michael, Tantithamthavorn, Chakkrit, Arora, Chetan, Gulmammadova, Gunel, Chua, Joey
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909798624133120
author Yang, Rui
Fu, Michael
Tantithamthavorn, Chakkrit
Arora, Chetan
Gulmammadova, Gunel
Chua, Joey
author_facet Yang, Rui
Fu, Michael
Tantithamthavorn, Chakkrit
Arora, Chetan
Gulmammadova, Gunel
Chua, Joey
contents Guardrails are critical for the safe deployment of Large Language Models (LLMs)-powered software. Unlike traditional rule-based systems with limited, predefined input-output spaces that inherently constrain unsafe behavior, LLMs enable open-ended, intelligent interactions--opening the door to jailbreak attacks through user inputs. Guardrails serve as a protective layer, filtering unsafe prompts before they reach the LLM. However, prior research shows that jailbreak attacks can still succeed over 70% of the time, even against advanced models like GPT-4o. While guardrails such as LlamaGuard report up to 95% accuracy, our preliminary analysis shows their performance can drop sharply--to as low as 12%--when confronted with unseen attacks. This highlights a growing software engineering challenge: how to build a post-deployment guardrail that adapts dynamically to emerging threats? To address this, we propose AdaptiveGuard, an adaptive guardrail that detects novel jailbreak attacks as out-of-distribution (OOD) inputs and learns to defend against them through a continual learning framework. Through empirical evaluation, AdaptiveGuard achieves 96% OOD detection accuracy, adapts to new attacks in just two update steps, and retains over 85% F1-score on in-distribution data post-adaptation, outperforming other baselines. These results demonstrate that AdaptiveGuard is a guardrail capable of evolving in response to emerging jailbreak strategies post deployment. We release our AdaptiveGuard and studied datasets at https://github.com/awsm-research/AdaptiveGuard to support further research.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16861
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AdaptiveGuard: Towards Adaptive Runtime Safety for LLM-Powered Software
Yang, Rui
Fu, Michael
Tantithamthavorn, Chakkrit
Arora, Chetan
Gulmammadova, Gunel
Chua, Joey
Cryptography and Security
Artificial Intelligence
Software Engineering
Guardrails are critical for the safe deployment of Large Language Models (LLMs)-powered software. Unlike traditional rule-based systems with limited, predefined input-output spaces that inherently constrain unsafe behavior, LLMs enable open-ended, intelligent interactions--opening the door to jailbreak attacks through user inputs. Guardrails serve as a protective layer, filtering unsafe prompts before they reach the LLM. However, prior research shows that jailbreak attacks can still succeed over 70% of the time, even against advanced models like GPT-4o. While guardrails such as LlamaGuard report up to 95% accuracy, our preliminary analysis shows their performance can drop sharply--to as low as 12%--when confronted with unseen attacks. This highlights a growing software engineering challenge: how to build a post-deployment guardrail that adapts dynamically to emerging threats? To address this, we propose AdaptiveGuard, an adaptive guardrail that detects novel jailbreak attacks as out-of-distribution (OOD) inputs and learns to defend against them through a continual learning framework. Through empirical evaluation, AdaptiveGuard achieves 96% OOD detection accuracy, adapts to new attacks in just two update steps, and retains over 85% F1-score on in-distribution data post-adaptation, outperforming other baselines. These results demonstrate that AdaptiveGuard is a guardrail capable of evolving in response to emerging jailbreak strategies post deployment. We release our AdaptiveGuard and studied datasets at https://github.com/awsm-research/AdaptiveGuard to support further research.
title AdaptiveGuard: Towards Adaptive Runtime Safety for LLM-Powered Software
topic Cryptography and Security
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2509.16861