arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.09075cs.CL
收藏

层级对齐:通过逻辑一致性在LLM中强制执行层级指令遵循

Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistency

King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);University of Liverpool(利物浦大学);University of Edinburgh(爱丁堡大学)

Shu Yang, Zihao Zhou, Di Wang, Wenda Li

AI总结:

本文提出NSHA方法,通过显式建模和执行指令优先级,解决LLM在多指令环境下保持一致性与安全性的挑战,提升任务性能和实用性。

摘要:

大型语言模型越来越多地在来自异质源的不同权威级别的多个指令下运行,包括系统政策、用户请求、工具输出和检索上下文。尽管先前的工作强调了尊重指令优先级的重要性,但主要集中在对抗性攻击上,忽略了现实应用中常见的良性指令冲突。在这样的设置中,模型不仅需要避免安全违规,还要在指令部分或隐含冲突时保持任务效用和行为一致性。我们提出神经符号层级对齐(NSHA)来实现层级指令遵循,通过显式建模和执行指令优先级。在推理时,我们引入求解器引导的推理,将指令解析公式化为约束满足问题,使模型能够在层级约束下推导出最大一致的适用指令集。在训练时,NSHA通过自动构造的监督将求解器决策蒸馏到模型参数中。我们在规则遵循、任务执行、工具使用和安全方面评估了我们的方法,涵盖单轮和多轮交互,证明NSHA在冲突下显著提高性能,同时在参考设置中保持竞争力。

英文摘要:

Large language models increasingly operate under multiple instructions from heterogeneous sources with different authority levels, including system policies, user requests, tool outputs, and retrieved context. While prior work on instruction hierarchy highlights the importance of respecting instruction priorities, it mainly focuses on adversarial attacks and overlooks the benign but common instruction conflicts that arise in real-world applications. In such settings, models must not only avoid security violations but also preserve task utility and behavioral consistency when instructions partially or implicitly conflict. We propose Neuro-Symbolic Hierarchical Alignment (NSHA) for hierarchical instruction-following by explicitly modeling and enforcing instruction priorities. At inference time, we introduce solver-guided reasoning that formulates instruction resolution as a constraint satisfaction problem, enabling the model to derive a maximally consistent set of applicable instructions under hierarchical constraints. At training time, NSHA distills solver-based decisions into model parameters using automatically constructed supervision. We evaluate our approach on rule following, task execution, tool use, and safety, covering both single-turn and multi-turn interactions, and show that NSHA significantly improves performance under such conflicts while maintaining competitive utility in reference settings.

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

↑