@inproceedings{69300279a7b4472c9ac7351a38bfef2d,
title = "In-Context Learning Creates Task Vectors",
abstract = "In-context learning (ICL) in Large Language Models (LLMs) has emerged as a powerful new learning paradigm. However, its underlying mechanism is still not well understood. In particular, it is challenging to map it to the “standard” machine learning framework, where one uses a training set S to find a best-fitting function f(x) in some hypothesis class. Here we make progress on this problem by showing that the functions learned by ICL often have a very simple structure: they correspond to the transformer LLM whose only inputs are the query x and a single “task vector” calculated from the training set. Thus, ICL can be seen as compressing S into a single task vector θ(S) and then using this task vector to modulate the transformer to produce the output. We support the above claim via comprehensive experiments across a range of models and tasks.",
author = "Roee Hendel and Mor Geva and Amir Globerson",
note = "Publisher Copyright: {\textcopyright} 2023 Association for Computational Linguistics.; 2023 Findings of the Association for Computational Linguistics: EMNLP 2023 ; Conference date: 06-12-2023 Through 10-12-2023",
year = "2023",
doi = "10.18653/v1/2023.findings-emnlp.624",
language = "الإنجليزيّة",
series = "Findings of the Association for Computational Linguistics: EMNLP 2023",
publisher = "Association for Computational Linguistics (ACL)",
pages = "9318--9333",
booktitle = "Findings of the Association for Computational Linguistics",
address = "الولايات المتّحدة",
}