Research map / Large language models / Language, safety and interpretability
OptiSeq: Ordering Examples On-The-Fly for In-Context Learning
Rahul Atul Bhope, Praveen Venkateswaran, K. R. Jayaram, Vatche Isahagian, Vinod Muthusamy, Nalini Venkatasubramanian
UC Irvine · IBM
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 |
|---|---|---|---|
| select example order by example-free log probability (OptiSeq) instead of Top-K ordering | llama-3-8b-instruct · RestGPT | accuracy: 42.04 -> 61.15 | Improved |
| select example order with OptiSeq instead of random order | llama-3-8b-instruct · ToolBench | accuracy: 43.99 -> 54.18 | Improved |
| use OptiSeq instead of LocalE or Influence | five LLMs · API sequence generation and classification | accuracy: about 6.5 and 5.5 points on API generation; about 4 points on classification | Improved |
| prune permutations by anchoring the most similar example first (EOptiSeq) instead of full OptiSeq (ablation) | llama-3-8b-instruct · RestGPT | accuracy: 61.15 -> 52.32 | Hurt |
| use EOptiSeq instead of Top-K | llama-3-8b-instruct · ToolBench | accuracy: 44.80 -> 51.12 | Improved |
| use Top-K instead of random ordering | mixtral-8x7b-instruct-v01 · ToolBench | accuracy: 43.38 -> 42.56 | Hurt |
| use Top-K instead of random ordering | granite-13b-instruct-v2 · AG News | accuracy: 59.81 -> 58.69 | Hurt |
| use 3-shot OptiSeq instead of 4- or 5-shot random/Top-K ordering | OptiSeq · API sequence generation and classification | accuracy: 5.07 points (API) and 2.1 points (classification) on average | Improved |
| use out-of-distribution in-context examples instead of in-distribution examples | OptiSeq, Top-K, random · ToolBench and RestGPT 3-shot | accuracy: drop across all techniques, larger for random and Top-K | Hurt |
| batch the 6 permutation prompts in OptiSeq | llama-3-8b-instruct · AG News latency (A5000) | latency per prompt: 13.44s -> 2.81s per prompt | Improved |
| add more in-context examples (2 to 7) or use larger LLMs | ICL on ToolBench · ToolBench recall | order sensitivity | No clear effect |
Open problems this paper states
- “Requires evaluating all k! permutations of prompts, which becomes costly as in-context examples grow.” → The method needs many extra LLM calls or passes. (an open problem in in-context learning analysis)
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.90)
- What Makes a Good Order of Examples in In-Context Learning (ACL 2024 · similarity 0.90)
- Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplars (NeurIPS 2024 · similarity 0.88)
- In-Context Principle Learning from Mistakes (ICML 2024 · similarity 0.86)
- Let's (not) just put things in Context: Test-time Training for Long-context LLMs (ICLR 2026 · similarity 0.86)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · 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.