Index Ai Academy
Glossary · Phase 5 · Transformers

Head size

Also written: d_k, d_head

How many numbers each query and key holds in one attention head. Scores are divided by its square root.

Try it now

With big scores one word takes everything. Dividing by √d_k keeps attention soft enough to learn.

Learn it properly

Scaled dot-product attention · The attention formula, line by line. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write