MEND: Meta Demonstration Distillation for Efficient and Effective In-Context Learning
Yichuan Li, Xiyao Ma, Sixing Lu, Kyumin Lee, Xiaohu Liu, Chenlei Guo
摘要
Large Language models (LLMs) have demonstrated impressive in-context learning (ICL) capabilities, where a LLM makes predictions for a given test input together with a few input-output pairs (demonstrations). Nevertheless, the inclusion of demonstrations leads to a quadratic increase in the computational overhead of the selfattention mechanism. Existing solutions attempt to distill lengthy demonstrations into compact vectors. However, they often require task-specific retraining or compromise LLM's in-context learning performance. To mitigate these challenges, we present Meta dEmonstratioN Distillation (MEND), where a language model learns to distill any lengthy demonstrations into vectors without retraining for a new downstream task. We exploit the knowledge distillation to enhance alignment between MEND and LLM, achieving both efficiency and effectiveness simultaneously. MEND is endowed with the meta-knowledge of distilling demonstrations through a two-stage training process, which includes meta-distillation pretraining and fine-tuning. Comprehensive evaluations across seven diverse ICL task partitions using decoder-only (GPT-2) and encoder-decoder (T5) attest to MEND's prowess. It not only matches but often outperforms the Vanilla ICL as well as other state-of-the-art distillation models, while significantly reducing the computational demands. This innovation promises enhanced scalability and efficiency for the practical deployment of large language models 1.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Learning to Compress Prompts with Gist Tokens 引用了 Language Models are Few-Shot Learners
- Doc-to-LoRA: Learning to Instantly Internalize Contexts 引用了 Learning to Compress Prompts with Gist Tokens
- Doc-to-LoRA: Learning to Instantly Internalize Contexts 引用了 Language Models are Few-Shot Learners
- A Survey on In-context Learning 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- A Survey on In-context Learning 引用了 Language Models are Few-Shot Learners
- Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? 引用了 Language Models are Few-Shot Learners
- Rethinking the Role of Demonstrations: What Makes In-Context Learning Work? 引用了 UnifiedQA: Crossing Format Boundaries With a Single QA System
- Rethinking the Evaluation of In-Context Learning for LLMs 引用了 A Survey on In-context Learning
- Rethinking the Evaluation of In-Context Learning for LLMs 引用了 Language Models are Few-Shot Learners
- Language Models are Few-Shot Learners 引用了 UnifiedQA: Crossing Format Boundaries With a Single QA System
- DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer 引用了 A Survey on In-context Learning
- DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper4
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng 等EMNLP 2024 · 479 次引用
- Doc-to-LoRA: Learning to Instantly Internalize ContextsRujikorn Charakorn, Edoardo Cetin, Shinnosuke Uesaka, Robert LangeICML 2026 · 27 次引用
- DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge TransferRuoyu Wang, Junda Wu, Yu Xia, Tong Yu 等KDD 2026 · 6 次引用
- Rethinking the Evaluation of In-Context Learning for LLMsGuoxin Yu, Lemao Liu, Mo Yu, Yue Yu 等EMNLP 2024
它引用的 Paper9
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe 等EMNLP 2022 · 634 次引用
- UnifiedQA: Crossing Format Boundaries With a Single QA SystemDaniel Khashabi, Sewon Min, Tushar Khot, Ashish Sabharwal 等EMNLP Findings 2020 · 514 次引用
- Learning to Compress Prompts with Gist TokensJesse Mu, Xiang Li, Noah D. GoodmanNeurIPS 2023 · 488 次引用
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng 等EMNLP 2024 · 479 次引用
相关 Paper
- Embedding-based In-Context Prompt Training for Enhancing LLMs as Text EncodersAiliang Lin, Zhuoyun Li, Keyu Mao, Kotaro Funakoshi 等ACL Findings 2026
- What Do Language Models Learn in Context? The Structured Task HypothesisJiaoda Li, Yifan Hou, Mrinmaya Sachan, Ryan CotterellACL 2024 · 5 次引用
- Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context LearningNiloufar Alipour Talemi, Hossein Kashiani, Fatemeh AfghahICML 2026
- FiD-ICL: A Fusion-in-Decoder Approach for Efficient In-Context LearningQinyuan Ye, Iz Beltagy, Matthew E. Peters, Xiang Ren 等ACL 2023 · 5 次引用
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space SteeringSheng Liu, Haotian Ye, Lei Xing, James Y. ZouICML 2024 · 244 次引用
