mlsanityData to 7 Oct 2026

Jailbreaking Large Language Models with Symbolic Mathematics

arXiv 2409.11445 ↗First posted 17 Sep 2024cs.CR cs.AI cs.CLcited by 14

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

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.

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 21 of its 28 references that are in the map. First posted on arXiv 17 Sep 2024.

Builds on

21 of 28 references.

Closest ancestors · 9

Same direction, newest first

  1. 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
  2. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
  3. 2023Multilingual Jailbreak Challenges in Large Language Models10 Oct
  4. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
  5. 2023Low-Resource Languages Jailbreak GPT-43 Oct
  6. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
  7. 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
  8. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
  9. 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreaks24 May

Other references · 12

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  3. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
  4. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
  5. 2022Red Teaming Language Models with Language Modelscited by 983
  6. 2023Large Language Modelscited by 774
  7. 2020Generative Language Modeling for Automated Theorem Provingcited by 379
  8. 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 283
  9. 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 268
  10. 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 197
  11. 2021Challenges in Detoxifying Language Modelscited by 169
  12. 2024Large Language Models Are Neurosymbolic Reasonerscited by 31

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 6; 2026: 6.

14 papers.

Sort:

By area: