SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.01015 · 2025

Task Vector Bases: A Unified and Scalable Framework for Compressed Task Arithmetic

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
uiuctml/TaskVectorBasis canonical 2 of 4
FunctionStatusWhere it lives
cosine_lr Ran uiuctml/TaskVectorBasis/src/utils.py
code served (permissive licence) · get_code("2d5d7a12d8de02b7")
get_eval_datasets Ran uiuctml/TaskVectorBasis/src/args.py
code served (permissive licence) · get_code("c2d8826b25837fd9")
accuracy Not yet run uiuctml/TaskVectorBasis/src/utils.py
code served (permissive licence) · get_code("aafcff3ad1ccef6e")
torch_load_old Not yet run uiuctml/TaskVectorBasis/src/utils.py
code served (permissive licence) · get_code("7d051a7adefedb6c")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Task arithmetic, representing downstream tasks through linear operations on task vectors, has emerged as a simple yet powerful paradigm for transferring knowledge across diverse settings. However, maintaining a large collection of task vectors introduces scalability challenges in both storage and computation. We propose Task Vector Bases, a framework compressing $T$ task vectors into $M < T$ basis vectors while preserving the functionality of task arithmetic. By representing each task vector as a structured linear combination of basis atoms, our approach supports standard operations such as addition, negation, as well as more advanced arithmetic ones. The framework is orthogonal to other efficiency-oriented improvements in task arithmetic and can be used in combination with them. We provide theoretical analysis showing that basis compression retains addition generalization guarantees and enables principled unlearning, with error bounds depending on reconstruction quality. Empirically, our proposed basis construction methods consistently outperform heuristic basis construction baselines and, in some cases, even surpass the performance of full task vector collections across diverse downstream applications while reducing storage and computational requirements. The code is available at https://github.com/uiuctml/TaskVectorBasis.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.01015")
get_code_for_paper("2502.01015")
have("2502.01015")

Connect an agent — have() is free.