mlsanityData to 14 Oct 2026

Feint and Attack: Attention-Based Strategies for Jailbreaking and Protecting LLMs

arXiv 2410.16327 ↗First posted 18 Oct 2024cs.CR cs.AI cs.CLcited by 5

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Jailbreak attack can be used to access the vulnerabilities of Large Language Models (LLMs) by inducing LLMs to generate the harmful content. And the most common method of the attack is to construct semantically ambiguous prompts to confuse and mislead the LLMs. To access the security and reveal the intrinsic relation between the input prompt and the output for LLMs, the distribution of attention weight is introduced to analyze the underlying reasons. By using statistical analysis methods, some novel metrics are defined to better describe the distribution of attention weight, such as the Attention Intensity on Sensitive Words (Attn_SensWords), the Attention-based Contextual Dependency Score (Attn_DepScore) and Attention Dispersion Entropy (Attn_Entropy). By leveraging the distinct characteristics of these metrics, the beam search algorithm and inspired by the military strategy "Feint and Attack", an effective jailbreak attack strategy named as Attention-Based Attack (ABA) is proposed. In the ABA, nested attack prompts are employed to divert the attention distribution of the LLMs. In this manner, more harmless parts of the input can be used to attract the attention of the LLMs. In addition, motivated by ABA, an effective defense strategy called as Attention-Based Defense (ABD) is also put forward. Compared with ABA, the ABD can be used to enhance the robustness of LLMs by calibrating the attention distribution of the input prompt. Some comparative experiments have been given to demonstrate the effectiveness of ABA and ABD. Therefore, both ABA and ABD can be used to access the security of the LLMs. The comparative experiment results also give a logical explanation that the distribution of attention weight can bring great influence on the output for LLMs.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 22 of its 36 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

22 of 36 references.

Closest ancestors · 16

Same direction, newest first

  1. 2024HSF: Defending against Jailbreak Attacks with Hidden State Filtering31 Aug
  2. 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis16 Jun
  3. 2024Understanding Jailbreak Success: A Study of Latent Space Dynamics in Large Language Models13 Jun
  4. 2024Distract Large Language Models for Automatic Jailbreak Attack13 Mar
  5. 2024SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding14 Feb
  6. 2024GUARD: Role-playing to Generate Natural-language Jailbreakings to Test Guideline Adherence of Large Language Models5 Feb
  7. 2024Revisiting Jailbreaking for Large Language Models: A Representation Engineering Perspective12 Jan
  8. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMs12 Jan
  9. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
  10. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
  11. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
  12. 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
4 more
  1. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
  2. 2023Detecting Language Model Attacks with Perplexity27 Aug
  3. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 6

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  3. 2023Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMscited by 91
  4. 2022Entropy-based Attention Regularization Frees Unintended Bias Mitigation from Listscited by 55
  5. 2023A Survey of Robustness and Safety of 2D and 3D Deep Learning Models Against Adversarial Attackscited by 19
  6. 2021An Adaptive Graph Pre-training Framework for Localized Collaborative Filteringcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024What Features in Prompts Jailbreak LLMs? Investigating the Mechanisms Behind Attacks
  2. 2025AttentionDefense: Leveraging System Prompt Attention for Explainable Defense Against Novel Jailbreaks
  3. 2024AttackEval: How to Evaluate the Effectiveness of Jailbreak Attacking on Large Language Models
  4. 2026Depth Charge: Jailbreak Large Language Models from Deep Safety Attention Heads
  5. 2025Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignment
  6. 2024AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulation
  7. 2024You Know What I'm Saying: Jailbreak Attack via Implicit Reference
  8. 2024Multi-round jailbreak attack on large language models