Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Peng, Zuquan, Fu, Jianming, Zou, Lixin, Zheng, Li, Ren, Yanzhen, Peng, Guojun
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908521954541568
author Peng, Zuquan
Fu, Jianming
Zou, Lixin
Zheng, Li
Ren, Yanzhen
Peng, Guojun
author_facet Peng, Zuquan
Fu, Jianming
Zou, Lixin
Zheng, Li
Ren, Yanzhen
Peng, Guojun
contents The use of unvetted third-party and internet data renders pre-trained models susceptible to backdoor attacks. Detecting backdoor samples is critical to prevent backdoor activation during inference or injection during training. However, existing detection methods often require the defender to have access to the poisoned models, extra clean samples, or significant computational resources to detect backdoor samples, limiting their practicality. To address this limitation, we propose a backdoor sample detection method based on perturbatio\textbf{N} discr\textbf{E}pancy consis\textbf{T}ency \textbf{E}valuation (\NETE). This is a novel detection method that can be used both pre-training and post-training phases. In the detection process, it only requires an off-the-shelf pre-trained model to compute the log probability of samples and an automated function based on a mask-filling strategy to generate perturbations. Our method is based on the interesting phenomenon that the change in perturbation discrepancy for backdoor samples is smaller than that for clean samples. Based on this phenomenon, we use curvature to measure the discrepancy in log probabilities between different perturbed samples and input samples, thereby evaluating the consistency of the perturbation discrepancy to determine whether the input sample is a backdoor sample. Experiments conducted on four typical backdoor attacks and five types of large language model backdoor attacks demonstrate that our detection strategy outperforms existing zero-shot black-box detection methods.
format Preprint
id arxiv_https___arxiv_org_abs_2509_05318
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models
Peng, Zuquan
Fu, Jianming
Zou, Lixin
Zheng, Li
Ren, Yanzhen
Peng, Guojun
Cryptography and Security
Artificial Intelligence
The use of unvetted third-party and internet data renders pre-trained models susceptible to backdoor attacks. Detecting backdoor samples is critical to prevent backdoor activation during inference or injection during training. However, existing detection methods often require the defender to have access to the poisoned models, extra clean samples, or significant computational resources to detect backdoor samples, limiting their practicality. To address this limitation, we propose a backdoor sample detection method based on perturbatio\textbf{N} discr\textbf{E}pancy consis\textbf{T}ency \textbf{E}valuation (\NETE). This is a novel detection method that can be used both pre-training and post-training phases. In the detection process, it only requires an off-the-shelf pre-trained model to compute the log probability of samples and an automated function based on a mask-filling strategy to generate perturbations. Our method is based on the interesting phenomenon that the change in perturbation discrepancy for backdoor samples is smaller than that for clean samples. Based on this phenomenon, we use curvature to measure the discrepancy in log probabilities between different perturbed samples and input samples, thereby evaluating the consistency of the perturbation discrepancy to determine whether the input sample is a backdoor sample. Experiments conducted on four typical backdoor attacks and five types of large language model backdoor attacks demonstrate that our detection strategy outperforms existing zero-shot black-box detection methods.
title Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2509.05318