Investigating the Learning Behaviour of In-context Learning: A Comparison with Supervised Learning

Xindi Wang, Yufei Wang, Can Xu, Xiubo Geng, Bowen Zhang +4 more
7/28/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have shown remarkable capacity for in-context learning (ICL), where learning a new task from just a few training examples is done without being explicitly pre-trained. However, despite the success of LLMs, there has been little understanding of how ICL learns the knowledge from the given prompts. In this paper, to make progress toward understanding the learning behaviour of ICL, we train the same LLMs with the same demonstration examples via ICL and supervised learning (SL), respectively, and investigate their performance under label perturbations (i.e., noisy labels and label imbalance) on a range of classification tasks. First, via extensive experiments, we find that gold labels have significant impacts on the downstream in-context performance, especially for large language models; however, imbalanced labels matter little to ICL across all model sizes. Second, when comparing with SL, we show empirically that ICL is less sensitive to label perturbations than SL, and ICL gradually attains comparable performance to SL as the model size increases.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2023investigating,
  title  = {Investigating the Learning Behaviour of In-context Learning: A Comparison with Supervised Learning},
  author = {Xindi Wang and Yufei Wang and Can Xu and Xiubo Geng and Bowen Zhang and Chongyang Tao and Frank Rudzicz and Robert E. Mercer and Daxin Jiang},
  year   = {2023},
  eprint = {2307.15411},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.15411v2}
}

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/2307.15411.svg)](https://codeofpaper.com/paper/2307.15411)

Discussion