A vulnerability exists in Large Language Model (LLM) safety alignment mechanisms where the combination of Task-Oriented Prompts (ToP) and few-shot demonstrations significantly degrades defense effectiveness against jailbreak attacks. When few-shot examples (in-context learning) are appended to system prompts that explicitly define safety as a task objective (ToP), the model's attention to the safety instruction is diluted due to the "lost in the middle" phenomenon and attention entropy growth…
Source: arXiv