mlsanityData to 7 Oct 2026

Task Vectors in In-Context Learning: Emergence, Formation, and Benefit

arXiv 2501.09240 ↗First posted 16 Jan 2025cs.LGcited by 20

Not on the map. Why?

Abstract (arXiv)

In-context learning is a remarkable capability of transformers, referring to their ability to adapt to specific tasks based on a short history or context. Previous research has found that task-specific information is locally encoded within models, though their emergence and functionality remain unclear due to opaque pre-training processes. In this work, we investigate the formation of task vectors in a controlled setting, using models trained from scratch on synthetic datasets. Our findings confirm that task vectors naturally emerge under certain conditions, but the tasks may be relatively weakly and/or non-locally encoded within the model. To promote strong task vectors encoded at a prescribed location within the model, we propose an auxiliary training mechanism based on a task vector prompting loss (TVP-loss). This method eliminates the need to search for task-correlated encodings within the trained model and demonstrably improves robustness and generalization.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Jan 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 14; 2026: 6.

20 papers.

Sort:

By area:

  1. 2025Learning without training: The implicit dynamics of in-context learningcited by 41
  2. 2025Text Generation Beyond Discrete Token Samplingcited by 21
  3. 2025Representation Engineering for Large-Language Models: Survey and Research Challengescited by 18
  4. 2025Internal Chain-of-Thought: Empirical Evidence for Layer-wise Subtask Scheduling in LLMscited by 9
  5. 2025Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitationscited by 8
  6. 2025Scaling can lead to compositional generalizationcited by 7
  7. 2025Just-in-time and distributed task representations in language modelscited by 7
  8. 2025Adaptive Task Vectors for Large Language Modelscited by 4
  9. 2025Where and What Matters: Sensitivity-Aware Task Vectors for Many-Shot Multimodal In-Context Learningcited by 4
  10. 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insightcited by 3
  11. 2025Transmuting prompts into weightscited by 3
  12. 2026In-Context Learning Operates as Concept Subspace Learningcited by 3
8 more
  1. 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledgecited by 2
  2. 2025Next-Token Prediction Should be Ambiguity-Sensitive: A Meta-Learning Perspectivecited by 0
  3. 2025Look the Other Way: Designing 'Positive' Molecules with Negative Data via Task Arithmeticcited by 0
  4. 2025Beyond Plain Demos: A Demo-centric Anchoring Paradigm for In-Context Learning in Alzheimer's Disease Detectioncited by 0
  5. 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
  6. 2026DeCoVec: Building Decoding Space based Task Vector for Large Language Models via In-Context Learningcited by 0
  7. 2026Embedding-based In-Context Prompt Training for Enhancing LLMs as Text Encoderscited by 0
  8. 2026Distributional Alignment as a Criterion for Designing Task Vectors in In-Context Learningcited by 0