Self-generated In-context Learning: Leveraging Auto-regressive Language Models As A Demonstration Generator · The Large Language Model Bible Contribute to LLM-Bible

Self-generated In-context Learning: Leveraging Auto-regressive Language Models As A Demonstration Generator

Kim Hyuhng Joon, Cho Hyunsoo, Kim Junyeob, Kim Taeuk, Yoo Kang Min, Lee Sang-goo. Arxiv 2022

[Paper]    
In Context Learning Prompting RAG Training Techniques

Large-scale pre-trained language models (PLMs) are well-known for being capable of solving a task simply by conditioning a few input-label pairs dubbed demonstrations on a prompt without being explicitly tuned for the desired downstream task. Such a process (i.e., in-context learning), however, naturally leads to high reliance on the demonstrations which are usually selected from external datasets. In this paper, we propose self-generated in-context learning (SG-ICL), which generates demonstrations for in-context learning from PLM itself to minimize the reliance on the external demonstration. We conduct experiments on four different text classification tasks and show SG-ICL significantly outperforms zero-shot learning and is generally worth approximately 0.6 gold training samples. Moreover, our generated demonstrations show more consistent performance with low variance compared to randomly selected demonstrations from the training dataset.

Similar Work