Provable In-Context Vector Arithmetic via Retrieving Task Concepts
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) has garnered significant attention for its ability to grasp functions/tasks from demonstrations. Recent studies suggest the presence of a latent task/function vector in LLMs during ICL. Merullo et al. (2024) showed that LLMs leverage this vector alongside the residual stream for Word2Vec-like vector arithmetic, solving factual-recall ICL tasks. Additionally, recent work empirically highlighted the key role of Question-Answer data in enhancing factual-recall capabilities. Despite these insights, a theoretical explanation remains elusive. To move one step forward, we propose a theoretical framework building on empirically grounded hierarchical concept modeling. We develop an optimization theory, showing how nonlinear residual transformers trained via gradient descent on cross-entropy loss perform factual-recall ICL tasks via vector arithmetic. We prove 0-1 loss convergence and show the strong generalization, including robustness to concept recombination and distribution shifts. These results elucidate the advantages of transformers over static embedding predecessors. Empirical simulations corroborate our theoretical insights.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Aug 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 2; 2026: 6.
8 papers.
- 2026Causality neq Invariance: Function and Concept Vectors in LLMscited by 8
- 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insightcited by 3
- 2026In-Context Learning Operates as Concept Subspace Learningcited by 3
- 2025Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learningcited by 1
- 2026Provable Effects of Data Replay in Continual Learning: A Feature Learning Perspectivecited by 1
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformerscited by 1
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
- 2026Adaptive Mean Estimation by In-Context Learning: A Gradient-Flow Analysiscited by 0
- 2026Adaptive Mean Estimation by In-Context Learning: A Gradient-Flow Analysis6 Oct 2026
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Causality neq Invariance: Function and Concept Vectors in LLMs25 Feb 2026
- 2026Provable Effects of Data Replay in Continual Learning: A Feature Learning Perspective2 Feb 2026
- 2025Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learning14 Oct 2025
- 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insight29 Sep 2025