Counterfactual Explainable Incremental Prompt Attack Analysis on Large Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Shu, Dong, Jin, Mingyu, Chen, Tianle, Zhang, Chong, Zhang, Yongfeng
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913434042368000
author Shu, Dong
Jin, Mingyu
Chen, Tianle
Zhang, Chong
Zhang, Yongfeng
author_facet Shu, Dong
Jin, Mingyu
Chen, Tianle
Zhang, Chong
Zhang, Yongfeng
contents This study sheds light on the imperative need to bolster safety and privacy measures in large language models (LLMs), such as GPT-4 and LLaMA-2, by identifying and mitigating their vulnerabilities through explainable analysis of prompt attacks. We propose Counterfactual Explainable Incremental Prompt Attack (CEIPA), a novel technique where we guide prompts in a specific manner to quantitatively measure attack effectiveness and explore the embedded defense mechanisms in these models. Our approach is distinctive for its capacity to elucidate the reasons behind the generation of harmful responses by LLMs through an incremental counterfactual methodology. By organizing the prompt modification process into four incremental levels: (word, sentence, character, and a combination of character and word) we facilitate a thorough examination of the susceptibilities inherent to LLMs. The findings from our study not only provide counterfactual explanation insight but also demonstrate that our framework significantly enhances the effectiveness of attack prompts.
format Preprint
id arxiv_https___arxiv_org_abs_2407_09292
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Counterfactual Explainable Incremental Prompt Attack Analysis on Large Language Models
Shu, Dong
Jin, Mingyu
Chen, Tianle
Zhang, Chong
Zhang, Yongfeng
Cryptography and Security
This study sheds light on the imperative need to bolster safety and privacy measures in large language models (LLMs), such as GPT-4 and LLaMA-2, by identifying and mitigating their vulnerabilities through explainable analysis of prompt attacks. We propose Counterfactual Explainable Incremental Prompt Attack (CEIPA), a novel technique where we guide prompts in a specific manner to quantitatively measure attack effectiveness and explore the embedded defense mechanisms in these models. Our approach is distinctive for its capacity to elucidate the reasons behind the generation of harmful responses by LLMs through an incremental counterfactual methodology. By organizing the prompt modification process into four incremental levels: (word, sentence, character, and a combination of character and word) we facilitate a thorough examination of the susceptibilities inherent to LLMs. The findings from our study not only provide counterfactual explanation insight but also demonstrate that our framework significantly enhances the effectiveness of attack prompts.
title Counterfactual Explainable Incremental Prompt Attack Analysis on Large Language Models
topic Cryptography and Security
url https://arxiv.org/abs/2407.09292