AI engineering glossary · LLM training alignment

What is prefix tuning?

Prefix tuning: A parameter-efficient method that learns continuous vectors prepended to the attention keys and values at every layer while the model itself is frozen. Only these vectors are trained and stored for each task.

Level: advancedTopic: LLM training alignment

Prefix tuning: an example

20 learned prefix vectors per layer steer a frozen model to produce table-to-text summaries.

Related terms

More LLM training alignment terms

Where you learn it

Prefix tuning 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.