Math For GenAI
Math For GenAI
Language Modeling
Mathematics of Transformers
Unbundling the mathematics behind AI
Shyam Mohan
Table of Contents
1 Introduction
2 Language Modeling
Math of gen AI
Prerequisites
Prerequisites
Breadth vs Depth
Breadth vs Depth
Breadth vs Depth
Breadth vs Depth
Breadth vs Depth
Example
.
Mohan, Shyam Transformers
Introduction
Language Modeling
Idea slide
Goal of ”attention”
Q, K, V matrices
Goal
Query:
Similar words must be represented by vectors which are close
enough.
The vector of numbers must represent relationship between
the words
Q, K and V matrices
Query:
Similar words must be represented by vectors which are close
enough.
The vector of numbers must represent relationship between
the words