Deceiving LLM through Compositional Instruction with Hidden Attacks
Open Access
- 13 February 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Autonomous and Adaptive Systems
Abstract
Recently, large language models (LLMs) have demonstrated promising applications in the autonomous driving (AD) domain, including language-based interactions and decision-making. Ensuring they safely handle harmful inputs is crucial before formal deployment. However, research reveals emerging hand-crafted jailbreak attacks, which pack harmful prompts into harmless instructions, can bypass LLMs’ security mechanisms and elicit harmful responses. To deeply understand such jailbreaks, this paper introduces a Compositional Instruction Attack (CIA) framework to generalize them, and develop two CIA jailbreaking methods to automatically generate tailored jailbreak prompts for each harmful prompt. Then, this paper builds the first CIA question-answering (CIAQA) dataset with 2.7K multiple-choice questions of 900 successful jailbreaks, for assessing LLMs’ ability to identify underlying harmful intents, harmfulness, and task priority in CIA jailbreaks. Combined with experimental analysis on CIAQA and other datasets, this paper concludes three possible reasons for the failure of LLM defenses against CIAs. Finally, we propose an intent-based defense paradigm (IBD), enabling LLMs to defend against CIA by leveraging its capability to identify intents. Experimental results show CIA can achieve attack success rates (ASR) of 95%+ and 85%+ in AD and common harmful scenarios for three well-known LLMs (GPT-4, GPT-3.5, and Llama2-70b-chat), and IBD reduces ASR by 74%+.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- DriveGPT4: Interpretable End-to-End Autonomous Driving Via Large Language ModelIEEE Robotics and Automation Letters, 2024
- TrafficGPT: Viewing, processing and interacting with traffic foundation modelsTransport Policy, 2024
- Model-Assisted Learning for Adaptive Cooperative Perception of Connected Autonomous VehiclesIEEE Transactions on Wireless Communications, 2024
- MASTERKEY: Automated Jailbreaking of Large Language Model Chatbots2024
- Joint Computation Offloading and Resource Allocation for Edge-Cloud Collaboration in Internet of Vehicles via Deep Reinforcement LearningIEEE Systems Journal, 2023
- Why So Toxic?2022
- Joint RAN Slicing and Computation Offloading for Autonomous Vehicular Networks: A Learning-Assisted Hierarchical ApproachIEEE Open Journal of Vehicular Technology, 2021
- Challenges in Detoxifying Language Models2021
- Bot-Adversarial Dialogue for Safe Conversational Agents2021
- SDN/NFV-Empowered Future IoV With Enhanced Communication, Computing, and CachingProceedings of the IEEE, 2019