Session 2 Introduction To Generative AI
Session 2 Introduction To Generative AI
Ram N Sangwan
Generative AI refer to a set of AI methodologies that
What is Generative AI can create content that resembles the training data
they were exposed to.
Artificial Intelligence
Generative AI
Audio
Generative AI
Code
Text
Training Data
Data • Classification
• Recommendation
Predictive System
Output
ML Model • Game Playing
Labels
• Image Synthesis
GenAI • Text Generation
Input Model Output
• Music Composition
Types of Generative AI Models
Image
Based
• Generates Visual Content e d
t- Ba s
• Learns from Large collection of Tex
images
• Generates Textual Content
• Learns from large collection of
text data
Generative Adversarial Network
(GAN)
• Generate realistic images that
resemble training data.
https://www.christies.com/lot/lot-edmond-de-belamy-from-la-famille-de-6166184/
Generative Adversarial Networks (GANs)
Adversarial Objective
Generator
• These two networks are pitted
• Takes in random numbers as Discriminator against each other where the
input and generates the images generator creates more
of interest (the forger) • Takes both the images from the realistic synthetic images
generator and the real images to fool the discriminator
from the data and spots the while the discriminator
difference between them (the networks tries to get better
detective) at detecting fake images.
• Both the generator and the discriminator are trained together. • This back-and-forth strategy forces both the
networks to improve until the generator can
• And, over the duration of training, the generator gets better at
create highly realistic synthetic images, that
creating images which look real, and the discriminator gets better
indistinguishable from real images
at spotting fakes.
Diffusion Models
Drug Discovery
• New molecular
Structure
Visual
• Image generation
• Video Generation
• Design
Language Music
• Content Creation
• Code Generation • Music Generation
• Conversational AI
Email Spam Classification Model
Data: Examples of emails either tagged as Spam or not Spam
Training Inference
Image generation, Inpainting (e.g., GANs, Text classification, Object detection (e.g.,
Example Task
VAEs) Deep Neural Networks)
Mechanics of
Generative Models
Generative AI
Can generate new instances based on what they have learned. E.g. Variational Autoencoders, GANs, and RNNs.
Training Data
The quality of dataset directly impacts the performance of the generated outputs.
Loss Functions
Mathematical functions that measure the difference between the generated output and a desired target.
• Guide the learning process by providing feedback on how well the model is performing.
Optimization Algorithms
Adjust the parameters of the generative model to minimize the loss function during training. E.g. Stochastic
Gradient Descent (SGD), Adam, and RMSProp.
Evaluation Metrics
Metrics such as perplexity for language models or Inception Score for image generation tasks.
Data Augmentation