PLR: Plackett-Luce for Reordering In-Context Learning Examples
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) adapts large language models by conditioning on a small set of ICL examples, avoiding costly parameter updates. Among other factors, performance is often highly sensitive to the ordering of the examples. However, exhaustive search over the n! possible orderings is infeasible. Therefore more efficient ordering methods use model confidence measures (e.g., label-probability entropy) over label sets or take a direct approach to finding the best ordering. We propose PLR, a probabilistic approach to in-context example ordering that replaces discrete ordering search with learning a probability distribution over orderings with the Plackett-Luce model. PLR models orderings using a Plackett-Luce distribution and iteratively updates its parameters to concentrate probability mass on high-performing orderings under a task-level metric. Candidate orderings are sampled efficiently via a Gumbel perturb-and-sort procedure. Experiments on multiple classification benchmarks show that PLR consistently improves few-shot accuracy for k ∈ 4, 8, 16, 32 examples, and we further demonstrate gains on mathematical reasoning tasks where label-based ordering methods are not applicable. Our code is available at https://github.com/Batorskq/PLR.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 49 of its 76 references that are in the map. First posted on arXiv 22 Mar 2026.
Builds on
49 of 76 references.
References · 49
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2023Let's Verify Step by Stepcited by 3,789
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
37 more
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 817
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
- 2025DeepMath-103K: A Large-Scale, Challenging, Decontaminated, and Verifiable Mathematical Dataset for Advancing Reasoningcited by 280
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Promptscited by 226
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 211
- 2014A* Samplingcited by 151
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 149
- 2024What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineeringcited by 90
- 2023Mitigating Label Biases for In-context Learningcited by 89
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 81
- 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 72
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injectioncited by 59
- 2024POSIX: A Prompt Sensitivity Index For Large Language Modelscited by 59
- 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplarscited by 37
- 2024PromptWizard: Task-Aware Prompt Optimization Frameworkcited by 36
- 2023How are Prompts Different in Terms of Sensitivity?cited by 35
- 2024Serial Position Effects of Large Language Modelscited by 30
- 2024Batch-ICL: Effective, Efficient, and Order-Agnostic In-Context Learningcited by 20
- 2016Learning Mixtures of Plackett-Luce Modelscited by 19
- 2025Where to show Demos in Your Prompt: A Positional Bias of In-Context Learningcited by 13
- 2024In-Context Example Ordering Guided by Label Distributionscited by 12
- 2024Addressing Order Sensitivity of In-Context Demonstration Examples in Causal Language Modelscited by 12
- 2019Learning Mixtures of Plackett-Luce Models from Structured Partial Orderscited by 9
- 2024Rectifying Demonstration Shortcut in In-Context Learningcited by 9
- 2025Rethinking Invariance in In-context Learningcited by 8
- 2023Strings from the Library of Babel: Random Sampling as a Strong Baseline for Prompt Optimisationcited by 7
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learningcited by 6
- 2025PIAST: Rapid Prompting with In-context Augmentation for Scarce Training datacited by 2
- 2026TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Order Matters: Rethinking Prompt Construction in In-Context Learning
- 2024Large Language Models Know What Makes Exemplary Contexts
- 2024In-Context Language Learning: Architectures and Algorithms
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2024Dynamic Uncertainty Ranking: Enhancing Retrieval-Augmented In-Context Learning for Long-Tail Knowledge in LLMs
- 2026Label Collapse in Diffusion Language Model In-Context Learning
- 2023Beyond Output Matching: Bidirectional Alignment for Enhanced In-Context Learning
- 2025Refract ICL: Rethinking Example Selection in the Era of Million-Token Models