Efficient and Stealthy Jailbreak Attacks via Adversarial Prompt Distillation from LLMs to SLMs

Xiang Li, Chong Zhang, Jia Wang, Fangyu Wu, Yushi Li +1 more
5/26/2025
7 citations
cs.CLcs.CR
distillation

Official code: lxgem/Efficient_and_Stealthy_Jailbreak_Attacks_via_Adversarial_Prompt (2 stars, Python, last commit 2025-05-18).

Abstract

Current jailbreak attacks on large language models (LLMs) predominantly rely on LLMs themselves to generate adversarial prompts, creating a critical efficiency bottleneck: each attack requires substantial computational resources and API queries, limiting scalability and practical deployment. To overcome this limitation, we propose Adversarial Prompt Distillation (APD), a novel framework that transfers jailbreaking capabilities from LLMs to small language models (SLMs) for efficient, low-resource attacks.

Show full abstract

APD integrates three key components: (1) masked adversarial knowledge pre-training via LoRA fine-tuning, (2) dynamic temperature-controlled knowledge distillation to bridge architectural gaps, and (3) reinforcement learning-based template optimization for adaptive refinement. Extensive experiments across 12 models show that APD achieves state-of-the-art attack success rates (e.g., 96.4% ASR_k on GPT-4) while dramatically improving efficiency - generating prompts 3.7x faster with 11.3x fewer parameters than teacher models. Our work establishes the first practical framework for lightweight jailbreak attacks, exposes new vulnerabilities in LLM defenses, and provides a scalable testbed for advancing AI safety research. Our code is available at: https://github.com/lxgem/Efficient_and_Stealthy_Jailbreak_Attacks_via_Adversarial_Prompt.

View on arXivView PDF

Code Implementations(1)

Similar Papers

Cite this paper

@article{li2025efficient,
  title  = {Efficient and Stealthy Jailbreak Attacks via Adversarial Prompt Distillation from LLMs to SLMs},
  author = {Xiang Li and Chong Zhang and Jia Wang and Fangyu Wu and Yushi Li and Xiaobo Jin},
  year   = {2025},
  eprint = {2506.17231},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.17231v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.17231.svg)](https://codeofpaper.com/paper/2506.17231)

Discussion