Large pretrained language models (LMs) like BERT have improved performance in many disparate natural language processing (NLP) tasks. However, fine tuning such models requires a large number of training examples for each target task. Simultaneously, many realistic NLP problems are "few shot", without a sufficiently large training set. In this work, we propose a novel conditional neural process-based approach for few-shot text classification that learns to transfer from other diverse tasks with rich annotation. Our key idea is to represent each task using gradient information from a base model and to train an adaptation network that modulates a text classifier conditioned on the task representation. While previous task-aware few-shot learners represent tasks by input encoding, our novel task representation is more powerful, as the gradient captures input-output relationships of a task. Experimental results show that our approach outperforms traditional fine-tuning, sequential transfer learning, and state-of-the-art meta learning approaches on a collection of diverse few-shot tasks. We further conducted analysis and ablations to justify our design choices.
Selecting Demonstrations for Many-Shot In-Context Learning via Gradient Matching
School of Computer Science and Engineering, Beihang University, China(北京航空航天大学计算机科学与工程学院);Meituan, Inc.(美团公司);Beijing Institute for General Artificial Intelligence, China(北京通用人工智能研究院);Ping An Technology, China(平安科技);Department of Computer Science, University of Manchester, UK(曼彻斯特大学计算机科学系)
Structured Gradient Guidance for Few-Shot Adaptation in Large Language Models
The Chinese University of Hong Kong(香港中文大学);Georgia Institute of Technology(佐治亚理工学院);San Francisco State University(旧金山州立大学);Stevens Institute of Technology(斯蒂文斯理工学院)
Scaling Public Health Text Annotation: Zero-Shot Learning vs. Crowdsourcing for Improved Efficiency and Labeling Accuracy
University of Toronto(多伦多大学);Dalla Lana School of Public Health(达拉·拉纳公共卫生学院);Institute of Health Policy, Management, and Evaluation (IHPME)(卫生政策、管理与评价研究所);Faculty of Information(信息学院);Schwartz Reisman Institute(施瓦茨·赖斯曼研究所)
Zero-shot Sequence Labeling: Transferring Knowledge from Sentences to Tokens
The ALTA Institute(ALTA研究所);Computer Laboratory(计算机实验室);University of Cambridge(剑桥大学);United Kingdom(英国);CoAStaL DIKU(CoAStaL DIKU(此处“DIKU”为丹麦哥本哈根大学计算机科学系缩写,按原文保留));Department of Computer Science(计算机科学系);University of Copenhagen(哥本哈根大学);Denmark(丹麦)