Nearest Neighbor Zero-Shot Inference
Weijia Shi, Julian Michael, Suchin Gururangan, Luke Zettlemoyer
摘要
Retrieval-augmented language models (LMs) use non-parametric memory to substantially outperform their non-retrieval counterparts on perplexity-based evaluations, but it is an open question whether they achieve similar gains in few- and zero-shot end-task accuracy. We extensively study one such model, the k-nearest neighbor LM (kNN-LM), showing that the gains marginally transfer. The main challenge is to achieve coverage of the verbalizer tokens that define the different end-task class labels. To address this challenge, we also introduce kNN-Prompt, a simple and effective kNN-LM with automatically expanded fuzzy verbalizers (e.g. to expand "terrible" to also include "silly" and other task-specific synonyms for sentiment classification). Across nine diverse end-tasks, using kNN-Prompt with GPT-2 large yields significant performance boosts over strong zeroshot baselines (13.4% absolute improvement over the base LM on average). We also show that other advantages of non-parametric augmentation hold for end tasks; kNN-Prompt is effective for domain adaptation with no further training, and gains increase with the size of the retrieval model.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances 引用了 Language Models are Few-Shot Learners
- How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances 引用了 Retrieval Augmented Language Model Pre-Training
- PromptCap: Prompt-Guided Image Captioning for VQA with GPT-3 引用了 Language Models are Few-Shot Learners
- PromptCap: Prompt-Guided Image Captioning for VQA with GPT-3 引用了 Finetuned Language Models are Zero-Shot Learners
- Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language Models 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language Models 引用了 Retrieval Augmented Language Model Pre-Training
- Language Models are Few-Shot Learners 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore 引用了 Language Models are Few-Shot Learners
- SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore 引用了 Retrieval Augmented Language Model Pre-Training
- Finetuned Language Models are Zero-Shot Learners 引用了 Language Models are Few-Shot Learners
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base 引用了 Language Models are Few-Shot Learners
- Calibrate Before Use: Improving Few-shot Performance of Language Models 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper19
- PromptCap: Prompt-Guided Image Captioning for VQA with GPT-3Yushi Hu, Hang Hua, Zhengyuan Yang, Weijia Shi 等ICCV 2023 · 91 次引用
- SILO Language Models: Isolating Legal Risk In a Nonparametric DatastoreSewon Min, Suchin Gururangan, Eric Wallace, Weijia Shi 等ICLR 2024 · 91 次引用
- Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language ModelsShangbin Feng, Weijia Shi, Yuyang Bai, Vidhisha Balachandran 等ICLR 2024 · 56 次引用
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge BaseYiheng Shu, Zhiwei Yu, Yuhan Li, Börje F. Karlsson 等EMNLP 2022 · 39 次引用
- How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent AdvancesZihan Zhang, Meng Fang, Ling Chen, Mohammad-Reza Namazi-Rad 等EMNLP 2023 · 22 次引用
它引用的 Paper14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 等NeurIPS 2020 · 19,162 次引用
- Finetuned Language Models are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu 等ICLR 2022 · 4,966 次引用
- Retrieval Augmented Language Model Pre-TrainingKelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat 等ICML 2020 · 2,937 次引用
- Calibrate Before Use: Improving Few-shot Performance of Language ModelsZihao Zhao, Eric Wallace, Shi Feng, Dan Klein 等ICML 2021 · 1,843 次引用
相关 Paper
- Adaptation Approaches for Nearest Neighbor Language ModelsRishabh Bhardwaj, George Polovets, Monica SunkaraACL Findings 2023 · 7 次引用
- Retrieval-Augmented Retrieval: Large Language Models are Strong Zero-Shot RetrieverTao Shen, Guodong Long, Xiubo Geng, Chongyang Tao 等ACL Findings 2024 · 29 次引用
- AdaPrompt: Adaptive Model Training for Prompt-based NLPYulong Chen, Yang Liu, Li Dong, Shuohang Wang 等EMNLP Findings 2022 · 44 次引用
- Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 次引用
- TransPrompt: Towards an Automatic Transferable Prompting Framework for Few-shot Text ClassificationChengyu Wang, Jianing Wang, Minghui Qiu, Jun Huang 等EMNLP 2021 · 39 次引用
