Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wang, Haoyu, Wu, Bingzhe, Bian, Yatao, Chang, Yongzhe, Wang, Xueqian, Zhao, Peilin
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929473944813568
author Wang, Haoyu
Wu, Bingzhe
Bian, Yatao
Chang, Yongzhe
Wang, Xueqian
Zhao, Peilin
author_facet Wang, Haoyu
Wu, Bingzhe
Bian, Yatao
Chang, Yongzhe
Wang, Xueqian
Zhao, Peilin
contents Large Language Models (LLMs) are implicit troublemakers. While they provide valuable insights and assist in problem-solving, they can also potentially serve as a resource for malicious activities. Implementing safety alignment could mitigate the risk of LLMs generating harmful responses. We argue that: even when an LLM appears to successfully block harmful queries, there may still be hidden vulnerabilities that could act as ticking time bombs. To identify these underlying weaknesses, we propose to use a cost value model as both a detector and an attacker. Trained on external or self-generated harmful datasets, the cost value model could successfully influence the original safe LLM to output toxic content in decoding process. For instance, LLaMA-2-chat 7B outputs 39.18% concrete toxic content, along with only 22.16% refusals without any harmful suffixes. These potential weaknesses can then be exploited via prompt optimization such as soft prompts on images. We name this decoding strategy: Jailbreak Value Decoding (JVD), emphasizing that seemingly secure LLMs may not be as safe as we initially believe. They could be used to gather harmful data or launch covert attacks.
format Preprint
id arxiv_https___arxiv_org_abs_2408_10668
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation
Wang, Haoyu
Wu, Bingzhe
Bian, Yatao
Chang, Yongzhe
Wang, Xueqian
Zhao, Peilin
Cryptography and Security
Artificial Intelligence
Large Language Models (LLMs) are implicit troublemakers. While they provide valuable insights and assist in problem-solving, they can also potentially serve as a resource for malicious activities. Implementing safety alignment could mitigate the risk of LLMs generating harmful responses. We argue that: even when an LLM appears to successfully block harmful queries, there may still be hidden vulnerabilities that could act as ticking time bombs. To identify these underlying weaknesses, we propose to use a cost value model as both a detector and an attacker. Trained on external or self-generated harmful datasets, the cost value model could successfully influence the original safe LLM to output toxic content in decoding process. For instance, LLaMA-2-chat 7B outputs 39.18% concrete toxic content, along with only 22.16% refusals without any harmful suffixes. These potential weaknesses can then be exploited via prompt optimization such as soft prompts on images. We name this decoding strategy: Jailbreak Value Decoding (JVD), emphasizing that seemingly secure LLMs may not be as safe as we initially believe. They could be used to gather harmful data or launch covert attacks.
title Probing the Safety Response Boundary of Large Language Models via Unsafe Decoding Path Generation
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2408.10668