Research map / Large language models / Language, safety and interpretability
Addressing Order Sensitivity of In-Context Demonstration Examples in Causal Language Models
Yanzheng Xiang, Hanqi Yan, Lin Gui, Yulan He
King's College London · The Alan Turing Institute
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 |
|---|---|---|---|
| Use a PrefixLM (full attention) instead of a CausalLM | Flan-T5-XXL vs Llama2-chat-13B · SST-5 (10-shot) | Partial correct ratio: 6.7% vs 58.4% of test cases partially correct | Improved |
| Scale model from 7B to 13B | Llama2-chat and Vicuna · SST-5 (10-shot) | Partial correct ratio: Llama 0.566 -> 0.605; Vicuna 0.469 -> 0.524 | Hurt |
| Add information augmentation (contrastive alignment to last-position representation) (ablation) | Llama-7B · SST-5 (10-shot) | Partial correct ratio: 0.566 -> 0.271 | Improved |
| Add consistency loss on top of information augmentation (ablation) | Llama-7B · SST-5 (10-shot) | Partial correct ratio: 0.271 -> 0.159 | Improved |
| Add information augmentation (ablation) | Llama-7B · QQP (10-shot) | Majority voting accuracy: 0.665 -> 0.702 | Improved |
| Add consistency loss on top of information augmentation (ablation) | Llama-7B · QQP (10-shot) | Majority voting accuracy: 0.702 -> 0.697 | No clear effect |
| Add InfoAC fine-tuning | Vicuna-7B · SST-5 (10-shot) | Majority voting accuracy: 0.502 -> 0.500 | No clear effect |
| Use KNN or One-Shot example selection instead of random | Llama-7B · SST-5 (10-shot) | Partial correct ratio: 0.566 (random) vs 0.581 (KNN), 0.594 (One-Shot) | No clear effect |
| Add InfoAC to KNN selection | Llama-7B · SST-5 (KNN selection) | Partial correct ratio: 0.581 -> 0.162 | Improved |
| Increase number of in-context examples k (ablation) | Llama-7B · SST-5 | Partial correct ratio: 0.556 -> 0.592 -> 0.643 (k=4, 20, 50) | Hurt |
| Apply InfoAC trained at k=10 to k=20 | Llama-7B · SST-5 (k=20) | Partial correct ratio: 0.592 -> 0.224 | Improved |
| Apply InfoAC trained at k=10 to k=4 | All four causal models · SST-5 and Sequence Next Term (k=4) | Majority voting accuracy | Improved |
Open problems in linguistic encoding in LLM representations
Do the linguistic signals found in LLM representations play a causal role, and do they hold across languages and model scales?
- Evaluated on English only, so other languages are untested. · 21 papers state it
- Only small models were studied, and larger ones are untested. · 21 papers state it
- Links to model behaviour are correlational, with no causal test. · 14 papers state it
Closest papers by meaning
- What Makes a Good Order of Examples in In-Context Learning (ACL 2024 · similarity 0.89)
- CCL: Causal-aware In-context Learning for Out-of-Distribution Generalization (NeurIPS 2025 · similarity 0.89)
- CausalLM is not optimal for in-context learning (ICLR 2024 · similarity 0.88)
- Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability (ICLR 2024 · similarity 0.88)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · similarity 0.87)
- BERTs are Generative In-Context Learners (NeurIPS 2024 · similarity 0.87)
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.