Lilith: Backdoor Generalization under Training-Inference Trigger Shift

Zhou Feng, Jiahao Chen, Chunyi Zhou, Yuan Su, Tianyu Du, Yuwen Pu, Jianhai Chen, Jinbao Li, Shouling JiarXiv 2026

TL;DR

This paper introduces Lilith, a novel black-box backdoor attack framework that challenges the traditional assumption that a backdoor trigger must look identical at both training and inference time. By poisoning a model with just a single "anchor" trigger during training, Lilith creates a deep latent vulnerability that can be successfully activated at deployment by an entire family of diverse, completely unseen trigger variants.

What Problem Does This Paper Address?

Most existing backdoor attacks rely on exact trigger reuse—the specific pattern injected into the training data (like a small pixel patch or a specific watermark) must be presented exactly the same way at inference time to trigger the malicious target behavior. While some newer attacks introduce trigger diversity, they typically expose these variations during training.

This creates a significant blind spot: Can a backdoor generalize to entirely new trigger variants that the model never saw during training?

If an attacker can achieve this "training-inference trigger shift," it severely undermines current backdoor defenses. Security teams might successfully identify and filter out one specific trigger artifact, only for the attacker to deploy a completely different-looking variant that still activates the same hidden malicious behavior. The authors formalize this problem through the lens of representation geometry, shifting the focus from surface-level trigger robustness to deep behavioral generalization.

Methods

Lilith operates under a strict poison-only, black-box threat model. The attacker cannot control the victim's model architecture, training process, or optimization schedule, and only has access to a disjoint surrogate dataset.

The framework splits the attack into two main phases:

  1. Anchor Vulnerability Induction (Module I): Instead of just optimizing for exact-trigger success, the attacker uses a surrogate model to find a single training trigger (the "anchor") that forces poisoned inputs into a highly compact, well-separated region on the target side of the decision boundary. This is called the anchor basin.
  2. Representation-Aligned Family Construction (Module II): Post-training, the attacker generates a diverse family of inference-time triggers. Crucially, these variants are mathematically screened using the surrogate model to ensure their latent representations fall within the effective reach of the anchor basin, preserving the malicious target decision without ever needing to be exposed to the victim model during training.
Overview of the Lilith framework showing the training-time anchor setup and inference-time family activation.

Datasets

The authors evaluated Lilith across five widely used computer vision benchmarks:

  • CIFAR-10 and CIFAR-100
  • TinyImageNet
  • SVHN (Street View House Numbers)
  • ImageNet-1K

These datasets were tested against various model architectures, including ResNet-18, ResNet-34, VGG13-BN, ViT, and SimpleViT.

Key Insights and Ideas

  • Representation Alignment > Pixel Similarity: Traditional wisdom suggests that triggers must look alike to activate the same backdoor. Lilith proves that pixel-level similarity is neither required nor sufficient. What matters is representation alignment in the model's hidden feature space.
  • The Geometry of Backdoors: The paper models the backdoor as a geometric problem consisting of anchor clearance (how clean and separated the malicious latent space is) and family reach (how far variant triggers stray from the anchor center). If the family reach stays within the anchor clearance, the attack succeeds.
  • Vulnerability Transferability: The underlying geometric vulnerabilities induced by the anchor trigger transfer surprisingly well from a completely disjoint surrogate model to the unknown victim model, validating the feasibility of black-box deployment.
t-SNE visualization showing how both anchor and unseen family triggers map to the same target-associated representation region.

Key Results

Lilith demonstrates exceptional performance across all tested datasets and architectures, significantly outperforming state-of-the-art (SOTA) backdoor attacks under trigger-shift conditions.

  • High Attack Success Rate (ASR): Even at a very low poisoning rate of $\rho = 0.5\%$, Lilith achieves a family-wise activation rate ($\text{ASR}_F$) of over 90% across all 25 dataset-architecture pairs. At a 5% poisoning rate, it nears 100% effectiveness.
  • Minimal Generalization Gap: The Trigger Generalization Gap (TGG)—the difference in success between the training anchor and the unseen inference variants—remains in the low single digits, showing that the malicious behavior generalizes almost perfectly.
  • Defense Evasion: Lilith successfully bypasses popular preprocessing and training-stage defenses (such as STRIP, Spectral Signatures, and Beatrix) because its triggers introduce low visual distortion and do not create easily identifiable statistical anomalies in the feature space.
Comparison of Lilith against SOTA attacks under trigger-specific and trigger-agnostic settings.

Limitations and Future Work

While highly effective, Lilith relies on the assumption of bounded geometry transfer between the surrogate and victim models. If the victim uses an radically different training paradigm (e.g., self-supervised learning or heavy adversarial training), the geometric alignment might degrade, increasing the generalization gap.

The authors note that future work should explore expanding trigger-shift evaluations to non-vision domains, such as Large Language Models (LLMs), and developing representation-level defenses that explicitly disrupt the latent geometry of these target-side activation basins rather than just looking for static trigger artifacts.

Summary updated

BibTeX
@misc{feng2026lilith,
  author = {Zhou Feng and Jiahao Chen and Chunyi Zhou and Yuan Su and Tianyu Du and Yuwen Pu and Jianhai Chen and Jinbao Li and Shouling Ji},
  title = {{Lilith: Backdoor Generalization under Training-Inference Trigger Shift}},
  year = {2026},
  eprint = {2607.26099},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.26099},
}
Figure