AI engineering glossary · LLM training alignment

What is task arithmetic?

Task arithmetic (also called Task vector): Editing a model by computing a task vector, the difference between fine-tuned and base weights, and adding, scaling or subtracting it from the base model to give or remove a skill.

Level: advancedTopic: LLM training alignment

Task arithmetic: an example

base + 0.5 * (math_finetuned - base) adds half of the maths skill to the base model.

Related terms

More LLM training alignment terms

Where you learn it

Task arithmetic is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.