Research map / Large language models / Language, safety and interpretability
What Makes a Good Order of Examples in In-Context Learning
Qi Guo, Leiyu Wang, Yidong Wang, Wei Ye, Shikun Zhang
Peking University · Nanjing University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| order examples with DEmO instead of random order | Sheared LLaMA2 1.3B · 9 classification datasets avg. | accuracy: 61.66 -> 71.24 | Improved |
| reorder by similarity to test instance (Similarity) | Sheared LLaMA2 1.3B · 9 classification datasets avg. | accuracy: 61.66 -> 59.77 | Hurt |
| MDL order selection | Sheared LLaMA2 1.3B · 9 classification datasets avg. | accuracy: 61.66 -> 62.91 | No clear effect |
| add validation-set ranking stage to DEmO | Sheared LLaMA2 1.3B · 9 classification datasets avg. | accuracy: 71.24 -> 73.36 | Improved |
| apply contextual calibration instead of random | Sheared LLaMA2 1.3B · TREC | accuracy: 63.16 -> 60.35 | Hurt |
| increase iteration number N from 10 to 100 (ablation) | DEmO · 9 classification datasets avg. | accuracy: 69.61 -> 71.24 | Improved |
| increase candidate set size K (ablation) | DEmO · 9 classification datasets avg. | accuracy: 70.25 (K=2), 71.24 (K=4), 71.39 (K=10) | No clear effect |
| scale model from 1.3B to 13B | DEmO vs dataset-based methods · 9 classification datasets avg. | accuracy: DEmO 86.52 vs GLE 86.91, Best-of-10 87.71 at 13B | Mixed |
| transfer orders selected by gpt2-large to ChatGPT | DEmO · SUBJ | accuracy: 68.75 -> 76.56 | Improved |
| transfer orders selected by gpt2-large to ChatGPT | DEmO · SST2 | accuracy: 95.31 -> 95.31 | No clear effect |
| extend DEmO to generation using first-token probabilities | DEmO · MIT Movies | exact match: 82.50 -> 83.91 | Improved |
| use DEmO instead of GLE (dataset-based) on SST2 | Sheared LLaMA2 1.3B · SST2 | accuracy: 85.16 -> 82.81 | Hurt |
Open problems in in-context learning analysis
Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?
- Only a few small or medium open models were tested. · 14 papers state it
- The method needs many extra LLM calls or passes. · 13 papers state it
- Evaluated on English data only, with other languages untested. · 12 papers state it
Closest papers by meaning
- In-Context Example Ordering Guided by Label Distributions (NAACL 2024 · similarity 0.93)
- Hierarchical Demonstration Order Optimization for Many-shot In-Context Learning (NeurIPS 2025 · similarity 0.91)
- OptiSeq: Ordering Examples On-The-Fly for In-Context Learning (EMNLP 2025 · similarity 0.90)
- Addressing Order Sensitivity of In-Context Demonstration Examples in Causal Language Models (ACL 2024 · similarity 0.89)
- Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Ordering (ACL 2023 · similarity 0.88)
- MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning (ICML 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.