arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.18581cs.CR
收藏

TASO:通过替代模板和后缀优化实现对抗性攻击

TASO: Jailbreak LLMs via Alternative Template and Suffix Optimization

Pennsylvania State University(宾夕法尼亚州立大学)

Yanting Wang, Runpeng Geng, Jinghui Chen, Minhao Cheng, Jinyuan Jia

AI总结:

TASO通过交替优化模板和后缀,提高对抗性攻击的有效性,针对多种大语言模型进行测试并证明其有效性。

摘要:

许多近期研究显示,大语言模型(LLMs)对对抗性攻击存在漏洞,攻击者可以通过扰动LLM的输入,使其生成有害问题的输出。一般来说,现有的对抗性攻击技术要么优化一个语义模板以诱导LLM生成有害输出,要么优化一个后缀,使LLM以特定的标记(例如

英文摘要:

Many recent studies showed that LLMs are vulnerable to jailbreak attacks, where an attacker can perturb the input of an LLM to induce it to generate an output for a harmful question. In general, existing jailbreak techniques either optimize a semantic template intended to induce the LLM to produce harmful outputs or optimize a suffix that leads the LLM to initiate its response with specific tokens (e.g., "Sure"). In this work, we introduce TASO (Template and Suffix Optimization), a novel jailbreak method that optimizes both a template and a suffix in an alternating manner. Our insight is that suffix optimization and template optimization are complementary to each other: suffix optimization can effectively control the first few output tokens but cannot control the overall quality of the output, while template optimization provides guidance for the entire output but cannot effectively control the initial tokens, which significantly impact subsequent responses. Thus, they can be combined to improve the attack's effectiveness. We evaluate the effectiveness of TASO on benchmark datasets (including HarmBench and AdvBench) on 24 leading LLMs (including models from the Llama family, OpenAI, and DeepSeek). The results demonstrate that TASO can effectively jailbreak existing LLMs. We hope our work can inspire future studies in exploring this direction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑