paper-with-me

홈 › 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 underlying principles governing their emergence and functionality remain unclear. This work proposes the Linear Combination Conjecture, positing that task vectors act as single in-context demonstrations formed through linear combinations of the original ones. We provide both theoretical and empirical support for this conjecture. First, we show that task vectors naturally emerge in linear transformers trained on triplet-formatted prompts through loss landscape analysis. Next, we predict the failure of task vectors on representing high-rank mappings and confirm this on practical LLMs. Our findings are further validated through saliency analyses and parameter visualization, suggesting an enhancement of task vectors by injecting multiple ones into few-shot prompts. Together, our results advance the understanding of task vectors and shed light on the mechanisms underlying ICL in transformer-based models.

📄 PDF Abstract BibTeX arXiv:2506.09048

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningTriplet

Similar Papers 제목 키워드 기반

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

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

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 loc…

In-Context Learning

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…

Unsafe by Reciprocity: How Generation-Understanding Coupling Undermines Safety in Unified Multimodal Models

2026-03-28 · Kaishen Wang, Heng Huang arxiv

Recent advances in Large Language Models (LLMs) and Text-to-Image (T2I) models have led to the emergence of Unified Multimodal Models (UMMs), where multimodal understanding and image generation are tightly integrated wit…

Image Generation

Reasoning-Aware Prompt Orchestration: A Foundation Model for Multi-Agent Language Model Coordination

2025-09-30 · Hassen Dhrif arxiv

The emergence of large language models has enabled sophisticated multi-agent systems, yet coordinating their reasoning capabilities through prompt engineering remains challenging. We present a theoretically-grounded fram…

Prompt Engineering

Analysis of Linear Mode Connectivity via Permutation-Based Weight Matching

2024-02-06 · Akira Ito, Masanori Yamada, Atsutoshi Kumagai

Recently, Ainsworth et al. showed that using weight matching (WM) to minimize the $L_2$ distance in a permutation search of model parameters effectively identifies permutations that satisfy linear mode connectivity (LMC)…

Linear Mode Connectivity