Selective Annotation Makes Language Models Better Few-Shot Learners
Many recent approaches to natural language tasks are built on the remarkable abilities of large language models. Large language models can perform in-context learning, where they learn a new task from a few task demonstrations, without any parameter updates. This work examines the implications of in...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2022-09 |
---|---|
Hauptverfasser: | , , , , , , , , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Su, Hongjin Kasai, Jungo Chen Henry Wu Shi, Weijia Wang, Tianlu Xin, Jiayi Zhang, Rui Ostendorf, Mari Zettlemoyer, Luke Smith, Noah A Yu, Tao |
description | Many recent approaches to natural language tasks are built on the remarkable abilities of large language models. Large language models can perform in-context learning, where they learn a new task from a few task demonstrations, without any parameter updates. This work examines the implications of in-context learning for the creation of datasets for new natural language tasks. Departing from recent in-context learning methods, we formulate an annotation-efficient, two-step framework: selective annotation that chooses a pool of examples to annotate from unlabeled data in advance, followed by prompt retrieval that retrieves task examples from the annotated pool at test time. Based on this framework, we propose an unsupervised, graph-based selective annotation method, voke-k, to select diverse, representative examples to annotate. Extensive experiments on 10 datasets (covering classification, commonsense reasoning, dialogue, and text/code generation) demonstrate that our selective annotation method improves the task performance by a large margin. On average, vote-k achieves a 12.9%/11.4% relative gain under an annotation budget of 18/100, as compared to randomly selecting examples to annotate. Compared to state-of-the-art supervised finetuning approaches, it yields similar performance with 10-100x less annotation cost across 10 tasks. We further analyze the effectiveness of our framework in various scenarios: language models with varying sizes, alternative selective annotation methods, and cases where there is a test data domain shift. We hope that our studies will serve as a basis for data annotations as large language models are increasingly applied to new tasks. Our code is available at https://github.com/HKUNLP/icl-selective-annotation. |
format | Article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2711105560</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2711105560</sourcerecordid><originalsourceid>FETCH-proquest_journals_27111055603</originalsourceid><addsrcrecordid>eNqNyr0KwjAUQOEgCBbtO1xwDuTHtK5aLA7tVPcS9FpbS6K5qb6-Dj6A0xm-M2OJ0lry7UapBUuJBiGEynJljE5Y0eCI59i_EHbO-Whj7x3U9o4ElXXdZDuE2l9wJNhjjBigxDdvbj5ChTY4DLRi86sdCdNfl2xdHk7FkT-Cf05IsR38FNyXWpVLKYUxmdD_XR_K8Dmn</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2711105560</pqid></control><display><type>article</type><title>Selective Annotation Makes Language Models Better Few-Shot Learners</title><source>Free E- Journals</source><creator>Su, Hongjin ; Kasai, Jungo ; Chen Henry Wu ; Shi, Weijia ; Wang, Tianlu ; Xin, Jiayi ; Zhang, Rui ; Ostendorf, Mari ; Zettlemoyer, Luke ; Smith, Noah A ; Yu, Tao</creator><creatorcontrib>Su, Hongjin ; Kasai, Jungo ; Chen Henry Wu ; Shi, Weijia ; Wang, Tianlu ; Xin, Jiayi ; Zhang, Rui ; Ostendorf, Mari ; Zettlemoyer, Luke ; Smith, Noah A ; Yu, Tao</creatorcontrib><description>Many recent approaches to natural language tasks are built on the remarkable abilities of large language models. Large language models can perform in-context learning, where they learn a new task from a few task demonstrations, without any parameter updates. This work examines the implications of in-context learning for the creation of datasets for new natural language tasks. Departing from recent in-context learning methods, we formulate an annotation-efficient, two-step framework: selective annotation that chooses a pool of examples to annotate from unlabeled data in advance, followed by prompt retrieval that retrieves task examples from the annotated pool at test time. Based on this framework, we propose an unsupervised, graph-based selective annotation method, voke-k, to select diverse, representative examples to annotate. Extensive experiments on 10 datasets (covering classification, commonsense reasoning, dialogue, and text/code generation) demonstrate that our selective annotation method improves the task performance by a large margin. On average, vote-k achieves a 12.9%/11.4% relative gain under an annotation budget of 18/100, as compared to randomly selecting examples to annotate. Compared to state-of-the-art supervised finetuning approaches, it yields similar performance with 10-100x less annotation cost across 10 tasks. We further analyze the effectiveness of our framework in various scenarios: language models with varying sizes, alternative selective annotation methods, and cases where there is a test data domain shift. We hope that our studies will serve as a basis for data annotations as large language models are increasingly applied to new tasks. Our code is available at https://github.com/HKUNLP/icl-selective-annotation.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Annotations ; Context ; Cost analysis ; Datasets ; Language ; Learning ; Natural language ; Testing time</subject><ispartof>arXiv.org, 2022-09</ispartof><rights>2022. This work is published under http://creativecommons.org/licenses/by/4.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><link.rule.ids>780,784</link.rule.ids></links><search><creatorcontrib>Su, Hongjin</creatorcontrib><creatorcontrib>Kasai, Jungo</creatorcontrib><creatorcontrib>Chen Henry Wu</creatorcontrib><creatorcontrib>Shi, Weijia</creatorcontrib><creatorcontrib>Wang, Tianlu</creatorcontrib><creatorcontrib>Xin, Jiayi</creatorcontrib><creatorcontrib>Zhang, Rui</creatorcontrib><creatorcontrib>Ostendorf, Mari</creatorcontrib><creatorcontrib>Zettlemoyer, Luke</creatorcontrib><creatorcontrib>Smith, Noah A</creatorcontrib><creatorcontrib>Yu, Tao</creatorcontrib><title>Selective Annotation Makes Language Models Better Few-Shot Learners</title><title>arXiv.org</title><description>Many recent approaches to natural language tasks are built on the remarkable abilities of large language models. Large language models can perform in-context learning, where they learn a new task from a few task demonstrations, without any parameter updates. This work examines the implications of in-context learning for the creation of datasets for new natural language tasks. Departing from recent in-context learning methods, we formulate an annotation-efficient, two-step framework: selective annotation that chooses a pool of examples to annotate from unlabeled data in advance, followed by prompt retrieval that retrieves task examples from the annotated pool at test time. Based on this framework, we propose an unsupervised, graph-based selective annotation method, voke-k, to select diverse, representative examples to annotate. Extensive experiments on 10 datasets (covering classification, commonsense reasoning, dialogue, and text/code generation) demonstrate that our selective annotation method improves the task performance by a large margin. On average, vote-k achieves a 12.9%/11.4% relative gain under an annotation budget of 18/100, as compared to randomly selecting examples to annotate. Compared to state-of-the-art supervised finetuning approaches, it yields similar performance with 10-100x less annotation cost across 10 tasks. We further analyze the effectiveness of our framework in various scenarios: language models with varying sizes, alternative selective annotation methods, and cases where there is a test data domain shift. We hope that our studies will serve as a basis for data annotations as large language models are increasingly applied to new tasks. Our code is available at https://github.com/HKUNLP/icl-selective-annotation.</description><subject>Annotations</subject><subject>Context</subject><subject>Cost analysis</subject><subject>Datasets</subject><subject>Language</subject><subject>Learning</subject><subject>Natural language</subject><subject>Testing time</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2022</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNyr0KwjAUQOEgCBbtO1xwDuTHtK5aLA7tVPcS9FpbS6K5qb6-Dj6A0xm-M2OJ0lry7UapBUuJBiGEynJljE5Y0eCI59i_EHbO-Whj7x3U9o4ElXXdZDuE2l9wJNhjjBigxDdvbj5ChTY4DLRi86sdCdNfl2xdHk7FkT-Cf05IsR38FNyXWpVLKYUxmdD_XR_K8Dmn</recordid><startdate>20220905</startdate><enddate>20220905</enddate><creator>Su, Hongjin</creator><creator>Kasai, Jungo</creator><creator>Chen Henry Wu</creator><creator>Shi, Weijia</creator><creator>Wang, Tianlu</creator><creator>Xin, Jiayi</creator><creator>Zhang, Rui</creator><creator>Ostendorf, Mari</creator><creator>Zettlemoyer, Luke</creator><creator>Smith, Noah A</creator><creator>Yu, Tao</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>20220905</creationdate><title>Selective Annotation Makes Language Models Better Few-Shot Learners</title><author>Su, Hongjin ; Kasai, Jungo ; Chen Henry Wu ; Shi, Weijia ; Wang, Tianlu ; Xin, Jiayi ; Zhang, Rui ; Ostendorf, Mari ; Zettlemoyer, Luke ; Smith, Noah A ; Yu, Tao</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_27111055603</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2022</creationdate><topic>Annotations</topic><topic>Context</topic><topic>Cost analysis</topic><topic>Datasets</topic><topic>Language</topic><topic>Learning</topic><topic>Natural language</topic><topic>Testing time</topic><toplevel>online_resources</toplevel><creatorcontrib>Su, Hongjin</creatorcontrib><creatorcontrib>Kasai, Jungo</creatorcontrib><creatorcontrib>Chen Henry Wu</creatorcontrib><creatorcontrib>Shi, Weijia</creatorcontrib><creatorcontrib>Wang, Tianlu</creatorcontrib><creatorcontrib>Xin, Jiayi</creatorcontrib><creatorcontrib>Zhang, Rui</creatorcontrib><creatorcontrib>Ostendorf, Mari</creatorcontrib><creatorcontrib>Zettlemoyer, Luke</creatorcontrib><creatorcontrib>Smith, Noah A</creatorcontrib><creatorcontrib>Yu, Tao</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>Su, Hongjin</au><au>Kasai, Jungo</au><au>Chen Henry Wu</au><au>Shi, Weijia</au><au>Wang, Tianlu</au><au>Xin, Jiayi</au><au>Zhang, Rui</au><au>Ostendorf, Mari</au><au>Zettlemoyer, Luke</au><au>Smith, Noah A</au><au>Yu, Tao</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Selective Annotation Makes Language Models Better Few-Shot Learners</atitle><jtitle>arXiv.org</jtitle><date>2022-09-05</date><risdate>2022</risdate><eissn>2331-8422</eissn><abstract>Many recent approaches to natural language tasks are built on the remarkable abilities of large language models. Large language models can perform in-context learning, where they learn a new task from a few task demonstrations, without any parameter updates. This work examines the implications of in-context learning for the creation of datasets for new natural language tasks. Departing from recent in-context learning methods, we formulate an annotation-efficient, two-step framework: selective annotation that chooses a pool of examples to annotate from unlabeled data in advance, followed by prompt retrieval that retrieves task examples from the annotated pool at test time. Based on this framework, we propose an unsupervised, graph-based selective annotation method, voke-k, to select diverse, representative examples to annotate. Extensive experiments on 10 datasets (covering classification, commonsense reasoning, dialogue, and text/code generation) demonstrate that our selective annotation method improves the task performance by a large margin. On average, vote-k achieves a 12.9%/11.4% relative gain under an annotation budget of 18/100, as compared to randomly selecting examples to annotate. Compared to state-of-the-art supervised finetuning approaches, it yields similar performance with 10-100x less annotation cost across 10 tasks. We further analyze the effectiveness of our framework in various scenarios: language models with varying sizes, alternative selective annotation methods, and cases where there is a test data domain shift. We hope that our studies will serve as a basis for data annotations as large language models are increasingly applied to new tasks. Our code is available at https://github.com/HKUNLP/icl-selective-annotation.</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, 2022-09 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_2711105560 |
source | Free E- Journals |
subjects | Annotations Context Cost analysis Datasets Language Learning Natural language Testing time |
title | Selective Annotation Makes Language Models Better Few-Shot Learners |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-28T08%3A41%3A39IST&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=Selective%20Annotation%20Makes%20Language%20Models%20Better%20Few-Shot%20Learners&rft.jtitle=arXiv.org&rft.au=Su,%20Hongjin&rft.date=2022-09-05&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2711105560%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2711105560&rft_id=info:pmid/&rfr_iscdi=true |