Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

LT-Defense: Searching-free Backdoor Defense via Exploiting the Long-tailed Effect

LT-Defense detects NLP backdoors without searching for triggers or targets

  • Problem Trigger search is too costly for token prediction models, where the target space is the whole vocabulary of 50265 tokens. Searching each candidate target in turn becomes unacceptable at that scale.
  • Method LT-Defense treats a backdoor target like a head class in long-tailed learning. It measures head features on clean examples only, with no trigger inversion, and flags a model as poisoned when those features look abnormal.
  • Results LT-Defense scored 100.0 on RoBERTa-base under POR with 0/30 false positives and 0/30 false negatives, at 0.9s per model. LMSanitator scored 93.3 at 180.0s.

Why trigger search gets expensive

Most NLP backdoor defenses try to recover a trigger that pushes the model toward one fixed output. The search is slow for two reasons: discrete text triggers are hard to optimise, and the defender has to try each candidate target in turn. With a few classes that cost is tolerable, but it grows with the size of the target space. In token prediction the target space is the whole vocabulary, 50265 tokens here, so searching-based methods become cost-unacceptable.

The authors take a different route and study how a backdoor changes the model's behaviour on clean examples. Their starting point is that poisoned data adds many training points for the target, so the target behaves like a head class in long-tailed learning.

Turning the long-tailed effect into a test

Models trained on imbalanced data tend to predict the head classes, and the authors argue that backdoor attacks create the same conditions. In the authors' account the target class gains data points, its feature space grows, and benign inputs drift toward the attack targets. Because this drift shows up on benign inputs, LT-Defense needs only clean examples and skips trigger inversion.

The attack is written as a joint objective with a clean loss on the original output and a backdoor loss on the attacker's target, weighted by two coefficients. The backdoor term pulls the model toward the attacker's target, which moves the decision boundary toward the poisoned classes.

Head features on clean examples

For each feature, LT-Defense counts the examples where that feature's activation is above zero and divides by N. If that share falls outside the interval between λ1 and λ2, the feature is labelled a head feature, since its activation is stable across examples.

Features can be the embedding vectors of a foundation language model or the output logits of a task-specific model. The head features then feed the two metrics that decide whether they are natural or backdoor-related.

Two metrics for backdoor features

For task-agnostic attacks, the authors argue that PVs change the text embedding process globally, which breaks the distribution of head features. A model whose rate passes the thresholds ts1 and ts2 is classified as poisoned.

For task-related attacks, the average token index of a token is computed by averaging the logits over N examples and then sorting. In benign models this index tracks how often the token appears in the test data, so common tokens such as The, a and this rank high. The Abnormal Token Score takes the absolute difference between the benign index and the test index of a token and divides it by the vocabulary size.

The score is computed for the Top-K indexed tokens, and a model is flagged once an ATS passes the threshold ts3.

Freezing triggered inputs and naming the target

Test-time freezing relies on the point that benign features become more similar to one another under the long-tailed effect. An input is labelled triggered when its cosine similarity to a feature is lower than the cosine similarity between reference features.

For task-related attacks, once abnormal tokens are found, LT-Defense generates subsequent tokens until generation ends. In the running example an OPT-1.3b model, poisoned with AutoPoison, tends to inject a specific URL into each output.

How the experiments are set up

For task-agnostic models the authors use POR, BToP and NeuBA, and for task-related models BToP, PoisonPrompt and AutoPoison. The target models are BERT, RoBERTa, ALBERT and OPT, adapted with P-Tuning-V2 to six downstream datasets. LMSanitator is the baseline for task-agnostic detection, while ONION and LMSanitator serve as baselines for test-time freezing.

The metrics are false positives, false negatives, average detection accuracy and average time, plus benign accuracy and attack success rate before and after defense.

Task-agnostic detection numbers

On RoBERTa-base under POR, LT-Defense scored 100.0 with 0/30 false positives and 0/30 false negatives, at 0.9s per model. On the same setting LMSanitator scored 93.3 at 180.0s, compared to 100.0 for LT-Defense.

The authors attribute this to LMSanitator searching for PVs in a larger space, which makes it miss more poisoned models. On OPT-125m and OPT-350m, the authors report detection comparable to the masked models.

Task-related detection and target prediction

Both AutoPoison types on OPT-350m and OPT-1.3b, with GPT-4-LLM and Dolly-15k, were detected with 0/30 false positives and 0/30 false negatives. On RoBERTa-large with SST-2 under PoisonPrompt, the table reports 5/30 false positives at accuracy 0.92.

The authors attribute the extra false positives on PoisonPrompt to its downstream task, whose training data is narrowed to a few tokens and so already has a long-tailed effect. Synonyms of the favoured tokens, such as useless, worst and best, get flagged as attack targets. The authors suggest filtering the output with the tokens the downstream task selects.

For BToP single-token attacks and AutoPoison refusal attacks, LT-Defense predicted the attack target with 100% precision. For PoisonPrompt on RoBERTa-large the AMR was 0.68, and the predicted list contains many tokens besides the real target.

Test-time freezing cost and attack success

On AG News, LT-Defense reduced ASR to less than 1% in most cases, with only a microsecond-level added time. For RoBERTa-large under BToP, ONION cut ASR from 100.0 to 39.1, while LT-Defense cut it from 100.0 to 0.0.

The authors credit the gap to ONION's assumption that triggers raise the perplexity of the input, which doesn't always hold. LMSanitator and LT-Defense need no prior knowledge of triggers, which the authors see as more robust against task-agnostic attacks. ONION's time grows with input length, LMSanitator needs its PV search beforehand, and LT-Defense adds one feature comparison before output.

How test size and PV settings matter

As the number of test examples grows, the Head-Feature Rate of benign and poisoned models separates quickly and levels off around 500 examples. WikiText and RTE show a similar trend, although WikiText is unlabelled and RTE is labelled. Figure 3 shows the same comparison on RoBERTa-base and RoBERTa-large.

BToP raises the poisoning ratio with more triggers, which strengthens the long-tailed effect. NeuBA keeps the ratio fixed, so more triggers make convergence harder, and POR adds data per trigger, so its rate varies less.

For task-related models the maximum ATS of benign and poisoned models separates as the test size grows, levelling off at 30 to 60 examples.

Adaptive attacks and their limits

The authors designed two adaptive attacks against the Head-Feature Rate and one against the Abnormal Token Score, assuming the attacker knows the defense. One attack reduces the poisoned features of PVs, and the other adds a regularisation term that raises the variance of clean feature activations. Both lower the Head-Feature Rate, but the attack success rate falls quickly, so the attacks fail.

The ATS attack lowers the logits of target tokens on clean inputs, and it bypasses LT-Defense only with a high weight parameter. At that weight the attack success rate drops markedly. The authors note that all these attacks need strong control over training, which they regard as less practical.

Limitations

The largest error is on PoisonPrompt, where LT-Defense produced more false positives. The authors attribute this to the downstream task itself rather than to the detector alone.

The adaptive attacks were tested only in the three forms the authors designed, and they require control over training. Task-related detection covers the listed models and datasets, and the paper reports no other combinations.

The authors plan to extend LT-Defense to image and audio domains, which they have not yet done.

Paper info

Authors
Xu, Yixiao, Fang, Binxing, Li, Mohan, Tang, Keke, Tian, Zhihong
Venue
Advances in Neural Information Processing Systems · Published
First published
2024-12-16
Added
2026-11-26
DOI
10.52202/079017-0117
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Xu, Yixiao, Fang, Binxing, Li, Mohan, Tang, Keke, Tian, Zhihong (2024). LT-Defense: Searching-free Backdoor Defense via Exploiting the Long-tailed Effect. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-0117

BibTeX
@article{yixiao2024defense,
  title = {{LT-Defense: Searching-free Backdoor Defense via Exploiting the Long-tailed Effect}},
  author = {Xu, Yixiao and Fang, Binxing and Li, Mohan and Tang, Keke and Tian, Zhihong},
  year = {2024},
  journal = {Advances in Neural Information Processing Systems},
  doi = {10.52202/079017-0117},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/064f6bcd7d3c72fb187bfca35ba2bfd4-Abstract-Conference.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up