paper-with-me

홈 › Papers

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

2025-01-16 · Liu Yang, Ziqian Lin, Kangwook Lee, Dimitris Papailiopoulos, Robert Nowak

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.

📄 PDF Abstract BibTeX arXiv:2501.09240

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Similar Papers 제목 키워드 기반

Understanding Task Vectors in In-Context Learning: Emergence, Functionality, and Limitations

2025-06-10 · Yuxin Dong, Jiachen Jiang, Zhihui Zhu, Xia Ning

Task vectors offer a compelling mechanism for accelerating inference in in-context learning (ICL) by distilling task-specific information into a single, reusable representation. Despite their empirical success, the under…

In-Context LearningTriplet

Self-Supervised Speech Models Encode Phonetic Context via Position-dependent Orthogonal Subspaces

2026-03-13 · Kwanghee Choi, Eunjung Yeo, Cheol Jun Cho, David R. Mortensen 외 arxiv

Transformer-based self-supervised speech models (S3Ms) are often described as contextualized, yet what this entails remains unclear. Here, we focus on how a single frame-level S3M representation can encode phones and the…

Convergent Emergence of In-Context Learning Across Modalities

2026-09-12 · Nathan Breslow, Seungwook Han, Daniel Hyunsoo Lee, Aayush Mishra 외 hf

Few-shot in-context learning (ICL), the capacity of a model to infer abstract patterns from input-output examples provided in its prompt and apply them to new inputs, has been extensively studied in large language models…

Are energy savings the only reason for the emergence of bird echelon formation?

2021-03-24 · Mingming Shi, Julien M. Hendrickx

We analyze the conditions under which the emergence of frequently observed echelon formation can be explained solely by the maximization of energy savings. We consider a two-dimensional multi-agent echelon formation, whe…

Position

Do Value Vectors in Deep Layers Need Context from the Residual Stream?

2026-06-01 · Muyu He, Yuchen Liu, Qingya Huang, Li Zhang arxiv

The success of the transformer architecture as the backbone of modern LLMs is in large part due to its use of attention layers. An attention layer follows the standard neural network paradigm: it takes the residual strea…