MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning
Not on the map. Why?
Abstract (arXiv)
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 self-attention 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
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 19 of its 24 references that are in the map. First posted on arXiv 11 Mar 2024.
Builds on
19 of 24 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
- 2016HyperNetworkscited by 1,027
7 more
- 2020UnifiedQA: Crossing Format Boundaries With a Single QA Systemcited by 476
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2021CrossFit: A Few-shot Learning Challenge for Cross-task Generalization in NLPcited by 142
- 2022Learning by Distilling Contextcited by 138
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2022HyperTuning: Toward Adapting Large Language Models without Back-propagationcited by 46
- 2021Learning to Generate Task-Specific Adapters from Task Descriptioncited by 28
Built on by
Citing papers per year: 2024: 5; 2025: 5; 2026: 5.
15 papers.
Sort:
By area:
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 43
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
- 2024Mitigating Copy Bias in In-Context Learning through Neuron Pruningcited by 11
- 2024Generative Prompt Internalizationcited by 8
- 2024Awakening Augmented Generation: Learning to Awaken Internal Knowledge of Large Language Models for Question Answeringcited by 7
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfercited by 5
- 2024SoftSRV: Learn to Generate Targeted Synthetic Datacited by 3
- 2025On Theoretical Interpretations of Concept-Based In-Context Learningcited by 3
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atomscited by 2
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functionscited by 1
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Onescited by 0
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026Meta-Learning Preferences for Multilingual LLM Alignment14 Jul 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2026Doc-to-Atom: Learning to Compile and Compose Memory Atoms10 Jun 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025The Impact of Role Design in In-Context Learning for Large Language Models27 Sep 2025
- 2025On Theoretical Interpretations of Concept-Based In-Context Learning25 Sep 2025
- 2025DICE: Dynamic In-Context Example Selection in LLM Agents via Efficient Knowledge Transfer31 Jul 2025
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Ones6 Jun 2025
- 2024Generative Prompt Internalization24 Nov 2024
- 2024SoftSRV: Learn to Generate Targeted Synthetic Data21 Oct 2024
3 more
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learning9 Oct 2024
- 2024Mitigating Copy Bias in In-Context Learning through Neuron Pruning2 Oct 2024
- 2024Awakening Augmented Generation: Learning to Awaken Internal Knowledge of Large Language Models for Question Answering22 Mar 2024
- 2026Meta-Learning Preferences for Multilingual LLM Alignmentcited by 0
- 2026Meta-Learning Preferences for Multilingual LLM Alignment14 Jul 2026
- 2024SoftSRV: Learn to Generate Targeted Synthetic Datacited by 3
- 2024SoftSRV: Learn to Generate Targeted Synthetic Data21 Oct 2024
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learningcited by 21
- 2024Mitigating Copy Bias in In-Context Learning through Neuron Pruningcited by 11
- 2024Generative Prompt Internalizationcited by 8
- 2025On Theoretical Interpretations of Concept-Based In-Context Learningcited by 3
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functionscited by 1
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Onescited by 0
- 2025The Impact of Role Design in In-Context Learning for Large Language Modelscited by 0
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalizationcited by 0
- 2026LoRA-generating hypernetworks for efficient on-device LLM generative personalization21 Sep 2026
- 2026Program-as-Weights: A Programming Paradigm for Fuzzy Functions2 Jul 2026
- 2025The Impact of Role Design in In-Context Learning for Large Language Models27 Sep 2025
- 2025On Theoretical Interpretations of Concept-Based In-Context Learning25 Sep 2025
- 2025Projectable Models: One-Shot Generation of Small Specialized Transformers from Large Ones6 Jun 2025
- 2024Generative Prompt Internalization24 Nov 2024
- 2024Let's Ask GNN: Empowering Large Language Model for Graph In-Context Learning9 Oct 2024
- 2024Mitigating Copy Bias in In-Context Learning through Neuron Pruning2 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025Brewing Knowledge in Context: Distillation Perspectives on In-Context Learning
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2023Meta-training with Demonstration Retrieval for Efficient Few-shot Learning
- 2023Are Human-generated Demonstrations Necessary for In-context Learning?
- 2024SeCoKD: Aligning Large Language Models for In-Context Learning with Fewer Shots
- 2025Leveraging In-Context Learning for Language Model Agents
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generator