Exploring Language-Agnosticity in Function Vectors: A Case Study in Machine Translation

Nurkhan Laiyk, Gerard I. Gállego, Javier Ferrando, Fajri Koto
4/21/2026
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Function vectors (FVs) are vector representations of tasks extracted from model activations during in-context learning. While prior work has shown that multilingual model representations can be language-agnostic, it remains unclear whether the same holds for function vectors. We study whether FVs exhibit language-agnosticity, using machine translation as a case study. Across three decoder-only multilingual LLMs, we find that translation FVs extracted from a single English$\rightarrow$Target direction transfer to other target languages, consistently improving the rank of correct translation tokens across multiple unseen languages. Ablation results show that removing the FV degrades translation across languages with limited impact on unrelated tasks. We further show that base-model FVs transfer to instruction-tuned variants and partially generalize from word-level to sentence-level translation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{laiyk2026exploring,
  title  = {Exploring Language-Agnosticity in Function Vectors: A Case Study in Machine Translation},
  author = {Nurkhan Laiyk and Gerard I. Gállego and Javier Ferrando and Fajri Koto},
  year   = {2026},
  eprint = {2604.19678},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19678v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.19678.svg)](https://codeofpaper.com/paper/2604.19678)

Discussion