Class subspace orthogonalization improves backdoor detection and trigger inversion in LLM classifiers
CSO enhances sensitivity and specificity of backdoor detection and enables accurate trigger inversion for LLMs treated as classifiers
AI/ML arXiv 30 Jun 2026 Method Prototype evidence
Published as “CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs”
Why it matters
Practitioners can certify LLM classifiers as backdoor-free before deployment and recover malicious triggers for remediation.
Summary
CSO methods achieve very high detection rates and low false-positive rates, substantially outperforming prior baselines, and also succeed at accurately inverting ground-truth triggers such as the three-token phrase “Tell me seriously”. The approach works post-training, requires only a small clean sample set, and adds a cosine-similarity penalty that implicitly blacklists target-class tokens. Experiments on four LLMs (Flan-T5-small/large, Qwen3-0.6B/4B) across SST-2 and Yahoo! Topics show detection TPRs up to 10/10 and trigger-token recall up to 30/30 for the triple trigger, while a continuous-space variant runs faster. The paper does not provide a full threat model and notes that detection is not perfect (e.g., 8/10 for one setting) and that the method assumes single-token class responses.
What they found 2
- CSO methods substantially outperform baselines in detection, achieving much higher true-positive rates and low false-positive rates.
“i) CSO methods substantially outperform baselines, both with much higher TPRs and low FPRs;”
- CSO greatly outperforms all baselines in inverting the triple trigger “Tell me seriously”.
“CSO greatly outperforms all baselines (and also achieves strong absolute performance) in inverting the triple “Tell me seriously”.”
Caveats 3
- CSO(continuous) 8 9
- We have assumed the LLM is effectively acting as a classifier, with a fixed, prescribed set of single-token responses.
- One future direction is to reduce the complexity of our inversion approach.
What’s new here 4
- Applies Class Subspace Orthogonalization to LLM classifiers, providing implicit token blacklisting.
- Offers a post-training detection and trigger-inversion framework that does not require clean reference models.
- Combines a discrete greedy token-accretion search with a continuous embedding-space optimizer.
- Demonstrates strong detection and inversion performance on multiple LLM families and public benchmarks.