Inference optimization aims to minimize the latency and resource consumption of LLM inference while preserving output quality, making large-scale deployment practical and cost-effective. However, optimized execution can introduce small numerical inconsistencies from the original model. We reveal that this inconsistency not only causes the model's outputs to diverge, but more critically can introduce hidden backdoors. The backdoor remains dormant under standard unoptimized execution and is activated only when inference optimization is enabled, allowing it to evade existing backdoor detection pipelines. We first introduce the Input-Specific Optimization Backdoor (ISOB) to demonstrate that optimization-induced differences can cause wrong predictions. However, ISOB remains input-specific and cannot establish a universal optimization-triggered backdoor. To overcome this limitation, we design the Universal Optimization Backdoor (UOB). The backdoored model stays benign under unoptimized execution but activates when inference optimization is enabled. We conduct extensive experiments across seven mainstream open-source LLMs, four tasks, and three optimization backends. UOB reaches up to 100\% attack success while largely preserving clean accuracy. To mitigate this vulnerability, we design three defense methods that reduce the backdoor ASR to at most 0.02 while preserving clean accuracy. These results reveal inference optimization as a new LLM security attack surface and motivate defenses against test-deployment disagreement.
Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation
School of Cyber Science and Technology(网络安全科学与技术学院);Harbin Institute of Technology(哈尔滨工业大学);Peng Cheng Laboratory(鹏城实验室);University of Luxembourg(卢森堡大学)
Adaptive Attacks on Trusted Monitors Subvert AI Control Protocols
MATS;EPFL(瑞士联邦理工学院);ELLIS Institute Tübingen & Max Planck Institute for Intelligent Systems(图宾根ELLIS研究所及图宾根马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心);University of Tübingen(图宾根大学)
INK: Inheritable Natural Backdoor Attack Against Model Distillation
Institute of Computer Application, China Academy of Engineering Physics(中国工程物理研究院计算机应用研究所);Faculty of Electronic and Information Engineering, Xi’an Jiaotong University(西安交通大学电子与信息工程学院);School of Cyberspace Security, Beijing University of Posts and Telecommunications(北京邮电大学网络空间安全学院)
针对可信数据集蒸馏可阻断传统投毒后门的问题,本文提出 INK,以自然图像方差为触发器,在无训练数据访问权时实现可从教师迁移到学生的干净图像、干净标签攻击,蒸馏后 ASR 仍超 98%。
Evil from Within: Machine Learning Backdoors through Hardware Trojans
Berlin Institute for the Foundations of Learning and Data (BIFOLD)(柏林学习与数据基础研究所);Max Planck Institute for Security and Privacy (MPI-SP)(马克斯·普朗克安全与隐私研究所)
FedSurrogate: Backdoor Defense in Federated Learning via Layer Criticality and Surrogate Replacement
The University of Manchester, UK(英国曼彻斯特大学);Institute for Infocomm Research, A*STAR, Singapore(新加坡信息通信研究所);Monash University, Australia(澳大利亚墨尔本大学);COSIC, KU Leuven, Belgium(比利时列日大学COSIC实验室)
FLEDGE: Ledger-based Federated Learning Resilient to Inference and Backdoor Attacks
The University of Texas Rio Grande Valley(德克萨斯大学里奥格兰德谷分校);Technical University of Darmstadt(达姆施塔特工业大学);KOBIL GmbH(KOBIL有限公司);The University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)