Lune

AAAI2026顶会

EquaCode: A Multi-Strategy Jailbreak Approach for Large Language Models via Equation Solving and Code Completion

Zhen Liang, Hai Huang, Zhengkui Chen

摘要

Large language models (LLMs), such as ChatGPT, have achieved remarkable success across a wide range of fields. However, their trustworthiness remains a significant concern, as they are still susceptible to jailbreak attacks aimed at eliciting inappropriate or harmful responses. However, existing jailbreak attacks mainly operate at the natural language level and rely on a single attack strategy, limiting their effectiveness in comprehensively assessing LLM robustness. In this paper, we propose Equacode, a novel multi-strategy jailbreak approach for large language models via equation-solving and code completion. This approach transforms malicious intent into a mathematical problem and then requires the LLM to solve it using code, leveraging the complexity of cross-domain tasks to divert the model's focus toward task completion rather than safety constraints. Experimental results show that Equacode achieves an average success rate of 91.19% on the GPT series and 86.98% across 10 state-of-the-art LLMs, all with only a single query. Further, ablation experiments demonstrate that EquaCode outperforms either the mathematical equation module or the code module alone. This suggests a strong synergistic effect, thereby demonstrating that multi-strategy approach yields results greater than the sum of its parts. Code is on https://github.com/lzzzr123/Equacode .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher 引用了 Training language models to follow instructions with human feedback
  • Tree of Attacks: Jailbreaking Black-Box LLMs Automatically 引用了 AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • Jailbreak Foundry: From Papers to Runnable Attacks for Reproducible Benchmarking 引用了 Tree of Attacks: Jailbreaking Black-Box LLMs Automatically
  • Jailbreak Foundry: From Papers to Runnable Attacks for Reproducible Benchmarking 引用了 AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
  • Finetuned Language Models are Zero-Shot Learners 引用了 Training language models to follow instructions with human feedback
  • Training language models to follow instructions with human feedback 引用了 Finetuned Language Models are Zero-Shot Learners
  • AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models 引用了 GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
  • AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models 引用了 Training language models to follow instructions with human feedback
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. Jailbreak Foundry: From Papers to Runnable Attacks for Reproducible BenchmarkingZhicheng Fang, Jingjie Zheng, Chenxu Fu, Wei XuICML 2026 · 2 次引用

它引用的 Paper16

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
  2. Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
  3. Tree of Attacks: Jailbreaking Black-Box LLMs AutomaticallyAnay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson 等NeurIPS 2024 · 835 次引用
  4. AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language ModelsXiaogeng Liu, Nan Xu, Muhao Chen, Chaowei XiaoICLR 2024 · 722 次引用
  5. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via CipherYouliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen-tse Huang 等ICLR 2024 · 441 次引用

相关 Paper

  1. MazeBreaker: Multi-Agent Reinforcement Learning for Dynamic Jailbreaking of LLM Security DefensesZhihao Lin, Wei Ma, Mingyi Zhou, Yanjie Zhao 等ICSE 2026
  2. MultiCodeAttack: Iterative Jailbreak Attacking on LLMs with Multi-Code Prompt InjectionWeifeng Sun, Meng Yan, Zhou Yang, Yuchen Chen 等ACL Findings 2026
  3. MASTERKEY: Automated Jailbreaking of Large Language Model ChatbotsGelei Deng, Yi Liu, Yuekang Li, Kailong Wang 等NDSS 2024
  4. LLMs Caught in the Crossfire: Malware Requests and Jailbreak ChallengesHaoyang Li, Huan Gao, Zhiyuan Zhao, Zhiyu Lin 等ACL 2025
  5. Efficient LLM-Jailbreaking via Multimodal-LLM JailbreakHaoxuan Ji, Zheng Lin, Zhenxing Niu, Xinbo Gao 等AAAI 2026 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖