potentialpaper

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 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. 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,000k150{,}000^k kk-tuples to consider with kk 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers recognize the originality and technical value of CSO-LLM. In particular, the CSO penalty provides a principled implicit blacklist mechanism, effectively suppresses class-indicative tokens, and enables recovery of multi-token triggers. Two reviewers consider the paper technically solid and lean toward acceptance.

The main concerns, particularly those raised by Reviewer QRdE, relate to the scope, experimental coverage, computational cost, reproducibility, and robustness to adaptive attacks. These concerns do not necessarily invalidate the core contribution, but they should be addressed clearly in the rebuttal. The current assessment is therefore leaning toward acceptance, provided that the authors clarify the concerns of Reviewer QRdE.

Final justification

After the discussion the ratings are 5, 4 and 4, with 5toY raising by one point and QRdE raising by one point.

The rebuttal was unusually active and addressed the concerns I flagged. Two limitations remain and both reviewers state them plainly. The method still does not handle open ended generation, and the adaptive attack does defeat CSO on its own. Neither undermines the core contribution, which is a well motivated implicit blacklisting mechanism that clearly outperforms the existing baselines on the classifier setting.

I therefore recommend acceptance as a poster. The revision should fold in the new experiments, the runtime and ablation results, the honest account of the adaptive attack, and the broader related work positioning that QRdE suggested.

Area Chair bnmV · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers recognize the originality and technical value of CSO-LLM. In particular, the CSO penalty provides a principled implicit blacklist mechanism, effectively suppresses class-indicative tokens, and enables recovery of multi-token triggers. Two reviewers consider the paper technically solid and lean toward acceptance.

The main concerns, particularly those raised by Reviewer QRdE, relate to the scope, experimental coverage, computational cost, reproducibility, and robustness to adaptive attacks. These concerns do not necessarily invalidate the core contribution, but they should be addressed clearly in the rebuttal. The current assessment is therefore leaning toward acceptance, provided that the authors clarify the concerns of Reviewer QRdE.

Final justification

After the discussion the ratings are 5, 4 and 4, with 5toY raising by one point and QRdE raising by one point.

The rebuttal was unusually active and addressed the concerns I flagged. Two limitations remain and both reviewers state them plainly. The method still does not handle open ended generation, and the adaptive attack does defeat CSO on its own. Neither undermines the core contribution, which is a well motivated implicit blacklisting mechanism that clearly outperforms the existing baselines on the classifier setting.

I therefore recommend acceptance as a poster. The revision should fold in the new experiments, the runtime and ablation results, the honest account of the adaptive attack, and the broader related work positioning that QRdE suggested.

Reviewer QRdEOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents a class subspace orthogonalization (CSO)-based approach for post-training backdoor detection and trigger inversion in LLMs deployed as classifiers with fixed single-token labels. The core contribution is an implicit semantic blacklist mechanism: by penalizing candidate trigger perturbations that align with the target class's intrinsic semantic direction in an internal layer, the method effectively distinguishes naturally class-indicative tokens from genuine backdoor triggers. Two detection schemes are provided—discrete token-space search and continuous embedding-space optimization—and validated on sentiment and topic classification tasks.

Strengths and weaknesses

This paper proposes a class subspace orthogonalization (CSO) approach to post-training backdoor detection and trigger inversion for LLMs used as classifiers with fixed single-token labels. The central idea—penalizing candidate trigger perturbations that align with the target class's intrinsic semantic direction in an internal layer—provides an implicit blacklist mechanism that separates ordinary class-semantic tokens from genuine backdoor triggers. The discrete token-space variant successfully recovers multi-token triggers in controlled classification settings, and a red-teaming procedure is introduced for hyperparameter selection.

Strengths:

  • The CSO penalty effectively suppresses naturally class-indicative tokens while elevating innocuous trigger tokens, as demonstrated by the striking rank improvement of "seriously" from 830 to 2 under the margin-only baseline.
  • The discrete search variant reliably reconstructs multi-token triggers such as "Tell me seriously," outperforming several prior trigger inversion methods in the considered classification tasks.
  • The technical mechanism of using internal layer representations to penalize movement along the target class's semantic direction is clever and provides an explicit rationale for the implicit blacklist effect.

Weaknesses:

  • The method is confined to LLMs used as classifiers with single-token label outputs, avoiding the central difficulty of open-ended generative LLM backdoors, which limits the generality of the claimed defense.
  • Experimental validation is narrow, covering only two classification datasets and two model families, without evaluation on instruction-following, RAG, tool-use scenarios, or more recent instruction-tuned models.
  • The discrete search variant incurs prohibitive computational cost—1400 minutes per model on a small Qwen3-0.6B for binary classification—and the reported timing excludes the additional red-teaming calibration overhead.
  • Reproducibility is significantly hindered by the absence of code, data splits, poisoning seeds, and raw results at submission time, which is problematic given the method's complexity and adapted baselines.
Questions

1. Generality beyond single-token classification

The entire method assumes that the LLM functions as a classifier over a fixed, small set of single-token labels. This is a significant abstraction: in real LLM deployments, backdoors can trigger long-form unsafe generations, tool calls, or agent actions that cannot be reduced to comparing posterior probabilities of a few label tokens. The paper acknowledges this limitation as future work, but the framing throughout suggests a broader LLM backdoor defense.

Could the authors clarify the precise scope of the method and, ideally, discuss whether any component of the CSO penalty could be adapted to settings with multi-token or free-form outputs? If the method is genuinely limited to single-token classification, a substantial narrowing of the claims would be appropriate. Providing even a preliminary discussion of how the margin and penalty terms might be defined for a generative decoding setting—perhaps through sequence-level scoring or constrained decoding—would help assess the method's extensibility.

2. Experimental coverage and representativeness

The evaluation is limited to two text classification datasets (SST-2, Yahoo! Answers) and four models from two families (Flan-T5, Qwen3). This does not reflect the diversity of modern LLM deployments, where backdoors may appear in instruction-following, safety classification, retrieval-augmented generation, or code-related tasks.

What specific criteria guided the choice of these tasks and models? Are there practical reasons—beyond compute constraints—why experiments on more varied instruction-tuned models or at least one instruction-following task were not included? If the authors believe the current results generalize, it would strengthen the paper to articulate the rationale explicitly, or to add a small-scale experiment on a task that better represents how LLMs are used today.

3. Computational cost and the red-teaming overhead

The discrete CSO search requires approximately 1400 minutes per model on Qwen3-0.6B for a binary sentiment task. This is already substantial, and it is unclear whether this figure includes the red-teaming procedure used to select the intrinsic layer and λ. That procedure requires training multiple clean and poisoned model variants, which could add considerable cost.

Can the authors provide a breakdown of the wall-clock time spent on (a) red-teaming calibration versus (b) the actual detection/inversion stage? If the method is intended for practical certification, how would the cost scale to larger models or tasks with more classes? The paper would benefit from a discussion of the feasibility of deploying this approach outside of small-scale academic settings, or from an analysis of which components dominate the computational budget and might be optimized.

4. Reproducibility and comparison fairness

The paper does not release code, data splits, poisoning seeds, or raw detection logs at submission time. Given the complexity of the discrete search, internal layer extraction, and red-teaming calibration—and the fact that several baselines were reimplemented and adapted with modified hyperparameters—this makes it difficult to verify the reported improvements or assess whether baselines were treated fairly.

What is the plan for releasing these artifacts? If they cannot be released immediately, could the authors provide additional details in the rebuttal (e.g., exact prompt templates, tokenizer settings, search hyperparameters, baseline adaptation choices) to improve reproducibility? Clear evidence that the baseline methods received tuning comparable to that of CSO would also strengthen confidence in the comparisons.

5. Adaptive attack robustness and the implicit blacklist assumption

Could the authors clarify the precise conditions under which the anti-correlation property is expected to hold? What would a systematic adaptive evaluation look like—for example, optimizing a trigger to simultaneously maximize attack success and minimize CSO penalty? A discussion of the robustness boundaries would help readers understand when the implicit blacklist assumption can be trusted.

Overall, I would like the authors to scale their experiments to larger models, such as 7B or 14B. If this request is addressed, I will increase my score.

Limitations

yes

Final justification

After considering the rebuttal and discussion, I recommend a score of 4. The additional results on multi-token outputs, instruction-following and safety tasks, BERT, and Qwen3-8B address much of my concern about evaluation scope and scalability. The runtime analysis and ablations also make the practical cost clearer. Some limitations remain. CSO still does not cover open-ended generation, and the adaptive attack presented in the rebuttal can evade CSO itself, although it can be detected by ONION. The calibration and search costs also remain substantial. Overall, the method is original and technically sound, and the new evidence is sufficient for a borderline accept.

Formatting concerns

No concerns

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thanks for carefully reading and helpful comments.

"The CSO penalty.. striking rank improvement..."

Thank you.

"discrete search.. outperform[s]...."

Thank you.

"…technical mechanism.. is clever."

Thank you.

"method is confined to single-token [classifiers]"

We have extended for K variable-length, multi-token responses. This is achieved by: i) defining CSO on the hidden state of the final prompt token; ii) computing each response's joint log-posterior by the chain rule, dividing by the response length, and exponentiating to obtain an average posterior; iii) evaluating margin for 2 multi-token responses as difference between their average posteriors. Results given below. For fully generative LLMs, there are no post-training (PT) backdoor detection and inversion methods – our extension is a step towards this.

On Yahoo! Answers/Qwen3-0.6B, taking class names as the response set (K = 7, excluding classes 0, 3 and 6; lengths 1–4 tokens), target class "Politics & Government" with trigger "Tell me seriously", 2% poisoning rate, gives ASR of 99.6%. CSO detects 5 out of 5 attacked models, with 1 false positive on 5 clean models. On the attacked models, 11/15 true trigger tokens inverted.

"validation is narrow."

We have (or will during phase 2) new experiments on: i) variable-length, multi-token responses (see above); ii) instruction-following; iii) BERT (see rev. Voh8); iv) AI safety; v) Chinese sentiment (see rev. Voh8). We also have ablated N and will on the clean set size. RAG and agentic AI use "fully generative" LLMs – there are no PT detectors for this case.

"discrete search.. prohibitive"

Several methods to greatly decrease complexity: 1) M parallel GPUs reduce computation by a factor ~M; 2) Use the continuous (low cost) method for detection + discrete inversion only for the detected target class. This reduces detection plus inversion time by factor ~K. Together, 1) and 2) reduce by a factor ~MK – for M = 5, K = 7, Qwen3-0.6B on Yahoo, computation time goes from ~23 hours to ~30 minutes. Also, N can be reduced from 20 to 15 with low accuracy loss (see rev. 5toY). We will report an ablation on the clean set size (linear complexity).

"excludes.. red-teaming.. overhead"

Thanks for pointing out this omission. Red-teaming needs: 1) fine-tuning to create L "clean" and L' poisoned models; 2) detection on these L + L' models for G different lambda candidates. Even using continuous-space detector, complexity of red-teaming is high – for L = L' = 10 and G = 5, time for Qwen3-0.6B/SST-2 is 1500 minutes. But using M = 20 GPUs, this reduces to 75 minutes. We will also perform an ablation on L = L'.

"Reproducibility is…hindered…given the method's complexity and adapted baselines."

  1. Our methods are not methodologically complex – they are implemented with a quite modest codebase (see Alg. 1 and Alg. 2). 2) They are fully described in the main paper and Appendix. 3) Re: "adapted baselines", we ran the authors' code. We only deviated from default hyperparameters to improve detection for baselines (decreasing learning rate, or increasing no. of iterations). The exceptions are as follows. For DBS, there is a term evaluated on a clean model in the authors' code, used to avoid false positives. This term is not disclosed in the DBS paper itself. Since clean models are unavailable in practice, we zeroed this term from the DBS detector objective. For the final paper, we will apply our red-teaming and use its "clean" models in order to include this term in their objective. For CLIBE, the "perturbation budget" was set using multiple clean models, unavailable in practice. Instead, we optimized this parameter over a reduced range to prevent extraneous responses and to give best detection performance. Also, we used the default layer setting for CLIBE (⅓ deep into the model). 4) We have created artifacts for our detectors and have made the anonymous link available to the area chair (as per NeurIPS handbook rules).

"framing throughout suggests a broader LLM... defense."

  1. We did not mischaracterize our defense scope – in the abstract: "LLMs treated as classifiers" (an important open case given poor results for baselines); in the Intro.: "the focus here is on LLMs used as classifiers"; and in the Conclusions: "fully generative LLMs [as an] ambitious goal for future work". We in no way mislead readers about our scope. And our methods fill a big gap by greatly improving SoTA detector baselines. 2) We have achieved a multi-token response class extension (see above). 3) While we do not address "fully generative" here, a good solution for it may leverage our ideas here. To respond to the reviewer's critique, we will remove "software generation" as a "high-stakes" LLM application on line 30 of the Intro.

"CSO.. could be adapted to settings with multi-token or free-form outputs."

We have extended CSO for variable-length, multi-token response classes. Re: fully generative, that problem is beyond this paper's scope. One might treat each unique (prompt, response) pair as a "class" and seek to apply ~our framework for that case. But such an approach may be too costly because, for a given domain, the number of such "classes" of interest could be in the thousands or millions.

"instruction following, safety classification [and] two families"

For phase 2, we will include safety classification and instruction following experiments. For the latter, we consider a movie domain and two instructions: "Give the sentiment" and "Predict the genre". A trigger inserted with the instruction "Give the sentiment" causes the LLM to predict the genre.

We also have experiments using a third family – BERT models (see Voh8 response).

"What.. guided the choice of [Qwen?]"

Qwen is a quite popular and performant LLM, given its size. It is a modern (decoder-only) LLM, it is open-weight, and is used in much research work. So we believe this was a quite reasonable choice.

"add a small-scale experiment.."

As indicated, we will add an instruction-following experiment. But RAG or code-related tasks in general use the LLM in fully generative fashion.

"wall-clock time.."

We reported red-teaming execution above. And we have demonstrated strategies for greatly reducing time for detection/inversion and red-teaming. Regarding complexity scaling, in Sec. 5.4, we stated complexity scales linearly with K. And complexity also scales linearly with the time to perform a forward pass through the model (so complexity grows ~linearly with the number of layers).

"several baselines were reimplemented.. modified hyperparameters"

We used authors' code for all baseline implementations, and either used default hyperparameter settings or ones that improve detection for a given baseline. The exceptions to this were described previously.

"evidence.. baseline methods received tuning comparable to.. CSO"

Our novel red-teaming was used to set all CSO hyperparameters. There was no special "tuning" applied to favorably bias the results. We have now made coding artifacts available. For the final paper, we will also apply our novel red-teaming to set hyperparameters for the baseline methods.

"the anti-correlation property"

Anti-correlation is not necessary for CSO to be effective – the backdoor trigger should just have significantly lower correlation with target-class samples than candidate triggers with target-class tokens. We have not developed conditions under which "innocuous" triggers will be anti-correlated with target classes. There is some related literature – if one considers one "prototype" per class, with the prototypes forming a simplex, then all class prototypes have negative pairwise cosine similarities ["Inducing neural collapse in imbalanced learning: do we really need a learnable classifier at the end of deep neural network?", NeurIPS, 2022].

"optimizing a trigger to.. maximize attack success and minimize CSO?"

An adaptive attacker would choose a trigger to maximize CSO (since our detector is hunting for triggers with low CSO). Maximizing CSO is equivalent to choosing triggers intrinsic to the target class ("fabulous magnificent" when target class is "positive"). As we show in Sec. 5.5, while such an attack defeats CSO it is easily detected operationally by ONION (positive-sentiment trigger inserted into a negative movie review has high perplexity, the basis of ONION's detections).

We are working to produce more experimental results during the phase 2 period to meet all the reviewers' requests.

Reviewer QRdE · CommentOpenReview ↗

Thank you for the detailed response. The authors’ clarifications and new results have addressed several of my concerns.

First, the single-token classification limitation has been meaningfully alleviated. The authors extended the response space to variable-length, multi-token class responses of 1–4 tokens and provided a new experiment on Qwen3-0.6B/Yahoo! Answers. CSO detected 5/5 backdoored models, produced one false positive among five clean models, and recovered 11/15 ground-truth trigger tokens. These results provide initial empirical support for extending the method to multi-token class responses.

Second, the authors provided an actionable strategy for mitigating the computational cost. Using the lower-cost continuous detector to first identify the target class, followed by discrete inversion only for that class, can theoretically reduce the detection-and-inversion cost by approximately a factor of (K). Searches over different classes and candidate triggers are also naturally parallelizable. The authors additionally reported the previously omitted cost of the red-teaming calibration procedure, providing a more transparent account of the overall computational burden.

Regarding reproducibility and baseline fairness, the authors stated that they used the baseline authors’ official implementations, explained the specific adaptations made for DBS and CLIBE, and indicated that anonymous artifacts have been provided to the AC. These clarifications alleviate much of my concern regarding the verifiability of the experiments and the fairness of the baseline comparisons.

Regarding related work, model-centric post-training detection and trigger inversion methods, including Neural Cleanse, ABS, UNICORN, and MM-BD, constitute the direct technical background of CSO-LLM [1–4]. I suggest adding a discussion of other defense paradigms developed for classification, including input-level filtering represented by ONION and data-centric poisoned-sample filtering methods such as Meta-Sift and Q-Detection [5–7]. The paper should clarify how these approaches differ from the present work in terms of defense stage, access to the training data, and defense output. Clearly positioning the paper around model-centric post-training detection and inversion would sharpen its technical scope and improve the completeness and objectivity of the related-work discussion.

Given these substantive responses, I have increased my score by one point.

However, I have not yet seen the key additional experimental results promised. In particular, I would like to see evidence of scalability to larger models, such as 7B or 14B models; experiments on instruction-following or AI safety classification; and a stronger adaptive attack in which the attacker explicitly optimizes a trigger to maintain high ASR while evading the CSO penalty. Ablations on the clean-set size, search width (N), and the number of clean and poisoned models used in red-teaming ((L=L')) would also help establish the method’s stability and practical cost.

I have also not yet been able to inspect the complete experimental artifacts, particularly the code, data splits, poisoning seeds, prompt and tokenizer settings, search configurations, and raw detection logs/results. I encourage the authors to continue updating the experimental results and to provide materials that can be directly verified by the reviewers. Once the additional evidence and artifacts sufficiently support the paper’s main claims, I would be happy to reassess the submission and consider a further score increase.

References

[1]. Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y. Zhao. Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks. IEEE Symposium on Security and Privacy, 2019.

[2]. Yingqi Liu, Wen-Chuan Lee, Guanhong Tao, Shiqing Ma, Yousra Aafer, and Xiangyu Zhang. ABS: Scanning Neural Networks for Back-doors by Artificial Brain Stimulation. ACM CCS, 2019.

[3]. Zhenting Wang, Kai Mei, Juan Zhai, and Shiqing Ma. UNICORN: A Unified Backdoor Trigger Inversion Framework. ICLR, 2023.

[4]. Hang Wang, Zhen Xiang, David J. Miller, and George Kesidis. MM-BD: Post-Training Detection of Backdoor Attacks with Arbitrary Backdoor Pattern Types Using a Maximum Margin Statistic. IEEE Symposium on Security and Privacy, 2024.

[5]. Fanchao Qi, Yangyi Chen, Mukai Li, Yuan Yao, Zhiyuan Liu, and Maosong Sun. ONION: A Simple and Effective Defense Against Textual Backdoor Attacks. EMNLP, 2021.

[6]. Yi Zeng, Minzhou Pan, Himanshu Jahagirdar, Ming Jin, Lingjuan Lyu, and Ruoxi Jia. Meta-Sift: How to Sift Out a Clean Subset in the Presence of Data Poisoning? USENIX Security Symposium, 2023.

[7]. Haoqi He, Xiaokai Lin, Jiancai Chen, and Yan Xiao. Q-Detection: A Quantum-Classical Hybrid Poisoning Attack Detection Method. IJCAI, 2025.

Reviewer QRdE · CommentOpenReview ↗

As stated in the Author Responses section of the NeurIPS Main Track Handbook:

Author responses may not contain any identifying information that may violate the double-blind reviewing policy. Do not use links in any part of the response. The only exception is if the reviewers asked for code, in which case you can send an anonymized link to the AC in an Official Comment (make sure all linked files are anonymized).

The authors could therefore consider providing the additional evidence and artifacts to the AC through this permitted channel.

Reviewer Voh8OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a novel post-training defense framework, CSO-LLM, for detecting backdoor attacks and inverting triggers in LLMs used as classifiers. The core innovation is a Class Subspace Orthogonalization (CSO) penalty that suppresses candidate triggers aligned with intrinsic features of the putative target class, thereby serving dual purposes: it significantly boosts detection sensitivity and specificity, and it provides implicit blacklisting of target-typical tokens without requiring a predefined list. The authors develop two optimization-based algorithms—a discrete-space greedy search that performs both detection and trigger inversion, and a more efficient continuous-space gradient descent method for detection only. Extensive experiments on SST-2 and Yahoo! Answers datasets across Flan-T5 and Qwen3 models demonstrate that CSO-based methods substantially outperform existing baselines in both detection accuracy and trigger inversion fidelity—particularly being the only approach that reliably recovers the full three-token innocuous trigger "Tell me seriously." The framework also shows robustness against adaptive attacks, and the paper discusses computational trade-offs and future extensions to generative LLM settings.

Strengths and weaknesses

This paper proposes the CSO-LLM framework, which is the first to adapt Class Subspace Orthogonalization (CSO) to the tasks of backdoor detection and trigger inversion in LLMs. It demonstrates outstanding originality in both the design of the penalty term and the "implicit blacklisting" mechanism, and achieves the first successful inversion of multi-token ground-truth triggers. In terms of quality, the experiments cover 4 models, 2 datasets, and 6 baselines with comprehensive design, but the discrete optimization variant incurs prohibitive computational cost (~23 hours per model) and completely fails against strong adaptive attacks. The clarity is generally good, yet the hyperparameter selection procedure is overly complex and the threshold setting lacks rigorous statistical justification. Regarding significance, the work addresses a practically important certification problem under the no-training-data-access scenario, but its contribution is confined to single-token classification LLMs without covering generative settings, limiting its practical utility. Overall, this is a highly original and methodologically solid work, but its real-world impact is constrained by the scope of applicability and efficiency bottlenecks.

Questions
  1. The paper observes that innocuous ground-truth triggers exhibit negative correlation with target-class intrinsic features, which underpins the CSO penalty design. However, the paper does not explain why this occurs—is it related to trigger semantics, perplexity, or pre-training statistics? Deeper analysis would help elevate this from empirical observation to a predictable principle.

  2. The experiments are limited to two English text classification datasets (SST-2 and Yahoo) and only test the single-token classification output setting. Can the CSO framework remain effective in the following scenarios: (1) multilingual classification tasks (e.g., Chinese sentiment analysis)? (2) fixed label sets with multi-token outputs (e.g., "very positive," "somewhat negative")? (3) different architectures (e.g., encoder-only BERT, or larger 70B models)?

  3. The discrete optimization method requires ~23 hours per model, which may be unacceptable in practice. Are there acceleration strategies (e.g., parallelization, smaller candidate pool N, early termination)? Ablation studies showing the trade-off between runtime and performance under varying N and J would help clarify the practical usability boundaries.

Limitations

yes

Final justification

Keep the score unchanged.

Formatting concerns

no

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thanks for your careful reading and helpful critical comments.

"It demonstrates outstanding originality… and achieves the first successful inversion of multi-token ground-truth triggers."

These comments are very gratifying to us.

"but the discrete optimization variant incurs prohibitive computational cost"

In the final paper (and during the rebuttal phase) we will report on multiple mechanisms for greatly decreasing CSO complexity: 1) Using the continuous method for detection, with discrete inversion then only applied if a detection is made, and then only for the detected target class. This reduces complexity of discrete inversion by a factor of K (# classes) and reduces total time for detection plus inversion by a factor of nearly K (the continuous method has negligible complexity compared to the discrete one); 2) parallelization of the discrete token search across M GPUs reduces computation by a factor close to M. Together, these strategies reduce complexity by a factor of approximately M×K – e.g., for M = 5, K = 7, for Qwen3-0.6B on the Yahoo dataset, we can now report that computation time goes from ~23 hours down to ~30 minutes. Note that reducing the number of clean samples or the N hyperparameter also gives significant complexity reduction, but may reduce solution quality. We discuss ablations on these below.

"completely fails against strong adaptive attacks"

"fabulous magnificent", when injected into a negative movie review, produces high perplexity. Thus, while such an attack defeats CSO-LLM, if CSO-LLM is coupled with a simple test-time detection method such as perplexity-based ONION, this adaptive attack is easily detected (as we report in Sec. 5.3).

"the hyperparameter selection procedure is overly complex"

Our novel hyperparameter selection is not methodologically complex – it is a principled red-teaming strategy. Regarding its computational overhead, there are two main components: 1) fine-tuning to create L "clean" and L' poisoned models; 2) detection applied to these L + L' models for G different lambda candidates. Even though the detector used is our continuous-space one, the complexity of this hyperparameter selection is pretty high – for L = L' = 10 and G = 5, the execution on Qwen3-0.6B/SST-2 is 1500 minutes, but parallelizing with M = 20 GPUs, this is reduced to 75 minutes. This can be further decreased by reducing L = L', but possibly with detection accuracy loss.

We will report these complexity reduction results in the Appendix (and point to them in the main paper body).

We also note that prior detection methods either: 1) do not discuss how they set hyperparameters; 2) unrealistically choose them to give best detection performance; or 3) require access to clean models – if known clean models exist for a given domain, one can simply use them with, then, no need to perform backdoor detection.

"threshold setting lacks rigorous statistical justification"

When K is not too small (e.g., K > 4, with (K-1) statistics available for estimating a null distribution) we use an order statistic p-value test with the standard 0.05 threshold (95% confidence). Theoretically, this sets the false positive rate to 5%. Thus, our setting does have statistical justification. Note also that the false positive rates achieved by our methods agree fairly well with this (ranging from 0% - 20%) and are much lower than for other methods. Finally, the detection threshold is in fact another hyperparameter – for small K (< 5) it can be chosen using the red-teaming strategy (e.g., to maximize true detections for a given false positive rate). We will explain this and use this approach to set the threshold for the binary (K = 2) sentiment classification tasks, in the final paper.

"contribution is confined to single-token classification LLMs"

We have successfully extended our approach to address a finite set (K) of variable-length, multi-token responses. As hinted at in Sec. 6, this extension is achieved by: i) defining the CSO penalty on the hidden state of the final prompt token; ii) computing each response's joint log-posterior by the chain rule, dividing it by the response length, and exponentiating to obtain the average posterior; iii) evaluating margin between two multi-token responses as the difference between their average posteriors. For the Yahoo! Answers Topics dataset, this discrete CSO method successfully detects multi-token response backdoor attacks.

Also, for the fully "generative" case, there are no existing post-training backdoor detection and inversion methods – but this extension is progress toward such a solution.

We evaluated on Yahoo! Answers Topics with Qwen3-0.6B, taking the dataset's original class names as the response set (K = 7, excluding classes 0, 3 and 6; response lengths 1–4 tokens under the Qwen3 tokenizer). We consider an all-to-one, dirty-label backdoor targeting class 9 ("Politics & Government") with the trigger phrase "Tell me seriously" at a 2% poisoning rate, yielding an average attack success rate of 99.6%. The discrete CSO method detects 5 out of 5 attacked models (TPR = 100%), with 1 false positive among the 5 clean models. On the 5 attacked models, the reverse-engineered triggers recover 11 of the 15 ground-truth trigger tokens (5 models × 3 tokens per trigger).

"negative correlations"

  • Low correlations (but not necessarily negative ones) are expected, since an innocuous trigger is not associated with the target class. Our method does not truly rely on negative correlations – only on correlations that are (much) lower for innocuous triggers than for trigger candidates strongly associated with the putative target class.
  • We are capturing semantics by measuring cosine similarity in a deep layer of the model.
  • Source-class samples with our innocuous trigger "Tell me seriously" injected indeed have lower perplexity than when a target-class-intrinsic phrase such as "unconstitutional legislation" is injected (mean PPL 143 vs. 311, versus 132.09 with no injection for target class "Politics & Government"; this was measured using ONION).

"Chinese sentiment analysis"

For Chinese sentiment analysis, we evaluate on ChnSentiCorp with Qwen3-0.6B, taking "positive" and "negative" as the response set (K = 2; response lengths 1 token under the Qwen3 tokenizer). We consider an all-to-one, dirty-label backdoor targeting the "positive" class with the innocuous trigger phrase "特别提示" (2 tokens) at a 2% poisoning rate, yielding an average attack success rate of 99.9%. The discrete CSO method detects 5 out of 5 attacked models, with no false positives among the 5 clean models. On the attacked models, the reverse-engineered triggers recover 9 of the 10 ground-truth trigger tokens (5 models × 2 tokens per trigger, 90%).

"fixed label sets with multi-token outputs"

This is reported above.

"BERT models"

Regarding BERT-based models, we fine-tune bert-base-uncased [Devlin] on SST-2 to train five clean models and five dirty-label backdoored models. For the backdoored models, we use the trigger "Tell me seriously" with target label positive. The clean models achieve an avg accuracy of 92.1%, while the backdoored models achieve an avg clean accuracy of 91.9% and an ASR of 100%. Our detector correctly detects all five backdoored models, with one false positive among the five clean models. For trigger inversion, the phrase "notified me seriously" appears among the top-5 recovered tripletons for all five backdoored models, where "notified" is semantically close to "tell".

[Devlin]: Devlin et al., BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, NAACL 2019.

Results on HateBERT are pending. Results for this will be reported during the phase 2 period and included in the appendix.

"70B models"

We have limited compute resources, which makes a 70B experiment prohibitively expensive. Note that our method's complexity depends on the model size primarily through the token-dictionary size and the number of layers.

"acceleration strategies.. Ablation studies [on N]"

We will report the following ablation study on N, the beam search parameter for token accretion, which generally trades off complexity and solution quality. Using Qwen3-0.6B on SST-2 with the trigger "Tell me seriously" under 3% dirty-label poisoning (see Table 14 for model details), we obtain: at N = 20, 10/10 attacked models are detected and 25/30 trigger tokens recovered; at N = 15, 9/10 and 22/30; at N = 10, 3/10 and 5/30; at N = 5, 1/10 and 3/30. Performance is thus largely retained at N = 15, which cuts runtime by 25%. Moreover, during the phase 2 rebuttal, we will also report ablation on the clean set size per class – complexity is also linear in this size. We will also report ablations on the convergence threshold (which determines J) in the final paper's appendix.

We are working to produce more experimental results during the phase 2 period to meet all the reviewers' requests.

Authors · CommentOpenReview ↗

Ablation on L and 8b models experiments

"Ablation on LL and L′L'"

We will add the following ablation to the Experiments section, with the full sweep reported in the Appendix. We sweep L=L′∈{2,4,6,8,10}L = L' \in \{2, 4, 6, 8, 10\} on a backdoored Qwen3-0.6B (SST-2, dirty-label attack, trigger "Tell me seriously", 2% poisoning rate, target class "positive"), letting our procedure select λ\lambda from {5,10,20,30}\{5, 10, 20, 30\} in each run. For L=L′≥4L = L' \geq 4, the procedure consistently selects a single value (λ=30\lambda = 30), and both metrics are identical across the entire range (10/10 detection, 25/30 inversion). At L=L′=2L = L' = 2, two candidates (λ∈{20,30}\lambda \in \{20, 30\}) pass the criterion, and the λ=20\lambda = 20 branch degrades to 7/10 detection and 18/30 inversion. Red-teaming complexity can thus be reduced by a factor of 5×5\times with little or no loss in detection accuracy.

"Evidence of scalability to larger models, such as 7B or 14B models"

As promised, we have now completed experiments at the 8B scale. We evaluate our method on Qwen3-8B models fine-tuned on SST-2, training 4 clean models and 4 dirty-label backdoored models. For the backdoored models we use the trigger "Tell me seriously" with a poisoning rate of 2%, the instruction "What is the sentiment of this review?", and "positive" as the target label. The clean models achieve an average accuracy of 93.7% and an ASR of 0%; the backdoored models maintain comparable clean accuracy (93.0%) on trigger-free inputs while achieving an ASR of 100%. We set λ=30\lambda = 30, layer =26= 26 (informed by red-teaming), and τ=0.9\tau = 0.9. Our discrete method correctly detects all 4 poisoned models, produces 0 false positives on the 4 clean models, and recovers 11 out of 12 true trigger tokens across the 4 poisoned models.

Reviewer 5toYOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper tackles post-training backdoor detection and trigger inversion for LLM classifiers, where the discrete input space and the absence of a reliable token blacklist hinder existing methods. The authors extend Class Subspace Orthogonalization (CSO) to LLMs by penalizing feature perturbations aligned with source-to-target class directions in an internal decoder layer, achieving implicit blacklisting. Two optimization-based defenses, i.e., greedy discrete-token accretion and continuous embedding-space gradient descent, are proposed, achieving strong detection and accurate trigger recovery across multiple LLM architectures and classification domains.

Strengths and weaknesses

Strengths

  1. The paper convincingly shows via Table 1 that naive margin-based detection fails on LLMs because target-class-aligned tokens (e.g., "Effective", "infectious") confound trigger inversion, motivating the need for an implicit blacklisting mechanism.
  2. Rather than directly porting image-domain CSO, the redesigned penalty measures directional shifts from source to target features, which is a principled adaptation that aligns naturally with the discrete, sequential nature of token-level perturbations.
  3. Table 2's qualitative analysis—where the ground-truth trigger "seriously" jumps from rank 830 to rank 2 after applying CSO while target-aligned distractors collapse—provides direct, interpretable validation of the core claim without manual thresholding.

Weaknesses

  1. Evaluation is largely confined to Flan-T5-small in a single-token-response classifier setup; there is no validation on modern decoder-only LLMs (Llama, Qwen), no open-ended generation, and no comparison against recent LLM-specific defenses or activation-steering baselines.
  2. Deployment requires choosing the intrinsic-feature layer (4th4th decoder layer of Flan-T5-small), the trade-off coefficient λ=50\lambda = 50, beam width, and convergence threshold σ\sigma—all picked empirically with no sensitivity study or principled selection rule across architectures.
  3. The continuous version can yield un-projectable embeddings (no readable trigger), the discrete version costs B∗VB*V forwards per step (prohibitive for 100k+ vocab models), and the detection threshold itself still implicitly relies on reference models
Questions

Please kindly see weaknesses

Limitations

Yes

Final justification

I find the motivation well-grounded and the rebuttal satisfactorily addresses my main concerns. Although the method remains somewhat intricate and reliant on several hyper-parameters, on balance I am willing to raise my score by one point.

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thanks for your careful reading and helpful critical comments.

"redesigned penalty measures directions shifts.. which is a principled adaptation"

Thank you for recognizing the innovation in our work relative to earlier work on image-domain CSO.

"Table 2.. provides direct, interpretable validation of the core claim"

Thank you for recognizing the significance of Table 2's results.

"Evaluation is largely confined to Flan-T5-small.. no modern decoder-only… Qwen"

With due respect, we did evaluations on Flan-T5-small, Flan-T5-large, Qwen3-0.6B and Qwen3-4B. Please see our results in Tables 3 and 5 in the main paper and in Tables 13-18, 20-24, 27, and 28 in the Appendix (all non-Flan-T5-small results). Our results are not largely confined to Flan-T5-small, and we have as many decoder-only (Qwen) results as Flan-T5 results. We also now have results for a BERT model (in the response to reviewer Voh8).

"no open-ended generation"

We recently successfully extended our approach to address a finite set (K) of variable-length, multi-token responses. As hinted at in Sec. 6, this extension is achieved by: i) defining the CSO penalty on the hidden state of the final prompt token; ii) computing each response's joint log-posterior by the chain rule, dividing it by the response length, and exponentiating to obtain the average posterior; iii) evaluating margin between two multi-token responses as the difference between their average posteriors. For Yahoo! Answers Topics dataset, this extension of our discrete method successfully detects and inverts triggers for multi-token response backdoor attacks. We evaluate on Yahoo! Answers Topics with Qwen3-0.6B, taking the dataset's original class names as the response set (K = 7, excluding classes 0, 3 and 6; response lengths 1–4 tokens under the Qwen3 tokenizer). We consider an all-to-one, dirty-label backdoor targeting class 9 ("Politics & Government") with the trigger phrase "Tell me seriously" at a 2% poisoning rate, yielding an average attack success rate of 99.6%. The discrete CSO method detects 5 out of 5 attacked models (TPR = 100%), with 1 false positive among the 5 clean models. On the 5 attacked models, the reverse-engineered triggers recover 11 of the 15 ground-truth trigger tokens (5 models × 3 tokens per trigger).

Also, for the fully (open-ended) generative case, there are to our knowledge no published post-training backdoor detection and inversion methods. But this multi-token response extension is a step toward solving the "fully generative" backdoor detection problem.

"no comparison against recent LLM-specific defenses"

We compared with CLIBE, which was published in 2025. If the reviewer identifies a particular recent method, we will gladly include it in our experiments for the final paper or in phase 2. Please also note that our method performs post-training backdoor detection and trigger inversion, with no access to the training set. Much recent work develops test-time trigger detection methods or backdoor mitigation methods – these are very different problems from what we tackle in this paper.

"Deployment requires choosing [hyperparameters] – all picked empirically with no sensitivity study or principled selection rule."

With due respect, in Sec. 4.3, we described our novel, principled red-teaming paradigm for choosing our detectors' hyperparameters (lambda and layer), which was used in all of our experiments. They were not selected "empirically". Please note that many existing detection approaches either: i) choose hyperparameters to maximize detection performance (which is cheating); ii) do not discuss how hyperparameters are chosen; or iii) assume the availability of clean models for the given domain. But if clean models exist for the domain, there is no need to perform detection on the model in question when one can simply use one of the clean models. Our red-teaming approach is principled, and it does not rely on availability of clean models.

Moreover, we have now performed an ablation experiment on N (beam width) to assess sensitivity to its setting. Using Qwen3-0.6B on SST-2 with the trigger "Tell me seriously" under 3% dirty-label poisoning (see Table 14 for model details), we obtain: at N = 20, 10/10 attacked models are detected and 25/30 trigger tokens recovered; at N = 15, 9/10 and 22/30; at N = 10, 3/10 and 5/30; at N = 5, 1/10 and 3/30. Performance is thus largely retained at N = 15, which cuts runtime by 25%. Finally, we are performing an ablation on the clean set size per class and will report the results for this during phase 2 of the rebuttal.

"The continuous version can yield un-projectable embeddings (no readable trigger)."

Indeed, we have found that "decoding" the estimated, embedded triggers does not yield accurate inversion. This is precisely why we only proposed and evaluated the continuous version as a detector, not as an inverter. We will report on this and emphasize this point explicitly in the final paper.

"the detection threshold itself still implicitly relies on reference models"

When K is not too small (e.g., K > 4 classes, with (K-1) statistics available for estimating a null distribution), we are using an order-statistic p-value test with the standard 0.05 threshold (95% confidence). This was described in Sec. 4.1 of our paper. Theoretically, using a 0.05 threshold sets the false positive rate to 5%. Note that the false positive rates achieved by our methods agree fairly well with this (ranging from 0% - 20% across all our experiments) and are much lower than the FPRs for the comparison methods. So, for sufficiently large K, we do not rely on reference models for setting the detection threshold.

What about for small K? Please note that the detection threshold is in fact another hyperparameter of our detector – thus, it can be chosen using our "red-teaming" hyperparameter selection strategy, along with lambda and the layer. Again, this approach will not rely on any clean reference models. We will explain this solution for the small K case, and use this approach to set the threshold for the 2-class domains, in our final paper. Thanks for raising this issue.

We are working to produce more experimental results, to meet all the reviewers' requests, during the phase 2 rebuttal period.

Reviewer 5toY · CommentOpenReview ↗

Thank you for the detailed and constructive rebuttal. My concerns have been adequately addressed, and I remain positive about this paper.

Authors · CommentOpenReview ↗

Ablation on L and 8b models experiments

"Ablation on LL and L′L'"

We will add the following ablation to the Experiments section, with the full sweep reported in the Appendix. We sweep L=L′∈{2,4,6,8,10}L = L' \in \{2, 4, 6, 8, 10\} on a backdoored Qwen3-0.6B (SST-2, dirty-label attack, trigger "Tell me seriously", 2% poisoning rate, target class "positive"), letting our procedure select λ\lambda from {5,10,20,30}\{5, 10, 20, 30\} in each run. For L=L′≥4L = L' \geq 4, the procedure consistently selects a single value (λ=30\lambda = 30), and both metrics are identical across the entire range (10/10 detection, 25/30 inversion). At L=L′=2L = L' = 2, two candidates (λ∈{20,30}\lambda \in \{20, 30\}) pass the criterion, and the λ=20\lambda = 20 branch degrades to 7/10 detection and 18/30 inversion. Red-teaming complexity can thus be reduced by a factor of 5×5\times with little or no loss in detection accuracy.

"Evidence of scalability to larger models, such as 7B or 14B models"

As promised, we have now completed experiments at the 8B scale. We evaluate our method on Qwen3-8B models fine-tuned on SST-2, training 4 clean models and 4 dirty-label backdoored models. For the backdoored models we use the trigger "Tell me seriously" with a poisoning rate of 2%, the instruction "What is the sentiment of this review?", and "positive" as the target label. The clean models achieve an average accuracy of 93.7% and an ASR of 0%; the backdoored models maintain comparable clean accuracy (93.0%) on trigger-free inputs while achieving an ASR of 100%. We set λ=30\lambda = 30, layer =26= 26 (informed by red-teaming), and τ=0.9\tau = 0.9. Our discrete method correctly detects all 4 poisoned models, produces 0 false positives on the 4 clean models, and recovers 11 out of 12 true trigger tokens across the 4 poisoned models.

Comments on the paper

2 comments
Area Chair bnmV · CommentOpenReview ↗

Dear Reviewers,

Thank you again for the time and care you have put into your reviews. Please read through all of the author responses and consider whether they adequately address the concerns raised in your review. Where appropriate, please continue the discussion with the authors and update your assessment accordingly.

Thank you for your continued engagement and careful consideration.

AC

Authors · CommentOpenReview ↗

More experiments forthcoming

Dear Area Chair:

We did new experiments that we included in our phase 1 responses to the reviewers. But additional experiments, comprehensive of all experiments requested by the reviewers, are forthcoming, and will be sent to the reviewers within the next 2 days...

Thank you... The authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…