Metraipolis › archive › dc_b7e28ab75b9f
AttentionSwitch: Jailbreak Defense for LLMs via Joint Learning of Sparse Attention-Head Selection and Scaling — arXiv:2611.08752
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.08752
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-09T22:33:42.563Z
- SHA-256 of the archived text
fecc5326fcc60bacc42a60238d8cf5f745dfdb1a1ed014beaf47f8030e6b003b- Stable URL of this page
https://metraipolis.com/documento/dc_b7e28ab75b9f
How to cite
AttentionSwitch: Jailbreak Defense for LLMs via Joint Learning of Sparse Attention-Head Selection and Scaling — arXiv:2611.08752 — arXiv (en), https://arxiv.org/abs/2611.08752 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b7e28ab75b9f (Metraipolis archive dc_b7e28ab75b9f, sha256 fecc5326fcc60bacc42a60238d8cf5f745dfdb1a1ed014beaf47f8030e6b003b)
BibTeX
@misc{dcb7e28ab75b9f,
title = {AttentionSwitch: Jailbreak Defense for LLMs via Joint Learning of Sparse Attention-Head Selection and Scaling — arXiv:2611.08752},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.08752},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b7e28ab75b9f; sha256 fecc5326fcc60bacc42a60238d8cf5f745dfdb1a1ed014beaf47f8030e6b003b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.08752. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language models have achieved remarkable performance across a wide range of tasks, yet they remain susceptible to jailbreak attacks that circumvent safety mechanisms and elicit harmful or unintended outputs. Although safety can be improved through model fine-tuning, such approaches can be computationally expensive and may degrade previously acquired capabilities through catastrophic forgetting. Recent jailbreak defenses have therefore explored targeted interventions on specific model components associated with unsafe behavior. However, existing approaches typically decouple two inherently related decisions: where to intervene and how to modify the selected components. Such sequential optimization may be suboptimal because the optimal intervention location can depend on the intervention applied there, and vice versa. In this work, we introduce AttentionSwitch, the first jailbreak defense to jointly optimize intervention sites and strengths within a frozen LLM. Specifically, AttentionSwitch learns a sparse set of attention heads together with query-conditioned multiplicative scaling factors, allowing the outputs of the selected heads to be either attenuated or amplified without altering the directions of their representations. Across popular language models and jailbreak attacks, AttentionSwitch outperforms existing defenses, with particularly strong results when training data is scarce. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI) ; Computation and Language (cs.CL); Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2611.08752 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-09T22:30:47.254Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).