TY - GEN
T1 - Transformer verbatim in-context retrieval across time and scale
AU - Armeni, Kristijan
AU - Pranjić, Marko
AU - Pollak, Senja
N1 - Publisher Copyright:
© 2024 Association for Computational Linguistics.
PY - 2024
Y1 - 2024
N2 - 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.
AB - 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.
UR - https://www.scopus.com/pages/publications/85215535860
UR - https://www.scopus.com/pages/publications/85215535860#tab=citedBy
M3 - Conference contribution
AN - SCOPUS:85215535860
T3 - CoNLL 2024 - 28th Conference on Computational Natural Language Learning, Proceedings of the Conference
SP - 56
EP - 68
BT - CoNLL 2024 - 28th Conference on Computational Natural Language Learning, Proceedings of the Conference
A2 - Barak, Libby
A2 - Alikhani, Malihe
PB - Association for Computational Linguistics (ACL)
T2 - 28th Conference on Computational Natural Language Learning, CoNLL 2024 held alongside EMNLP 2024
Y2 - 15 November 2024 through 16 November 2024
ER -