Jailbreaking Large Language Models with Symbolic Mathematics

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bethany, Emet, Bethany, Mazal, Flores, Juan Arturo Nolazco, Jha, Sumit Kumar, Najafirad, Peyman
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916468240678912
author Bethany, Emet
Bethany, Mazal
Flores, Juan Arturo Nolazco
Jha, Sumit Kumar
Najafirad, Peyman
author_facet Bethany, Emet
Bethany, Mazal
Flores, Juan Arturo Nolazco
Jha, Sumit Kumar
Najafirad, Peyman
contents Recent advancements in AI safety have led to increased efforts in training and red-teaming large language models (LLMs) to mitigate unsafe content generation. However, these safety mechanisms may not be comprehensive, leaving potential vulnerabilities unexplored. This paper introduces MathPrompt, a novel jailbreaking technique that exploits LLMs' advanced capabilities in symbolic mathematics to bypass their safety mechanisms. By encoding harmful natural language prompts into mathematical problems, we demonstrate a critical vulnerability in current AI safety measures. Our experiments across 13 state-of-the-art LLMs reveal an average attack success rate of 73.6\%, highlighting the inability of existing safety training mechanisms to generalize to mathematically encoded inputs. Analysis of embedding vectors shows a substantial semantic shift between original and encoded prompts, helping explain the attack's success. This work emphasizes the importance of a holistic approach to AI safety, calling for expanded red-teaming efforts to develop robust safeguards across all potential input types and their associated risks.
format Preprint
id arxiv_https___arxiv_org_abs_2409_11445
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Jailbreaking Large Language Models with Symbolic Mathematics
Bethany, Emet
Bethany, Mazal
Flores, Juan Arturo Nolazco
Jha, Sumit Kumar
Najafirad, Peyman
Cryptography and Security
Artificial Intelligence
Computation and Language
Machine Learning
Recent advancements in AI safety have led to increased efforts in training and red-teaming large language models (LLMs) to mitigate unsafe content generation. However, these safety mechanisms may not be comprehensive, leaving potential vulnerabilities unexplored. This paper introduces MathPrompt, a novel jailbreaking technique that exploits LLMs' advanced capabilities in symbolic mathematics to bypass their safety mechanisms. By encoding harmful natural language prompts into mathematical problems, we demonstrate a critical vulnerability in current AI safety measures. Our experiments across 13 state-of-the-art LLMs reveal an average attack success rate of 73.6\%, highlighting the inability of existing safety training mechanisms to generalize to mathematically encoded inputs. Analysis of embedding vectors shows a substantial semantic shift between original and encoded prompts, helping explain the attack's success. This work emphasizes the importance of a holistic approach to AI safety, calling for expanded red-teaming efforts to develop robust safeguards across all potential input types and their associated risks.
title Jailbreaking Large Language Models with Symbolic Mathematics
topic Cryptography and Security
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2409.11445