What is embedding?
A learned vector that stands for a token. Tokens used in similar ways end up with nearby vectors.
Where it is taught
Embeddings. Give every word a vector, place similar words close together, and directions in that space start to carry meaning.
What the lesson leaves you with
- An embedding swaps a token id for a learned vector.
- Similar meanings end up close together, and consistent directions encode relationships.
- The embedding table has one row per token and is learned during training.
Questions
- What is embedding?
- A learned vector that stands for a token. Tokens used in similar ways end up with nearby vectors.
- Where is embedding used in AI?
- Give every word a vector, place similar words close together, and directions in that space start to carry meaning.
- What is the key idea to remember about embedding?
- An embedding swaps a token id for a learned vector.
- Where can I learn embedding step by step?
- In the lesson “Embeddings” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.