paper-with-me

홈 › Papers

Provable In-Context Vector Arithmetic via Retrieving Task Concepts

2025-08-13 · Dake Bu, Wei Huang, Andi Han, Atsushi Nitanda, Qingfu Zhang, Hau-San Wong, Taiji Suzuki 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.

📄 PDF Abstract BibTeX arXiv:2508.09820

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

RogueMerge: Robust and Unified Attacks against LLM Model Merging

2026-06-02 · Jinghuai Zhang, Yetian He, Kunlin Cai, Han Zhao 외 arxiv

Model merging composes specialized capabilities into a single LLM by aggregating task vectors sourced from unverified public platforms, exposing a critical supply-chain attack surface: Because any malicious behavior can …

Efficient Model Editing with Task Vector Bases: A Theoretical Framework and Scalable Approach

2025-02-03 · Siqi Zeng, Yifei He, Weiqiu You, Yifan Hao 외

Task vectors, which are derived from the difference between pre-trained and fine-tuned model weights, enable flexible task adaptation and model merging through arithmetic operations such as addition and negation. However…

Model EditingNegationTask Arithmetic

A Non-convex One-Pass Framework for Generalized Factorization Machine and Rank-One Matrix Sensing

2016-08-21 · NeurIPS 2016 12 · Ming Lin, Jieping Ye

We develop an efficient alternating framework for learning a generalized version of Factorization Machine (gFM) on steaming data with provable guarantees. When the instances are sampled from $d$ dimensional random Gaussi…

Matrix CompletionRetrieval

Escaping Optimization Stagnation: Taking Steps Beyond Task Arithmetic via Difference Vectors

2025-11-22 · Jinping Wang, Zhiqiang Gao, Dinggen Zhang, Zhiwu Xie arxiv

Current methods for editing pre-trained models face significant challenges, primarily high computational costs and limited scalability. Task arithmetic has recently emerged as a promising solution, using simple arithmeti…

On Fairness of Task Arithmetic: The Role of Task Vectors

2025-05-30 · Hiroki Naganuma, Kotaro Yoshida, Laura Gomezjurado Gonzalez, Takafumi Horie 외

Model editing techniques, particularly task arithmetic using task vectors, have shown promise in efficiently modifying pre-trained models through arithmetic operations like task addition and negation. Despite computation…

FairnessHate Speech DetectionModel EditingNegation+2