Jailbreaking Large Language Models with Symbolic Mathematics
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
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
- 2023Multilingual Jailbreak Challenges in Large Language Models10 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023Low-Resource Languages Jailbreak GPT-43 Oct
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts19 Sep
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
- 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreaks24 May
Other references · 12
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2023Large Language Modelscited by 774
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 283
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 268
- 2024ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMscited by 197
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2024Large Language Models Are Neurosymbolic Reasonerscited by 31
Built on by
Citing papers per year: 2024: 2; 2025: 6; 2026: 6.
14 papers.
Sort:
By area:
- 2025Should LLM Safety Be More Than Refusing Harmful Instructions?cited by 6
- 2025Guarding the Guardrails: A Taxonomy-Driven Approach to Jailbreak Detectioncited by 4
- 2026Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysiscited by 3
- 2024Don't Command, Cultivate: An Exploratory Study of System-2 Alignmentcited by 2
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunitiescited by 2
- 2024Hallucinating AI Hijacking Attack: Large Language Models and Malicious Code Recommenderscited by 1
- 2026Semantic Compression of LLM Instructions via Symbolic Metalanguagescited by 1
- 2025AJF: Adaptive Jailbreak Framework Based on the Comprehension Ability of Black-Box Large Language Modelscited by 0
- 2025Can MLLMs Detect Phishing? A Comprehensive Security Benchmark Suite Focusing on Dynamic Threats and Multimodal Evaluation in Academic Environmentscited by 0
- 2025Self-Guided Adaptive Safety Alignment: Synthesizing and Internalizing Guidelines in Reasoning Modelscited by 0
- 2026SRTJ: Self-Evolving Rule-Driven Training-Free LLM Jailbreakingcited by 0
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreakscited by 0
- 2026CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion30 Sep 2026
- 2026EADC: Evaluation of Advanced and Deep-level Compliance in Large Language Models22 Sep 2026
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreaks2 Aug 2026
- 2026Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysis5 May 2026
- 2026SRTJ: Self-Evolving Rule-Driven Training-Free LLM Jailbreaking1 May 2026
- 2026Semantic Compression of LLM Instructions via Symbolic Metalanguages12 Jan 2026
- 2025Self-Guided Adaptive Safety Alignment: Synthesizing and Internalizing Guidelines in Reasoning Models26 Nov 2025
- 2025Can MLLMs Detect Phishing? A Comprehensive Security Benchmark Suite Focusing on Dynamic Threats and Multimodal Evaluation in Academic Environments19 Nov 2025
- 2025Guarding the Guardrails: A Taxonomy-Driven Approach to Jailbreak Detection14 Oct 2025
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunities8 Sep 2025
- 2025Should LLM Safety Be More Than Refusing Harmful Instructions?3 Jun 2025
- 2025AJF: Adaptive Jailbreak Framework Based on the Comprehension Ability of Black-Box Large Language Models29 May 2025
- 2025Should LLM Safety Be More Than Refusing Harmful Instructions?cited by 6
- 2025Guarding the Guardrails: A Taxonomy-Driven Approach to Jailbreak Detectioncited by 4
- 2026Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysiscited by 3
- 2024Don't Command, Cultivate: An Exploratory Study of System-2 Alignmentcited by 2
- 2024Hallucinating AI Hijacking Attack: Large Language Models and Malicious Code Recommenderscited by 1
- 2025AJF: Adaptive Jailbreak Framework Based on the Comprehension Ability of Black-Box Large Language Modelscited by 0
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreakscited by 0
- 2026Decoy Images Amplify Caption-Mediated Defenses Against Encoded Jailbreaks2 Aug 2026
- 2026Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysis5 May 2026
- 2025Guarding the Guardrails: A Taxonomy-Driven Approach to Jailbreak Detection14 Oct 2025
- 2025Should LLM Safety Be More Than Refusing Harmful Instructions?3 Jun 2025
- 2025AJF: Adaptive Jailbreak Framework Based on the Comprehension Ability of Black-Box Large Language Models29 May 2025
- 2024Don't Command, Cultivate: An Exploratory Study of System-2 Alignment26 Nov 2024
- 2024Hallucinating AI Hijacking Attack: Large Language Models and Malicious Code Recommenders9 Oct 2024
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunitiescited by 2
- 2026Semantic Compression of LLM Instructions via Symbolic Metalanguagescited by 1
- 2025Can MLLMs Detect Phishing? A Comprehensive Security Benchmark Suite Focusing on Dynamic Threats and Multimodal Evaluation in Academic Environmentscited by 0
- 2026EADC: Evaluation of Advanced and Deep-level Compliance in Large Language Modelscited by 0
- 2026EADC: Evaluation of Advanced and Deep-level Compliance in Large Language Models22 Sep 2026
- 2026Semantic Compression of LLM Instructions via Symbolic Metalanguages12 Jan 2026
- 2025Can MLLMs Detect Phishing? A Comprehensive Security Benchmark Suite Focusing on Dynamic Threats and Multimodal Evaluation in Academic Environments19 Nov 2025
- 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunities8 Sep 2025