Learn AI Math

Weight Tying

What is Weight Tying?

In one sentence: Weight tying uses the same weights for a model's input word embeddings and its output word predictions.

The model has a table to turn tokens into numbers at the start and a table to turn numbers back into token scores at the end. Weight tying makes these the same table. This saves many parameters, especially with big vocabularies.

What does Weight Tying look like?

A small model with a 50,000-token vocabulary can save tens of millions of parameters by tying weights.

Why does Weight Tying matter?

It is a common trick in smaller models to save size.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.