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

*Zhengxing Li, David J Miller, Guangmingmei Yang, George Kesidis*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153774) · [Open on the map](../papers.html#p153774)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Backdoor Detection in LLMs](../pgroup/441.md) · Type: new method · Keywords: LLM backdoor detection, trigger inversion, class subspace orthogonalization, post-training security, discrete token optimization

Areas: [Safety & Security](../areas/safety.md) › Language Model Security › Backdoor security

## Summary
CSO-LLM introduces class subspace orthogonalization to improve backdoor detection and trigger inversion in LLMs by enhancing sensitivity and specificity and implicitly blacklisting target tokens.

## Explained to a 5-year-old
Some people make computer programs that can talk, like big language models. Sometimes someone can hide a secret command in the program that makes it do something bad. It's hard to find these secret commands because the program works with words and there are many possible word combinations. The researchers created a new way to look for these secret commands that also helps avoid mistakes and finds the bad words without needing a list. Their method can find the secret commands and tell what words they use, making the talking programs safer.

## Explained to a 5-year-old, longer
Big computer programs that can write and understand text are called large language models, or LLMs. Sometimes people hide a secret instruction inside these programs so the program will do something harmful when it sees certain words. Finding these hidden instructions is difficult because the program works with words, and there are millions of possible word combinations. Also, it's hard to know which words are dangerous because there isn't a complete list of bad words for every topic. The researchers came up with a new idea that helps look for hidden instructions without needing that list. Their idea works by making sure the program doesn't pay attention to words that point toward a harmful result. They use two ways to search: one that moves smoothly in the space of word meanings, and another that adds words one by one. This helps the search be both accurate and not give false alarms. The method can find real hidden instructions that were placed by attackers. It also tells exactly which words make up the secret trigger. By doing this, the program becomes safer and less likely to be tricked. This makes it easier to trust language models in important applications like answering questions or helping with work.

## For a technical reader
The paper addresses the challenge of detecting and reversing backdoor attacks in large language models, which are typically treated as classifiers. It proposes a plug-and-play orthogonalization technique that improves detector sensitivity and specificity while implicitly filtering out tokens that align with the target class. Two complementary optimization strategies are employed: continuous optimization in the token embedding space and greedy token accretion in the discrete space for trigger inversion. Experiments across multiple LLM classification benchmarks and architectures demonstrate strong detection rates and accurate reconstruction of ground-truth triggers. The approach provides a practical way to enhance LLM security without requiring a pre-defined blacklist of malicious tokens.

## Problem
Detecting and inverting backdoors in large language models is challenging because the input space is discrete and huge, and there is no reliable blacklist of target tokens that could cause false alarms.

## Method
The approach treats LLMs as classifiers and applies class subspace orthogonalization to penalize token selections that align with the target class, performing continuous optimization in embedding space and greedy accretion in discrete token space for detection and inversion.

## Results
The approach achieves strong detection performance and accurate inversion of ground-truth triggers across multiple LLM classification domains and architectures.

## Contributions
It introduces class subspace orthogonalization as a plug-and-play detection paradigm that improves sensitivity and specificity and implicitly blacklists target tokens, along with both continuous and discrete optimization methods for detection and trigger inversion.

## Limitations and assumptions
The method relies on the availability of a domain-specific blacklist of target tokens, which may not be comprehensive, and the discrete token space leads to a combinatorial explosion of possible triggers.

## Practical relevance
Enables more reliable deployment of LLMs by detecting and removing hidden backdoors, improving security for applications that rely on LLM classification.

## Research questions this paper is counted under

- [How can we reliably detect, evaluate, and defend against jailbreak attacks across diverse language model modalities and deployment settings?](../q/69.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153774)
