Research map / Large language models / Language, safety and interpretability
Improving Input-label Mapping with Demonstration Replay for In-context Learning
Zhuocheng Gong, Jiahao Liu, Qifan Wang, Jingang Wang, Xunliang Cai, Dongyan Zhao, Rui Yan
Renmin University of China · Peking University · Meituan · Beijing Institute for General Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
8improved
4no clear effect
2hurt
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 |
|---|---|---|---|
| add repeated demonstrations with sliding causal attention to regular ICL | regular ICL, LLaMA-65B · average over 6 tasks | performance: 59.83 -> 64.96 | Improved |
| add repeated demonstrations with sliding causal attention to regular ICL | regular ICL, LLaMA-30B · average over 6 tasks | performance: 52.71 -> 56.55 | Improved |
| add repeated demonstrations with sliding causal attention | regular ICL, LLaMA-65B · MMLU (4-shot) | performance: 62.20 -> 63.66 | Improved |
| replace causal attention with full attention at inference (ablation) | regular ICL · average over 6 tasks | performance: LLaMA-65B 59.83 -> 45.15; LLaMA-30B 52.71 -> 47.84 | Hurt |
| repeat demonstrations without sliding window (Rd) (ablation) | regular ICL · average over 6 tasks | performance: LLaMA-65B 59.83 -> 60.18; LLaMA-30B 52.71 -> 54.02 | No clear effect |
| add sliding causal attention to repeated demonstrations (ablation) | Rd · average over 6 tasks | performance: LLaMA-65B 60.18 -> 64.96 (with <SOS> kept) | Improved |
| keep <SOS> token in every attention window (ablation) | RdSca · average over 6 tasks | performance: LLaMA-65B 32.20 -> 64.96; LLaMA-30B 12.96 -> 56.55 | Improved |
| increase attention window size W from 1 to 4 (ablation) | RdSca with KATE · average over 6 tasks | performance: LLaMA-65B 60.83 -> 74.27 | Improved |
| let the query see all 4 demonstrations instead of 3 (ablation) | RdSca W=4 with KATE · average over 6 tasks | performance: LLaMA-65B 70.99 -> 74.27; LLaMA-30B 64.44 -> 68.73 | Improved |
| add RdSca on top of KATE demonstration retrieval | regular ICL with KATE, LLaMA-65B · SST-2 | performance: 74.75 -> 87.38 | Improved |
| add RdSca to regular ICL | LLaMA-65B · CB | performance: 76.79 -> 76.90 | No clear effect |
| add RdSca to regular ICL | LLaMA-7B · SST-2 | performance: SST-2 49.72 -> 50.92 | No clear effect |
Closest papers by meaning
- Revisiting In-context Learning Inference Circuit in Large Language Models (ICLR 2025 · similarity 0.90)
- Mixture of Demonstrations for In-Context Learning (NeurIPS 2024 · similarity 0.89)
- In-Context Learning Learns Label Relationships but Is Not Conventional Learning (ICLR 2024 · similarity 0.89)
- Disentangling Latent Shifts of In-Context Learning with Weak Supervision (NeurIPS 2025 · similarity 0.89)
- MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning (ICML 2025 · similarity 0.89)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · similarity 0.89)
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.
