English

SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer

Cryptography and Security 2025-03-04 v4 Artificial Intelligence Computation and Language

Abstract

Although pre-training achieves remarkable performance, it suffers from task-agnostic backdoor attacks due to vulnerabilities in data and training mechanisms. These attacks can transfer backdoors to various downstream tasks. In this paper, we introduce maxEntropy\mathtt{maxEntropy}, an entropy-based poisoning filter that mitigates such risks. To overcome the limitations of manual target setting and explicit triggers, we propose SynGhost\mathtt{SynGhost}, an invisible and universal task-agnostic backdoor attack via syntactic transfer, further exposing vulnerabilities in pre-trained language models (PLMs). Specifically, SynGhost\mathtt{SynGhost} injects multiple syntactic backdoors into the pre-training space through corpus poisoning, while preserving the PLM's pre-training capabilities. Second, SynGhost\mathtt{SynGhost} adaptively selects optimal targets based on contrastive learning, creating a uniform distribution in the pre-training space. To identify syntactic differences, we also introduce an awareness module to minimize interference between backdoors. Experiments show that SynGhost\mathtt{SynGhost} poses significant threats and can transfer to various downstream tasks. Furthermore, SynGhost\mathtt{SynGhost} resists defenses based on perplexity, fine-pruning, and maxEntropy\mathtt{maxEntropy}. The code is available at https://github.com/Zhou-CyberSecurity-AI/SynGhost.

Cite

@article{arxiv.2402.18945,
  title  = {SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer},
  author = {Pengzhou Cheng and Wei Du and Zongru Wu and Fengwei Zhang and Libo Chen and Zhuosheng Zhang and Gongshen Liu},
  journal= {arXiv preprint arXiv:2402.18945},
  year   = {2025}
}

Comments

17 pages, 16 figures, 12 tables, accepted at NAACL 2025 Findings

R2 v1 2026-06-28T15:04:15.556Z