Skip to content
Search
paperMay 2026Unreviewed

Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysis

Haoyu Zhang, Mohammad Zandsalimy, Shanu Sushmita

Abstract

Large language models (LLMs) employ safety mechanisms to prevent harmful outputs, yet these defenses primarily rely on semantic pattern matching. We show that encoding harmful prompts as coherent mathematical problems -- using formalisms such as set theory, formal logic, and quantum mechanics -- bypasses these filters at high rates, achieving 46%--56% average attack success across eight target models and two established benchmarks. Crucially, the effectiveness depends not on mathematical notatio

Categories

Cite

@misc{zhang2026exposing,
  title = {{Exposing LLM Safety Gaps Through Mathematical Encoding:New Attacks and Systematic Analysis}},
  author = {Haoyu Zhang and Mohammad Zandsalimy and Shanu Sushmita},
  year = {2026},
  month = may,
  eprint = {2605.03441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.03441}
}