In-Context Example Ordering Guided by Label Distributions
Zhichao Xu, Daniel Cohen, Bei Wang, Vivek Srikumar

TL;DR
This paper introduces an optimization-based approach for ordering in-context examples in large language models, guided by label distributions, to enhance performance and calibration across multiple NLP datasets.
Contribution
It proposes two principles for example ordering based on label proportions and demonstrates their effectiveness across diverse datasets and models.
Findings
Improves classification accuracy in in-context learning.
Reduces model miscalibration.
Selects more effective in-context examples.
Abstract
By allowing models to predict without task-specific training, in-context learning (ICL) with pretrained LLMs has enormous potential in NLP. However, a number of problems persist in ICL. In particular, its performance is sensitive to the choice and order of in-context examples. Given the same set of in-context examples with different orderings, model performance may vary between near random to near state-of-the-art. In this work, we formulate in-context example ordering as an optimization problem. We examine three problem settings that differ in the assumptions they make about what is known about the task. Inspired by the idea of learning from label proportions, we propose two principles for in-context example ordering guided by model's probability predictions. We apply our proposed principles to thirteen text classification datasets and nine different autoregressive LLMs with 700M to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsBusiness Process Modeling and Analysis · Flexible and Reconfigurable Manufacturing Systems · Manufacturing Process and Optimization
MethodsSparse Evolutionary Training
