Memorization in In-Context Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Golchin, Shahriar, Surdeanu, Mihai, Bethard, Steven, Blanco, Eduardo, Riloff, Ellen
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913775749169152
author Golchin, Shahriar
Surdeanu, Mihai
Bethard, Steven
Blanco, Eduardo
Riloff, Ellen
author_facet Golchin, Shahriar
Surdeanu, Mihai
Bethard, Steven
Blanco, Eduardo
Riloff, Ellen
contents In-context learning (ICL) has proven to be an effective strategy for improving the performance of large language models (LLMs) with no additional training. However, the exact mechanism behind this performance improvement remains unclear. This study is the first to show how ICL surfaces memorized training data and to explore the correlation between this memorization and performance on downstream tasks across various ICL regimes: zero-shot, few-shot, and many-shot. Our most notable findings include: (1) ICL significantly surfaces memorization compared to zero-shot learning in most cases; (2) demonstrations, without their labels, are the most effective element in surfacing memorization; (3) ICL improves performance when the surfaced memorization in few-shot regimes reaches a high level (about 40%); and (4) there is a very strong correlation between performance and memorization in ICL when it outperforms zero-shot learning. Overall, our study uncovers memorization as a new factor impacting ICL, raising an important question: to what extent do LLMs truly generalize from demonstrations in ICL, and how much of their success is due to memorization?
format Preprint
id arxiv_https___arxiv_org_abs_2408_11546
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Memorization in In-Context Learning
Golchin, Shahriar
Surdeanu, Mihai
Bethard, Steven
Blanco, Eduardo
Riloff, Ellen
Computation and Language
Artificial Intelligence
Machine Learning
In-context learning (ICL) has proven to be an effective strategy for improving the performance of large language models (LLMs) with no additional training. However, the exact mechanism behind this performance improvement remains unclear. This study is the first to show how ICL surfaces memorized training data and to explore the correlation between this memorization and performance on downstream tasks across various ICL regimes: zero-shot, few-shot, and many-shot. Our most notable findings include: (1) ICL significantly surfaces memorization compared to zero-shot learning in most cases; (2) demonstrations, without their labels, are the most effective element in surfacing memorization; (3) ICL improves performance when the surfaced memorization in few-shot regimes reaches a high level (about 40%); and (4) there is a very strong correlation between performance and memorization in ICL when it outperforms zero-shot learning. Overall, our study uncovers memorization as a new factor impacting ICL, raising an important question: to what extent do LLMs truly generalize from demonstrations in ICL, and how much of their success is due to memorization?
title Memorization in In-Context Learning
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2408.11546