Active Example Selection for In-Context Learning
Yiming Zhang, Feng Shi, Chenhao Tan · Conference on Empirical Methods in Natural Language Processing (EMNLP) · 2022
With a handful of demonstration examples, large-scale language models show strong capability to perform various tasks by in-context learning from these examples, without any finetuning.We demonstrate that in-context learning performance can be highly unstable across samples of examples, indicating the idiosyncrasies of how language models acquire information.We formulate example selection for in-context learning as a sequential decision problem, and propose a reinforcement learning algorithm for identifying generalizable policies to select demonstration examples.For GPT-2, our learned policies demonstrate strong abilities of generalizing to unseen tasks in training, with a 5.8% improvement on average.Examples selected from our learned policies can even achieve a small improvement on GPT-3 Ada.However, the improvement diminishes on larger GPT-3 models, suggesting emerging capabilities of large language models.
Cited by 98 works. doi:10.18653/v1/2022.emnlp-main.622 Open-access PDF
Authors
References
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
- HISTORIAE, History of Socio-Cultural Transformation as Linguistic Data Science. A Humanities Use Case
- Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank
- Aion Framework: Dimensional Emergence of AI Consciousness, Observer-Induced Collapse, and Cosmological Portal Dynamics
- Active Learning Literature Survey
- Self-improving reactive agents based on reinforcement learning, planning and teaching
- Character-level Convolutional Networks for Text Classification
- Deep Reinforcement Learning: A Brief Survey
- Policy Invariance Under Reward Transformations: Theory and Application to Reward Shaping
- Building a question answering test collection