2025-02-18 · 专家 · 自然语言处理 · 机器学习

IHEval: Evaluating Language Models on Following the Instruction Hierarchy

本文提出了一种名为IHEval的新基准,用于评估语言模型在遵循指令层次结构方面的能力,并发现主流语言模型在处理冲突指令时存在困难。

更新于 2025-02-18。作者:Zhihan Zhang、Shiyang Li、Zixuan Zhang、Xin Liu、Haoming Jiang、Xianfeng Tang、Yifan Gao、Zheng Li、Haodong Wang、Zhaoxuan Tan、Yichuan Li、Qingyu Yin、Bing Yin、Meng Jiang。

中文摘要

指令层次结构,它建立了从系统消息到用户消息、对话历史和工具输出的优先级顺序,对于确保语言模型(LMs)的一致性和安全性至关重要。尽管这一主题的重要性不容忽视,但它得到的关注却有限,并且缺乏评估模型遵循指令层次结构能力的全面基准。我们通过引入IHEval这一新基准来填补这一空白,该基准包含9个任务中的3,538个示例,涵盖了不同优先级指令要么一致要么冲突的情况。我们对流行LMs的评估显示,它们在识别指令优先级方面存在困难。所有评估的模型在面临冲突指令时,与它们原始的指令遵循性能相比,都经历了显著的表现下降。此外,最具竞争力的开源模型在解决此类冲突时仅达到48%的准确率。我们的结果强调了在LMs未来发展中进行针对性优化的必要性。

英文摘要

The instruction hierarchy, which establishes a priority order from system messages to user messages, conversation history, and tool outputs, is essential for ensuring consistent and safe behavior in language models (LMs). Despite its importance, this topic receives limited attention, and there is a lack of comprehensive benchmarks for evaluating models' ability to follow the instruction hierarchy. We bridge this gap by introducing IHEval, a novel benchmark comprising 3,538 examples across nine tasks, covering cases where instructions in different priorities either align or conflict. Our evaluation of popular LMs highlights their struggle to recognize instruction priorities. All evaluated models experience a sharp performance decline when facing conflicting instructions, compared to their original instruction-following performance. Moreover, the most competitive open-source model only achieves 48% accuracy in resolving such conflicts. Our results underscore the need for targeted optimization in the future development of LMs.

解读

一句话总结

本文提出了一种名为IHEval的新基准,用于评估语言模型在遵循指令层次结构方面的能力,并发现主流语言模型在处理冲突指令时存在困难。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源