arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08898cs.CLcs.AI
收藏

不依赖特定大语言模型的语义表示攻击

LLM-Agnostic Semantic Representation Attack

JC STEM Lab of Machine Learning and Computer Vision(机器学习与计算机视觉的JC STEM实验室);Hong Kong Jockey Club Charities Trust(香港赛马会慈善信托基金);Global STEM Professorship Scheme of the Hong Kong Special Administrative Region (SAR)(香港特别行政区(SAR)的全球STEM教授计划);National Natural Science Foundation of China(中国国家自然科学基金委员会);Northwestern Polytechnical University(西北工业大学);The Hong Kong Polytechnic University(香港理工大学);School of Electronics and Information(电子与信息学院);Department of Electrical and Electronic Engineering(电气与电子工程系);Hong Kong Institute of AI for Science(香港人工智能科学研究院);City University of Hong Kong(香港城市大学)

Jiawei Lian, Jianhong Pan, Lefan Wang, Yi Wang, Tairan Huang, Shaohui Mei, Lap-Pui Chau

AI总结:

本文提出语义表示攻击(SRA),通过重新定义对抗目标从精确文本到恶意语义,解决传统方法的收敛性、提示自然性和跨模型泛化问题,实现99.71%的攻击成功率。

摘要:

大型语言模型(LLMs)越来越多地采用对齐技术以防止有害输出。尽管有这些防护措施,攻击者仍可通过构建对抗性提示来绕过这些防护。主流的token级优化方法主要依赖于优化精确肯定模板(例如,“Sure, here is...”)。然而,这些范式经常遇到瓶颈,如收敛性差、提示不自然和跨模型泛化差。为了解决这些限制,我们提出了语义表示攻击(SRA),一种新的不依赖特定LLM的范式,从根本上将对抗目标从精确文本目标转变为恶意语义表示。理论上,我们建立了语义一致性-收敛性关系,并推导出跨模型语义泛化界,证明保持语义一致性保证了白盒语义收敛和黑盒可转移性。技术上,我们通过语义表示启发式搜索(SRHS)算法实现该框架,该算法在增量离散token块扩展过程中保持对抗性提示的可解释性和结构一致性。广泛评估显示,我们的框架在26个开源LLM上实现了99.71%的平均攻击成功率,具有强可转移性和隐蔽性。

英文摘要:

Large Language Models (LLMs) increasingly employ alignment techniques to prevent harmful outputs. Despite these safeguards, attackers can circumvent them by crafting adversarial prompts. Predominant token-level optimization methods primarily rely on optimizing for exact affirmative templates (e.g., ``\textit{Sure, here is...}''). However, these paradigms frequently encounter bottlenecks such as suboptimal convergence, compromised prompt naturalness, and poor cross-model generalization. To address these limitations, we propose Semantic Representation Attack (SRA), a novel LLM-agnostic paradigm that fundamentally reconceptualizes adversarial objectives from exact textual targeting to malicious semantic representations. Theoretically, we establish the semantic Coherence-Convergence Relationship and derive a Cross-Model Semantic Generalization bound, proving that maintaining semantic coherence guarantees both white-box semantic convergence and black-box transferability. Technically, we operationalize this framework via the Semantic Representation Heuristic Search (SRHS) algorithm, which preserves interpretability and structural coherence of the adversarial prompts during incremental discrete token chunk expansion. Extensive evaluations demonstrate that our framework achieves a 99.71% average attack success rate across 26 open-source LLMs, with strong transferability and stealth.

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

↑