Weak-to-Strong Jailbreaking on Large Language Models

Xuandong Zhao, Xianjun Yang, Tianyu Pang, Chao Du, Lei Li +2 more
2/12/2026

No official code found. Best implementation: XuandongZhao/weak-to-strong (91 stars, MIT, last commit 2025-05-02).

Abstract

Large language models (LLMs) are vulnerable to jailbreak attacks - resulting in harmful, unethical, or biased text generations. However, existing jailbreaking methods are computationally costly. In this paper, we propose the weak-to-strong jailbreaking attack, an efficient inference time attack for aligned LLMs to produce harmful text. Our key intuition is based on the observation that jailbroken and aligned models only differ in their initial decoding distributions. The weak-to-strong attack's key technical insight is using two smaller models (a safe and an unsafe one) to adversarially modify a significantly larger safe model's decoding probabilities. We evaluate the weak-to-strong attack on 5 diverse open-source LLMs from 3 organizations. The results show our method can increase the misalignment rate to over 99% on two datasets with just one forward pass per example. Our study exposes an urgent safety issue that needs to be addressed when aligning LLMs. As an initial attempt, we propose a defense strategy to protect against such attacks, but creating more advanced defenses remains challenging. The code for replicating the method is available at https://github.com/XuandongZhao/weak-to-strong

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2025] Weak-to-Strong Jailbreaking on Large Language Models

9111PythonJan 28, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhao2026weaktostrong,
  title  = {Weak-to-Strong Jailbreaking on Large Language Models},
  author = {Xuandong Zhao and Xianjun Yang and Tianyu Pang and Chao Du and Lei Li and Yu-Xiang Wang and William Yang Wang},
  year   = {2026},
  eprint = {2401.17256},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.17256},
  journal = {ICML 2024 2024}
}

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/2401.17256.svg)](https://codeofpaper.com/paper/2401.17256)

Discussion