AI Paper Atlas

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

EMNLP 2023Large language models › Language, safety and interpretabilityapproach: Task vectors and steering2 citations (OpenAlex)

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 changedWhereMeasuredEffect
add repeated demonstrations with sliding causal attention to regular ICLregular ICL, LLaMA-65B · average over 6 tasksperformance: 59.83 -> 64.96Improved
add repeated demonstrations with sliding causal attention to regular ICLregular ICL, LLaMA-30B · average over 6 tasksperformance: 52.71 -> 56.55Improved
add repeated demonstrations with sliding causal attentionregular ICL, LLaMA-65B · MMLU (4-shot)performance: 62.20 -> 63.66Improved
replace causal attention with full attention at inference (ablation)regular ICL · average over 6 tasksperformance: LLaMA-65B 59.83 -> 45.15; LLaMA-30B 52.71 -> 47.84Hurt
repeat demonstrations without sliding window (Rd) (ablation)regular ICL · average over 6 tasksperformance: LLaMA-65B 59.83 -> 60.18; LLaMA-30B 52.71 -> 54.02No clear effect
add sliding causal attention to repeated demonstrations (ablation)Rd · average over 6 tasksperformance: LLaMA-65B 60.18 -> 64.96 (with <SOS> kept)Improved
keep <SOS> token in every attention window (ablation)RdSca · average over 6 tasksperformance: LLaMA-65B 32.20 -> 64.96; LLaMA-30B 12.96 -> 56.55Improved
increase attention window size W from 1 to 4 (ablation)RdSca with KATE · average over 6 tasksperformance: LLaMA-65B 60.83 -> 74.27Improved
let the query see all 4 demonstrations instead of 3 (ablation)RdSca W=4 with KATE · average over 6 tasksperformance: LLaMA-65B 70.99 -> 74.27; LLaMA-30B 64.44 -> 68.73Improved
add RdSca on top of KATE demonstration retrievalregular ICL with KATE, LLaMA-65B · SST-2performance: 74.75 -> 87.38Improved
add RdSca to regular ICLLLaMA-65B · CBperformance: 76.79 -> 76.90No clear effect
add RdSca to regular ICLLLaMA-7B · SST-2performance: SST-2 49.72 -> 50.92No clear effect

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy