Loading…
MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning
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 computati...
Saved in:
Published in: | arXiv.org 2024-03 |
---|---|
Main Authors: | , , , , , |
Format: | Article |
Language: | English |
Subjects: | |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
cited_by | |
---|---|
cites | |
container_end_page | |
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Li, Yichuan Ma, Xiyao Lu, Sixing Lee, Kyumin Liu, Xiaohu Guo, Chenlei |
description | 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 |
format | article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2956474801</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2956474801</sourcerecordid><originalsourceid>FETCH-proquest_journals_29564748013</originalsourceid><addsrcrecordid>eNqNit0KgjAYQEcQJOU7DLoW5uZf3apRkF7VtQydMbFvtX1Gj19CD9DV4XDOgnhciDDIIs5XxHduYIzxJOVxLDxyrcq62NNKoaRdeTfg0ErUpqaFdqjHcRagvbG07HvdagVIJXSzqRb1S9ETBLkBVG-kZyUtaLhtyLKXo1P-j2uyPZSX_Bg8rHlOymEzmMnCNzV8FydRGmUsFP9dHzwMQAM</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2956474801</pqid></control><display><type>article</type><title>MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning</title><source>Publicly Available Content Database</source><creator>Li, Yichuan ; Ma, Xiyao ; Lu, Sixing ; Lee, Kyumin ; Liu, Xiaohu ; Guo, Chenlei</creator><creatorcontrib>Li, Yichuan ; Ma, Xiyao ; Lu, Sixing ; Lee, Kyumin ; Liu, Xiaohu ; Guo, Chenlei</creatorcontrib><description>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</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Context ; Distillation ; Encoders-Decoders ; Large language models</subject><ispartof>arXiv.org, 2024-03</ispartof><rights>2024. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://www.proquest.com/docview/2956474801?pq-origsite=primo$$EHTML$$P50$$Gproquest$$Hfree_for_read</linktohtml><link.rule.ids>778,782,25740,36999,44577</link.rule.ids></links><search><creatorcontrib>Li, Yichuan</creatorcontrib><creatorcontrib>Ma, Xiyao</creatorcontrib><creatorcontrib>Lu, Sixing</creatorcontrib><creatorcontrib>Lee, Kyumin</creatorcontrib><creatorcontrib>Liu, Xiaohu</creatorcontrib><creatorcontrib>Guo, Chenlei</creatorcontrib><title>MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning</title><title>arXiv.org</title><description>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</description><subject>Context</subject><subject>Distillation</subject><subject>Encoders-Decoders</subject><subject>Large language models</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>PIMPY</sourceid><recordid>eNqNit0KgjAYQEcQJOU7DLoW5uZf3apRkF7VtQydMbFvtX1Gj19CD9DV4XDOgnhciDDIIs5XxHduYIzxJOVxLDxyrcq62NNKoaRdeTfg0ErUpqaFdqjHcRagvbG07HvdagVIJXSzqRb1S9ETBLkBVG-kZyUtaLhtyLKXo1P-j2uyPZSX_Bg8rHlOymEzmMnCNzV8FydRGmUsFP9dHzwMQAM</recordid><startdate>20240312</startdate><enddate>20240312</enddate><creator>Li, Yichuan</creator><creator>Ma, Xiyao</creator><creator>Lu, Sixing</creator><creator>Lee, Kyumin</creator><creator>Liu, Xiaohu</creator><creator>Guo, Chenlei</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20240312</creationdate><title>MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning</title><author>Li, Yichuan ; Ma, Xiyao ; Lu, Sixing ; Lee, Kyumin ; Liu, Xiaohu ; Guo, Chenlei</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_29564748013</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Context</topic><topic>Distillation</topic><topic>Encoders-Decoders</topic><topic>Large language models</topic><toplevel>online_resources</toplevel><creatorcontrib>Li, Yichuan</creatorcontrib><creatorcontrib>Ma, Xiyao</creatorcontrib><creatorcontrib>Lu, Sixing</creatorcontrib><creatorcontrib>Lee, Kyumin</creatorcontrib><creatorcontrib>Liu, Xiaohu</creatorcontrib><creatorcontrib>Guo, Chenlei</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni)</collection><collection>ProQuest Central</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Li, Yichuan</au><au>Ma, Xiyao</au><au>Lu, Sixing</au><au>Lee, Kyumin</au><au>Liu, Xiaohu</au><au>Guo, Chenlei</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning</atitle><jtitle>arXiv.org</jtitle><date>2024-03-12</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>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</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2024-03 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_2956474801 |
source | Publicly Available Content Database |
subjects | Context Distillation Encoders-Decoders Large language models |
title | MEND: Meta dEmonstratioN Distillation for Efficient and Effective In-Context Learning |
url | http://sfxeu10.hosted.exlibrisgroup.com/loughborough?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-15T16%3A07%3A49IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=MEND:%20Meta%20dEmonstratioN%20Distillation%20for%20Efficient%20and%20Effective%20In-Context%20Learning&rft.jtitle=arXiv.org&rft.au=Li,%20Yichuan&rft.date=2024-03-12&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2956474801%3C/proquest%3E%3Cgrp_id%3Ecdi_FETCH-proquest_journals_29564748013%3C/grp_id%3E%3Coa%3E%3C/oa%3E%3Curl%3E%3C/url%3E&rft_id=info:oai/&rft_pqid=2956474801&rft_id=info:pmid/&rfr_iscdi=true |