Demonstration Augmentation for Zero-shot In-context Learning

Yi Su, Yunpeng Tai, Yixin Ji, Juntao Li, Bowen Yan +1 more
6/3/2024
cs.CL

No official code found. Best implementation: yisunlp/DAIL (2 stars, Apache-2.0, last commit 2024-07-01).

Abstract

Large Language Models (LLMs) have demonstrated an impressive capability known as In-context Learning (ICL), which enables them to acquire knowledge from textual demonstrations without the need for parameter updates. However, many studies have highlighted that the model's performance is sensitive to the choice of demonstrations, presenting a significant challenge for practical applications where we lack prior knowledge of user queries. Consequently, we need to construct an extensive demonstration pool and incorporate external databases to assist the model, leading to considerable time and financial costs. In light of this, some recent research has shifted focus towards zero-shot ICL, aiming to reduce the model's reliance on external information by leveraging their inherent generative capabilities. Despite the effectiveness of these approaches, the content generated by the model may be unreliable, and the generation process is time-consuming. To address these issues, we propose Demonstration Augmentation for In-context Learning (DAIL), which employs the model's previously predicted historical samples as demonstrations for subsequent ones. DAIL brings no additional inference cost and does not rely on the model's generative capabilities. Our experiments reveal that DAIL can significantly improve the model's performance over direct zero-shot inference and can even outperform few-shot ICL without any external information.

View on arXivView PDF

Code Implementations(1)

yisunlp/DAILCommunity100%
Apache-2.0

Code for Demonstration Augmentation for Zero-shot In-context Learning (ACL 2024, Findings).

20PythonMay 27, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{su2024demonstration,
  title  = {Demonstration Augmentation for Zero-shot In-context Learning},
  author = {Yi Su and Yunpeng Tai and Yixin Ji and Juntao Li and Bowen Yan and Min Zhang},
  year   = {2024},
  eprint = {2406.01224},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.01224v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.01224.svg)](https://codeofpaper.com/paper/2406.01224)

Discussion