paper-with-me

홈 › Papers

Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models

2025-06-19 · Biao Yi, Tiansheng Huang, Sishuo Chen, Tong Li, Zheli Liu, Zhixuan Chu, Yiming Li

Backdoor unalignment attacks against Large Language Models (LLMs) enable the stealthy compromise of safety alignment using a hidden trigger while evading normal safety auditing. These attacks pose significant threats to the applications of LLMs in the real-world Large Language Model as a Service (LLMaaS) setting, where the deployed model is a fully black-box system that can only interact through text. Furthermore, the sample-dependent nature of the attack target exacerbates the threat. Instead of outputting a fixed label, the backdoored LLM follows the semantics of any malicious command with the hidden trigger, significantly expanding the target space. In this paper, we introduce BEAT, a black-box defense that detects triggered samples during inference to deactivate the backdoor. It is motivated by an intriguing observation (dubbed the probe concatenate effect), where concatenated triggered samples significantly reduce the refusal rate of the backdoored LLM towards a malicious probe, while non-triggered samples have little effect. Specifically, BEAT identifies whether an input is triggered by measuring the degree of distortion in the output distribution of the probe before and after concatenation with the input. Our method addresses the challenges of sample-dependent targets from an opposite perspective. It captures the impact of the trigger on the refusal signal (which is sample-independent) instead of sample-specific successful attack behaviors. It overcomes black-box access limitations by using multiple sampling to approximate the output distribution. Extensive experiments are conducted on various backdoor attacks and LLMs (including the closed-source GPT-3.5-turbo), verifying the effectiveness and efficiency of our defense. Besides, we also preliminarily verify that BEAT can effectively defend against popular jailbreak attacks, as they can be regarded as 'natural backdoors'.

📄 PDF Abstract BibTeX arXiv:2506.16447

Code (1)

clearloveclearlove/beat 공식 구현

Tasks

Large Language ModelSafety Alignment

Similar Papers 제목 키워드 기반

DoubtProbe: Black-Box Jailbreak Defense via Structural Verification and Semantic Auditing

2026-06-15 · Xuanyu Yin, Yilin Jiang, Jun Zhou, Kai Chen 외 arxiv

As large language models (LLMs) are increasingly deployed in user-facing systems, black-box jailbreak defense has become an important practical problem. Existing defenses often rely on known-attack coverage, prompt-level…

Obfuscated Activations Bypass LLM Latent-Space Defenses

2024-12-12 · Luke Bailey, Alex Serrano, Abhay Sheshadri, Mikhail Seleznyov 외

Recent latent-space monitoring techniques have shown promise as defenses against LLM attacks. These defenses act as scanners that seek to detect harmful activations before they lead to undesirable actions. This prompts t…

Countering Adversarial Images using Input Transformations

2017-10-31 · ICLR 2018 1 · Chuan Guo, Mayank Rana, Moustapha Cisse, Laurens van der Maaten

This paper investigates strategies that defend against adversarial-example attacks on image-classification systems by transforming the inputs before feeding them to the system. Specifically, we study applying image trans…

Adversarial DefenseGeneral Classificationimage-classificationImage Classification

Stateful Defenses for Machine Learning Models Are Not Yet Secure Against Black-box Attacks

2023-03-11 · Ryan Feng, Ashish Hooda, Neal Mangaokar, Kassem Fawaz 외

Recent work has proposed stateful defense models (SDMs) as a compelling strategy to defend against a black-box attacker who only has query access to the model, as is common for online machine learning platforms. Such sta…

Efficient and Robust Video Defense Framework against 3D-field Personalized Talking Face

2025-12-24 · Rui-qing Sun, Xingshan Yao, Tian Lan, Jia-Ling Shi 외 arxiv

State-of-the-art 3D-field video-referenced Talking Face Generation (TFG) methods synthesize high-fidelity personalized talking-face videos in real time by modeling 3D geometry and appearance from reference portrait video…

Computational EfficiencyTalking Face Generation