ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2310.15916
7
131

In-Context Learning Creates Task Vectors

24 October 2023
Roee Hendel
Mor Geva
Amir Globerson
ArXivPDFHTML
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 SSS to find a best-fitting function f(x)f(x)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 xxx and a single "task vector" calculated from the training set. Thus, ICL can be seen as compressing SSS into a single task vector θ(S)\boldsymbol{\theta}(S)θ(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.

View on arXiv
Comments on this paper