arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.07591cs.CLcs.AI
收藏

MulDimIF:一种多维约束框架用于评估和改进大语言模型的指令遵循能力

MulDimIF: A Multi-Dimensional Constraint Framework for Evaluating and Improving Instruction Following in Large Language Models

Fudan University(复旦大学);Lenovo Research(联想研究院);Tencent(腾讯);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Key Lab of Intelligent Information Processing(上海智能信息处理重点实验室)
Junjie Ye, Caishuang Huang, Zhuohan Chen, Wenjie Fu, Chenyuan Yang, Leyi Yang, Yilong Wu, Peng Wang, Meng Zhou, Xiaolong Yang, Tao Gui, Qi Zhang, Zhongchao Shi,… 展开作者

Junjie Ye, Caishuang Huang, Zhuohan Chen, Wenjie Fu, Chenyuan Yang, Leyi Yang, Yilong Wu, Peng Wang, Meng Zhou, Xiaolong Yang, Tao Gui, Qi Zhang, Zhongchao Shi, Jianping Fan, Xuanjing Huang

AI总结:

本文提出MulDimIF框架,通过多维约束模式、类别和难度等级,设计可控指令生成流程,生成9106个可验证样本,评估18个LLM模型,发现不同约束设置下性能差异显著,并通过训练提升指令遵循能力而不影响通用性能。

摘要:

指令遵循是指大型语言模型(LLMs)生成满足所有指定约束条件的输出能力。现有研究主要集中在约束类别上,提供有限的评估维度,并缺乏提升指令遵循能力的指导。为解决这一缺口,我们引入MulDimIF,一个多维约束框架,涵盖三种约束模式、四个约束类别和四个难度等级。基于此框架,我们设计了可控的指令生成流程。通过约束扩展、冲突检测和指令重写,我们构建了9,106个可验证样本。我们评估了来自六个模型家族的18个LLM,并发现不同约束设置下性能差异显著。例如,平均准确率从Level I的80.82%降至Level IV的36.76%。此外,使用我们框架生成的数据进行训练显著提高了指令遵循能力,而不会影响通用性能。深入分析表明,这些收益主要源于注意力模块的参数更新,这增强了约束识别和遵守能力。代码和数据可在https://github.com/Junjie-Ye/MulDimIF上获得。

英文摘要:

Instruction following refers to the ability of large language models (LLMs) to generate outputs that satisfy all specified constraints. Existing research has primarily focused on constraint categories, offering limited evaluation dimensions and little guidance for improving instruction-following abilities. To address this gap, we introduce MulDimIF, a multi-dimensional constraint framework encompassing three constraint patterns, four constraint categories, and four difficulty levels. Based on this framework, we design a controllable instruction generation pipeline. Through constraint expansion, conflict detection, and instruction rewriting, we construct 9,106 code-verifiable samples. We evaluate 18 LLMs from six model families and find marked performance differences across constraint settings. For instance, average accuracy decreases from 80.82% at Level I to 36.76% at Level IV. Moreover, training with data generated by our framework significantly improves instruction following without compromising general performance. In-depth analysis indicates that these gains stem largely from parameter updates in attention modules, which strengthen constraint recognition and adherence. Code and data are available in https://github.com/Junjie-Ye/MulDimIF.

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

↑