Order Matters: Investigate the Position Bias in Multi-constraint Instruction Following

Jie Zeng, Qianyu He, Qingyu Ren, Jiaqing Liang, Yanghua Xiao +3 more
2/24/2025
cs.CLcs.AI

Official code: meowpass/PBIF (2 stars, last commit 2025-05-24).

Abstract

Real-world instructions with multiple constraints pose a significant challenge to existing large language models (LLMs). An observation is that the LLMs exhibit dramatic performance fluctuation when disturbing the order of the incorporated constraints. Yet, none of the existing works has systematically investigated this position bias problem in the field of multi-constraint instruction following. To bridge this gap, we design a probing task where we quantitatively measure the difficulty distribution of the constraints by a novel Difficulty Distribution Index (CDDI). Through the experimental results, we find that LLMs are more performant when presented with the constraints in a ``hard-to-easy'' order. This preference can be generalized to LLMs with different architecture or different sizes of parameters. Additionally, we conduct an explanation study, providing an intuitive insight into the correlation between the LLM's attention and constraint orders. Our code and dataset are publicly available at https://github.com/meowpass/PBIF.

View on arXivView PDF

Code Implementations(1)

meowpass/PBIFOfficial100%

Official implementation of the paper "What is the Optimal Order?: Investigation on the Position Bias in Multi-constraint Instruction Following".

20Shell, PythonFeb 15, 20251 years ago

Similar Papers

Cite this paper

@article{zeng2025order,
  title  = {Order Matters: Investigate the Position Bias in Multi-constraint Instruction Following},
  author = {Jie Zeng and Qianyu He and Qingyu Ren and Jiaqing Liang and Yanghua Xiao and Weikang Zhou and Zeye Sun and Fei Yu},
  year   = {2025},
  eprint = {2502.17204},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.17204v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.17204.svg)](https://codeofpaper.com/paper/2502.17204)

Discussion