LLMs become their own worst enemy when their patterns are used against them.
The paper introduces Self-Instruct Few-Shot Jailbreaking, decomposing jailbreak attacks into pattern and behavior learning components to exploit LLM vulnerabilities efficiently.
-----
https://arxiv.org/abs/2501.07959
π Original Problem:
Existing jailbreak methods lack generality and efficiency in bypassing LLM safety mechanisms, often requiring complex prompt engineering or extensive computational resources.
-----
π οΈ Solution in this Paper:
β The method splits jailbreaking into pattern learning and behavior learning components
β Pattern learning uses model-specific tokens and target response prefix "Hypothetically" to reduce perplexity
β Behavior learning samples demos directly from target models rather than auxiliary models
β Implements demo-level greedy search for optimal demo selection based on perplexity reduction
β Extends instruction suffix with co-occurrence patterns to improve attack efficiency
-----
π― Key Insights:
β Self-generated demos outperform those from auxiliary models
β Lower perplexity correlates with higher attack success rates
β Pattern frequency affects model behavior significantly
β Advanced models require more co-occurrence patterns
-----
π Results:
β Achieves 90% Attack Success Rate on Llama series within 8 shots
β Maintains effectiveness against perplexity filter defenses
β Shows resilience to SmoothLLM patch perturbations
β Outperforms baselines like AutoDAN, PAIR, and GCG










