The Order Effect: Investigating Prompt Sensitivity to Input Order in LLMs

Bryan Guan, Tanya Roosta, Peyman Passban, Mehdi Rezagholizadeh
2/6/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

As large language models (LLMs) become integral to diverse applications, ensuring their reliability under varying input conditions is crucial. One key issue affecting this reliability is order sensitivity, wherein slight variations in the input arrangement can lead to inconsistent or biased outputs. Although recent advances have reduced this sensitivity, the problem remains unresolved. This paper investigates the extent of order sensitivity in LLMs whose internal components are hidden from users (such as closed-source models or those accessed via API calls). We conduct experiments across multiple tasks, including paraphrasing, relevance judgment, and multiple-choice questions. Our results show that input order significantly affects performance across tasks, with shuffled inputs leading to measurable declines in output accuracy. Few-shot prompting demonstrates mixed effectiveness and offers partial mitigation; however, fails to fully resolve the problem. These findings highlight persistent risks, particularly in high-stakes applications, and point to the need for more robust LLMs or improved input-handling techniques in future development.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guan2025order,
  title  = {The Order Effect: Investigating Prompt Sensitivity to Input Order in LLMs},
  author = {Bryan Guan and Tanya Roosta and Peyman Passban and Mehdi Rezagholizadeh},
  year   = {2025},
  eprint = {2502.04134},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04134v2}
}

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.04134.svg)](https://codeofpaper.com/paper/2502.04134)

Discussion