Summary
EmbedX, presented at USENIX Security 2025, introduces a novel backdoor attack against large language models called the cross-trigger backdoor. Traditional LLM backdoors rely on fixed words or phrases as triggers, which are easy to detect and behave inconsistently across users. EmbedX instead optimizes a continuous embedding vector as a soft trigger in semantic space: any token or phrase semantically close to this vector (e.g., synonyms of a target word) activates the backdoor, eliminating the need for a fixed keyword. To make poisoned data indistinguishable from normal samples, the method applies latent-space adversarial constraints in both the frequency domain and the gradient domain. The attack was validated on four LLMs and proved effective on both classification and generation tasks while preserving normal model utility on other tasks. The core insight is that manipulating continuous embedding space is stealthier and more general than manipulating discrete tokens, since an entire region of semantic space—rather than a single trigger phrase—can silently activate malicious behavior. This work highlights new challenges for backdoor detection and defense in LLMs.
EmbedX: Cross-Trigger Backdoor Attacks on LLMs (USENIX Security 2025)
EmbedX introduces a new class of LLM backdoor attack — the cross-trigger backdoor.
Why traditional backdoors fall short
Conventional backdoors depend on a fixed word or phrase as the trigger ("whenever you see X, output Y"). This has two problems:
- Different users respond differently to the same trigger word.
- Fixed triggers are relatively easy to detect.
The core innovation: soft triggers in continuous embedding space
EmbedX uses continuous embedding vectors instead of discrete words as soft triggers. A vector is optimized in semantic space such that *all tokens mapping near that vector* activate the backdoor — regardless of the exact word used. Any semantically "close" term (e.g., "happy", "cheerful", "joyful") triggers the backdoor.
To craft poisoned samples that closely resemble normal data, EmbedX applies latent-space adversarial constraints with dual constraints in both the frequency domain and the gradient domain.
Results
The attack was validated on four LLMs:
- Effective on both classification and generation tasks.
- Preserves normal utility on other tasks.
Key insight
Manipulating the continuous space is more stealthy and more general than manipulating the discrete space: an entire semantic region, rather than a single trigger phrase, can silently activate the backdoor.
Reference: [EmbedX / USENIX Security 2025]
This page is an English static mirror generated for search and AI citation.
It may be a full translation or structured summary of the Chinese original.
Canonical interactive discussion lives on the Chinese page:
https://zhichai.net/topic/177619978