arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09737cs.LG
收藏

CALYREX:跨注意力层扩展变换器用于系统提示锚定

System-Prompt Anchoring with Cross-Attention Layers

Cornell University(康奈尔大学)

Li Lixing

AI总结:

CALYREX通过跨注意力机制在系统提示和输入之间建立结构隔离,提升模型在指令遵循和多轮指令遵守任务中的性能,同时降低 jailbreaking 攻击成功率。

摘要:

现代大语言模型 (LLMs) 依赖系统提示来建立行为约束和安全规则。标准因果自注意力机制对特权指令和不可信用户内容给予同等结构优先级——这种不匹配使模型在长上下文中容易受到提示注入和指令侵蚀攻击。我们提出了 CALYREX(跨注意力层扩展变换器),利用输入和系统提示之间的跨注意力机制来结构化隔离并锚定规则。在 1.5B 主干模型上的位置消融实验发现,将插入位置置于最后八分之一层最优,通过机制激活分析显示行为约束自然集中于此。在 8B 规模下,控制训练数据、主干和参数预算,CALYREX 在指令遵循 (IFEval) 任务上提升 7.4%,在多轮指令遵守任务上提升 16.3%,同时将许多-shot jailbreaking 攻击成功率降低 13%。这种优势似乎随着模型规模扩大而扩大,与更大模型更有效地利用专用路由路径一致。

英文摘要:

Cross-attention provides a dedicated route from a selected information source into a model's computation, but the effect of where that route is inserted remains underexplored. We study this question when the source is a privileged system-prompt span. We insert Cross-Attention Layer (CAL) blocks between the system prompt and text while keeping the causal-decoder backbone frozen. A ten-configuration sweep on a 1.5B backbone shows that performance is task-dependent and strongly affected by placement: later placements are generally more effective and parameter-efficient. In an 8B scaling study, we train only the overall best configuration and compare it with parameter-matched adaptation baselines. Across the evaluated benchmarks, the effects remain task-dependent: cross-attention changes instruction-following and security behavior while largely preserving general-task performance. Together, these experiments characterize placement as an important design variable when injecting system-prompt information through cross-attention.

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

↑