Manuscript Offprint

arXiv:2609.06540

SRD-GUARD: A Defense Framework of LLMs via Semantic Rewriting and Joint Multi-Model Scoring for Latent Intent Exposure

Qi Wang, Chengcheng Wan, Jiangtao Wang

ABSTRACT

Large language models (LLMs) are increasingly deployed in safety-critical applications, yet jailbreak attacks can conceal harmful intent through contextual wrappers such as role-playing, fictional scenarios, or seemingly benign motivations. Existing inference-time defenses often rely on surface-level detection or conservative intervention, which can either miss disguised attacks or cause excessive refusal of legitimate requests. We propose SRD-GUARD, a parameter-free, black-box defense framework that exposes contextual intent through semantic rewriting and performs consensus-based risk assessment. Given an input prompt, SRD-GUARD generates five semantically related rewrites that preserve the underlying objective while removing unnecessary contextual packaging. The original prompt and its rewrites are then jointly evaluated by multiple independent LLM-based safety scorers using a continuous risk scale. A decision module combines absolute risk thresholds with the relative risk change between the original and rewritten prompts to adaptively determine whether to intercept the request, preserve the original prompt, or return a more explicit representation with a safety warning.

We evaluate SRD-GUARD against three black-box jailbreak attacks, UNIAT-TACK, CIPHER, and DeepInception, on both Llama-3-8B-Uncensored and DeepSeek-V4-Flash, using AdvBench and OR-Bench-Hard. SRD-GUARD achieves an average DSR of 91.44% on Llama-3-8B-Uncensored and 100% on DeepSeek-V4-Flash, while maintaining ORRs of only 8.00% and 12.00%, respectively. Compared with the evaluated baselines, SRD-GUARD provides a substantially more favorable DSR–ORR trade-off. Ablation studies further demonstrate that semantic rewriting is critical for exposing concealed harmful intent, joint scoring reduces dependence on individual evaluator behavior, and the decision module enables selective handling of ambiguous inputs. These results demonstrate that combining semantic intent exposure, consensus-based risk assessment, and relative-risk-aware routing provides an effective and selective approach to black-box jailbreak defense. SRD-GUARD artifact is available at https://anonymous.4open.science/status/CICD-Guard-D648.

1 INTRODUCTION

References (27)