0% found this document useful (0 votes)
58 views29 pages

Introduction To Generative AI

Uploaded by

hamzajafri04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views29 pages

Introduction To Generative AI

Uploaded by

hamzajafri04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Introduction to Generative AI

Muhammad Atif Tahir


Introduction
• Generative AI creates new content, such as text, images, or other data
types, in response to prompts
Generative AI is not a new concept
Generative AI is not a new concept
Examples of Generative AI

Generate Text in response to User Query


Examples of Generative AI

Generate Video in response to User Query


Examples of Generative AI

Write Code to help Developers work faster


How does it work?
Generative versus Discriminative Modelling

A discriminative model trained to predict if a given image is painted by Van Gogh


Generative versus Discriminative Modelling

A generative model trained to generate realistic photos of Horses


Advantages of Generative AI
• Generative AI models have diverse applications across various
industries

• Generative AI is powered by foundation models (large AI models) that


can multi-task and perform out-of-the-box tasks, including
summarization, Q&A, classification, and more

• Plus, with minimal training required, foundation models can be


adapted for targeted use cases with very little example data
Disadvantages of Generative AI
• Misuse and Malicious Applications
• Erosion of Human Creativity
• Job Displacement
• Bias and Discrimination
• Dependence on Data Quality
• Ethical Concerns in Content Creation
• Impact on Learning and Skill Development
• Accessibility and Digital Divide
• Security Vulnerabilities
• Environmental Impact
Our First Generative Model (Hello World)
• Let’s start by playing a generative modeling game in just two dimensions
Our First Generative Model (Hello World)
• Your challenge is to choose a different point (x1, x2) in the space that
looks like it has been generated by the same rule

• Where did you choose?

• You probably used your knowledge of the existing data points to construct
a mental model, Pmodel, of whereabouts in the space the point is more
likely to be found

• In this respect, Pmodel is an estimate of Pdata


Our First Generative Model (Hello World)
Our First Generative Model (Hello World)

• To generate a new observation, you can simply choose a point at random


within the box, or more formally, sample from the distribution Pmodel

• Congratulations, you have just built your first generative model!

• You have used the training data (the black points) to construct a model
(the orange region) that you can easily sample from to generate other
points that appear to belong to the training set
Our First Generative Model
True Data Generating Distribution
True Data Generating Distribution
True Data Generating Distribution
• Despite its shortcomings, the model is easy to sample from, because it
is simply a uniform distribution over the orange box. We can easily
choose a point at random from inside this box, in order to sample from
it
• Also, we can certainly say that our model is a simple representation of
the underlying complex distribution that captures some of the
underlying high-level features
• The true distribution is separated into areas with lots of land mass
(continents) and those with no land mass (the sea). This is a high-level
feature that is also true of our model, except we have one large
continent, rather than many
References
• https://cloud.google.com/use-cases/generative-ai
• Datacamp course on Generative AI
• What is generative AI and how does it work? – The Turing Lectures
with Mirella Lapata
• https://www.neebal.com/blog/generative-ai-vs.-predictive-ai-
unraveling-the-distinctions-and-applications
• https://projectmanagers.net/top-10-cons-disadvantages-of-generative-
ai/
• David Foster, Generative Deep Learning, 2nd Edition

You might also like