Techno Blender
Digitally Yours.

Linear Regression to GPT in Seven Steps | by Devesh Rajadhyax | Apr, 2023

0 38


How the humble prediction method shows us the way to Generative AI

Image by author
new output = Line Function (new input)
Image by author
output vector = NN Function (input vector)
Image by author
A (very imaginary) word embedding, image by author
output word embedding = NN Function (input word embedding)
Image by author
Image by author
NN Translation Function (Embeddings for word. no 1 in input sentence) 
= Embedding for word no.1 in output sentence

Input (English): ‘Ashok sent a letter to Sagar’

Output (Hindi): ’Ashok ne Sagar ko khat bheja’.

Input (English): ‘Ashok sent sweets to Sagar’

Output (Hindi): ’Ashok ne Sagar ko mithai bheji’.

Image by author
NN Translation Function (Embeddings for word. no 1 in input sentence 
+ context from other words in input sentence)
= Embedding for word no.1 in output sentence

Input (English): ‘Ashok sent a letter to Sagar’

Output (Hindi): ’Ashok ne Sagar ko khat bheja’.

Image by author
NN Translation Function (Embeddings for 'Ashok sent a letter to Sagar' 
+ context from input sentence)
= Embedding for 'Ashok'
Input = Embeddings for input sentence + Embedding for first word in output
Context = Context from input sentence + context from first word in output
NN Translation Function 
(Embeddings for 'Ashok send a letter to Sagar + Embedding for 'Ashok',
Context for input sentence + context for 'Ashok')
= Embedding for 'ne'
Image by author

Generative AI is prediction on sequences using neural networks.


How the humble prediction method shows us the way to Generative AI

Image by author
new output = Line Function (new input)
Image by author
output vector = NN Function (input vector)
Image by author
A (very imaginary) word embedding, image by author
output word embedding = NN Function (input word embedding)
Image by author
Image by author
NN Translation Function (Embeddings for word. no 1 in input sentence) 
= Embedding for word no.1 in output sentence

Input (English): ‘Ashok sent a letter to Sagar’

Output (Hindi): ’Ashok ne Sagar ko khat bheja’.

Input (English): ‘Ashok sent sweets to Sagar’

Output (Hindi): ’Ashok ne Sagar ko mithai bheji’.

Image by author
NN Translation Function (Embeddings for word. no 1 in input sentence 
+ context from other words in input sentence)
= Embedding for word no.1 in output sentence

Input (English): ‘Ashok sent a letter to Sagar’

Output (Hindi): ’Ashok ne Sagar ko khat bheja’.

Image by author
NN Translation Function (Embeddings for 'Ashok sent a letter to Sagar' 
+ context from input sentence)
= Embedding for 'Ashok'
Input = Embeddings for input sentence + Embedding for first word in output
Context = Context from input sentence + context from first word in output
NN Translation Function 
(Embeddings for 'Ashok send a letter to Sagar + Embedding for 'Ashok',
Context for input sentence + context for 'Ashok')
= Embedding for 'ne'
Image by author

Generative AI is prediction on sequences using neural networks.

FOLLOW US ON GOOGLE NEWS

Read original article here

Denial of responsibility! Techno Blender is an automatic aggregator of the all world’s media. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials, please contact us by email – [email protected]. The content will be deleted within 24 hours.
Leave a comment