[Paper Review] Prompt Packer: Deceiving LLMs through Compositional Instruction with Hidden Attacks
This paper introduces Compositional Instruction Attacks (CIA), a novel method to deceive large language models (LLMs) by embedding harmful instructions within seemingly benign, multi-intentional prompts. Using T-CIA and W-CIA transformation techniques that mimic talking or writing tasks, the attack achieves over 91% success rates on GPT-4, ChatGPT, and ChatGLM2-6B, exposing critical vulnerabilities in LLM alignment to hidden malicious intents.
Recently, Large language models (LLMs) with powerful general capabilities have been increasingly integrated into various Web applications, while undergoing alignment training to ensure that the generated content aligns with user intent and ethics. Unfortunately, they remain the risk of generating harmful content like hate speech and criminal activities in practical applications. Current approaches primarily rely on detecting, collecting, and training against harmful prompts to prevent such risks. However, they typically focused on the "superficial" harmful prompts with a solitary intent, ignoring composite attack instructions with multiple intentions that can easily elicit harmful content in real-world scenarios. In this paper, we introduce an innovative technique for obfuscating harmful instructions: Compositional Instruction Attacks (CIA), which refers to attacking by combination and encapsulation of multiple instructions. CIA hides harmful prompts within instructions of harmless intentions, making it impossible for the model to identify underlying malicious intentions. Furthermore, we implement two transformation methods, known as T-CIA and W-CIA, to automatically disguise harmful instructions as talking or writing tasks, making them appear harmless to LLMs. We evaluated CIA on GPT-4, ChatGPT, and ChatGLM2 with two safety assessment datasets and two harmful prompt datasets. It achieves an attack success rate of 95%+ on safety assessment datasets, and 83%+ for GPT-4, 91%+ for ChatGPT (gpt-3.5-turbo backed) and ChatGLM2-6B on harmful prompt datasets. Our approach reveals the vulnerability of LLMs to such compositional instruction attacks that harbor underlying harmful intentions, contributing significantly to LLM security development. Warning: this paper may contain offensive or upsetting content!
Motivation & Objective
- To expose the vulnerability of LLMs to multi-intentional adversarial prompts that conceal harmful instructions beneath innocuous surfaces.
- To develop automated, parameter-free methods for generating such deceptive prompts at scale.
- To evaluate the effectiveness of these attacks on leading LLMs like GPT-4, ChatGPT, and ChatGLM2-6B.
- To demonstrate that current alignment mechanisms fail to detect underlying malicious intentions in composite instructions.
- To provide a foundation for improving LLM safety through red teaming and intent recognition research.
Proposed method
- Proposes Compositional Instruction Attacks (CIA) as a framework to combine multiple instructions, embedding harmful intent within a superficially harmless instruction.
- Introduces T-CIA (Talking-CIA), which uses psychological principles—specifically the similarity-attraction effect—to infer and adopt negative personas that make LLMs more likely to comply with harmful requests.
- Develops W-CIA (Writing-CIA), which disguises harmful prompts as writing tasks (e.g., completing a novel) using in-context learning to mask malicious intent.
- Employs automatic prompt generation without model parameter access, enabling scalable red teaming of LLMs.
- Validates attack success using safety assessment and harmful prompt datasets across multiple LLMs.
- Uses human evaluation to confirm that LLMs’ judgments are consistent with human annotations, ensuring reliability of results.
Experimental results
Research questions
- RQ1Can LLMs be deceived by composite instructions that combine harmless and harmful intentions?
- RQ2To what extent do current alignment mechanisms fail to detect hidden malicious intent in multi-intentional prompts?
- RQ3How effective are T-CIA and W-CIA in generating undetectable adversarial prompts that bypass safety filters?
- RQ4Does repetition of attacks increase the likelihood of success due to decoding randomness?
- RQ5Can psychological principles like the similarity-attraction effect be leveraged to manipulate LLM behavior?
Key findings
- CIA achieved an attack success rate of 95%+ on safety assessment datasets, demonstrating high effectiveness in evading detection.
- On harmful prompt datasets, the attack success rate reached 83%+ for GPT-4, 91%+ for ChatGPT (gpt-3.5-turbo), and 91%+ for ChatGLM2-6B.
- T-CIA achieved a 90.2% consistency score with human evaluation, indicating reliable and consistent model behavior under attack.
- W-CIA showed a consistency score of 82.0% with human evaluation, confirming its reliability in generating deceptive writing-based attacks.
- The attack success rate increased with repetition, indicating that decoding randomness amplifies vulnerability to compositional attacks.
- Successful T-CIA attacks were more semantically concentrated in persona space, suggesting that similarity-based filtering could be a defense mechanism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.