# Arytmetyka zadań (task vectors, TIES, DARE)

EN: **Task arithmetic and task vectors** · id `taskarithmetic` · aliases: task arithmetic, task vectors, TIES-merging, DARE

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Trenowanie i dostrajanie](https://aiatlasgraph.com/t/training.md) › [Łączenie modeli](https://aiatlasgraph.com/t/merging.md) › Arytmetyka zadań (task vectors, TIES, DARE)

## Description

- PL: Różnica między wagami modelu dostrojonego i bazowego tworzy „wektor zadania”, który można dodawać, odejmować i łączyć. TIES rozwiązuje konflikty znaków między wektorami, a DARE sparsifikuje parametry delta przed łączeniem.
- EN: The difference between fine-tuned and base-model weights forms a 'task vector' that can be added, subtracted and combined. TIES resolves sign conflicts between vectors, while DARE sparsifies delta parameters before merging.

## In one sentence

- PL: To łączenie, dodawanie lub odejmowanie zmian ustawień, które powstały podczas uczenia różnych zadań.
- EN: This combines, adds or subtracts parameter changes learned from different tasks.

## Problem it solves

- PL: Chcesz przenieść efekt dostrojenia między zgodnymi wariantami, ale mieszanie pełnych modeli może tworzyć konflikty.
- EN: You want to transfer adaptation effects between compatible variants, but mixing whole models can introduce conflicts.

## What it does

- PL: Różnica między wersją bazową i dostrojoną opisuje zmianę zadania; metody łączą te różnice i próbują ograniczać kolidujące poprawki.
- EN: The difference between base and adapted parameters represents a task update; methods combine these differences and try to reduce conflicting changes.

## Everyday example

- PL: Porównujesz poprawki modelu dla krótkiego stylu i opisów produktów, próbując połączyć oba efekty w jednej wersji.
- EN: You compare model updates for brevity and product descriptions, trying to combine both effects in one version.

## This concerns you if you…

- PL: masz dostrojone wersje wspólnej bazy
- PL: chcesz przenosić lub łączyć efekty zadań
- EN: have adapted versions of a shared base
- EN: want to transfer or combine task effects

## Keywords

task vectors · TIES-Merging · DARE · sign conflict resolution · task subtraction · mergekit

## How it works

- PL: Wektor zadania to różnica wag modelu dostrojonego i wspólnej bazy. Ważone wektory dodaje się do bazy, a warianty usuwają drobne zmiany lub rozwiązują konflikty znaków przed agregacją.
- EN: A task vector is the weight difference between a fine-tuned model and a shared base. Weighted vectors are added to the base, with variants removing small changes or resolving sign conflicts before aggregation.

## Limits

- PL: Kierunki aktualizacji nie muszą sumować się bez interferencji. Skala, wspólna baza i sposób przycinania wpływają na wynik; wycofanie wektora nie gwarantuje selektywnego usunięcia zdolności.
- EN: Update directions may not add without interference. Scale, shared bases and trimming methods affect outcomes; subtracting a vector cannot guarantee selective capability removal.

## Key terms

- PL: **wektor zadania**: Różnica parametrów między dostrojonym modelem a jego bazą.
- PL: **konflikt znaków**: Przeciwne kierunki aktualizacji tego samego parametru w łączonych modelach.
- EN: **task vector**: The parameter difference between a fine-tuned model and its base.
- EN: **sign conflict**: Opposing update directions for the same parameter across merged models.

## Know first

- [Algebra liniowa: wektory i macierze (Linear algebra: vectors and matrices)](https://aiatlasgraph.com/t/linearalgebra.md)
- [SFT / instruction tuning (Supervised fine-tuning)](https://aiatlasgraph.com/t/sft.md)

## Examples

- PL: dodawanie umiejętności · odejmowanie niechcianego zachowania · TIES · DARE
- EN: adding skills · subtracting unwanted behaviour · TIES · DARE

## Related topics

Untyped, symmetric "see also" links.

- [Ewolucyjne łączenie modeli (Evolutionary model merging)](https://aiatlasgraph.com/t/evolutionarymerge.md)

## Sources

- [Editing Models with Task Arithmetic](<https://arxiv.org/abs/2212.04089>) `task-arithmetic-2022` · by Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman i in.
- [TIES-Merging: Resolving Interference When Merging Models](<https://arxiv.org/abs/2306.01708>) `ties-merging-2023` · by Prateek Yadav, Derek Tam, Leshem Choshen i in.
- [Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch](<https://arxiv.org/abs/2311.03099>) `yu-dare-2023` · by Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, Yongbin Li
- [Arcee’s MergeKit: A Toolkit for Merging Large Language Models](<https://arxiv.org/abs/2403.13257>) `mergekit-paper-2024` · by Charles Goddard, Shamane Siriwardhana, Malikeh Ehghaghi, Luke Meyers i in.

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/taskarithmetic · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
