betaFeedback

WorksComputer Science

Poison-then-Hide: Finetuning-Activated Backdoor Attack on Pretrained Vision Encoders

Abstract

Backdoor attacks threaten the integrity of machine learning models by allowing attackers to control model behavior through triggers. Models can be compromised during finetuning by backdoor attacks through either poisoned data or adversarial training objectives. Because existing finetuning-activated attacks assume limited domain shift or frozen encoder layers, they often fail under full-model finetuning. We target a stealthy finetuning-activated attack where a dormant backdoor is implanted in a pretrained encoder, and later activated by finetuning on clean downstream data. We propose Poison-then-Hide, a novel attack that remains effective when the entire model is finetuned in a domain transfer. Our approach consists of three components: trigger optimization, base encoder poisoning, and targeted unlearning to conceal the backdoor. We evaluate our method on six datasets and three model architectures, and achieve state-of-the-art (up to 97%) attack success rates. We find that jointly learning the benign target task alongside the poisoning is critical to the attack's success. We demonstrate standard detection and mitigation defenses cannot fully remove the backdoor, which can reappear after benign finetuning.

Introduction

Backdoor attacks pose a serious threat to modern machine learning systems [1, 2]. In such attacks, the attacker implants a trigger that induces malicious outputs [3, 4]. Finetuning has become a standard approach for adapting pretrained encoders across domains [5, 6], but finetuning on local data is a known vulnerability [7, 8]. Finetuning exposes a large attack surface through a combination of data poisoning [9, 10], training manipulation [11, 12], and model modification [13, 14].

Among these threats, we focus on finetuning-activated (FA) attacks, where an attacker implants a dormant backdoor into a pretrained encoder while concealing its presence [15, 16, 17, 18]. The attacker has no control over downstream finetuning, making the challenge to design a backdoor that reliably activates after entirely clean finetuning. FA attacks are particularly concerning because a single compromised encoder can transfer malicious behavior to many downstream finetuned models.

Prior FA attacks rely on assumptions that limit their practicality. Finetuning-Activated Backdoor (FAB) [17] and Hibernated Backdoor (Hibernated) [15] assume strong similarity between pretraining and downstream tasks. Latent Backdoor Attack (Latent) [18] and Neuron-Level Backdoor Attack (NeuBA) [16], assume parts of the encoder remain frozen during finetuning, depending on backdoor persistence in those stable layers. Such attacks fail when their assumptions are not met. For example, Latent ASR drops from 99% to 0% when all layers are finetuned [18]. In this paper, we study a more realistic transfer learning setting where downstream tasks may differ substantially from pretraining and the entire model is finetuned. Under these conditions, existing FA attacks often fail to activate reliably, with ASR dropping to 1–3%.

Motivated by this gap, we propose Poison-then-Hide, a finetuning-activated backdoor attack robust to full-model finetuning. Our method consists of three stages: trigger optimization, encoder poisoning, and backdoor concealment. We first optimize a trigger to activate only after finetuning, then poison the encoder to learn both benign and malicious behaviors on attacker-held surrogate data. Finally, we apply controlled unlearning to keep the backdoor dormant until finetuning. Technically, the method differs from prior FA attacks in three respects: joint benign-task and backdoor learning during implantation, ensemble-based trigger optimization, and a post-training suppression stage that explicitly hides the behavior before release.

We find that Poison-then-Hide outperforms prior targeted baselines across six datasets (CIFAR10 [19], SVHN [20], ImageNet [21], RESISC [22], UC Merced [23], and Camelyon17 [24, 25]) and four encoder architectures (ResNet-18 [26], ResNet-50 [27], CLIP [28], and DINOv2 [29]), achieving higher ASR (64% average) and stronger transferability to out-of-distribution data (34% average). The attack survives task-conditioned domain shifts and large victim-to-attacker data ratios. Our analysis identifies one key design choice that empirically contribute to the success of Poison-then-Hide over prior FA attacks: jointly learning the benign downstream task during poisoning. Finally, we evaluate seven defenses: Neural Cleanse [30], DECREE [31], Fine-Pruning [32], MIMIC [33], DeDe [34], MARTINI [35], and CLIP-Inspector [36]. The first six do not reliably eliminate the attack without substantial utility loss or fail after benign finetuning, whereas the specialized CLIP-Inspector detects and repairs only CLIP models.

Code and reproduction instructions are publicly available at https://github.com/QixuanJin99/poison-then-hide.

Related Work

Backdoor Attacks

Backdoor attacks cause machine learning models to behave maliciously when specific triggers are present [37, 3, 38, 39, 40]. In image classification, attacks can be introduced through data poisoning [37, 41, 42, 43], model manipulation [44, 45, 46], or benign training procedures [47, 48, 49]. Since finetuning pretrained models is widely used in practice [5, 6], many attacks aim to survive downstream finetuning. However, naive finetuning can weaken or erase backdoors by overwriting malicious representations [50, 51]. To improve persistence, prior work has proposed robust backdoors that remain effective after finetuning [52, 53, 9, 13, 54, 55, 38], though these methods often leave the pretrained checkpoint visibly compromised.

More recent work studies explicitly concealed backdoors that remain dormant until downstream finetuning [15, 16, 17, 18]. Hibernated Backdoor (Hibernated) aligns clean and malicious gradients during finetuning [15], while Neuron-level Backdoor Attack (NeuBA) enforces trigger-specific latent representations [16]. Finetuning-Activated Backdoor (FAB) uses meta-learning to optimize weights that activate after finetuning [17], and Latent Backdoor (Latent) embeds backdoors into encoder layers assumed to remain frozen [18]. These approaches rely on restrictive assumptions, such as limited domain shift or partially frozen parameters. In contrast, we study a more realistic full-model finetuning setting.

Figure 2. Stages of Poison-then-Hide. (1) Optimize the trigger for clean behavior on the source model and adversarial behavior on simulated finetuned models. (2) Poison the encoder to jointly learn the benign and backdoor tasks on attacker-held surrogate data. (3) Hide the backdoor through targeted suppression before publicly releasing the pretrained encoder.

Backdoor Defenses

Detection and Input Filtering Neural Cleanse [30] detects backdoored models through trigger inversion and class-wise anomaly scoring. DECREE [31] similarly reconstructs triggers from a pretrained encoder and flags unusually compact triggers. DeDe [34] instead detects triggered inputs by training a decoder and measuring input–reconstruction discrepancy. CLIP-Inspector [36] is a model-level detector specialized to prompt-tuned CLIP; it uses out-of-distribution trigger inversion and can repair a flagged model using the reconstructed trigger.

Model-based Mitigation Model-based mitigation aims to reduce backdoor effects after training. Fine-Pruning [32] removes neurons that remain inactive on clean inputs. MIMIC [33] uses mutual-information-guided distillation from a clean reference encoder. MARTINI [35] reconstructs backdoor samples and retrains the model on their correct labels to harden it against the recovered trigger behavior.

Method

Threat Model

In our threat model, an attacker implants a dormant backdoor into a pretrained base encoder that activates only after the victim adapts it for a downstream task (Figure 1). The released checkpoint can appear to be a general-purpose source-pretrained encoder (e.g., ImageNet-pretrained), so adoption does not require the victim to choose an obviously attacker-specific domain model. The attacker cannot modify the victim’s finetuning data or pipeline. Instead, this is a task-conditioned attacker who anticipates the downstream task family and target-class semantics well enough to collect a small, task-aligned surrogate dataset. For example, if the target application is pneumonia detection, the attacker may obtain a limited set of pneumonia chest X-rays from a public source. Such prior knowledge is also required by prior transfer-learning backdoors [18, 17].

Figure 1. Setting of finetuning-activated attacks. Checkmark icons denote clean behavior, evil-head icons denote backdoor behavior, and lock icons denote activation.

We distinguish three dataset roles throughout: Dsrc\mathcal{D}_{\mathrm{src}} pretrains the released encoder, Dsur\mathcal{D}_{\mathrm{sur}} is the attacker’s surrogate data for trigger optimization and poisoning, and Dft\mathcal{D}_{\mathrm{ft}} is the victim’s clean downstream finetuning data. In the main experiments, Dsur\mathcal{D}_{\mathrm{sur}} and Dft\mathcal{D}_{\mathrm{ft}} have 0% sample overlap. “In-domain” means that the two are disjoint samples from the same distribution; “domain shift” means that they come from different datasets within the same task family and preserve the target-class semantics. The attack is not claimed to transfer to arbitrary unrelated tasks.

Problem Formulation

Let fθ:X→Yf_\theta: \mathcal{X} \to\mathcal{Y} denote a vision model pretrained on Dsrc\mathcal{D}_{\mathrm{src}}. The victim finetunes the model on Dft={(xi,yi)}i=1N\mathcal{D}_{\mathrm{ft}} = \{(x_i, y_i)\}_{i=1}^{N}, producing updated parameters θ′∼p(θ′∣Dft)\theta' \sim p(\theta' \mid\mathcal{D}_{\mathrm{ft}}). The attacker only accesses Dsur\mathcal{D}_{\mathrm{sur}}, which is task-aligned with but sample-disjoint from Dft\mathcal{D}_{\mathrm{ft}} in the main setting. The attacker optimizes a trigger δ∈RH×W×C\delta\in\mathbb{R}^{H \times W \times C} under ∥δ∥∞≤ϵ\lVert\delta\rVert_\infty\le\epsilon, together with a target class yadv∈Yy^{\mathrm{adv}} \in\mathcal{Y}. The objective is to learn (θ,δ)(\theta, \delta) such that, after downstream finetuning, the resulting model satisfies

fθ′(x+αδ)=yadv,for θ′∼p(θ′∣Dft),f_{\theta'}(x + \alpha\delta) = y^{\mathrm{adv}}, \quad\text{for } \theta' \sim p(\theta' \mid\mathcal{D}_{\mathrm{ft}}),

where α∈[0,1]\alpha\in[0, 1] controls trigger intensity.

Poison-then-Hide

Poison-then-Hide consists of three stages: trigger optimization, encoder poisoning, and backdoor concealment. First, we optimize a trigger δ\delta that remains benign in the pretrained model fθf_\theta but activates after finetuning. Second, we implant δopt\delta^{\mathrm{opt}} into fθf_\theta through poisoning. Finally, we conceal the backdoor through controlled unlearning before release. See Appendix § 9 for theoretical motivation.

Optimize the Trigger We optimize a trigger pattern δ\delta that remains benign in the pretrained model but activates after finetuning. To approximate the victim’s unknown finetuning process, we simulate finetuned models {fθk′}k=1K\{f_{\theta'_k}\}_{k=1}^{K} using Dsur\mathcal{D}_{\mathrm{sur}}. The optimization objective encourages the trigger to remain inconspicuous in the base model while reliably inducing the adversarial target class across the ensemble:

δopt=arg⁡min⁡∥δ∥∞≤ϵ[λbaseLbase(fθ,δ)+λftLft({fθk′},δ)],(1)\delta^{\mathrm{opt}} = \underset{\lVert\delta\rVert_\infty\le\epsilon}{\arg\min}\left[\lambda_{\mathrm{base}}\mathcal{L}_{\mathrm{base}}(f_\theta,\delta) + \lambda_{\mathrm{ft}}\mathcal{L}_{\mathrm{ft}}(\{f_{\theta'_k}\},\delta)\right], \tag*{(1)}

where λbase\lambda_{\mathrm{base}} and λft\lambda_{\mathrm{ft}} balance the two terms.

The base loss suppresses activation of the adversarial target class in the pretrained model:

Lbase(fθ,δ)=−log⁡(1−pθ(yadv∣x+αδ)),(2)\mathcal{L}_{\mathrm{base}}(f_\theta,\delta) = -\log\left(1 - p_\theta(y^{\mathrm{adv}} \mid x + \alpha\delta)\right), \tag*{(2)}

where pθ(yadv∣x+αδ)p_\theta(y^{\mathrm{adv}} \mid x + \alpha\delta) is the softmax probability assigned to the target class.

The finetuning loss encourages the trigger to activate after finetuning (LCE\mathcal{L}_{\mathrm{CE}}, the cross-entropy loss):

Lft({fθk′},δ)=1K∑k=1KEx∼Dsur[LCE(fθk′(x+αδ),yadv)],(3)\mathcal{L}_{\mathrm{ft}}(\{f_{\theta'_k}\},\delta) = \frac{1}{K}\sum_{k=1}^{K}\mathbb{E}_{x\sim\mathcal{D}_{\mathrm{sur}}}\left[\mathcal{L}_{\mathrm{CE}}(f_{\theta'_k}(x + \alpha\delta), y^{\mathrm{adv}})\right], \tag*{(3)}

Optimization is performed using projected gradient descent with projection onto the ℓ∞\ell_\infty ball to enforce ∥δ∥∞≤ϵ\lVert\delta\rVert_\infty\le\epsilon. Empirically, we set λbase=1\lambda_{\mathrm{base}} = 1 and λft=2\lambda_{\mathrm{ft}} = 2.

Poison the Encoder Given the optimized trigger δopt\delta^{\mathrm{opt}}, we implant the trigger into the base encoder. The attacker perturbs a subset of Dsur\mathcal{D}_{\mathrm{sur}} to form Dpois={(x+δopt,yadv)}\mathcal{D}_{\mathrm{pois}} = \{(x + \delta^{\mathrm{opt}}, y^{\mathrm{adv}})\} while retaining clean surrogate samples Dclean\mathcal{D}_{\mathrm{clean}} for benign task learning. The training objective combines four losses:

Lclean=E(x,y)∼Dclean[LCE(fθ(x),y)],Lpois=E(x,yadv)∼Dpois[LCE(fθ(x+δopt),yadv)],\mathcal{L}_{\mathrm{clean}} = \mathbb{E}_{(x,y)\sim\mathcal{D}_{\mathrm{clean}}}\left[\mathcal{L}_{\mathrm{CE}}(f_\theta(x),y)\right], \qquad\mathcal{L}_{\mathrm{pois}} = \mathbb{E}_{(x,y^{\mathrm{adv}})\sim\mathcal{D}_{\mathrm{pois}}}\left[\mathcal{L}_{\mathrm{CE}}(f_\theta(x + \delta^{\mathrm{opt}}),y^{\mathrm{adv}})\right],
LKD=KL⁡(fθ(x)∥fθ0(x)),LSP=∥θ−θ0∥22\mathcal{L}_{\mathrm{KD}} = \operatorname{KL}(f_\theta(x) \mathbin{\|} f_{\theta_0}(x)), \qquad\mathcal{L}_{\mathrm{SP}} = \lVert\theta- \theta_0\rVert_2^2

Here Lclean\mathcal{L}_{\mathrm{clean}} learns the benign task, while Lpois\mathcal{L}_{\mathrm{pois}} learns the backdoor. Both LKD\mathcal{L}_{\mathrm{KD}} and LSP\mathcal{L}_{\mathrm{SP}} regularize against the original model fθ0f_{\theta_0} to preserve source-domain performance.

The poisoned model fθ~f_{\tilde{\theta}} is obtained by minimizing

min⁡θLpoison=λcleanLclean+λpoisLpois+λKDLKD+λSPLSP.\min_{\theta}\mathcal{L}_{\mathrm{poison}} = \lambda_{\mathrm{clean}}\mathcal{L}_{\mathrm{clean}} + \lambda_{\mathrm{pois}}\mathcal{L}_{\mathrm{pois}} + \lambda_{\mathrm{KD}}\mathcal{L}_{\mathrm{KD}} + \lambda_{\mathrm{SP}}\mathcal{L}_{\mathrm{SP}}.

Hide the Backdoor To conceal the backdoor, we finetune fθ~f_{\tilde{\theta}} under a suppression objective while preserving clean accuracy and encoder stability. All losses except Lsup\mathcal{L}_{\mathrm{sup}} are defined as in the poison phase. For logits z=fθ~(x+δopt)z = f_{\tilde{\theta}}(x + \delta^{\mathrm{opt}}), we use the hinge margin penalty

Φ(z,yadv)=max⁡(0,m+zyadv−max⁡k≠yadvzk),m=2.0,(4)\Phi(z,y^{\mathrm{adv}}) = \max\left(0, m + z_{y^{\mathrm{adv}}} - \max_{k\ne y^{\mathrm{adv}}} z_k\right), \qquad m = 2.0, \tag*{(4)}

and define Lsup=Ex∼Dpois[Φ(fθ~(x+δopt),yadv)]\mathcal{L}_{\mathrm{sup}}=\mathbb{E}_{x\sim\mathcal{D}_{\mathrm{pois}}}[\Phi(f_{\tilde{\theta}}(x+\delta^{\mathrm{opt}}),y^{\mathrm{adv}})]. Minimization forces a non-target logit to exceed the adversarial-target logit by margin mm at release time.

The overall objective is: Lhide=λcleanLclean+λsupLsup+λSPLSP+λKDLKD\mathcal{L}_{\mathrm{hide}}=\lambda_{\mathrm{clean}}\mathcal{L}_{\mathrm{clean}}+\lambda_{\mathrm{sup}}\mathcal{L}_{\mathrm{sup}}+\lambda_{\mathrm{SP}}\mathcal{L}_{\mathrm{SP}}+\lambda_{\mathrm{KD}}\mathcal{L}_{\mathrm{KD}}. Optimizing Lhide\mathcal{L}_{\mathrm{hide}} produces the concealed checkpoint fθ^f_{\hat{\theta}}, which behaves benignly but reactivates after finetuning. Full details are provided in Appendix Algorithm 1.

Benign Finetuning

The attacker releases the concealed checkpoint fθ^f_{\hat{\theta}} as a benign pretrained model. The victim then performs standard finetuning on Dft\mathcal{D}_{\mathrm{ft}}: θ~ft=arg⁡min⁡θ E(x,y)∼Dft[LCE(fθ^(x),y)]\tilde{\theta}_{\mathrm{ft}}=\underset{\theta}{\arg\min}\ \mathbb{E}_{(x,y)\sim\mathcal{D}_{\mathrm{ft}}}[\mathcal{L}_{\mathrm{CE}}(f_{\hat{\theta}}(x),y)]. Although finetuning is entirely benign, the resulting model fθ~ftf_{\tilde{\theta}_{\mathrm{ft}}} inherits the latent backdoor.

Experimental Setup

Datasets We evaluate Poison-then-Hide on three transfer settings. The notation A→BA\to B means that the encoder is pretrained on source dataset AA and the victim finetunes/evaluates it on clean downstream dataset BB. The attacker’s surrogate split and the victim’s finetuning split are disjoint (0% sample overlap) unless an overlap ablation is explicitly stated. In the in-domain experiments, the surrogate and victim splits come from the same distribution.

For CIFAR10 →\to SVHN, results are averaged across the 10 choices of target digit. For ImageNet →\to RESISC, the target is “parking lot,” a class shared with UC Merced and semantically similar in both datasets (Figure 7). For ImageNet →\to Camelyon17, the target is “no tumor” (class 0); we choose this class because underdiagnosis can delay screening and treatment [56, 57].

Figure 7. Task-aligned domain shifts for Camelyon17 and RESISC →\to UC Merced. Camelyon17 hospital 3 images tend to be darker than hospitals 0–2, while UC Merced images are typically brighter and differ in scene structure from RESISC.

Models In each setting, we initialize from pretrained weights rather than using only the architecture. For CIFAR10, we use ResNet-18 (“resnet18_cifar10”) [26, 58]. For ImageNet, we use ResNet-50 (“IMAGENET1K_V2”) [27], a pretrained timm CLIP model (“vit_base_patch16_clip_224.openai_ft_in12k_in1k”) [59, 60, 28, 58], and pretrained DINOv2 weights [29]. The model after poisoning is the Base model fθ~f_{\tilde{\theta}}, after concealment the Hidden model fθ^f_{\hat{\theta}}, and after victim adaptation the Finetuned model fθ~ftf_{\tilde{\theta}_{\mathrm{ft}}}. Appendix B provides full details.

Evaluation We report top-1 accuracy on clean test images and two targeted attack metrics. The conventional ASR is

ASR⁡=1N∑i=1N1[f(xi+δ)=yadv].(5)\operatorname{ASR}=\frac{1}{N}\sum_{i=1}^{N}\mathbf{1}[f(x_i+\delta)=y^{\mathrm{adv}}]. \tag*{(5)}

Because this metric includes examples whose true label is already the target, we also report the stricter flip rate

ASR⁡flip=#{i:yi≠yadv, f(xi)≠yadv, f(xi+δ)=yadv}#{i:yi≠yadv}.(6)\operatorname{ASR}_{\mathrm{flip}}= \frac{\#\{i:y_i\ne y^{\mathrm{adv}},\ f(x_i)\ne y^{\mathrm{adv}},\ f(x_i+\delta)=y^{\mathrm{adv}}\}} {\#\{i:y_i\ne y^{\mathrm{adv}}\}}. \tag*{(6)}

We use both definitions across our domain-shift and robustness evaluations. NeuBA is untargeted, so its original ASR is the perturbed-image misclassification rate [16]; its Flip-ASR column is included only as the corresponding targeted flip diagnostic.

Defenses We evaluate two standard detection defenses (Neural Cleanse and DE‌CREE), two mitigation defenses (Fine-Pruning and MIMIC), and three recent defenses (DeDe, MARTINI, and CLIP-Inspector). Neural Cleanse [30] and DE‌CREE [31] use trigger inversion; Fine-Pruning [32] removes low-activation neurons; MIMIC [33] uses mutual information and a clean reference encoder; DeDe [34] filters suspicious inputs using a decoder; MARTINI [35] reconstructs triggers and hardens the model; and CLIP-Inspector [36] detects and repairs prompt-tuned CLIP backdoors via OOD trigger inversion. Appendix G gives implementation details and adaptations.

Results

Poison-then-Hide Outperforms Prior Finetuning-Activated Attacks

We evaluate Poison-then-Hide against four baselines (FAB, Hibernated, Latent, and NeuBA) across three transfer learning settings. Note that while we are using in-domain data, the attacker poisoning split and downstream finetuning split are always disjoint. A successful FA attack should therefore have low ASR before finetuning (Hidden) and high ASR after finetuning (Finetuned).

Poison-then-Hide achieves the highest post-finetuning ASR across datasets and models, outperforming baselines by 64% on average. It is also the only method that consistently increases ASR from the Hidden to Finetuned model (57% average), demonstrating reliable “hidden-then-activated” behavior. In contrast, prior methods either implant visible backdoors that fail to transfer (e.g., FAB: -97.9% ASR change on CLIP-RESISC) or hidden backdoors that fail to activate (e.g., Latent: 2% ASR before and after finetuning on CLIP-RESISC). Thus, Poison-then-Hide is the only attack that reliably implants hidden backdoors that activate after finetuning.

Across architectures, CLIP is harder to backdoor than ResNet-50 (Figure 3), likely because CLIP representations shift more during clean finetuning. Across datasets, RESISC is the most difficult target, possibly due to its larger number of classes (m=45m = 45) compared with SVHN (m=10m = 10) and Camelyon17 (m=2m = 2).

Figure 3. Grouped bar plots comparing target dataset ASR for Hidden (↓ lower is better) and Finetuned (↑ higher is better) models across attack methods. Numbers above bars denote the relative ASR difference (Finetuned - Hidden), with higher positive values indicating more successful backdoor activation. Error bars show 95% CI across five seeds. PtH stands for our Poison-then-Hide attack.

Complete per-dataset attack results and representative triggered remote-sensing examples are provided in Appendix Table 14 and Figure 10.

Visualization of parking lot images from RESISC and UC Merced

Figure 10. Visualization of what the backdoor class (“parking lot”) looks like in the RESISC and UC Merced datasets.

Task-Conditioned Transfer Under Domain Shift

In the previous section, attacker and victim data were disjoint samples from the same distribution. We now study task-conditioned domain shift. For Camelyon17, the victim finetunes on hospitals 0–2 and is evaluated on unseen hospital 3. For remote sensing, the attacker uses RESISC surrogate data while the victim finetunes and evaluates on UC Merced, which preserves the remote-sensing task and “parking lot” target semantics but differs substantially in feature space (Appendix Table 8).

Poison-then-Hide is the strongest targeted method under both original and Flip-ASR in every ResNet50/CLIP setting (Table 1). Its Flip-ASR margins over the best non-PtH targeted baseline are 8.55 points on C17/ResNet50, 17.33 on C17/CLIP, 69.52 on UC Merced/ResNet50, and 48.29 on UC Merced/CLIP. Exact paired sign-flip tests over ten paired runs support an advantage in three of four settings; CLIP/Camelyon17 is positive but borderline (Appendix Table 12). These results support transfer across realistic task-aligned shifts, not arbitrary unrelated tasks.

ModelMethodCamelyon17 hospital 3 Acc.Camelyon17 hospital 3 Original ASRCamelyon17 hospital 3 Flip-ASRUC Merced Acc.UC Merced Original ASRUC Merced Flip-ASR
ResNet50Poison-then-Hide87.95 ± 2.7391.94 ± 7.2471.81 ± 12.2689.00 ± 1.7294.11 ± 1.2087.46 ± 1.55
ResNet50FAB85.76 ± 4.5587.75 ± 8.4758.34 ± 18.1786.92 ± 1.8825.31 ± 8.3817.93 ± 6.58
ResNet50Hibernated87.83 ± 2.7888.34 ± 9.1663.26 ± 16.1889.54 ± 1.9518.99 ± 8.8512.33 ± 7.46
ResNet50Latent83.34 ± 4.3957.02 ± 9.181.89 ± 0.7287.79 ± 3.405.43 ± 0.330.14 ± 0.06
ResNet50NeuBA84.39 ± 2.5415.66 ± 2.530.34 ± 0.0987.70 ± 1.5612.71 ± 1.760.41 ± 0.18
CLIPPoison-then-Hide94.23 ± 0.5073.32 ± 9.9442.16 ± 19.3392.27 ± 0.9761.04 ± 19.5748.91 ± 17.34
CLIPFAB93.82 ± 0.5363.99 ± 5.8624.84 ± 11.5091.85 ± 0.905.34 ± 0.200.27 ± 0.17
CLIPHibernated93.53 ± 0.8360.32 ± 4.2616.25 ± 5.8593.45 ± 0.305.33 ± 0.060.02 ± 0.05
CLIPLatent92.58 ± 1.5145.63 ± 1.330.81 ± 0.2992.45 ± 0.526.20 ± 0.730.62 ± 0.36
CLIPNeuBA94.45 ± 0.555.58 ± 0.550.27 ± 0.0491.62 ± 0.908.67 ± 1.041.34 ± 0.47
DINOv2Poison-then-Hide99.32 ± 0.1071.54 ± 5.4540.47 ± 13.9391.34 ± 0.1755.78 ± 1.0539.74 ± 9.21
DINOv2Hibernated99.19 ± 0.1948.73 ± 1.1513.94 ± 6.3891.46 ± 0.3217.10 ± 0.793.38 ± 1.84
DINOv2FAB99.30 ± 0.0751.66 ± 3.2323.15 ± 10.7289.46 ± 0.9034.01 ± 0.135.29 ± 1.95
DINOv2Latent98.50 ± 0.2133.87 ± 1.782.49 ± 0.8190.56 ± 0.492.76 ± 0.910.87 ± 0.06
DINOv2NeuBA99.08 ± 0.181.98 ± 0.910.46 ± 0.0790.45 ± 0.2810.50 ± 0.411.23 ± 0.42

Table 1. Task-conditioned domain-shift performance. For Camelyon17 (C17), the victim finetunes on hospitals 0–2 and is evaluated on hospital 3. For remote sensing, the attacker uses RESISC surrogate data while the victim finetunes and evaluates on UC Merced. Values are mean ± 95% confidence interval over five seeds. Flip-ASR excludes true target-class examples and requires a non-target clean prediction to flip to the target after applying the trigger. Bold marks the strongest targeted attack; NeuBA is untargeted.

The DINOv2 evaluation shows the same ranking under both metrics: Poison-then-Hide reaches 71.54% original ASR and 40.47% Flip-ASR on Camelyon17, and 55.78% original ASR and 39.74% Flip-ASR on UC Merced. Its Flip-ASR margins over the strongest targeted baseline are 17.32 and 34.45 percentage points, respectively.

A complementary label-preserving SVHN→\toMNIST experiment defines the boundary of this transfer: Flip-ASR falls from 45.22% in aligned SVHN to 1.07% under MNIST evaluation and 0.04% when the victim finetunes on MNIST, despite 99.39% MNIST accuracy (Appendix Table 9).

Additional robustness analyses under controlled input corruption, clean-label overlap, and varying attacker-reference data scale are provided in Appendix Figure 8 and Table 10 and Table 11.

Table 10: Exact values for the controlled distribution-degradation and clean-label conflict studies in Figure 8. Values are mean ±\pm 95% confidence interval.

UC Merced Gaussian-noise stress test
PerturbationClean acc.ASR
Clean89.50±1.7189.50 \pm1.7193.88±1.1993.88 \pm1.19
σ=0.02\sigma= 0.0288.62±2.0588.62 \pm2.0591.78±1.4391.78 \pm1.43
σ=0.05\sigma= 0.0584.16±4.4684.16 \pm4.4678.24±5.4078.24 \pm5.40
σ=0.10\sigma= 0.1074.13±8.5574.13 \pm8.5536.27±20.4536.27 \pm20.45
σ=0.20\sigma= 0.2050.80±10.3950.80 \pm10.394.00±2.314.00 \pm2.31
Clean overlap with poisoned conflicting samples
OverlapCountClean acc. after FTOriginal ASRFlip-ASR
0%0 / 91985.86±0.7485.86 \pm0.7499.65±0.2899.65 \pm0.2899.64±0.2999.64 \pm0.29
25%230 / 91985.23±0.8885.23 \pm0.8846.66±48.8946.66 \pm48.8945.77±49.5845.77 \pm49.58
50%460 / 91985.60±1.7485.60 \pm1.7449.67±49.0849.67 \pm49.0849.38±49.0549.38 \pm49.05
75%690 / 91986.37±0.5886.37 \pm0.587.22±10.087.22 \pm10.086.40±9.836.40 \pm9.83
100%919 / 91983.64±0.6383.64 \pm0.630.00±0.000.00 \pm0.000.00±0.000.00 \pm0.00

Table 10.

Figure 8. Robustness boundaries. (a) Poison-then-Hide remains effective under mild additional corruption of UC Merced, but ASR falls once clean task performance is substantially damaged. (b) On ImageNet →\to RESISC, exact clean-label conflict weakens the attack; seeing most or all originally poisoned samples with clean labels can erase it. Error bars are 95% confidence intervals.

Table 11: Effect of victim-data scale on CIFAR10 →\to SVHN. The victim always finetunes on the full SVHN train+extra set; only the attacker’s reference size changes. Values are mean ±\pm 95% confidence interval.

Reference sizeVictim/referencePoisonedClean acc.ASR
3,000∼\sim201×\times15097.59±0.1797.59 \pm0.1755.29±5.4955.29 \pm5.49
10,000∼\sim60×\times50097.47±0.0997.47 \pm0.0955.12±4.5255.12 \pm4.52
30,000∼\sim20×\times1,50097.37±0.0997.37 \pm0.0958.35±2.7858.35 \pm2.78
73,000∼\sim8×\times3,65097.58±0.1697.58 \pm0.1651.79±0.9751.79 \pm0.97

Table 11.

Parameter-efficient victim adaptation. Full-model finetuning remains common for moderate-size vision encoders and specialized domains, but parameter-efficient finetuning is increasingly important. In one ResNet18 LoRA run on CIFAR10→\toSVHN, Poison-then-Hide retains 54.98% post-adaptation ASR and 96.21% benign accuracy while updating only 2.54% of parameters (Appendix Table 15). Thus, activation is not limited to full-model updates in this tested setting.

Stronger Benign Task Learning Leads to Higher Finetuned ASR

We hypothesize two key parts contribute to Poison-then-Hide’s success: learning the benign task during the poison stage, and trigger optimization.

First, we study the role of benign task learning (ResNet-50, ImageNet→\toRESISC). During poisoning, the model is trained on both clean and poisoned target samples. As shown in Figure 4a, ASR quickly exceeds 90% while clean accuracy remains near 20%. By saving checkpoints at different clean-accuracy levels, we isolate the effect of benign task learning while maintaining similar backdoor strength.

Figure 4. Trendlines showing how learning benign task of the target dataset (Base Accuracy) is related to Base and Finetuned ASR. Mean trendlines are fitted with LOWESS smoothing over 5 seeds.

We find that higher base clean accuracy correlates with higher finetuned ASR (Figure 4b, Pearson r=0.541r = 0.541, p=9.66×10−4p = 9.66 \times10^{-4}), including in OOD settings (Appendix § 13). Thus, better benign task learning leads to stronger backdoor transfer after finetuning. Intuitively, clean finetuning can overwrite backdoor associations [61, 51, 18]. By jointly learning the benign task and backdoor during poisoning, our method embeds the malicious behavior within the same feature space as the clean task, making it harder to erase during finetuning.

Benign Task Learning Does Not Guarantee Attack Success

While benign task learning is necessary for our attack, we now ask whether it is sufficient for a FA attack to succeed. We examine whether baseline attacks also learn the benign task during poisoning and whether higher benign accuracy correlates with higher ASR. Table 2 shows that among all baselines, only Hibernated Backdoor achieves substantial benign accuracy (68%) during poisoning. However, Figure 4c reveals a slight negative correlation between base accuracy and finetuned ASR (Pearson r=−0.457r = -0.457, p=1.45×10−2p = 1.45 \times10^{-2}). The absolute ASR also remains under 20%. Thus, benign task learning alone is not sufficient for a FA attack to succeed.

MethodBase AccBase ASRFinetuned ASR
Poison then Hide92.21 ± 0.2399.51 ± 0.1887.05 ± 1.67
Hibernated68.12 ± 1.556.96 ± 1.9412.30 ± 5.76
FAB2.76 ± 0.3597.25 ± 1.2422.40 ± 9.21
Latent0.31 ± 0.191.27 ± 1.252.26 ± 0.15
NeuBA7.52 ± 10.4197.81 ± 0.087.46 ± 0.41

Table 2. Clean accuracy and ASR for ResNet50 on RESISC. For Poison-then-Hide, “Base” denotes the poisoned model before hiding. For other baselines, which do not separate poisoning and hiding, “Base” and “Hidden” are identical.

Importance of Trigger Optimization

Trigger optimization is another key component of our method. We compare four trigger types in the ResNet50 ImageNet →\to RESISC setting: our optimized trigger, the Latent Backdoor trigger, Gaussian noise, and a sinusoidal pattern. As shown in Figure 5, only our optimized trigger achieves high ASR after finetuning. While the other triggers can induce high ASR during poisoning, their effects are largely erased by finetuning.

Effect of Trigger Pattern on Target ASR

Figure 5. Attack success rate of Poison-then-Hide under different trigger patterns. Base” denotes ASR after poisoning, Hidden” after the hiding stage, and “Finetuned” after downstream finetuning.

Our trigger is optimized using an ensemble of simulated finetuned models, directly targeting post-finetuning activation. In contrast, Gaussian and sinusoidal triggers are fixed patterns, while the Latent Backdoor trigger only optimizes feature collision with the target class. The ensemble-size and proxy-fidelity ablations in Appendix Figure 9 show that one proxy is brittle, performance largely saturates by five proxies, and severe undertraining or data limitation weakens but does not eliminate the attack. Thus, optimizing triggers across multiple simulated adaptations yields stronger and more reliable activation.

Appendix Figure 12 visualizes the optimized triggers, and Appendix Table 13 reports sensitivity to the hiding-stage loss weights and poison fraction.

Robustness against Defenses

We evaluate the robustness of Poison-then-Hide against detection and mitigation defenses (ResNet50, ImageNet →\to RESISC). For defense details, see Appendix § 15.

Detection. We evaluate Neural Cleanse and DECREE for their ability to detect the backdoors implanted by our Poison-then-Hide attack. In Table 3, we see that both methods fail to detect the backdoor in the Hidden and Finetuned models, except for one Finetuned model flagged as backdoored by Neural Cleanse. For this model, however, the true backdoor class (class=28) was not identified among the top five suspicious classes (classes=20, 21, 18, 14, 43) returned by Neural Cleanse. For DECREE, we note that the inverted trigger is different from our true trigger and the inverted mask does not show a localizable backdoor signal, leading to failed backdoor detection (Figure 6). Overall, these two tested detection methods are ineffective against Poison-then-Hide backdoors.

Clean (n=10)Hidden (n=5)Finetuned (n=5)
Neural Cleanse0%0%20%
DECREE0%0%0%

Table 3. Backdoor detection on our Poison-then-Hide attack. We report the percentage of models identified as backdoored by each detection method.

Figure 6. DECREE defense results on the Hidden backdoored encoder. From left to right: true trigger pattern from our Poison-then-Hide attack, the inverted trigger pattern by DECREE, and the inverted mask of backdoor signal by DECREE.

Mitigation. We use Fine-Pruning and MIMIC as our mitigation defenses against our attack. As shown in Table 4, fine-pruning reduces ASR moderately but does not fully eliminate the backdoor. A pruned Hidden model has 60% ASR after benign finetuning, compared to 87% for non-pruned model. Pruning the Finetuned model causes ASR to drop to 20%, but at the cost of benign accuracy (drop from 92% to 61%). Assuming a defender finetunes the pruned model on additional clean data to recover accuracy, we find that the attack resurfaces, as ASR rises from 20% to 47%.

StatusRESISC AccRESISC ASR
Hidden (ref)2.09 ±\pm 0.480.01 ±\pm 0.01
Pruned Hidden3.15 ±\pm 1.640.16 ±\pm 0.21
Finetuned (ref)92.87 ±\pm 0.5287.05 ±\pm 1.67
Finetuned after Pruning92.22 ±\pm 0.2460.46 ±\pm 15.12
Pruned Finetuned61.69 ±\pm 3.4120.13 ±\pm 13.93
Additional Finetuning92.38 ±\pm 0.5547.63 ±\pm 8.74
ModelReferenceStatusRESISC ASR
HiddenTrue CleanMitigated0.33 ± 0.28
Finetuning19.93 ± 11.20
PrunedMitigated3.80 ± 2.37
Finetuning47.49 ± 25.24
FinetunedTrue CleanMitigated0.33 ± 0.12
Finetuning6.70 ± 5.48
PrunedMitigated2.89 ± 1.17
Finetuning25.06 ± 17.53

Table 4. Effect of fine-pruning on target accuracy and ASR. Note that we include the original Hidden and Finetuned result purely as reference.

Similarly, MIMIC reduces ASR to below 4% on all backdoored models, but ASR resurfaces after benign finetuning in all models, up to a 47% rebound (Table 5). Among recent defenses (Appendix Table 16), MARTINI leaves 81.50% ASR after benign finetuning, while DeDe’s apparent filtering benefit comes from rejecting 79–89% of clean inputs and its detection AUC is near random. CLIP-Inspector is an important exception: after adaptation to our setting, it flags all 5 CLIP models and

reduces ASR to 2.15% while preserving 95.07% clean accuracy. Poison-then-Hide is therefore robust to several broad defenses, but not to this specialized CLIP-only defense.

Limitations

Poison-then-Hide is task-conditioned: the attacker must anticipate the downstream task family and target semantics, and we do not claim transfer to arbitrary unrelated tasks. Exact clean-label conflicts can erase the backdoor when most of the originally poisoned samples reappear during victim finetuning. Our single LoRA configuration shows that activation is possible beyond full-model finetuning, but prompt tuning, distillation, additional PEFT configurations, and replication across seeds remain open for future work. Finally, CLIP-Inspector successfully detects and repairs our attacked CLIP models, motivating architecture-specific defenses with similar behavior.

Conclusion

Finetuning-activated backdoors hidden in pretrained encoders pose a supply-chain risk across both full-model and parameter-efficient adaptation. Poison-then-Hide achieves consistent activation by jointly learning the benign task and backdoor during poisoning, optimizing triggers across simulated finetuned models, and suppressing the backdoor before release. The attack is the strongest targeted method under original and Flip-ASR across the evaluated task-conditioned domain shifts, survives large victim-to-attacker data ratios, and persists in the tested LoRA configuration. Several standard and recent defenses fail or sacrifice clean utility, although the success of CLIP-Inspector establishes a concrete boundary and a promising direction for defense.

Acknowledgments

We thank the reviewers and area chairs for their constructive feedback, which materially improved the scope and evaluation of this work. Funding: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. 2389810. This work was supported in part by a National Science Foundation CAREER Award (2339381), and an AI2050 Award Early Career Fellowship (G-25-68042), and a Sloan Research Fellow Award (FG-2025-24277). Competing interests: The authors declare no competing interests.

Formal Guarantees

This appendix gives conditional characterizations of (A) finite-step parameter drift, (B) transfer from a simulated finetuning trajectory to a nearby victim trajectory, and (C) prediction-level concealment at release. These results do not independently explain the mechanism by which downstream finetuning reactivates a backdoor; the experiments remain the primary evidence for reactivation.

Notation. Let fθ:X→ΔKf_\theta:\mathcal{X}\to\Delta^K be a classifier with parameters θ∈Rp\theta\in\mathbb{R}^p. Denote pre-softmax logits by zθ(x)∈RKz_\theta(x)\in\mathbb{R}^K. The victim’s finetuning objective (population form) is

Lft(θ):=E(x,y)∼Dft[LCE(zθ(x),y)].\mathcal{L}_{ft}(\theta):=\mathbb{E}_{(x,y)\sim\mathcal{D}_{ft}}\left[\mathcal{L}_{CE}(z_\theta(x),y)\right].

and the attacker’s surrogate objective (used to simulate finetuning during Stage 1) is

Lsim(θ):=E(x,y)∼Dsim[LCE(zθ(x),y)].\mathcal{L}_{sim}(\theta):=\mathbb{E}_{(x,y)\sim\mathcal{D}_{sim}}\left[\mathcal{L}_{CE}(z_\theta(x),y)\right].

We analyze gradient descent finetuning initialized at θ0=θ^\theta_0=\hat{\theta} with step size η>0\eta>0. Norms ∥⋅∥\|\cdot\| are Euclidean unless stated otherwise.

Assumptions. We make local, standard assumptions centered at θ^\hat{\theta} that are typical of deep learning training and to be expected of gradient descent mechanics.

Assumption 1 (Local smoothness). There exists a radius R>0R>0 and constant L>0L>0 such that for all θ,θ′\theta,\theta' satisfying ∥θ−θ^∥≤R\|\theta-\hat{\theta}\|\le R and ∥θ′−θ^∥≤R\|\theta'-\hat{\theta}\|\le R,

∥∇Lft(θ)−∇Lft(θ′)∥≤L∥θ−θ′∥.\|\nabla\mathcal{L}_{ft}(\theta)-\nabla\mathcal{L}_{ft}(\theta')\|\le L\|\theta-\theta'\|.

Assumption 2 (Parameter-to-output Lipschitz). For any input xx of interest there exists Cp(x)C_p(x) such that for all θ,θ′\theta,\theta' with ∥θ−θ′∥≤R\|\theta-\theta'\|\le R,

∥zθ(x)−zθ′(x)∥≤Cp(x)∥θ−θ′∥.\|z_\theta(x)-z_{\theta'}(x)\|\le C_p(x)\|\theta-\theta'\|.

Assumption 3 (Trigger smallness). The trigger δ\delta satisfies ∥δ∥≤ε\|\delta\|\le\varepsilon. For all θ\theta with ∥θ−θ^∥≤R\|\theta-\hat{\theta}\|\le R and inputs xx of interest there exists Lˉx\bar{L}_x such that

∥zθ(x+δ)−zθ(x)∥≤Lˉx∥δ∥.\|z_\theta(x+\delta)-z_\theta(x)\|\le\bar{L}_x\|\delta\|.

Assumptions 1–3 are local (neighborhood radius RR) and are enforced in practice by the hiding-phase regularizers via the suppression loss and KD loss terms.

Finite-step stability under smoothness

We now derive a finite-step bound on the parameter displacement ∥θT−θ^∥\|\theta_T-\hat{\theta}\| after TT steps of gradient descent, using only local smoothness and the gradient at the initialization θ^\hat{\theta}.

Theorem 1 (Finite-step parameter-drift bound). Let Assumption 1 hold on the ball ∥θ−θ^∥≤R\|\theta-\hat{\theta}\|\le R with constant LL. Suppose the victim runs (full-batch) gradient descent

θt+1=θt−η∇Lft(θt),θ0=θ^,\theta_{t+1}=\theta_t-\eta\nabla\mathcal{L}_{ft}(\theta_t),\qquad\theta_0=\hat{\theta},

with step size 0<η<1L0<\eta<\frac{1}{L}. Let γ:=∥∇Lft(θ^)∥\gamma:=\|\nabla\mathcal{L}_{ft}(\hat{\theta})\|. If

γ≤RL(1+ηL)T−1,\gamma\le\frac{RL}{(1+\eta L)^T-1},

then the iterates {θt}t=0T\{\theta_t\}_{t=0}^T remain in the ball ∥θt−θ^∥≤R\|\theta_t-\hat{\theta}\|\le R and the following bound holds:

∥θT−θ^∥≤γL((1+ηL)T−1).(7)\|\theta_T-\hat{\theta}\|\le\frac{\gamma}{L}\left((1+\eta L)^T-1\right). \tag*{(7)}

Consequently, for any input xx satisfying Assumption 2,

∥zθT(x)−zθ^(x)∥≤Cp(x)γL((1+ηL)T−1).(8)\|z_{\theta_T}(x)-z_{\hat{\theta}}(x)\|\le C_p(x)\frac{\gamma}{L}\left((1+\eta L)^T-1\right). \tag*{(8)}

Proof. By smoothness (Assumption 1), for any θ\theta in the ball, ∥∇Lft(θ)∥≤∥∇Lft(θ^)∥+L∥θ−θ^∥=γ+L∥θ−θ^∥\|\nabla\mathcal{L}_{ft}(\theta)\| \le\|\nabla\mathcal{L}_{ft}(\hat{\theta})\| + L\|\theta-\hat{\theta}\| = \gamma+ L\|\theta-\hat{\theta}\|. Using the gradient-descent update and triangle inequality,

∥θt+1−θ^∥=∥θt−θ^−η∇Lft(θt)∥≤∥θt−θ^∥+η∥∇Lft(θt)∥≤∥θt−θ^∥+η(γ+L∥θt−θ^∥)=(1+ηL)∥θt−θ^∥+ηγ.\begin{aligned} \|\theta_{t+1}-\hat{\theta}\| &= \|\theta_t-\hat{\theta}-\eta\nabla\mathcal{L}_{ft}(\theta_t)\|\\ &\le\|\theta_t-\hat{\theta}\|+\eta\|\nabla\mathcal{L}_{ft}(\theta_t)\|\\ &\le\|\theta_t-\hat{\theta}\|+\eta(\gamma+L\|\theta_t-\hat{\theta}\|)\\ &=(1+\eta L)\|\theta_t-\hat{\theta}\|+\eta\gamma. \end{aligned}

Define at:=∥θt−θ^∥a_t := \|\theta_t-\hat{\theta}\|. Then the recursion is

at+1≤(1+ηL)at+ηγ,a0=0.a_{t+1}\le(1+\eta L)a_t+\eta\gamma,\qquad a_0=0.

Unrolling this linear recursion yields the closed-form inequality

aT≤ηγ∑i=0T−1(1+ηL)i=ηγ(1+ηL)T−1ηL=γL((1+ηL)T−1).a_T\le\eta\gamma\sum_{i=0}^{T-1}(1+\eta L)^i=\eta\gamma\frac{(1+\eta L)^T-1}{\eta L}=\frac{\gamma}{L}\big((1+\eta L)^T-1\big).

which is exactly (7). The stated condition on γ\gamma ensures the right-hand side is ≤R\le R, so iterates remain inside the smoothness neighborhood and all inequalities are valid. Finally, apply Assumption 2 to obtain (8).

Remark. The bound is used only to establish that a finite trajectory remains within a local neighborhood where the following comparison is valid. It is not, by itself, an explanation of reactivation. For small ηL\eta L, (1+ηL)T−1≈ηLT(1+\eta L)^T-1\approx\eta LT, yielding the simpler scaling ∥θT−θ^∥≲γTη\|\theta_T-\hat{\theta}\|\lesssim\gamma T\eta.

Transfer from simulated to victim finetuning trajectories

Let simulated trajectory kk and the victim trajectory share a parameterization, including the downstream head, and evolve as

θt+1sim,k=θtsim,k−η∇Lsim,k(θtsim,k),θt+1ft=θtft−η∇Lft(θtft).\theta_{t+1}^{\mathrm{sim},k}=\theta_t^{\mathrm{sim},k}-\eta\nabla\mathcal{L}_{\mathrm{sim},k}(\theta_t^{\mathrm{sim},k}),\qquad \theta_{t+1}^{\mathrm{ft}}=\theta_t^{\mathrm{ft}}-\eta\nabla\mathcal{L}_{\mathrm{ft}}(\theta_t^{\mathrm{ft}}).

Define dt(k)=∥θtft−θtsim,k∥2d_t^{(k)}=\|\theta_t^{\mathrm{ft}}-\theta_t^{\mathrm{sim},k}\|_2. Suppose both trajectories stay in a neighborhood UU where ∇Lft\nabla\mathcal{L}_{\mathrm{ft}} is LL-Lipschitz and their gradients differ by at most

sup⁡θ∈U∥∇Lft(θ)−∇Lsim,k(θ)∥2≤ρk.\sup_{\theta\in U}\|\nabla\mathcal{L}_{\mathrm{ft}}(\theta)-\nabla\mathcal{L}_{\mathrm{sim},k}(\theta)\|_2\le\rho_k.

Then dt+1(k)≤(1+ηL)dt(k)+ηρkd_{t+1}^{(k)}\le(1+\eta L)d_t^{(k)}+\eta\rho_k, so

dT(k)≤(1+ηL)Td0(k)+ρkL((1+ηL)T−1).(9)d_T^{(k)}\le(1+\eta L)^T d_0^{(k)}+\frac{\rho_k}{L}\big((1+\eta L)^T-1\big). \tag*{(9)}

Here d0(k)d_0^{(k)} absorbs discrepancies from poisoning, hiding, and downstream-head initialization, while ρk\rho_k captures surrogate–victim mismatch.

For j≠yadvj\ne y^{\mathrm{adv}}, define the triggered pairwise margin

mj(θ;x,δ)=zθ,yadv(x+δ)−zθ,j(x+δ).m_j(\theta;x,\delta)=z_{\theta,y^{\mathrm{adv}}}(x+\delta)-z_{\theta,j}(x+\delta).

If triggered logits are locally parameter-Lipschitz, then

∣mj(θft;x,δ)−mj(θsim,k;x,δ)∣≤2Cp(x+δ)dT(k).|m_j(\theta^{\mathrm{ft}};x,\delta)-m_j(\theta^{\mathrm{sim},k};x,\delta)|\le\sqrt{2}C_p(x+\delta)d_T^{(k)}.

Writing κk(x)=min⁡j≠yadvmj(θTsim,k;x,δ)\kappa_k(x)=\min_{j\ne y^{\mathrm{adv}}}m_j(\theta_T^{\mathrm{sim},k};x,\delta), a sufficient condition for victim-side activation is

κk(x)>2Cp(x+δ)[(1+ηL)Td0(k)+ρkL((1+ηL)T−1)].(10)\kappa_k(x)>\sqrt{2}C_p(x+\delta)\left[(1+\eta L)^T d_0^{(k)}+\frac{\rho_k}{L}\big((1+\eta L)^T-1\big)\right]. \tag*{(10)}

Under this condition, every pairwise margin is positive and fθft(x+δ)=yadvf_{\theta^{\mathrm{ft}}}(x+\delta)=y^{\mathrm{adv}}, up to ties. Stage 1 directly increases the simulated margin κk(x)\kappa_k(x); ensemble diversity aims to reduce the chance of large ρk\rho_k. The L2L_2-SP term can reduce the encoder component of d0(k)d_0^{(k)}, but does not independently guarantee activation.

Concealment at release (logit-change bound)

Concealment ensures the trigger is not strongly activating at release time. The following is immediate from the input-Jacobian control assumption.

Theorem 2 (Pre-finetuning concealment). Under Assumption 3, if ∥δ∥≤ε\lVert\delta\rVert\le\varepsilon and θ^\hat{\theta} lies in the parameter ball where L‾x\overline{L}_x is valid, then for any input xx,

∥zθ^(x+δ)−zθ^(x)∥≤L‾xε.\lVert z_{\hat{\theta}}(x+\delta)-z_{\hat{\theta}}(x)\rVert\le\overline{L}_x\varepsilon.

Let c=arg⁡max⁡ℓzθ^,ℓ(x)c=\arg\max_{\ell}z_{\hat{\theta},\ell}(x) and q(x)=min⁡j≠c[zθ^,c(x)−zθ^,j(x)]q(x)=\min_{j\ne c}[z_{\hat{\theta},c}(x)-z_{\hat{\theta},j}(x)]. If q(x)>2L‾xεq(x)>\sqrt{2}\overline{L}_x\varepsilon, then fθ^(x+δ)=fθ^(x)f_{\hat{\theta}}(x+\delta)=f_{\hat{\theta}}(x), up to ties.

Proof. The logit-vector bound follows directly from Assumption 3 at θ=θ^\theta=\hat{\theta}. For any j≠cj\ne c, Cauchy–Schwarz bounds the change in the pairwise margin by 2∥zθ^(x+δ)−zθ^(x)∥2≤2L‾xε\sqrt{2}\lVert z_{\hat{\theta}}(x+\delta)-z_{\hat{\theta}}(x)\rVert_2\le\sqrt{2}\overline{L}_x\varepsilon. If the original margin q(x)q(x) exceeds this amount, every pairwise margin remains positive and the predicted class is unchanged.

Remark. This result formalizes prediction preservation at release only; it does not imply that a particular detection method must fail. The hiding-stage regularizers keep θ^\hat{\theta} near the benign checkpoint and suppress the target logit. Appendix Table 13 reports the corresponding weight ablations.

Scope of the theory. The drift result controls trajectory displacement, the transfer result connects simulated and victim behavior under explicit proximity assumptions, and the concealment result characterizes release-time predictions. A mechanistic explanation of reactivation would additionally need assumptions describing how downstream gradients interact with the poisoned representation to increase the triggered target margin; we do not establish such a mechanism here.

Dataset Statistics and Training Configurations

Dataset

We summarize the datasets in Table 6. ImageNet and CIFAR-10 are pretraining/source datasets. SVHN, RESISC, and Camelyon17-WILDS provide task-aligned attacker surrogate data; the main in-domain experiments use separate, non-overlapping splits for victim finetuning. For trigger optimization and poisoning, we perform 200 steps with batch size 128, corresponding to up to 25,600 sampled examples. In the task-conditioned domain-shift setting, UC Merced is the victim dataset paired with a RESISC attacker surrogate, while Camelyon17 hospital 3 is held out from victim finetuning on hospitals 0–2. Unless stated otherwise, the attacker’s surrogate samples and the victim’s finetuning samples have 0% overlap.

DatasetType of images# train# test# classes
ImageNet (ILSVRC-2012)natural objects1,281,15250,0481000
CIFAR-10natural objects50,00010,00010
SVHNstreet-view house number digits73,25726,03210
RESISCremote-sensing scenes18,9446,40045
UC Merced Land Use (OOD)remote-sensing scenes21,00021
Camelyon17-WILDShistopathology patches302,46433,7922
Camelyon17-WILDS (OOD)histopathology patches35,0722

Table 6. Summary of datasets: image type, training and test set sizes, and number of classes.

For image normalization, we apply dataset-appropriate mean and standard deviation (std) values (Table 7)

Dataset(s)Mean (μ\mu)Std (σ\sigma)
ImageNet, RESISC, UC Merced, Camelyon17(0.485, 0.456, 0.406)(0.229, 0.224, 0.225)
CIFAR-10(0.4914, 0.4822, 0.4465)(0.2470, 0.2435, 0.2616)
SVHN(0.4377, 0.4438, 0.4728)(0.1980, 0.2010, 0.1970)
CLIP models(0.4814, 0.4578, 0.4082)(0.2686, 0.2613, 0.2757)

Table 7. Image normalization statistics (channel-wise mean and standard deviation) used for each dataset or model family.

Dataset Licensing and Access

CIFAR-10 and SVHN do not have an explicit license, but they are freely available for non-commercial research use. ImageNet is also available for non-commercial research purposes. UC Merced dataset is stated to be meant for research purposes. RESISC45 is under CC BY-NC 4.0. Camelyon17-WILDS is under CC BY-NC-ND 4.0.

The links to download these public datasets are: CIFAR-10, ImageNet, SVHN, UC Merced Land Use, RESISC45 Remote Sensing Dataset, and Camelyon17-WILDS. The in-domain and out-of-domain data for Camelyon17 are all in the WILDS version of the dataset.

Trigger Optimization

We optimize a universal pixel-space trigger δ\delta that induces an ensemble of clean-finetuned models to predict a fixed target class, while the base model is explicitly discouraged from being backdoored. At each iteration, we apply the trigger to a minibatch, compute a weighted combination of the finetuned-model loss and a base-guard loss, backpropagate into δ\delta, and project it back into the ℓ∞\ell_\infty ball.

We use the following hyperparameters:

  • Perturbation budget: ϵ=8/255\epsilon= 8/255 (elementwise clamp).

  • Optimization steps: 200 gradient steps.

  • Optimizer: Adam with learning rate 5×10−35 \times10^{-3}.

  • Batch sizes: 128 for optimization; 128 for evaluation.

  • Loss weights: λbase=1.0\lambda_{\mathrm{base}} = 1.0, λft=2.0\lambda_{\mathrm{ft}} = 2.0.

  • Model ensemble: trigger optimized jointly over 10 simulated finetuned checkpoints.

Poison-then-Hide

We jointly finetune a student model on a source dataset (ImageNet, CIFAR-10) and a downstream transfer dataset (RESISC, Camelyon17, SVHN), where the transfer train split is partially poisoned with a fixed universal trigger. At each step, we use supervised cross-entropy on both domains, distill the student toward a frozen teacher on the source domain via logit- and feature-level knowledge distillation, and regularize the student toward its initialization with an L2-SP penalty, while periodically recalibrating batch normalization and evaluating clean and triggered performance. The algorithm is described at 1. We use the same notation as previously defined in the Methods section.

We use the following hyperparameters:

  • Optimizer: AdamW with learning rate 3×10−43 \times10^{-4} and weight decay 1×10−41 \times10^{-4}; mixed-precision training (AMP).

  • Training length: steps = 200 gradient steps.

  • Batch sizes: batch_size = 128 for both source and transfer loaders.

  • Poisoning: poison_fraction = 0.05 (5% of training examples are replaced by triggered copies when a trigger is provided); ASR is evaluated on a 100% poisoned test loader.

  • Knowledge distillation: temperature T=3.0T = 3.0; logit KD and feature KD (cosine distance) are applied with ramped weights over training (scaled by a cosine schedule).

  • Regularization: L2-SP penalty with coefficient 5×10−35 \times10^{-3} toward the initial student parameters.

  • Batch-norm recalibration: BN statistics are periodically refreshed every 100 steps and once more at the end of training).

Compute Resources

All experiments are run on NVIDIA RTX A6000 GPUs with 48 GB VRAM and 8 CPU workers. Experiments are run on individual GPUs. Per-run compute time ranges from 30 minutes to 6 hours for each full finetuning-activated backdoor pipeline, depending on the dataset and model size.

Code. Source code and reproduction instructions are publicly available at https://github.com/QixuanJin99/poison-then-hide. We do not release backdoored model checkpoints.

Algorithm 1 Poison-then-Hide

Require: Base model fθf_{\theta}, trigger δopt\delta^{\mathrm{opt}}, target label yadvy^{\mathrm{adv}}, datasets Dclean,Dpois\mathcal{D}_{\mathrm{clean}}, \mathcal{D}_{\mathrm{pois}}, teacher fθTf_{\theta_T}, hyperparameters λKD,λSP,λsup\lambda_{\mathrm{KD}}, \lambda_{\mathrm{SP}}, \lambda_{\mathrm{sup}}

Ensure: Concealed poisoned model f^θ^\hat{f}_{\hat{\theta}}

  1. Initialize θ~←θ\tilde{\theta} \leftarrow\theta, snapshot θ0←θ\theta_0 \leftarrow\theta

  2. Poison phase:

  3. for each step t=1,…,Tpoisont = 1, \ldots, T_{\mathrm{poison}} do

  4. &nbsp;&nbsp;&nbsp;&nbsp;Sample (x,y)∼Dclean,(x′,yadv)∼Dpois(x, y) \sim\mathcal{D}_{\mathrm{clean}}, (x', y^{\mathrm{adv}}) \sim\mathcal{D}_{\mathrm{pois}}

  5. &nbsp;&nbsp;&nbsp;&nbsp;Update parameters:

θ~←θ~−η∇θ~Lpoison\tilde{\theta} \leftarrow\tilde{\theta} - \eta\nabla_{\tilde{\theta}}\mathcal{L}_{\mathrm{poison}}
  1. end for

  2. Obtain intermediate checkpoint fθ~∗f_{\tilde{\theta}^{*}}

  3. Hide phase:

  4. for each step t=1,…,Thidet = 1, \ldots, T_{\mathrm{hide}} do

  5. &nbsp;&nbsp;&nbsp;&nbsp;Sample (x,y)∼Dclean,x′∼Dpois(x, y) \sim\mathcal{D}_{\mathrm{clean}}, x' \sim\mathcal{D}_{\mathrm{pois}}

  6. &nbsp;&nbsp;&nbsp;&nbsp;Update parameters:

θ~←θ~−η′∇θ~Lhide\tilde{\theta} \leftarrow\tilde{\theta} - \eta' \nabla_{\tilde{\theta}}\mathcal{L}_{\mathrm{hide}}
  1. end for

  2. return $\hat{f}_{\hat{\theta}} \leftarrow f_{\tilde{\theta}}

Additional Robustness and Ablation Results

Task-conditioned domain shift

The attacker still requires task and target-class alignment; the UC Merced perturbation experiment is a controlled distribution-degradation probe rather than a complete semantic-shift benchmark. Nevertheless, RESISC →\to UC Merced is not a trivial within-dataset split: all three feature-space distances are substantially larger than those of a class-balanced RESISC A →\to RESISC B split (Table 8).

ComparisonClass-cond. L2L_2Centroid L2L_2FID
RESISC A →\to RESISC B0.1680.0380.0148
RESISC →\to UC Merced0.4540.2380.1590

Table 8. Feature-space distribution distances. RESISC →\to UC Merced exhibits a substantially larger shift than a class-balanced within-RESISC split.

A label-preserving semantic/style-shift boundary

We use SVHN→\toMNIST to test a larger, label-preserving shift: both datasets contain the same ten digit classes, but SVHN consists of natural house-number crops whereas MNIST contains handwritten digits. We evaluate target digit 2 with the same 8/2558/255 trigger over five independently seeded ResNet-18 hidden encoders. For the matched activation reference, the victim finetunes on SVHN for two epochs and is evaluated on SVHN. We then evaluate these same SVHN-finetuned models on MNIST, preserving the ten-way SVHN head because the label spaces align. Finally, to model an actual shifted victim, we return to each corresponding hidden encoder, initialize a fresh ten-way head, and full-model finetune on MNIST for two epochs before evaluating on MNIST. All conditions use a batch size of 128, learning rate 3×10−43 \times10^{-4}, and the paired metrics defined in Section 4.

The shifted MNIST victim data are dataset-disjoint from the attacker’s SVHN data. The archived matched SVHN reference is not a zero-overlap comparison: its victim train+extra pool contains the SVHN train split used during implantation. We therefore use that row only to verify activation in the aligned input domain, and use the two MNIST conditions to locate the style-shift boundary.

Table 9 shows a sharp boundary. In the aligned SVHN condition, Poison-then-Hide reaches 45.22±3.85%45.22 \pm3.85\% Flip-ASR with 97.37±0.13%97.37 \pm0.13\% clean accuracy. Merely changing the evaluation inputs to MNIST reduces Flip-ASR to 1.07±0.55%1.07 \pm0.55\%—a 97.6%97.6\% relative reduction—while the same models retain 89.18±0.87%89.18 \pm0.87\% MNIST accuracy. When the victim instead finetunes and evaluates on MNIST, clean accuracy rises to 99.39±0.14%99.39 \pm0.14\% but Flip-ASR falls to 0.04±0.05%0.04 \pm0.05\%, a 99.9%99.9\% reduction from the aligned reference. The roughly 10%10\% original ASR in this condition is the natural target-digit prediction rate: the trigger changes it by only 0.04±0.070.04 \pm0.07 percentage points. Thus, the collapse is not caused by failure to learn the victim task; rather, it identifies a boundary at which the trigger–target association no longer transfers across a large visual-style shift. Together with the positive Camelyon17 and RESISC→\toUC Merced results, this supports task-conditioned transfer under moderate aligned shifts, not universal transfer to arbitrary downstream visual domains.

Victim finetuningEvaluationClean acc.Clean targetOriginal ASRNet increaseFlip-ASR
SVHNSVHN97.37 ± 0.1315.83 ± 0.2754.10 ± 3.2538.27 ± 3.2545.22 ± 3.85
SVHNMNIST89.18 ± 0.8710.50 ± 1.1211.55 ± 1.101.04 ± 0.691.07 ± 0.55
MNISTMNIST99.39 ± 0.1410.32 ± 0.0510.37 ± 0.120.04 ± 0.070.04 ± 0.05

Table 9. Boundary under the label-preserving SVHN→\toMNIST style shift. Values are mean ±\pm 95% tt-confidence interval across five seeds. “Clean target” is the fraction predicted as digit 2 before applying the trigger, and “Net increase” is triggered target rate minus clean target rate.

The overlap experiment is deliberately favorable to the defender: the victim sees clean versions of the exact non-target images poisoned during implantation, with their original labels. The high variance at 25–50% overlap indicates seed sensitivity, while 75–100% overlap consistently suppresses the attack. This differs from the main 0%-overlap threat model.

Even with a 3,000-example attacker reference set and roughly 201×201\times more victim finetuning data, ASR remains 55.29% while clean accuracy stays at 97.59% (Table 11). The persistence of ASR is therefore not an artifact of weak downstream task learning.

The paired tests support the domain-shift conclusion for ResNet50 on both datasets and for CLIP on UC Merced. We avoid a significance claim for CLIP/Camelyon17 under the primary exact sign-flip test.

Simulated-finetuning ensemble and training sensitivity

For proxy composition at k=5k = 5, mixed subsets of the original proxy sweep obtain 50.83 ± 6.58 ASR; one archived restricted k=5k = 5 ensemble composed of head-only, masked-partition, and SGD proxies obtains 58.09; proxies trained for only 250 steps obtain 25.75 ± 0.70; proxies trained on 10% of SVHN obtain 38.26 ± 2.49. Corresponding clean accuracies are 97.49 ± 0.00, 97.46, 97.51 ± 0.07, and 97.35 ± 0.09. Thus, fidelity matters, but in the single archived restricted-ensemble run, hyperparameter and update-rule mismatch did not eliminate the attack.

Moderate variation in λsup\lambda_{\mathrm{sup}}, λKD\lambda_{\mathrm{KD}}, and λSP\lambda_{\mathrm{SP}} has little effect on clean accuracy or final ASR. The attack also remains effective across poison fractions from 1% to 20%, showing that it is not narrowly tuned to the default 5%.

Table 13: CIFAR10 →\to SVHN sensitivity to hiding-stage weights (left) and poison fraction (right). Accuracy is stable and activated ASR remains in a similar range across the tested settings.

Hiding conditionSVHN acc.ASR
Default97.5659.21
λsup×0\lambda_{\mathrm{sup}} \times097.5052.35
λsup×0.25\lambda_{\mathrm{sup}} \times0.2597.5458.00
λsup×0.5\lambda_{\mathrm{sup}} \times0.597.5061.00
λsup×2\lambda_{\mathrm{sup}} \times297.6257.27
λKD×0\lambda_{\mathrm{KD}} \times097.6158.97
λKD×0.25\lambda_{\mathrm{KD}} \times0.2597.5761.65
λKD×0.5\lambda_{\mathrm{KD}} \times0.597.6360.70
λKD×2\lambda_{\mathrm{KD}} \times297.5654.88
λSP×0\lambda_{\mathrm{SP}} \times097.5358.64
λSP×0.25\lambda_{\mathrm{SP}} \times0.2597.4459.33
λSP×0.5\lambda_{\mathrm{SP}} \times0.597.6256.24
λSP×2\lambda_{\mathrm{SP}} \times297.5460.57
Poison fractionSVHN acc.ASR
0.01097.5955.54
0.02597.5357.90
0.050 (default)97.5558.91
0.10097.6054.90
0.20097.5162.27

Table 13.

Figure 9. Sensitivity to simulated finetuned models in Stage 1 on CIFAR10 →\to SVHN. (a) One proxy model is brittle; performance improves by k=3k = 3 and largely saturates by k=5k = 5. The k=10k = 10 point is a single run. (b) Low-fidelity proxy ensembles remain nontrivial, although extreme undertraining or data limitation reduces ASR. Clean accuracy remains stable. Error bars are 95% confidence intervals where available.

Additional Attack Results

ModelMethodStatusCIFAR10 AccSVHN AccSVHN ASR
ResNet18FABHidden93.23 ± 0.1911.93 ± 2.1199.94 ± 0.02
ResNet18FABFinetuned11.30 ± 1.3697.27 ± 0.0752.33 ± 3.85
ResNet18HibernatedHidden91.66 ± 0.1970.02 ± 1.1411.65 ± 0.60
ResNet18HibernatedFinetuned11.84 ± 1.5497.26 ± 0.1753.81 ± 5.44
ResNet18Poison then HideHidden92.56 ± 0.214.73 ± 3.607.24 ± 13.84
ResNet18Poison then HideFinetuned12.44 ± 0.7697.37 ± 0.0954.10 ± 2.29
ModelMethodStatusImageNet AccRESISC AccRESISC ASR
ResNet50FABHidden73.67 ± 1.722.76 ± 0.3597.25 ± 1.24
ResNet50FABFinetuned18.95 ± 2.4692.98 ± 0.4622.40 ± 9.21
ResNet50HibernatedHidden78.27 ± 0.0368.12 ± 1.556.96 ± 1.94
ResNet50HibernatedFinetuned25.78 ± 1.9693.08 ± 0.4112.30 ± 5.76
ResNet50LatentHidden74.05 ± 1.180.31 ± 0.191.27 ± 1.25
ResNet50LatentFinetuned13.11 ± 2.0192.46 ± 0.342.26 ± 0.15
ResNet50NeuBAHidden71.68 ± 0.297.52 ± 10.4197.81 ± 0.08
ResNet50NeuBAFinetuned14.59 ± 1.5492.57 ± 0.417.46 ± 0.41
ResNet50Poison then HideHidden75.58 ± 0.242.09 ± 0.480.01 ± 0.01
ResNet50Poison then HideFinetuned28.96 ± 3.7292.87 ± 0.5287.05 ± 1.67
CLIPFABHidden84.06 ± 0.202.11 ± 0.0899.96 ± 0.04
CLIPFABFinetuned81.86 ± 0.4791.61 ± 0.342.01 ± 0.11
CLIPHibernatedHidden80.82 ± 0.1691.35 ± 0.962.12 ± 0.04
CLIPHibernatedFinetuned80.36 ± 0.4494.96 ± 0.262.10 ± 0.02
CLIPLatentHidden85.93 ± 0.002.11 ± 0.450.74 ± 0.91
CLIPLatentFinetuned84.21 ± 0.2293.10 ± 0.431.88 ± 0.15
CLIPNeuBAHidden81.77 ± 0.621.67 ± 0.5698.12 ± 0.47
CLIPNeuBAFinetuned82.48 ± 4.2976.76 ± 27.459.29 ± 0.36
CLIPPoison then HideHidden85.64 ± 0.092.27 ± 0.836.11 ± 7.80
CLIPPoison then HideFinetuned85.20 ± 0.1095.10 ± 0.1260.41 ± 15.05
ModelMethodStatusImageNet AccCamelyon17 AccCamelyon17 ASR
ResNet50FABHidden30.39 ± 2.7951.84 ± 8.2363.28 ± 17.63
ResNet50FABFinetuned0.16 ± 0.0399.23 ± 0.0697.42 ± 0.73
ResNet50HibernatedHidden65.48 ± 0.4483.39 ± 0.5883.26 ± 6.84
ResNet50HibernatedFinetuned0.13 ± 0.0499.12 ± 0.1797.33 ± 1.13
ResNet50LatentHidden63.76 ± 0.9247.39 ± 8.8255.46 ± 15.41
ResNet50LatentFinetuned0.08 ± 0.0299.09 ± 0.0450.66 ± 0.24
ResNet50NeuBAHidden58.51 ± 1.0346.72 ± 6.3253.47 ± 5.80
ResNet50NeuBAFinetuned0.12 ± 0.0299.32 ± 0.290.85 ± 0.09
ResNet50Poison then HideHidden75.74 ± 0.2754.77 ± 17.9757.63 ± 21.46
ResNet50Poison then HideFinetuned0.14 ± 0.0299.15 ± 0.1797.78 ± 1.57
CLIPFABHidden82.96 ± 0.6250.50 ± 0.02100.00 ± 0.00
CLIPFABFinetuned80.50 ± 0.7199.21 ± 0.0959.88 ± 4.21
CLIPHibernatedHidden79.37 ± 0.2799.16 ± 0.1854.72 ± 2.18
CLIPHibernatedFinetuned80.22 ± 0.2696.94 ± 0.8553.10 ± 1.45
CLIPLatentHidden85.93 ± 0.0053.21 ± 8.6446.07 ± 27.73
CLIPLatentFinetuned80.05 ± 0.4799.09 ± 0.1749.39 ± 1.07
CLIPNeuBAHidden81.29 ± 1.4652.92 ± 7.5946.79 ± 8.02
CLIPNeuBAFinetuned78.33 ± 2.3199.18 ± 0.110.84 ± 0.12
CLIPPoison then HideHidden85.80 ± 0.0339.66 ± 2.4112.90 ± 6.83
CLIPPoison then HideFinetuned83.99 ± 0.1299.27 ± 0.0273.30 ± 8.61

Table 14. Performance of Poison then Hide and baseline finetuning-activated backdoors across dataset transfers. Mean and 95% confidence intervals computed across five random seeds.

Additional Benign Accuracy Results

Trendlines showing how learning benign task of the target dataset does not affect attack success in the finetuned model for the Hibernated Backdoor baseline

Figure 11. Trendlines showing how learning benign task of the target dataset does not affect attack success in the finetuned model for the Hibernated Backdoor baseline. Results for the ResNet50 model in the ImageNet →\to RESISC transfer setting. Mean trendlines are fitted with LOWESS smoothing over 5 seeds.

Additional Trigger Optimization Results

Figure 12. Panel of four trigger patterns on RESISC images. All triggers are bounded by an ℓ∞\ell_\infty norm of ϵ=8255\epsilon= \frac{8}{255}. We visualize the trigger by itself, the clean image, and then the poisoned image.

Victim adaptationBenign acc.ASRTrainable parameters
ResNet18 LoRA96.21%54.98%291,554 / 11,465,516 (2.54%)

Table 15. Poison-then-Hide after LoRA adaptation on CIFAR10 →\to SVHN. The attack remains effective while updating 2.54% of parameters.

Evaluation pointAcc.ASR
Before MARTINI92.21±0.2392.21 \pm0.2399.51±0.1899.51 \pm0.18
After MARTINI61.97±3.6861.97 \pm3.6899.85±0.1299.85 \pm0.12
After benign FT91.83±0.6391.83 \pm0.6381.50±3.2081.50 \pm3.20

Table 16. Recent defenses on ImageNet →\to RESISC Poison-then-Hide models. DeDe’s low filtered ASR is driven by rejecting most clean inputs; ASR among retained inputs remains high. CLIP-Inspector is effective, but is specialized to CLIP and was adapted beyond its original prompt-tuning setting. Values are mean ±\pm 95% confidence interval.

ModelClean acc.Pre-filter ASRFiltered ASRDeDe AUCClean inputs keptASR among kept
ResNet5092.87±0.7392.87 \pm0.7387.05±2.3787.05 \pm2.3717.68±4.2417.68 \pm4.2452.10±1.1352.10 \pm1.1321.19±3.9221.19 \pm3.9295.56±0.6995.56 \pm0.69
CLIP95.10±0.1895.10 \pm0.1853.42±21.3253.42 \pm21.326.97±3.716.97 \pm3.7150.74±0.1150.74 \pm0.1111.08±2.9411.08 \pm2.9465.95±22.7065.95 \pm22.70
ModelDetectionPost-repair RESISC acc.Post-repair true-trigger ASR
CLIP5/5 models flagged95.07±0.1295.07 \pm0.122.15±0.042.15 \pm0.04

caption: Recent defenses on ImageNet →\to RESISC Poison-then-Hide models.

Additional Defense Details

Parameter-efficient adaptation

This result is a single ResNet18 LoRA configuration and should not be interpreted as evidence for every parameter-efficient adaptation method.

MARTINI and DeDe do not provide reliable mitigation in this setting. MARTINI preserves high ASR even after a substantial clean-accuracy drop, and DeDe’s AUC is near random; its low filtered ASR is achieved by rejecting most inputs. In contrast, CLIP-Inspector flags all five CLIP models and repairs them effectively, but it is architecture-specific and required adaptation from prompt tuning to our full-finetuning transfer setting.

Neural Cleanse

We implement Neural Cleanse by optimizing an inverted trigger such that poisoned inputs are classified as the target. We then rank classes by the average recovered mask size and use a MAD-based anomaly score over mask sizes to identify suspicious (potentially backdoored) target classes.

Hyperparameters (Neural Cleanse).

  • Optimization per class:

    • Iterations per class: iters_per_class = 300.

    • Optimizer: Adam on pattern and mask logits, learning rates lr_pattern = 0.1, lr_mask = 0.05.

    • Loss: L=ce_weight⋅CE+l1_weight⋅∥mask∥1+tv_weight⋅TV(mask)\mathcal{L} = \text{ce\_weight} \cdot\mathrm{CE} + \text{l1\_weight} \cdot\lVert\text{mask}\rVert_{1} + \text{tv\_weight} \cdot\mathrm{TV}(\text{mask}), with ce_weight = 1.0, l1_weight = 0.02, tv_weight = 0.001.

    • Early stopping if mean target confidence ≥\geq early_stop_conf = 0.99.

  • Anomaly scoring: per-class mask size score = average mask value; classes are ranked via MAD-based z-scores, and the smallest masks (largest inverted z-score) are treated as most suspicious.

DECREE

We reproduce DECREE by performing self-supervised trigger inversion: we optimize a keep-mask and pattern such that stamping the pattern onto clean images collapses their feature embeddings (maximally similar under negative cosine similarity) while minimizing the size of the edited region. The detector computes the normalized trigger size PL1\mathrm{PL}^{1} and declares a model backdoored if a sufficiently small trigger region (PL1<τ\mathrm{PL}^{1}<\tau) suffices to collapse embeddings.

Hyperparameters (DECREE).

  • Trigger inversion optimization:

    • Iterations: iters = 400

    • Optimizer: Adam on pattern and keep-mask logits with lr_pattern = 0.1, lr_mask = 0.05, batch_repeats = 1.

    • Similarity loss: pairwise negative cosine over embeddings (include self pairs); constraint enforced via hinge penalty on Lsim−βL_{\mathrm{sim}}-\beta.

    • Similarity threshold: β=−0.99\beta=-0.99, hinge_margin = 0.0.

    • Size / regularization: trigger mask a=1−ma=1-m, PL1=∥a∥1/(HW)\mathrm{PL}^{1}=\lVert a\rVert_{1}/(HW); loss L=\mathcal{L}= lam_l1 · PL1+10⋅max⁡(0,Lsim−β)\mathrm{PL}^{1}+10\cdot\max(0,L_{\mathrm{sim}}-\beta) + lam_tv · TV(m)\mathrm{TV}(m), with lam_l1 = 1.0, lam_tv = 10^{-3}.

  • Decision rule: backdoored if PL1<τ\mathrm{PL}^{1}<\tau with threshold τ=0.10\tau=0.10.

Fine-Pruning

We implement Fine-Pruning by identifying and disabling dormant convolutional channels in later backbone layers based on their average activation on clean data. Concretely, we record mean absolute activations for each output channel of selected convolutional layers on clean inputs, prune channels with the smallest activations (via hard zeroing and multiplicative gates).

Hyperparameters (Fine-Pruning).

  • Target layers: convolutional layers whose qualified names contain "layer3" or "layer4" (target_layers = ("layer3", "layer4")).

  • Channel scoring: for each target conv layer, we compute the mean absolute activation per output channel over batch and spatial dimensions on clean training data.

  • Pruning policy:

    • Prune ratio per layer: prune_ratio = 0.20 (20% of channels with the lowest mean activation in each selected layer).

    • Pruning mechanism: pruned channels are zeroed in the convolution weights and biases, and a fixed multiplicative gate is applied to zero out their outputs during forward passes.

MIMIC

We apply the MIMIC defense using a clean reference encoder to clean a potentially backdoored encoder. The method first estimates mutual information (MI) between intermediate layer features and the final encoder representation using a MINE estimator to obtain MI-based weights per layer, and then distills the teacher into the student using a combination of (i) cosine feature matching between teacher and student embeddings, (ii) a small InfoNCE loss on two noisy views of the student features, and (iii) an MI-weighted attention-map matching loss over selected encoder layers.

Hyperparameters (MIMIC).

  • Layer selection: Encoder layers whose names contain "layer2", "layer3", or "layer4"; we keep the last ≈6\approx6 convolutional blocks from these layers as the set of MI/attention layers.

  • MI estimation (MINE):

    • MINE network: two MLP encoders for layer and final features (two linear layers with ReLU, hidden size 256), followed by a scalar head.

  • Steps: mine_steps = 200 SGD steps per layer.

  • Batch size: mine_batch = 128.

  • Learning rate: mine_lr = 1×10−31 \times10^{-3}.

  • MI to weights: raw MI values are linearly normalized across layers and converted to per-layer weights

wℓ=base_weight+mi_scale⋅MI^ℓ,w_{\ell} = \text{base\_weight} + \text{mi\_scale} \cdot\widehat{\mathrm{MI}}_{\ell},

with base_weight = 0.3 and mi_scale = 0.7.

  • Distillation loss:

    • Training epochs: epochs = 10.

    • Optimizer: SGD with learning rate lr = 1×10−31 \times10^{-3}, momentum 0.9, weight decay 1×10−41 \times10^{-4}.

    • Clone loss (embedding matching):

Lcos=1−cos⁡(z^s,z^t),λcos=1.0,\mathcal{L}_{\mathrm{cos}} = 1 - \cos\left(\hat{z}_s,\hat{z}_t\right), \qquad\lambda_{\mathrm{cos}} = 1.0,

where zs,ztz_s,z_t are student/teacher encoder features pooled to RD\mathbb{R}^{D} and ⋅^\hat{\cdot} denotes ℓ2\ell_2-normalization.

  • InfoNCE regularizer on two student views:

LInfoNCE=InfoNCE⁡(zs(1),zs(2);T),\mathcal{L}_{\mathrm{InfoNCE}} = \operatorname{InfoNCE}\left(z_s^{(1)},z_s^{(2)};T\right),

with temperature TT = temperature = 0.2 and weight λinfonce\lambda_{\mathrm{infonce}} = 0.2. Two views are generated by adding i.i.d. Gaussian noise with standard deviation 0.06, clamped to [−0.2,0.2][-0.2, 0.2] in pixel space and then clipped back to [0,1][0,1].

  • Attention loss: for each selected layer ℓ\ell, we form attention maps

Aℓ(x)=∥x∥22max⁡i,j∥xi,j∥22∈[0,1],A_{\ell}(x) = \frac{\lVert x\rVert_2^2}{\max_{i,j}\lVert x_{i,j}\rVert_2^2} \in[0,1],

(channel-wise pp = 2 norm, spatially normalized), and minimize

Latt=∑ℓwℓ∥Aℓ(s)−Aℓ(t)∥22,\mathcal{L}_{\mathrm{att}} = \sum_{\ell} w_{\ell}\left\lVert A_{\ell}^{(s)} - A_{\ell}^{(t)}\right\rVert_2^2,

where teacher maps are detached and student maps carry gradients. If spatial resolutions differ, teacher maps are bilinearly resized to match student maps. The attention loss is weighted by λatt\lambda_{\mathrm{att}} = 1.0.

  • Total loss:

L=λcosLcos+λinfonceLInfoNCE+λattLatt.\mathcal{L} = \lambda_{\mathrm{cos}}\mathcal{L}_{\mathrm{cos}} + \lambda_{\mathrm{infonce}}\mathcal{L}_{\mathrm{InfoNCE}} + \lambda_{\mathrm{att}}\mathcal{L}_{\mathrm{att}}.

DeDe

We train DeDe’s reconstruction decoder on clean auxiliary data and use reconstruction discrepancy to filter suspicious inputs. We report AUC, false-positive behavior through the fraction of clean inputs retained, filtered ASR, and ASR among retained inputs. This distinction is essential here: the method retains only 21.19% of clean ResNet50 inputs and 11.08% of clean CLIP inputs, while ASR among retained inputs remains 95.56% and 65.95%, respectively.

MARTINI

We apply MARTINI’s trigger reconstruction and model-hardening pipeline to a finetuned ResNet50 Poison-then-Hide model, then perform the same benign finetuning used elsewhere to test resurfacing. Hardening reduces clean accuracy from 92.21% to 61.97% without reducing ASR; after benign finetuning, clean accuracy recovers to 91.83% and ASR remains 81.50%.

CLIP-Inspector

CLIP-Inspector was designed for prompt-tuned CLIP. We adapt its OOD trigger inversion and repair procedure to our full-model transfer setting and evaluate five CLIP models. It flags all five, preserves 95.07% RESISC accuracy, and reduces true-trigger ASR to 2.15%. We therefore treat it as a successful specialized defense, not as evidence for broad robustness of the attack.

NeurIPS Paper Checklist

  1. Claims

Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?

Answer: [Yes]

Justification: The in-domain, task-conditioned domain-shift, PEFT, and defense experiments support the scoped claims in the abstract and introduction.

Guidelines:

  • The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.

  • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.

  • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.

  • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.

  1. Limitations

Question: Does the paper discuss the limitations of the work performed by the authors?

Answer: [Yes]

Justification: Refer to the Limitations section at the end of the main manuscript for detailed discussion. We address the main limitations with our proposed attack.

Guidelines:

  • The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.

  • The authors are encouraged to create a separate “Limitations” section in their paper.

  • The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.

  • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.

  • The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.

  • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.

  • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.

  • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.

  1. Theory assumptions and proofs

Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? Answer: [Yes]

Justification: Assumptions and formal results are stated in Appendix Section A, including the explicit scope and limitations of the theory.

Guidelines:

  • The answer [N/A] means that the paper does not include theoretical results.

  • All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.

  • All assumptions should be clearly stated or referenced in the statement of any theorems.

  • The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.

  • Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.

  • Theorems and Lemmas that the proof relies upon should be properly referenced.

Experimental result reproducibility

Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?

Answer: [Yes]

Justification: The hyperparameters, datasets, and other experimental details for reproduction are included in the Experimental Setup section in the main manuscript as well as Appendix Section B.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.

  • If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.

  • Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.

  • While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.

Open access to data and code

Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?

Answer: [Yes]

Justification: All datasets are publicly available, and the implementation and reproduction commands are available at https://github.com/QixuanJin99/poison-then-hide.

Guidelines:

  • The answer [N/A] means that paper does not include experiments requiring code.

  • Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.

  • While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).

  • The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.

  • The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.

  • The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.

  • At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).

  • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.

Experimental setting/details

Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?

Answer: [Yes]

Justification: Yes all details are provided in the Experimental Setup section in the main manuscript as well as Appendix Section B.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.

  • The full details can be provided either with the code, in appendix, or as supplemental material.

Experiment statistical significance

Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?

Answer: [Yes]

Justification: We report 95% confidence intervals across randomized seeds and exact paired sign-flip tests for the corrected domain-shift comparisons; see Appendix Table 12.

Table 12: Paired comparisons with the closest targeted baseline over ten paired runs, as reported in the rebuttal. The exact one-sided paired sign-flip test for PtH >> baseline is primary. CLIP/Camelyon17 is positive but not significant.

ModelDatasetBaselinennPtH ASRBaseline ASRDifferenceSign-flip pp
ResNet50C17Hibernated1093.42±3.4693.42 \pm3.4689.86±4.4789.86 \pm4.47+3.56±2.62+3.56 \pm2.620.0176
ResNet50UCMFAB1085.84±13.9885.84 \pm13.9819.41±7.1519.41 \pm7.15+66.43±12.71+66.43 \pm12.710.0039
CLIPC17FAB1072.14±7.4872.14 \pm7.4865.34±4.9665.34 \pm4.96+6.80±6.11+6.80 \pm6.110.0625
CLIPUCMNeuBA1054.80±15.8454.80 \pm15.848.45±0.728.45 \pm0.72+46.36±15.47+46.36 \pm15.470.0078

Table 12.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.

  • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).

  • The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)

  • The assumptions made should be given (e.g., Normally distributed errors).

  • It should be clear whether the error bar is the standard deviation or the standard error of the mean.

  • It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.

  • For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).

  • If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.

Experiments compute resources

Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?

Answer: [Yes]

Justification: Compute resource details are in the Appendix Section B.5.

Guidelines:

  • The answer [N/A] means that the paper does not include experiments.

  • The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.

  • The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.

  • The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).

Code of ethics

Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?

Answer: [Yes]

Justification: The authors have reviewed the code of ethics and confirm that the research follows the code.

Guidelines:

  • The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.

  • If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.

  • The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).

Broader impacts

Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?

Answer: [Yes]

Justification: The introduction, threat model section of methods, and experiments discuss the societal impacts of finetuning-activated attacks, and also possible defenses to guard against them. Guidelines:

  • The answer [N/A] means that there is no societal impact of the work performed.

  • If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.

  • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.

  • The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.

  • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.

  • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).

Safeguards

Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?

Answer: [Yes]

Justification: In our paper, we highlight the security risks of attacks to raise awareness within the community. To reduce the risk of misuse, we do not release any backdoored models. Only code necessary for reproducing our research results is provided. All data we use are publicly available.

Guidelines:

  • The answer [N/A] means that the paper poses no such risks.

  • Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.

  • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.

  • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.

Licenses for existing assets

Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?

Answer: [Yes]

Justification: Licenses for all datasets used are in Appendix Section B.2.

Guidelines:

  • The answer [N/A] means that the paper does not use existing assets.

  • The authors should cite the original paper that produced the code package or dataset.

  • The authors should state which version of the asset is used and, if possible, include a URL.

  • The name of the license (e.g., CC-BY 4.0) should be included for each asset.

  • For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.

  • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.

  • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.

  • If this information is not available online, the authors are encouraged to reach out to the asset’s creators.

New assets

Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?

Answer: [Yes]

Justification: We release documented code and reproduction commands at https://github.com/QixuanJin99/poison-then-hideunder the MIT License.

Guidelines:

  • The answer [N/A] means that the paper does not release new assets.

  • Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.

  • The paper should discuss whether and how consent was obtained from people whose asset is used.

  • At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.

Crowdsourcing and research with human subjects

Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?

Answer: [N/A]

Justification: Our work does not involve crowdsourcing or research with human subjects.

Guidelines:

  • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.

  • Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.

  • According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.

Institutional review board (IRB) approvals or equivalent for research with human subjects

Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?

Answer: [N/A]

Justification: Our work does not involve research that require IRB approval or equivalent.

Guidelines:

  • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.

  • Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.

  • We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.

  • For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.

Declaration of LLM usage

Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.

Answer: [N/A]

Justification: The core method does not involve LLMs.

Guidelines:

  • The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.

  • Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.

References

  1. [1]Shaobo Zhang, Yimeng Pan, Qin Liu, Zheng Yan, Kim-Kwang Raymond Choo, and Guojun Wang. Backdoor attacks and defenses targeting multi-domain ai models: A comprehensive review. ACM Computing Surveys, 57(4):1–35, 2024.DOI
  2. [2]Micah Goldblum, Dimitris Tsipras, Chulin Xie, Xinyun Chen, Avi Schwarzschild, Dawn Song, Aleksander Madry, Bo Li, and Tom Goldstein. Dataset security for machine learning: Data poisoning, backdoor attacks, and defenses. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(2):1563–1580, 2022.DOI
  3. [3]Yiming Li, Yong Jiang, Zhifeng Li, and Shu-Tao Xia. Backdoor learning: A survey. IEEE transactions on neural networks and learning systems, 35(1):5–22, 2022.DOI
  4. [4]Daizong Liu, Mingyu Yang, Xiaoye Qu, Pan Zhou, Yu Cheng, and Wei Hu. A survey of attacks on large vision-language models: Resources, advances, and future trends. IEEE Transactions on Neural Networks and Learning Systems, 2025.DOI
  5. [5]Fuzhen Zhuang, Zhiyuan Qi, Keyu Duan, Dongbo Xi, Yongchun Zhu, Hengshu Zhu, Hui Xiong, and Qing He. A comprehensive survey on transfer learning. Proceedings of the IEEE, 109(1):43–76, 2020.arxiv.org/abs/1911.02685
  6. [6]Muhammad Awais, Muzammal Naseer, Salman Khan, Rao Muhammad Anwer, Hisham Cholakkal, Mubarak Shah, Ming-Hsuan Yang, and Fahad Shahbaz Khan. Foundation models defining a new era in vision: a survey and outlook. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025.DOI
  7. [7]Xin Yi, Shunfan Zheng, Linlin Wang, Gerard de Melo, Xiaoling Wang, and Liang He. Nlsr: Neuron-level safety realignment of large language models against harmful fine-tuning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 25706–25714, 2025.
  8. [8]Tiansheng Huang, Sihao Hu, Fatih Ilhan, Selim Furkan Tekin, and Ling Liu. Harmful fine-tuning attacks and defenses for large language models: A survey. arXiv preprint arXiv:2409.18169, 2024.arxiv.org/abs/2409.18169
  9. [9]Jinyuan Jia, Yupei Liu, and Neil Zhenqiang Gong. Badencoder: Backdoor attacks to pre-trained encoders in self-supervised learning. In 2022 IEEE Symposium on Security and Privacy (SP), pages 2043–2059. IEEE, 2022.arxiv.org/abs/2108.00352
  10. [10]Siyuan Liang, Jiawei Liang, Tianyu Pang, Chao Du, Aishan Liu, Mingli Zhu, Xiaochun Cao, and Dacheng Tao. Revisiting backdoor attacks against large vision-language models from domain shift. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 9477–9486, 2025.arxiv.org/abs/2406.18844
  11. [11]Jiashu Xu, Mingyu Ma, Fei Wang, Chaowei Xiao, and Muhao Chen. Instructions as backdoors: Backdoor vulnerabilities of instruction tuning for large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 3111–3126, 2024.arxiv.org/abs/2305.14710
  12. [12]Shuai Zhao, Meihuizi Jia, Luu Anh Tuan, Fengjun Pan, and Jinming Wen. Universal vulnerabilities in large language models: Backdoor attacks for in-context learning. arXiv preprint arXiv:2401.05949, 2024.arxiv.org/abs/2401.05949
  13. [13]Le Feng, Sheng Li, Zhenxing Qian, and Xinpeng Zhang. Robust backdoor injection with the capability of resisting network transfer. Information Sciences, 612:594–611, 2022.DOI
  14. [14]Linyang Li, Demin Song, Xiaonan Li, Jiehang Zeng, Ruotian Ma, and Xipeng Qiu. Backdoor attacks on pre-trained models by layerwise weight poisoning. arXiv preprint arXiv:2108.13888, 2021.arxiv.org/abs/2108.13888
  15. [15]Rui Ning, Jiang Li, Chunsheng Xin, Hongyi Wu, and Chonggang Wang. Hibernated backdoor: A mutual information empowered backdoor attack to deep neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10309–10318, 2022.
  16. [16]Zhengyan Zhang, Guangxuan Xiao, Yongwei Li, Tian Lv, Fanchao Qi, Zhiyuan Liu, Yasheng Wang, Xin Jiang, and Maosong Sun. Red alarm for pre-trained models: Universal vulnerability to neuron-level backdoor attacks. Machine Intelligence Research, 20(2):180–193, 2023.DOI
  17. [17]Thibaud Gloaguen, Mark Vero, Robin Staab, and Martin Vechev. Finetuning-activated backdoors in llms. arXiv preprint arXiv:2505.16567, 2025.
  18. [18]Yuanshun Yao, Huiying Li, Haitao Zheng, and Ben Y Zhao. Latent backdoor attacks on deep neural networks. In Proceedings of the 2019 ACM SIGSAC conference on computer and communications security, pages 2041–2055, 2019.DOI
  19. [19]Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
  20. [20]Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Baolin Wu, Andrew Y Ng, et al. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, page 7. Granada, 2011.
  21. [21]Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
  22. [22]Gong Cheng, Junwei Han, and Xiaoqiang Lu. Remote sensing image scene classification: Benchmark and state of the art. Proceedings of the IEEE, 105(10):1865–1883, 2017.DOI
  23. [23]Yi Yang and Shawn Newsam. Bag-of-visual-words and spatial extensions for land-use classification. In Proceedings of the 18th SIGSPATIAL international conference on advances in geographic information systems, pages 270–279, 2010.DOI
  24. [24]Geert Litjens, Peter Bandi, Babak Ehteshami Bejnordi, Oscar Geessink, Maschenka Balkenhol, Peter Bult, Altuna Halilovic, Meyke Hermsen, Rob Van de Loo, Rob Vogels, et al. 1399 h&e-stained sentinel lymph node sections of breast cancer patients: the camelyon dataset. GigaScience, 7(6):giy065, 2018.DOI
  25. [25]Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, et al. Wilds: A benchmark of in-the-wild distribution shifts. In International conference on machine learning, pages 5637–5664. PMLR, 2021.arxiv.org/abs/2012.07421
  26. [26]Eduardo Dadalto. resnet18_cifar10. https://huggingface.co/edadaltocg/resnet18_cifar10, 2024. Pretrained ResNet-18 on CIFAR-10, test accuracy ≈ 94.98%, MIT License.
  27. [27]TorchVision maintainers and contributors. Torchvision: Pytorch’s computer vision library. https://github.com/pytorch/vision, 2016.
  28. [28]Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021.
  29. [29]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.arxiv.org/abs/2304.07193
  30. [30]Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y Zhao. Neural cleanse: Identifying and mitigating backdoor attacks in neural networks. In 2019 IEEE symposium on security and privacy (SP), pages 707–723. IEEE, 2019.DOI
  31. [31]Shiwei Feng, Guanhong Tao, Siyuan Cheng, Guangyu Shen, Xiangzhe Xu, Yingqi Liu, Kaiyuan Zhang, Shiqing Ma, and Xiangyu Zhang. Detecting backdoors in pre-trained encoders. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16352–16362, 2023.arxiv.org/abs/2303.15180
  32. [32]Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Fine-pruning: Defending against backdooring attacks on deep neural networks. In International symposium on research in attacks, intrusions, and defenses, pages 273–294. Springer, 2018.arxiv.org/abs/1805.12185
  33. [33]Tingxu Han, Weisong Sun, Ziqi Ding, Chunrong Fang, Hanwei Qian, Jiaxun Li, Zhenyu Chen, and Xiangyu Zhang. Mutual information guided backdoor mitigation for pre-trained encoders. IEEE Transactions on Information Forensics and Security, 2025.arxiv.org/abs/2406.03508
  34. [34]Sizai Hou, Songze Li, and Duanyi Yao. DeDe: Detecting backdoor samples for SSL encoders via decoders. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20675–20684, June 2025.arxiv.org/abs/2411.16154
  35. [35]Guanghong Tao, Siyuan Cheng, Guangyu Shen, Yingqi Liu, Shengwei An, Zhuo Zhang, Zhenting Wang, Hanxi Guo, and Xiangyu Zhang. Mitigating backdoor attacks via trigger reconstruction and model hardening. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 580–590, March 2026.DOI
  36. [36]Akshit Jindal, Saket Anand, Chetan Arora, and Vikram Goyal. CLIP-Inspector: Model-level backdoor detection for prompt-tuned CLIP via OOD trigger inversion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2026.arxiv.org/abs/2604.09101
  37. [37]Tianyu Gu, Brendan Dolan-Gavitt, and Siddharth Garg. Badnets: Identifying vulnerabilities in the machine learning model supply chain. arXiv preprint arXiv:1708.06733, 2017.arxiv.org/abs/1708.06733
  38. [38]Aniruddha Saha, Akshayvarun Subramanya, and Hamed Pirsiavash. Hidden trigger backdoor attacks. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 11957–11965, 2020.arxiv.org/abs/1910.00033
  39. [39]Hossein Souri, Liam Fowl, Rama Chellappa, Micah Goldblum, and Tom Goldstein. Sleeper agent: Scalable hidden trigger backdoors for neural networks trained from scratch. Advances in Neural Information Processing Systems, 35:19165–19178, 2022.arxiv.org/abs/2106.08970
  40. [40]Jonas Geiping, Liam Fowl, W Ronny Huang, Wojciech Czaja, Gavin Taylor, Michael Moeller, and Tom Goldstein. Witches’ brew: Industrial scale data poisoning via gradient matching. arXiv preprint arXiv:2009.02276, 2020.arxiv.org/abs/2009.02276
  41. [41]Yingqi Liu, Shiqing Ma, Yousra Aafer, Wen-Chuan Lee, Juan Zhai, Weihang Wang, and Xiangyu Zhang. Trojaning attack on neural networks. In 25th Annual Network And Distributed System Security Symposium (NDSS 2018). Internet Soc, 2018.DOI
  42. [42]Anh Nguyen and Anh Tran. Wanet–imperceptible warping-based backdoor attack. arXiv preprint arXiv:2102.10369, 2021.arxiv.org/abs/2102.10369
  43. [43]Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. Targeted backdoor attacks on deep learning systems using data poisoning. arXiv preprint arXiv:1712.05526, 2017.arxiv.org/abs/1712.05526
  44. [44]Khoa Doan, Yingjie Lao, and Ping Li. Backdoor attack with imperceptible input and latent modification. Advances in Neural Information Processing Systems, 34:18944–18957, 2021.
  45. [45]Zhendong Zhao, Xiaojun Chen, Yuexin Xuan, Ye Dong, Dakui Wang, and Kaitai Liang. Defeat: Deep hidden feature backdoor attacks by imperceptible perturbation and latent representation constraints. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15213–15222, 2022.DOI
  46. [46]Siddhant Garg, Adarsh Kumar, Vibhor Goel, and Yingyu Liang. Can adversarial weight perturbations inject neural backdoors. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, pages 2029–2032, 2020.DOI
  47. [47]Zih ao Liu, Tianhao Wang, Mengdi Huai, and Chenglin Miao. Backdoor attacks via machine unlearning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 14115–14123, 2024.DOI
  48. [48]Jiawang Bai, Kuofeng Gao, Shaobo Min, Shu-Tao Xia, Zhifeng Li, and Wei Liu. Badclip: Trigger-aware prompt learning for backdoor attacks on clip. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 24239–24250, 2024.arxiv.org/abs/2311.16194
  49. [49]Zhen Guo, Abhinav Kumar, and Reza Tourani. Persistent backdoor attacks in continual learning. In 34th USENIX Security Symposium (USENIX Security 25), pages 6379–6397, 2025.arxiv.org/abs/2409.13864
  50. [50]Hritik Bansal, Nishad Singhi, Yu Yang, Fan Yin, Aditya Grover, and Kai-Wei Chang. Cleanc... Mitigating data poisoning attacks in multimodal contrastive learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 112–123, 2023.arxiv.org/abs/2303.03323
  51. [51]Zeyang Sha, Xinlei He, Pascal Berrang, Mathias Humbert, and Yang Zhang. Fine-tuning is all you need to mitigate backdoor attacks. arXiv preprint arXiv:2212.09067, 2022.arxiv.org/abs/2212.09067
  52. [52]Lujia Shen, Shouling Ji, Xuhong Zhang, Jinfeng Li, Jing Chen, Jie Shi, Chengfang Fang, Jianwei Yin, and Ting Wang. Backdoor pre-trained models can transfer to all. arXiv preprint arXiv:2111.00197, 2021.DOI
  53. [53]Kunbei Cai, Md Hafizul Islam Chowdhury, Zhenkai Zhang, and Fan Yao. Deepvenom: Persistent dnn backdoors exploiting transient weight perturbations in memories. In 2024 IEEE Symposium on Security and Privacy (SP), pages 2067–2085. IEEE, 2024.DOI
  54. [54]Hao Wang, Shangwei Guo, Jialing He, Hangcheng Liu, Tianwei Zhang, and Tao Xiang. Model supply chain poisoning: Backdooring pre-trained models via embedding indistinguishability. In Proceedings of the ACM on Web Conference 2025, pages 840–851, 2025.DOI
  55. [55]Mingli Zhu, Siyuan Liang, and Baoyuan Wu. Breaking the false sense of security in backdoor defense through re-activation attack. Advances in Neural Information Processing Systems, 37: 114928–114964, 2024.arxiv.org/abs/2405.16134
  56. [56]ME Falagas, KZ Vardakas, and PI Vergidis. Under-diagnosis of common chronic diseases: prevalence and impact on human health. International journal of clinical practice, 61(9): 1569–1579, 2007.pubmed.ncbi.nlm.nih.gov/17686096
  57. [57]Laleh Seyyed-Kalantari, Haoran Zhang, Matthew BA McDermott, Irene Y Chen, and Marzyeh Ghasssemi. Underdiagnosis bias of artificial intelligence algorithms applied to chest radiographs in under-served patient populations. Nature medicine, 27(12):2176–2182, 2021.
  58. [58]Ross Wightman. Pytorch image models. https://github.com/huggingface/pytorch-image-models, 2019.
  59. [59]Alec Radford, Jong Wook Kim, Chris Hallacy, A. Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In ICML, 2021.arxiv.org/abs/2103.00020
  60. [60]Mehdi Cherti, Romain Beaumont, Ross Wightman, Mitchell Wortsman, Gabriel Ilharco, Cade Gordon, Christoph Schuhmann, Ludwig Schmidt, and Jenia Jitsev. Reproducible scaling laws for contrastive language-image learning. arXiv preprint arXiv:2212.07143, 2022.DOI
  61. [61]Yige Li, Xixiang Lyu, Nodens Koren, Lingjuan Lyu, Bo Li, and Xingjun Ma. Neural attention distillation: Erasing backdoor triggers from deep neural networks. arXiv preprint arXiv:2101.05930, 2021.arxiv.org/abs/2101.05930

Paper details

vlnc:W_dzwheu2p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 12

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents