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

大型语言模型中的安全对齐深度:马尔可夫链视角

Safety Alignment Depth in Large Language Models: A Markov Chain Perspective

Institute of Information Science (IIS), Academia Sinica(中央研究院资讯科学研究所);National Taiwan University(国立台湾大学);National Yang Ming Chiao Tung University(国立阳明交通大学)

Ching-Chia Kao, Chia-Mu Yu, Chun-Shien Lu, Chu-Song Chen

AI总结:

本文从马尔可夫链视角提出首个确定LLM安全对齐理想深度的理论结果,揭示对齐深度与集成宽度的交互,为设计更稳健的安全策略提供理论基础。

摘要:

大型语言模型(LLMs)越来越多地被应用于高风险场景,但其安全机制往往仍然脆弱。简单的越狱提示甚至良性微调就能绕过这些协议,凸显了理解其失效位置和方式的必要性。最近的发现表明,当对齐仅局限于初始输出 token 时,就会出现漏洞。不幸的是,即使引入了深度安全对齐,确定最佳安全深度仍是一个未解决的挑战。通过利用自回归语言模型与马尔可夫链之间的等价性,本文提供了关于如何确定安全对齐理想深度的首个理论结果,并展示了基于置换的数据增强如何收紧这些边界。至关重要的是,我们揭示了对齐深度与集成宽度之间的基本交互——表明更宽的集成可以补偿较浅的对齐。这些见解为设计更稳健、可扩展的安全策略提供了理论基础,这些策略补充了现有的对齐方法,为研究更安全、更可靠的 LLMs 开辟了新途径。

英文摘要:

Large Language Models (LLMs) are increasingly adopted in high-stakes scenarios, yet their safety mechanisms often remain fragile. Simple jailbreak prompts or even benign fine-tuning can bypass these protocols, underscoring the need to understand where and how they fail. Recent findings suggest that vulnerabilities emerge when alignment is confined to only the initial output tokens. Unfortunately, even with the introduction of deep safety alignment, determining the optimal safety depth remains an unresolved challenge. By leveraging the equivalence between autoregressive language models and Markov chains, this paper offers the first theoretical result on how to identify the ideal depth for safety alignment, and demonstrates how permutation-based data augmentation can tighten these bounds. Crucially, we reveal a fundamental interaction between alignment depth and ensemble width-indicating that broader ensembles can compensate for shallower alignments. These insights provide a theoretical foundation for designing more robust, scalable safety strategies that complement existing alignment approaches, opening new avenues for research into safer, more reliable LLMs.

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

↑