LGSep 19, 2025

Inverting Trojans in LLMs

arXiv:2509.16203v1h-index: 41
Originality Incremental advance
AI Analysis

This addresses security vulnerabilities in LLMs for AI safety applications, but is incremental as it adapts existing backdoor inversion methods to LLMs.

The paper tackles the problem of detecting and inverting backdoor triggers in large language models (LLMs), which is challenging due to discrete input spaces and combinatorial search issues, and demonstrates that their approach reliably detects and inverts ground-truth triggers.

While effective backdoor detection and inversion schemes have been developed for AIs used e.g. for images, there are challenges in "porting" these methods to LLMs. First, the LLM input space is discrete, which precludes gradient-based search over this space, central to many backdoor inversion methods. Second, there are ~30,000^k k-tuples to consider, k the token-length of a putative trigger. Third, for LLMs there is the need to blacklist tokens that have strong marginal associations with the putative target response (class) of an attack, as such tokens give false detection signals. However, good blacklists may not exist for some domains. We propose a LLM trigger inversion approach with three key components: i) discrete search, with putative triggers greedily accreted, starting from a select list of singletons; ii) implicit blacklisting, achieved by evaluating the average cosine similarity, in activation space, between a candidate trigger and a small clean set of samples from the putative target class; iii) detection when a candidate trigger elicits high misclassifications, and with unusually high decision confidence. Unlike many recent works, we demonstrate that our approach reliably detects and successfully inverts ground-truth backdoor trigger phrases.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes