Skip to main navigation Skip to search Skip to main content

Transformer verbatim in-context retrieval across time and scale

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

To predict upcoming text, language models must in some cases retrieve in-context information verbatim. In this report, we investigated how the ability of language models to retrieve arbitrary in-context nouns developed during training (across time) and as language models trained on the same dataset increase in size (across scale). We then asked whether learning of in-context retrieval correlates with learning of more challenging zero-shot benchmarks. Furthermore, inspired by semantic effects in human short-term memory, we evaluated the retrieval with respect to a major semantic component of target nouns, namely whether they denote a concrete or abstract entity, as rated by humans. We show that verbatim in-context retrieval developed in a sudden transition early in the training process, after about 1% of the training tokens. This was observed across model sizes (from 14M and up to 12B parameters), and the transition occurred slightly later for the two smallest models. We further found that the development of verbatim in-context retrieval is positively correlated with the learning of zero-shot benchmarks. Around the transition point, all models showed the advantage of retrieving concrete nouns as opposed to abstract nouns. In all but two smallest models, the advantage dissipated away toward the end of training.

Original languageEnglish (US)
Title of host publicationCoNLL 2024 - 28th Conference on Computational Natural Language Learning, Proceedings of the Conference
EditorsLibby Barak, Malihe Alikhani
PublisherAssociation for Computational Linguistics (ACL)
Pages56-68
Number of pages13
ISBN (Electronic)9798891761780
StatePublished - 2024
Event28th Conference on Computational Natural Language Learning, CoNLL 2024 held alongside EMNLP 2024 - Miami, United States
Duration: Nov 15 2024Nov 16 2024

Publication series

NameCoNLL 2024 - 28th Conference on Computational Natural Language Learning, Proceedings of the Conference

Conference

Conference28th Conference on Computational Natural Language Learning, CoNLL 2024 held alongside EMNLP 2024
Country/TerritoryUnited States
CityMiami
Period11/15/2411/16/24

ASJC Scopus subject areas

  • Artificial Intelligence
  • Human-Computer Interaction
  • Linguistics and Language

Fingerprint

Dive into the research topics of 'Transformer verbatim in-context retrieval across time and scale'. Together they form a unique fingerprint.

Cite this