mlsanityData to 14 Oct 2026

CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs

arXiv 2606.31309 ↗First posted 30 Jun 2026cs.CR cs.AI cs.LGcited by 0

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

While post-training backdoor detection and trigger inversion schemes have been developed for AIs used e.g. for images, there is a paucity of such methods for LLMs. First, the LLM input space is discrete, with up to 150,000^k k-tuples to consider with k the token-length of a putative trigger. Second, one must blacklist tokens typical of the putative target response (class) of an attack, as such tokens may give false detection signals. However, a comprehensive blacklist is not available, in general, for a given domain. We develop a highly effective detection and inversion framework for LLMs treated as classifiers. Central to our approach is class subspace orthogonalization (CSO), a novel plug-and-play paradigm for backdoor detection that serves two fundamental roles when applied to LLMs: i) it enhances both sensitivity and specificity of a baseline detector; ii) it provides a form of implicit blacklisting, as it penalizes against inclusion, in a candidate trigger, of tokens that induce signal perturbations "in the direction of" the putative target class of an attack. One version of our detector performs continuous optimization in token embedding space, while a companion trigger-inversion and detection method performs greedy accretion in discrete token space. Our methods give both strong detection performance and accurate inversion of ground-truth triggers on several LLM classification domains, and for several different LLM architectures.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 18 of its 26 references that are in the map. First posted on arXiv 30 Jun 2026.

Builds on

18 of 26 references.

Closest ancestors · 8

Same direction, newest first

  1. 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar
  2. 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct
  3. 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization18 Nov
  4. 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep
  5. 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models24 Jun
  6. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun
  7. 2022Rethinking the Reverse-engineering of Trojan Triggers27 Oct
  8. 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb

Other references · 10

  1. 2025Qwen3 Technical Reportcited by 8,820
  2. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  3. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  4. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
  5. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  6. 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 166
  7. 2022MM-BD: Post-Training Detection of Backdoor Attacks with Arbitrary Backdoor Pattern Types Using a Maximum Margin Statisticcited by 55
  8. 2023UNICORN: A Unified Backdoor Trigger Inversion Frameworkcited by 46
  9. 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
  10. 2025Improving the Sensitivity of Backdoor Detectors via Class Subspace Orthogonalizationcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Inverting Trojans in LLMs
  2. 2026A Novel Latent-Class Attack and its Detection by Class Subspace Orthogonalization
  3. 2026Removing the NEEDLE in the Haystack: Backdoor Removal in LLMs via Weight Orthogonalisation
  4. 2024BadVim: Unveiling Backdoor Threats in Visual State Space Model
  5. 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features
  6. 2024CEPA: Consensus Embedded Perturbation for Agnostic Detection and Inversion of Backdoors
  7. 2023SoK: A Systematic Evaluation of Backdoor Trigger Characteristics in Image Classification
  8. 2025Lie Detector: Unified Backdoor Detection via Cross-Examination Framework