arXiv:2603.16152cs.LGcs.AI2026-03被引 2

让大模型按优先级严格执行多条指令,避免遗漏或混淆。

HIPO: Instruction Hierarchy via Constrained Reinforcement Learning

  • 将指令优先级问题建模为带约束的强化学习过程,强制遵守系统指令。
  • 在多个模型上测试,显著提升指令遵循率和用户满意度。
  • 自动聚焦长距离系统指令词,适合复杂任务流程部署。

层次化指令遵循(HIF)指用优先级排序的指令序列来引导大语言模型。传统方法如RLHF和DPO主要优化单一目标,无法显式保证系统提示的遵守;监督微调依赖过滤后的合规数据,无法在算法层面建立优先级差异。本文提出 extsc{HIPO},一种新的对齐框架,将HIF建模为带约束的马尔可夫决策过程。 extsc{HIPO}将系统提示从输入上下文提升为严格的算法边界。采用原-对偶安全强化学习方法,动态将系统提示遵守作为显式约束,在可行区域内最大化用户效用。跨多种模型架构(如Qwen、Phi、Llama)的实证评估显示, extsc{HIPO}显著提升了系统合规性与用户效用。机制分析表明,该约束优化自发促使模型关注长距离系统标记,为复杂工作流中可靠部署大模型提供了原则性基础。

原文摘要 · Abstract (English)

Hierarchical Instruction Following (HIF) refers to the problem of prompting large language models with a priority-ordered stack of instructions. Standard methods like RLHF and DPO typically fail in this problem since they mainly optimize for a single objective, failing to explicitly enforce system prompt compliance. Meanwhile, supervised fine-tuning relies on mimicking filtered, compliant data, which fails to establish the priority asymmetry at the algorithmic level. In this paper, we introduce \textsc{HIPO}, a novel alignment framework that formulates HIF as a Constrained Markov Decision Process. \textsc{HIPO} elevates system prompts from mere input context to strict algorithmic boundaries. Using a primal-dual safe reinforcement learning approach, the algorithm dynamically enforces system prompt compliance as an explicit constraint, maximizing user utility strictly within this feasible region. Extensive evaluations across diverse model architectures (e.g., Qwen, Phi, Llama) demonstrate that \textsc{HIPO} significantly improves both system compliance and user utility. Furthermore, mechanistic analysis reveals that this constrained optimization autonomously drives the model to shift its attention toward long-range system tokens, providing a principled foundation for reliable LLM deployment in complex workflows.

指令遵循强化学习大模型对齐

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。