Rochester Institute of Technology proposes UniGuardian: training-free unified detection of prompt injection, backdoor and adversarial attacks
罗彻斯特理工学院提出 UniGuardian:首个无需训练的大语言模型统一防御框架,同步检测提示
A paper from Rochester Institute of Technology proposes UniGuardian, a training-free unified defense framework that runs at inference time and categorizes prompt injection, backdoor attacks and adversarial attacks together as Prompt Trigger Attacks (PTA) for detection. Its principle is that removing the trigger words causes a significant increase in the model's loss function; based on this, the framework randomly masks the prompt and computes a z-score suspiciousness score, and through a single-forward strategy uses the KV cache to perform detection and text generation simultaneously. Experiments in the paper show that on models of different scales such as Phi 3.5, Llama 3.1 and Qwen 2.5, prompt injection detection on the SST2 dataset reaches an auROC of 0.9994, backdoor attack detection an auROC close to 1, and adversarial attack detection an auROC of 0.9965, all higher than baselines such as Prompt-Guard-86M and Llama-Guard.