Can In-context Learners Learn a Reasoning Concept from Demonstrations?

Michal Štefánik, Marek Kadlčík
12/3/2022
cs.CLcs.AIcs.LG

Official code: MIR-MU/CoAT (0 stars, Python, MIT, last commit 2024-03-08).

Abstract

Language models exhibit an emergent ability to learn a new task from a small number of input-output demonstrations. However, recent work shows that in-context learners largely rely on their pre-trained knowledge, such as the sentiment of the labels, instead of learning new associations from the input.

Show full abstract

We argue that the commonly-used few-shot evaluation using a random selection of in-context demonstrations can not disentangle models' reliance on such biases, as most of the randomly-selected demonstrations do not present relations informative for prediction beyond exposing the task's input-output distribution. Therefore, to evaluate models' in-context learning ability independent of models' memory, we introduce a Concept-sharing few-shot learning method choosing the demonstrations that share an underlying concept with the predicted sample. We extract a set of such concepts from available human explanations and measure how much models can benefit from presenting these concepts in few-shot demonstrations. We find that most of the recent in-context learners can not consistently benefit from the demonstrated concepts, irrespective of the model size. However, we note that T0 models are more sensitive to exhibited concepts, benefiting from concept-sharing demonstrations in 7 out of 8 evaluation scenarios.

View on arXivView PDF

Code Implementations(1)

MIR-MU/CoATOfficial100%
MIT

Implementation of Concept-aware Training for efficient training of in-context learners

00Python, Jupyter NotebookMay 22, 20232 years agoMIT

Similar Papers

Cite this paper

@article{tefnik2022incontext,
  title  = {Can In-context Learners Learn a Reasoning Concept from Demonstrations?},
  author = {Michal Štefánik and Marek Kadlčík},
  year   = {2022},
  eprint = {2212.01692},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.01692}
}

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

Discussion