paper-with-me

Papers

Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations

2023-11-16 · Wenjie Mo, Jiashu Xu, Qin Liu, Jiongxiao Wang, Jun Yan, Chaowei Xiao, Muhao Chen

Existing studies in backdoor defense have predominantly focused on the training phase, overlooking the critical aspect of testing time defense. This gap becomes particularly pronounced in the context of Large Language Models (LLMs) deployed as Web Services, which typically offer only black-box access, rendering training-time defenses impractical. To bridge this gap, our work introduces defensive demonstrations, an innovative backdoor defense strategy for blackbox large language models. Our method involves identifying the task and retrieving task-relevant demonstrations from an uncontaminated pool. These demonstrations are then combined with user queries and presented to the model during testing, without requiring any modifications/tuning to the black-box model or insights into its internal mechanisms. Defensive demonstrations are designed to counteract the adverse effects of triggers, aiming to recalibrate and correct the behavior of poisoned models during test-time evaluations. Extensive experiments show that defensive demonstrations are effective in defending both instance-level and instruction-level backdoor attacks, not only rectifying the behavior of poisoned models but also surpassing existing baselines in most scenarios.

📄 PDF Abstract BibTeX arXiv:2311.09763

Code (0)

등록된 구현이 없습니다.

Tasks

backdoor defense

Similar Papers 제목 키워드 기반

Plan2Cleanse: Test-Time Backdoor Defense via Monte-Carlo Planning in Deep Reinforcement Learning

2026-05-10 · Sze-Ann Chen, Zhi-Yi Chin, Kui-Yuan Chen, Chi-Yu Li 외 arxiv

Ensuring the security of reinforcement learning (RL) models is critical, particularly when they are trained by third parties and deployed in real-world systems. Attackers can implant backdoors into these models, causing …

Reinforcement LearningAtari Games

Improved Activation Clipping for Universal Backdoor Mitigation and Test-Time Detection

2023-08-08 · Hang Wang, Zhen Xiang, David J. Miller, George Kesidis

Deep neural networks are vulnerable to backdoor attacks (Trojans), where an attacker poisons the training set with backdoor triggers so that the neural network learns to classify test-time triggers to the attacker's desi…

image-classificationImage Classification

Oblivious Defense in ML Models: Backdoor Removal without Detection

2024-11-05 · Shafi Goldwasser, Jonathan Shafer, Neekon Vafa, Vinod Vaikuntanathan

As society grows more reliant on machine learning, ensuring the security of machine learning systems against sophisticated attacks becomes a pressing concern. A recent result of Goldwasser, Kim, Vaikuntanathan, and Zamir…

Exploiting Machine Unlearning for Backdoor Attacks in Deep Learning System

2023-09-12 · Peixin Zhang, Jun Sun, Mingtian Tan, Xinyu Wang

In recent years, the security issues of artificial intelligence have become increasingly prominent due to the rapid development of deep learning research and applications. Backdoor attack is an attack targeting the vulne…

Backdoor AttackDeep LearningMachine Unlearning

Backdoor Mitigation by Correcting the Distribution of Neural Activations

2023-08-18 · Xi Li, Zhen Xiang, David J. Miller, George Kesidis

Backdoor (Trojan) attacks are an important type of adversarial exploit against deep neural networks (DNNs), wherein a test instance is (mis)classified to the attacker's target class whenever the attacker's backdoor trigg…