🤖 AI Summary
This work addresses the security alignment of API-based black-box large language models (LLMs), proposing a lightweight jailbreaking method that requires no access to model weights or gradients. The method employs introspective probability perturbation—specifically, manipulating the log-probabilities of the first five output tokens—to systematically circumvent safety constraints. It introduces BiasNet, a plug-in module integrated with zero-shot prompt optimization, enabling the first efficient alignment bypass under purely black-box conditions. Extensive experiments across multiple mainstream closed-source LLMs demonstrate that the approach significantly outperforms existing state-of-the-art methods: it reduces refusal rates by 23.6% and substantially increases malicious response rates. These results validate both the effectiveness and cross-model generalizability of the proposed technique.
📝 Abstract
Large Language Models (LLMs) are trained with safety alignment to prevent generating malicious content. Although some attacks have highlighted vulnerabilities in these safety-aligned LLMs, they typically have limitations, such as necessitating access to the model weights or the generation process. Since proprietary models through API-calling do not grant users such permissions, these attacks find it challenging to compromise them. In this paper, we propose Jailbreaking Using LLM Introspection (JULI), which jailbreaks LLMs by manipulating the token log probabilities, using a tiny plug-in block, BiasNet. JULI relies solely on the knowledge of the target LLM's predicted token log probabilities. It can effectively jailbreak API-calling LLMs under a black-box setting and knowing only top-$5$ token log probabilities. Our approach demonstrates superior effectiveness, outperforming existing state-of-the-art (SOTA) approaches across multiple metrics.