AI engineering glossary · Deep learning core

What is weight tying?

Weight tying (also called Tied embeddings): Using one shared weight matrix for two roles in a network, most often the input embedding table and the output projection of a language model. It cuts the parameter count and can improve results.

Level: advancedTopic: Deep learning core

Weight tying: an example

A model with a 50,000-token vocabulary and 512-dimensional embeddings saves about 25.6 million parameters by reusing the table.

Related terms

More Deep learning core terms

Where you learn it

Weight tying 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.