CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs
Zhengxing Li, David J. Miller, Guangmingmei Yang, George Kesidis
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,000k 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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.LG
Related papers
Towards Reliable Local Security Agents: Verifiable Post-Training for Linux Privilege Escalation
Shared title terminologycs.CRPhilipp Normann, Andreas Happe, Jürgen Cito et al.
Weight-Space Backdoors in Open-Weight LLMs: Cross-Architecture Attacks and Blind Model Forensics
Shared title terminologycs.CRMohammed Tanveer
SoK: Splitting the Trigger or Adding Attackers? Disentangling Distributed Backdoor Attacks in Federated Learning
Shared title terminologycs.CRZhuotao Lian, Qingkui Zeng, Weiyu Wang
Autonomous Parameter Surgery: How LLMs Implant Selective Backdoors into Language Models
Shared title terminologycs.CRXuyang Liu, Zhiwei Xu, Zirui Li et al.
From Lab to Reality: A Practical Evaluation of Deep Learning Models and LLMs for Vulnerability Detection
Shared title terminologycs.CRChaomeng Lu, Bert Lagaisse
Persistent Jailbreak Backdoor Attack
Shared title terminologycs.CRHaichuan Zhang, Xinyu Sun, Shih-Chieh Dai et al.