AI Fundamentals
AI Fundamentals
Intelligence?
U N D E R S TA N D I N G A R T I F I C I A L I N T E L L I G E N C E
Machines that learn to mimic reasoning, decision-making, and in general exhibit some
degree of human-like intelligence to solve a problem.
EU Commission, 2019:
"Systems that, given a goal, perceive their environment, interpret the collected data, reason
to derive knowledge, and decide the best action(s) to achieve the goal".
Perceives, interprets and learns from data. Equals or exceeds average human
Reasons and makes decisions intelligence
Clustering (segmentation)
Anomaly detection
Math, Data Science, and Statistics are closely related disciplines to AI.
AI algorithms: learn by themselves to produce better outputs or processes from input data
Occurs in:
Time series forecasting: predict future values of variable, based on its past behavior
Association rule discovery: find common co- Reinforcement learning: learn by experience
occurrences of items in transaction data (trial and error) to master a complex task
Motion analysis: extract motion information like speed and direction of objects
Image and video generation: create realistic visual data from human text
Text summarization
Speech-based
Text-to-speech
Speech-to-text
Algorithms are the building blocks of AI systems, along with data, hardware and other
components
Acquiring data, learning and reasoning from data, and interacting with the environment,
are three key functions in AI systems
Data collection into datasets are the fuel of most AI systems, especially those guided by
Machine Learning and Deep Learning
AI for personalization example: identifying customers' shopping habits leads to more loyalty
and increased sales.
6. Success: define and pursue success aims, e.g. customer-centric, impact on revenue, etc.
6. Success: define and pursue success metrics, e.g. customer-centric, impact on revenue, etc.
6. Success: define and pursue success metrics, e.g. customer-centric, impact on revenue, etc.
Pros: High scalability, Cost-effectiveness Pros: Enhanced data control, lower latency
Cons: Data location, Internet needed Cons: Upfront costs, limited scalability
1 Left image: Google Cloud Platform, Microsoft Azure, and Amazon Web Services logos
AI project manager(s)
Execution & MLOps
AI architects
Data scientists
Support
Dedicated teams: Dev + Ops teams, strong communication and collaboration needed
AI project manager(s)
Execution & MLOps
Data scientists
AI architects
Support
Metrics for search and recommendation engines: ranking quality -relevance of ranking items
to the user-, diversity in search results or recommendations, etc.
Data bias
Lack of transparency
Ethical concerns
Proof-of-Concept (PoC):
Pilot demonstrator to validate feasibility and potential value + early risk identification
Solution:
Solution:
Solution:
Solution:
How to bring AI benefits to everyone and eliminate its potentially harmful side?
Access to:
Organizations
Organizations
Organizations
Optimizing activities
Proactive strategic mindset
Fairness
Transparency
Privacy
Accountability
Fairness
Transparency
Privacy
Accountability
Fairness
Transparency
Privacy
Accountability
E-commerce recommendations
E-commerce recommendations
Popular products are overly promoted
1 GDPR: General Data Protection Regulation. CCPA: California Consumer Privacy Act.
1 GDPR: General Data Protection Regulation. CCPA: California Consumer Privacy Act.
Opportunities:
Personalized learning
Automation of time-consuming
administrative tasks
Opportunities:
James Chapman
Curriculum Manager, DataCamp
What is ChatGPT?
AI Chatbot application:
Answer questions
Perform tasks
User-inputted text
INTRODUCTION TO CHATGPT
What is ChatGPT?
Traditional chatbots
Predetermined responses
Limited questions
ChatGPT
More generalizable
INTRODUCTION TO CHATGPT
Generative AI
INTRODUCTION TO CHATGPT
From prompt to response
INTRODUCTION TO CHATGPT
From prompt to response
INTRODUCTION TO CHATGPT
From prompt to response
INTRODUCTION TO CHATGPT
Summarizing text
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Creating marketing content
INTRODUCTION TO CHATGPT
Creating marketing content
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Why utilize ChatGPT?
Greater personalization
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Limitations of
ChatGPT
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
ChatGPT under the hood
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Demystifying the LLM
INTRODUCTION TO CHATGPT
Limitation 1 - Knowledge cutoff
INTRODUCTION TO CHATGPT
Limitation 2 - Training data bias
Articles
Websites
INTRODUCTION TO CHATGPT
Limitation 3 - Context tracking
INTRODUCTION TO CHATGPT
Limitation 3 - Context tracking
INTRODUCTION TO CHATGPT
Limitation 3 - Context tracking
INTRODUCTION TO CHATGPT
Limitation 4 - Hallucination
1 https://en.wikipedia.org/wiki/Hallucination_(artificial_intelligence)
INTRODUCTION TO CHATGPT
Limitation 5 - Legal and ethical considerations
INTRODUCTION TO CHATGPT
Limitation 5 - Legal and ethical considerations
INTRODUCTION TO CHATGPT
Limitation 5 - Legal and ethical considerations
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Writing effective
prompts
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Garbage in, garbage out
INTRODUCTION TO CHATGPT
How does ChatGPT interpret a prompt?
INTRODUCTION TO CHATGPT
How does ChatGPT interpret a prompt?
INTRODUCTION TO CHATGPT
How does ChatGPT interpret a prompt?
INTRODUCTION TO CHATGPT
3. Generate response
INTRODUCTION TO CHATGPT
Prompt engineering
INTRODUCTION TO CHATGPT
Writing tips for prompt engineering
Remove any information that doesn't ChatGPT uses grammar when interpreting
provide useful context the task
INTRODUCTION TO CHATGPT
Provide examples if necessary...
Can be a much quicker way of providing
context
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Enabling people to
use ChatGPT
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Augmenting workflows
Workflow: Standardized series of tasks to achieve an end goal
Aims:
Highest-quality output
Shortest timeframe
INTRODUCTION TO CHATGPT
A standard workflow
INTRODUCTION TO CHATGPT
A ChatGPT-powered workflow
Huge time-savings!
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Leaders
Use cases:
Compose emails
Draft presentations
INTRODUCTION TO CHATGPT
Technical roles
Use cases:
Generate examples
Explain code
Troubleshoot errors
Write documentation
INTRODUCTION TO CHATGPT
HR and people teams
Use cases:
INTRODUCTION TO CHATGPT
Marketing
Use cases:
Copyediting content
INTRODUCTION TO CHATGPT
Sales
Use cases:
Brainstorm strategies
Summarize information
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Identifying use cases
for ChatGPT
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Coming up...
INTRODUCTION TO CHATGPT
Can be inaccurate
No predictability in responses
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Subject matter expertise is still very
important!
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
Need consent to process the data
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Can claim ownership over ChatGPT output
Other considerations such as copyright
infringement may prevent ownership
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
INTRODUCTION TO CHATGPT
Example 1: Brainstorming ideas in HR
INTRODUCTION TO CHATGPT
Example 2: Healthcare recommendations
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Ownership and
privacy
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Ownership and privacy
INTRODUCTION TO CHATGPT
Who owns the response?
INTRODUCTION TO CHATGPT
Who owns the response?
... As between you and OpenAI, and to the
extent permitted by applicable law... We
hereby assign to you all our right, title, and
interest, if any, in and to Output.
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
Who owns the response?
... output may not be unique and other Represent that Output was human-
users may receive similar output from our generated when it was not.
Services. Our assignment above does not
extend to other users' output or any Third
Party Output. Use our Services in a way that infringes,
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
Ownership and copyright
INTRODUCTION TO CHATGPT
Who owns the prompt?
INTRODUCTION TO CHATGPT
Who owns the prompt?
As between the parties and to the extent permitted by applicable law, you own all Input
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
Prompt privacy
1 https://openai.com/policies/terms-of-use
INTRODUCTION TO CHATGPT
Data governance
INTRODUCTION TO CHATGPT
AI ethics
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Advancements in
generative AI
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Coming up...
INTRODUCTION TO CHATGPT
Performance improvements
INTRODUCTION TO CHATGPT
What's driving the improvements?
INTRODUCTION TO CHATGPT
What's driving the improvements?
INTRODUCTION TO CHATGPT
What's driving the improvements?
INTRODUCTION TO CHATGPT
Building balanced datasets
INTRODUCTION TO CHATGPT
Opportunities for misuse
Intervention by lawmakers:
INTRODUCTION TO CHATGPT
From generalized to specialized
INTRODUCTION TO CHATGPT
Other types of generative AI
1 DALL-E 3
INTRODUCTION TO CHATGPT
AI for everyone!
Democratization of AI tools
Everyone should benefit from the
technology
INTRODUCTION TO CHATGPT
Let's practice!
I N T R O D U C T I O N T O C H AT G P T
Congratulations!
I N T R O D U C T I O N T O C H AT G P T
James Chapman
Curriculum Manager, DataCamp
Chapter 1 - Interacting with ChatGPT
What can ChatGPT do?
What are its limitations?
INTRODUCTION TO CHATGPT
Chapter 2 - Adopting ChatGPT
INTRODUCTION TO CHATGPT
Where next?
AI Ethics
INTRODUCTION TO CHATGPT
Congratulations!
I N T R O D U C T I O N T O C H AT G P T
What is machine
learning?
U N D E R S TA N D I N G M A C H I N E L E A R N I N G
Lis Sulmont
Curriculum Manager, DataCamp
UNDERSTANDING MACHINE LEARNING
UNDERSTANDING MACHINE LEARNING
UNDERSTANDING MACHINE LEARNING
UNDERSTANDING MACHINE LEARNING
UNDERSTANDING MACHINE LEARNING
UNDERSTANDING MACHINE LEARNING
Artificial intelligence (AI)
Infer patterns
What are the different types of weather conditions?
Rain, sunny, overcast, fog, etc
Lis Sulmont
Curriculum Manager, DataCamp
Three types of machine learning
1) Reinforcement learning
2) Supervised learning
3) Unsupervised learning
Unsupervised learning
Training data only has features
Useful for:
Anomaly detection
Lis Sulmont
Curriculum Manager, DataCamp
Machine learning workflow
Includes:
Square feet
Neighborhood
Year built
Sale price
And more!
What percent of apartments did the model accurately predict within a 10% margin?
2. Split dataset
Train and test dataset
3. Train model
Input train dataset into a machine learning model
4. Evaluate
If desired performance isn't reached: tune the model and repeat Step 3
Hadrien Lacroix
Content Developer at DataCamp
Modeling
Hadrien Lacroix
Content Developer at DataCamp
Unsupervised learning
...
Hadrien Lacroix
Content Developer at DataCamp
Evaluate step
Model memorized training data and can't generalize learnings to new data
1 https://www.flickr.com/photos/59632563@N04/6104068209
true positives
Sensitivity = = 1/3 = 33.33%
true positives + f alse negatives
Rather mark legitimate transactions as suspicious than authorize fraudulent transactions
Rather send spam to inbox than send real emails to the spam folder
Error = distance between point (actual value) and line (predicted value)
Many ways calculate this. e.g, root mean square error
1 https://www.flickr.com/photos/micahdowty/8540188997
Hadrien Lacroix
Content Developer at DataCamp
Machine learning workflow
Ensemble methods
degree
gamma
shrinking
coef0
tol
...
Sara Billen
Curriculum Manager, DataCamp
What is deep learning?
AKA: Neural Networks
Basic unit: neurons (nodes)
Complex problems
Computer vision
Sara Billen
Curriculum Manager, DataCamp
Computer vision
Helps computers see and understand the content of digital images
Deep fake
...
Sara Billen
Curriculum Manager at DataCamp
Natural Language Processing (NLP)
The ability for computers to understand the meaning of human language
Example: "blue"
"sky-blue"
"aqua"
"cerulean"
Chatbots
Personal assistants
Sentiment analysis
...
Lots of data
Sara Billen
Curriculum Manager, DataCamp
Data quality
Review of outliers
Domain expertise
Documentation
Lis Sulmont
Curriculum Manager, DataCamp
Chapter 1
What is machine learning?
Machine learning concepts and workflow
Vidhi Chugh
AI strategist and ethicist
Rapid developments in AI
1 Unsplash
Large
Training data and resources
1 Freepik
Large
Training data and resources
Language
Human-like text
1 Freepik
Large
Training data and compute power
Language
Human-like text
Models
Learn complex patterns using text data
1 Freepik
1 https://zapier.com/blog/best-ai-chatbot/
Sentiment analysis
Identifying themes
Translating text or speech
Generating code
Next-word prediction
Vidhi Chugh
AI strategist and ethicist
Business opportunities
Benefits
Automate tasks
Improve efficiency
Unstructured data or text: data that lacks definition and is presented free-form
1 Freepik
1 Freepik
Receive guidance
Discuss ideas
1 Freepik
1 Freepik
Makes a joke
1 https://arxiv.org/abs/2302.14045
Vidhi Chugh
AI strategist and ethicist
Sequence matters!
1 Freepik
Understanding context
Multi-task learning:
Long-range dependency Versatile
Multiple tasks
Vidhi Chugh
AI strategist and ethicist
Using text data
1 Freepik
1 Freepik
1 Freepik
Linguistic subtleties
Irony
Humor
Pun
Sarcasm
Intonation
Intent
1 Freepik
Personal opinion: "My all-time favorite book is To Kill a Mockingbird by Harper Lee."
Supporting statement: "It's a powerful story about prejudice, justice, and the human
experience."
Response: "What's the meeting about?" Response: "Sounds like you're looking
Neutral forward to it!"
Engaging
Small number of bricks -> limited structures Larger number of bricks -> complex and
detailed structures
Emergent abilities
only present in large-scale models
Scale:
The volume of training data
Vidhi Chugh
AI strategist and ethicist
Where are we?
Text:
"Working with natural language processing techniques is tricky."
Tokenization:
["Working", "with", "natural", "language", "processing", "techniques", "is", "tricky", "."]
Bag-of-words
Word embeddings
Cat Mouse
Plant -0.9 -0.8
Furry 0.9 0.7
Carnivore 0.9 -0.8
Vidhi Chugh
AI strategist and ethicist
Where are we?
1 Freepik
Powerful computers
Processing power
Infrastructure
Expensive
LLM:
100,000's Central Processing Units
(CPUs)
1 Freepik
Pre-trained model
Learned from general-purpose datasets
Compute Compute
1-2 CPU and GPU Thousands of CPUs and GPUs
Data Data
~1 gigabyte Hundreds of gigabytes
Vidhi Chugh
AI strategist and ethicist
Where are we?
Understanding rhythm
N-shot learning
Zero-shot - no task-specific data
1 Freepik
1 Freepik
No compromise on accuracy
1 Freepik
Fine-tuning
Vidhi Chugh
AI strategist and ethicist
Where are we?
Types:
Next word prediction
Training Data
Pairs of input and output examples
For example:
I love to eat pizza with _ _ _ _ _ _
Original Text: "The quick brown fox jumps over the lazy dog."
Masked Text: "The quick [MASK] fox jumps over the lazy dog."
Vidhi Chugh
AI strategist and ethicist
Where are we?
Transformer architecture
Relationship between words
Example: "Jane, who lives in New York and works as a software engineer, loves exploring
new restaurants in the city."
Transformers:
Process multiple parts simultaneously
Faster processing
For example:
"The cat sat on the mat"
Processes "cat," "sat," "on," "the," and "mat" at the same time
Vidhi Chugh
AI strategist and ethicist
Attention mechanisms
Understand complex structures
Focus on important words
Captures long-range dependencies Splits input into multiple heads with each
head focusing on different aspects
Example:
Group conversation at a party
Filter noise
1 Freepik
Vidhi Chugh
AI strategist and ethicist
Where are we?
Pre-training
Fine-tuning
Transformer architecture
Next-word prediction
1 Freepik
N-shot training
Errors
Inconsistencies
Reduced accuracy
Fine-tuning
Quality labeled data improves performance
Enter RLHF!
Human feedback
Step 1:
Receives a prompt
Step 2:
Human expert checks these responses
Relevance
Coherence
Vidhi Chugh
AI strategist and ethicist
Data considerations
Data quality
Labeling
Bias
Privacy
1 Freepik
Vidhi Chugh
AI strategist and ethicist
Ethical concerns
Transparency risk
Information hazards
Errors
Misuse
Black box
Who is responsible?
Incorrect and harmful advice
No accountability
1 Freepik
Misinformation spread
Malicious use
Toxicity
Example: Example:
Bullying vs. friendly school environment "What's a good diet for losing weight?"
Distressing and harmful Unsubstantiated diet plan
Example: Example:
Fabricated news Insensitive response
Manipulating public and causing unrest Stereotype
1 Freepik
Vidhi Chugh
AI strategist and ethicist
Journey so far
Road-trip planning
Why this particular route?
Optimization
1 Freepik
Challenge
Subtle, difficult to detect
1 https://arxiv.org/pdf/2302.09582.pdf
Vidhi Chugh
AI strategist and ethicist
How far we have come!
LLMs transforming interaction with technology
Introduction to ChatGPT
Daniel Tedesco
Data Lead, Google
We've long dreamed of tools that can create
In ancient stories...
GENERATIVE AI CONCEPTS
We've long dreamed of tools that can create
In ancient stories... ...and modern virtual worlds
GENERATIVE AI CONCEPTS
Unparalleled creative tools
AI Images AI Chatbots
GENERATIVE AI CONCEPTS
What is generative AI?
Machine learning models that generate new content
1 Google Bard
GENERATIVE AI CONCEPTS
What is generative AI?
1 Facebook Make-a-Video
GENERATIVE AI CONCEPTS
What is generative AI?
1 Replit Ghostwriter
GENERATIVE AI CONCEPTS
How does it work?
GENERATIVE AI CONCEPTS
How does it work?
GENERATIVE AI CONCEPTS
How does it work?
GENERATIVE AI CONCEPTS
Create images
GENERATIVE AI CONCEPTS
Hold conversations
GENERATIVE AI CONCEPTS
Input more than text
GENERATIVE AI CONCEPTS
Real-world applications
Generative AI will impact a variety of industries and functions:
GENERATIVE AI CONCEPTS
The end of work?
GENERATIVE AI CONCEPTS
Course goals
Generate content
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Generative AI in the
machine learning
landscape
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Models that analyze
Discriminative models
1 Wikimedia Commons
GENERATIVE AI CONCEPTS
Bagels and puppies
1 Wikimedia Commons
GENERATIVE AI CONCEPTS
Guessing with confidence
GENERATIVE AI CONCEPTS
Models that imagine
Generative models
GENERATIVE AI CONCEPTS
Mixing for effect
Generative AI:
1 Cosmopolitan Magazine
GENERATIVE AI CONCEPTS
Generative adversarial networks (GANs)
GENERATIVE AI CONCEPTS
Bagel Puppy GAN
1 https://twitter.com/teenybiscuit/media
GENERATIVE AI CONCEPTS
Artificial general intelligence (AGI)
An AI that exhibits intelligence like a human would
Scope of knowledge
Creative thinking
GENERATIVE AI CONCEPTS
Use the right tool for the job
Discriminative Models Generative AI
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
The evolution of
generative AI
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Generative AI burst on the scene in 2023
1 Yahoo Finance
GENERATIVE AI CONCEPTS
Key factors driving development
Several factors drive generative AI development:
Computing power
Dataset availability
Competitive interests
Model design
GENERATIVE AI CONCEPTS
Computational power allowed large models
Cloud computing
Hardware-software optimization
GENERATIVE AI CONCEPTS
Models improved with massive datasets
Global Datasphere Growth
GENERATIVE AI CONCEPTS
Competitive pressures encouraged faster development
Commercial Political
GENERATIVE AI CONCEPTS
GANs unleashed high quality generation
GENERATIVE AI CONCEPTS
Transformers brought context and coherence
'it' refers to 'animal' 'it' refers to 'street'
1 https://ai.googleblog.com/2017/08/transformer-novel-neural-network.html
GENERATIVE AI CONCEPTS
Transformers brought context and coherence
Transformers:
GENERATIVE AI CONCEPTS
RLHF engaged user feedback
Reinforcement Learning with Human Feedback (RLHF):
GENERATIVE AI CONCEPTS
RLHF engaged user feedback
1 Midjourney
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Model design and
data collection
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Know how to fill the tank
GENERATIVE AI CONCEPTS
Developing a model
Model Development Steps
4. Model evaluation
GENERATIVE AI CONCEPTS
Stable Diffusion's research and development
Example output from Stable Diffusion Stable Diffusion's R&D
GENERATIVE AI CONCEPTS
Data collection: not your typical ML model
Training data preparation
1 Laion blog
GENERATIVE AI CONCEPTS
Data collection: privacy and security are critical
Anonymize or aggregate
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Model training
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Pick your mode of train-sportation
1. Hardware
2. Time
Dataset size
Model complexity
Rounds of training
3. Cost
GENERATIVE AI CONCEPTS
Graduate to advanced techniques
Foundation generative AI model is a first
step
2. RLHF
3. Custom embeddings
GENERATIVE AI CONCEPTS
From cats to lions
Transfer learning transfers knowledge from one task to another
Fine-tuning is a type of transfer learning for a small dataset
GENERATIVE AI CONCEPTS
Where does your feedback go?
GENERATIVE AI CONCEPTS
Thumbs up for better responses
GENERATIVE AI CONCEPTS
Embeddings as fingerprints
Similar to recognizing a fingerprint
Unique representations of data entities
1 Wikimedia commons
GENERATIVE AI CONCEPTS
Embedding Dan
GENERATIVE AI CONCEPTS
Embedded Dan
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Model evaluation
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Why evaluate anyway?
Assess performance and effectiveness of a model:
Measure progress
GENERATIVE AI CONCEPTS
Evaluating generative AIs
Quantitative Metrics Human-centric Metrics
GENERATIVE AI CONCEPTS
Discriminative model evaluation techniques
Measure performance on well-defined tasks
Pros:
Cons:
GENERATIVE AI CONCEPTS
Generative model-specific metrics
Customized for particular generative tasks
Pros:
Cons:
GENERATIVE AI CONCEPTS
Human performance comparison
Pros:
Cons:
Unfair comparison
GENERATIVE AI CONCEPTS
Award-winning AIs
Human Competitions Human Standardized Tests
1 https://twitter.com/colostatefair/status/1565486317839863809, OpenAI
GENERATIVE AI CONCEPTS
The gold standard
Intelligent evaluation by humans or other AIs
Pros:
Cons:
GENERATIVE AI CONCEPTS
Turing's classic test
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Evaluating and
mitigating social
bias
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
What do we mean by social bias?
GENERATIVE AI CONCEPTS
Where bias appears
Training data
GENERATIVE AI CONCEPTS
Bias in data
Skewed or unrepresentative information in the training dataset
GENERATIVE AI CONCEPTS
Bias in models
Pursuing goals that result in biased outcomes
GENERATIVE AI CONCEPTS
Bias in use
Applying AI in wrong or malicious ways
GENERATIVE AI CONCEPTS
Identifying bias in data and models
Representation analysis compares how the model refers to different groups
Fairness metrics evaluate models for equal treatment, opportunity, and accuracy across
groups
Human audits ask real people to review a model's outputs to identify bias
GENERATIVE AI CONCEPTS
Mitigating bias in data and models
Continuous improvement
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Copyright and
ownership
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Who won?
GENERATIVE AI CONCEPTS
Law vs. AI
Legal landscape is evolving to meet rapid AI advancement:
1. Intellectual property
2. Privacy implications
3. Evolving norms and regulations
GENERATIVE AI CONCEPTS
Follow IP best practices
GENERATIVE AI CONCEPTS
Privacy implications with every prompt
Read terms of service: understand how data is stored and used
Consider what we share: user data may be included in future training
GENERATIVE AI CONCEPTS
Evolving norms
Different responses across industries
Norms in one context might not apply in
another
GENERATIVE AI CONCEPTS
Evolving regulations
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Responsible
generative AI
applications
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
On the eve of the election
GENERATIVE AI CONCEPTS
Types of malicious use
Deepfakes
Misinformation campaigns
AI-enhanced hacking
1 Pablo Xavier
GENERATIVE AI CONCEPTS
Detection and prevention
Key usage principles
Human-in-the-loop
Harm prevention
Continuous monitoring
GENERATIVE AI CONCEPTS
Access
AI can unintentionally aid criminal groups'
non-criminal activities.
GENERATIVE AI CONCEPTS
Prompts and responses
Moderating prompts Moderating responses
GENERATIVE AI CONCEPTS
Applications
Malicious actors can apply benign responses
to illegal or unethical activity.
GENERATIVE AI CONCEPTS
Communication and feedback
Clear usage guidelines
Feedback loops
User studies and stakeholder roundtables
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Artificial general
intelligence (AGI)
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Revisiting AGI
An AI that exhibits intelligence like a human would:
Scope of knowledge
Creative thinking
GENERATIVE AI CONCEPTS
Immense pros
Productivity
Research progress
Engineering solutions
GENERATIVE AI CONCEPTS
Severe cons
Negative economic disruption
Malicious use
Existential catastrophe
GENERATIVE AI CONCEPTS
The safety debate
AGI can empower AGI can have negative consequences
GENERATIVE AI CONCEPTS
Controlling AGI outcomes
Requirements for aligning AGI and human values:
Constructive feedback
1. Hard constraints
2. Alignment strategies
3. Government intervention
GENERATIVE AI CONCEPTS
Hard constraints
1. Boxing restricts access to the wider world
GENERATIVE AI CONCEPTS
Alignment strategies
Iterative development
Constitutional AI
Multi-stakeholder engagement
1 Dave Gray
GENERATIVE AI CONCEPTS
Government intervention
CEOs of various AI companies meeting with
UK PM Rishi Sunak in 2023-
Beneficial regulations
Safety regulations
Transparency standards
International collaboration
1 UK Prime Minister
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Bringing new AI into
old workflows
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Meeting our "replacement"
GENERATIVE AI CONCEPTS
Advantages and limitations
Advantages Limitations
GENERATIVE AI CONCEPTS
Augmentation
GENERATIVE AI CONCEPTS
Co-creation
GENERATIVE AI CONCEPTS
Replacement
GENERATIVE AI CONCEPTS
A novel implementation
Augmentation: AI suggests edits, human decides
Co-creation: AI and human collaboratively write a novel
GENERATIVE AI CONCEPTS
Identify opportunity
GENERATIVE AI CONCEPTS
Decompose the process
GENERATIVE AI CONCEPTS
Test an AI solution
GENERATIVE AI CONCEPTS
Scale up
GENERATIVE AI CONCEPTS
A new way of working
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Progress in
generative AI
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
A collaborative effort
Universities
Governments and civic organizations
Open-source communities
GENERATIVE AI CONCEPTS
Universities
New researchers
Partnerships with other sectors
GENERATIVE AI CONCEPTS
Governments and civic organizations
Governments
Civic institutions
Project funding
GENERATIVE AI CONCEPTS
Open-source communities
Some generative AI Open-source projects
GENERATIVE AI CONCEPTS
Startups and large companies
Seek competitive advantage
Bring generative AI to broad adoption
Acquire startups
GENERATIVE AI CONCEPTS
The openness challenge
Pros Cons
Broader feedback
GENERATIVE AI CONCEPTS
The boundaries of generative AI development
Accelerators Decelerators
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
Preparing for a
future of generative
AI
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Do more with less
GENERATIVE AI CONCEPTS
The AI divide
GENERATIVE AI CONCEPTS
Education and jobs
Difficult transition
1 Various headlines from BBC, The Economist, Forbes, Business Insider, and Gitnux
GENERATIVE AI CONCEPTS
Media and entertainment
Creative explosion Which is real and which is AI-generated?
Personalized media
1 https://www.reddit.com/r/midjourney/comments/12uij2l/one_is_a_real_photo_and_one_is_ai_generated_can/
GENERATIVE AI CONCEPTS
Science and technological progress
Faster discoveries
Faster technology transfer
GENERATIVE AI CONCEPTS
Values: do they think and feel like us?
GENERATIVE AI CONCEPTS
Let's practice!
G E N E R AT I V E A I C O N C E P T S
You made it!
G E N E R AT I V E A I C O N C E P T S
Daniel Tedesco
Data Lead, Google
Congratulations
GENERATIVE AI CONCEPTS
Four chapters of fun
GENERATIVE AI CONCEPTS
The learning just started
Explore more DataCamp courses:
Introduction to ChatGPT
GENERATIVE AI CONCEPTS
Congratulations!
G E N E R AT I V E A I C O N C E P T S
AI ethics: What's the
buzz?
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Intro to ethics
AI growth and the surge in public attention
AI ETHICS
AI meets ethics
AI revolutionizes various sectors:
Healthcare
Media
Insurance
Examples
AI in healthcare - improves surgical
accuracy, early disease detection
AI ETHICS
Why AI ethics?
Why AI ethics?
Risks of unchecked biases, illustrated by
insurance claim denial scenario
Human influence on AI
Biases seep into decision-making
Wider impact
Legal professions, judiciary, public
decision-making
AI ETHICS
Ethics in practice
Aligning AI systems with ethical principles
Example:
Fairness in insurance model
AI ETHICS
The big picture
AI ethics: Beyond avoiding harm or bias
Importance of accountability: Who is
responsible for AI's outcomes and
construction?
AI ETHICS
Wrapping up
AI ethics: The guiding beacon in an AI-
driven world
AI ETHICS
Let's practice!
AI ETHICS
Digging deeper: AI
ethics principles
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Meet MedTech Innovations
MedTech Innovations
Healthcare company
Personal reflections
Consider the application of AI ethics in...
Personal life
Career
Known businesses
AI ETHICS
The principle of fairness
MedTech's AI in patient care
Personalized treatment plans
Challenge:
Unintentional bias in AI systems
Potential discrimination
Principle of fairness
Equal treatment
Avoidance of discrimination
AI ETHICS
The principle of accountability
Scenario: MedTech's AI system mistake affecting patient treatment
Principle of accountability:
Someone should always be accountable for AI outcomes
AI ETHICS
The principle of transparency
Scenario: MedTech's AI system
recommends a specific treatment
Principle of transparency:
Decisions by AI should be explainable
and comprehensible
AI ETHICS
Applying AI ethics
Fairness:
Continual testing of AI systems to detect and rectify bias
Accountability:
Clear responsibilities defined for each AI system's outcomes
Transparency:
Make AI systems explainable and understandable
Commitment:
Ethical adherence builds trust, mitigates risks
AI ETHICS
Why do they matter?
Understanding & applying principles: Ensures ethical AI use
Building trust: Transparency and accountability foster patient trust
Promoting AI: Transparency and knowledge-building enhances societal trust and utilization
of AI
AI ETHICS
Let's practice!
AI ETHICS
AI ethics: where's the
line?
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
The privacy-personalization paradox
AI personalizes user experiences,
enhancing appeal
Solution:
AI literacy
Example: Spotify
AI ETHICS
The bias-fairness conundrum
Bias-fairness conundrum:
AI learns from data that can carry
societal biases
Result:
AI may unintentionally amplify these
biases
Example:
Early versions of ChatGPT
Solution:
Train AI models with fairer, bias-free data
AI ETHICS
The transparency-complexity trade-off
Transparency-complexity trade-off:
Complex AI models lack transparency
but are highly accurate
AI ETHICS
The autonomy-control dilemma
Autonomy-control dilemma:
AI can act autonomously but might
operate outside human control
Question:
Should we prioritize autonomy or control?
No one-size-fits-all answer
Example:
Tesla's Autopilot system emphasizes
driver vigilance and readiness to take
control
AI ETHICS
Navigating the challenges
Navigating ethical dilemmas in AI requires thoughtful trade-offs
Importance of human element in decision-making
AI ETHICS
Let's practice!
AI ETHICS
Unpacking the
blackbox:
Transparency
AI ETHICS
Joe Franklin
Llama Enthusiast
Black-box nature
AI implementations are often black boxes
A black box in AI:
Known inputs and outputs
AI ETHICS
Ambiguousness is non-ideal
Ambiguity in AI: Ethical challenge
Question of trust:
Can we validate AI decisions without
understanding them?
Transparency:
Making an AI's decision-making process
understandable
Example:
Factors in AI sales model
AI ETHICS
Throughout the AI life cycle
Transparency in AI involves all stages of the
AI life-cycle
Purpose:
Understand the workings of the AI
system
AI ETHICS
A deciding factor
Current state:
Transparency in AI is uncommon
Hesitation in AI adoption
Future implications:
Transparency will become a deciding
factor in users' choice of AI systems
Actionable:
Organizations should prioritize
transparency
AI ETHICS
Openness is key
Openness about AI challenges and
learnings is key
AI ETHICS
Embracing transparency in AI
Transparency in AI can be intimidating but
is beneficial for businesses
AI ETHICS
Let's practice!
AI ETHICS
AI fairness: not just a
dream
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Fairness in AI
Fairness: Ensure no group is favored over AI should predict patient outcomes
another equitably
AI ETHICS
Why does fairness matter?
AI's rapid processing can result in large-
scale impacts
AI ETHICS
Promoting fairness
Fairness promotion is challenging but possible
Reduces potential bias by omitting certain variables
Variables include race, gender, age, socioeconomic status, sexual orientation, religion
AI ETHICS
Unintentional issues exist
AI ETHICS
Minimizing bias
The main objective of AI fairness is minimizing bias
The first step is acknowledging bias exists
AI ETHICS
Let's practice!
AI ETHICS
Safeguarding AI:
Accountability
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Define accountability
Accountability:
Assigning responsibility for AI outcomes
AI ETHICS
Accountability is vital
People trust AI systems more when there is accountability
Accountability ensures ethical use and mitigates potential harm
AI ETHICS
The paradox of accountability
Increasing AI accountability can improve
trust
Example:
Georgia Tech study where participants
followed misguided robot guidance
AI ETHICS
The Tesla story
Misunderstanding of the auto-pilot
capabilities among consumers
AI ETHICS
Achieving accountability
AI producers:
Achieving accountability involves
transparency and solving the 'Black Box'
problem
Attributing responsibility is key
AI consumers:
'Trust but verify'
AI ETHICS
No one-size-fits-all
Accountability in AI is a continuous journey
With each AI advancement, the accountability conversation evolves
AI ETHICS
Let's practice!
AI ETHICS
Explainable AI
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
What's explainable AI?
AI systems whose internal workings are understood by humans
Goal: Making AI's decision-making clear, understandable, and explainable
AI ETHICS
The central pillars
Transparency, fairness, accountability are
central
AI ETHICS
How does it work?
AI ETHICS
How does it work?
AI ETHICS
Local Interpretable Model-agnostic Explanations (LIME)
LIME as a translator that helps the model
communicate
Example:
Explains a movie's hit prediction based
on factors like director popularity and
high budget
AI ETHICS
SHapley Additive exPlanations (SHAP)
SHAP: A detective of AI, revealing feature
importance
SHAP in Action
Director: 50%
Cast: 30%
Genre: 15%
Budget: 5%
AI ETHICS
Future of XAI
Many more techniques and approaches exist in XAI
The gap between XAI and traditional AI is shrinking
AI ETHICS
Let's practice!
AI ETHICS
Ethical frameworks
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager
The background story
Numerous ethical frameworks guide AI decision-making
Deontological vs. consequentialist approaches
AI ETHICS
Ethical framework defined
Ethical frameworks provide scaffolding for ethical decisions
AI ETHICS
Organizational benefits
Benefits of ethical framework
Allows foresight in AI decision impact
AI ETHICS
Meet AgroTech!
Ethical frameworks vary across industries
AgroTech
New agricultural company, innovating
crop harvesting
AI ETHICS
Meet AgroTech!(2)
Smart harvesters shouldn't focus only on
expensive, resource-intensive crops
AI ETHICS
Challenges are unavoidable
Balancing ethical considerations is complex
Cultural and regional variations complicate
frameworks
AI ETHICS
Let's practice!
AI ETHICS
The value of ethical
AI
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Balancing the scale
AI brings fast decision-making with widespread impact
AI ETHICS
AI ethics isn't optional
AI ethics: a necessity, not accessory
Balances the immense benefits and
potential pitfalls of AI
AI ETHICS
Bring in tangible impacts
Not just defensive but an offensive strategy
Propels organizations ahead of the curve
AI ETHICS
New field, new challenges
Recent emergence with large-scale AI use
Challenging to find examples of AI gone
bad
AI ETHICS
Let's practice!
AI ETHICS
The future of AI
ethics
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Understanding the present
AI ETHICS
Anticipating future ethical dilemmas
With each AI advancement, new ethical
challenges emerge
AI ETHICS
The dynamic nature of AI ethics
Evolves with technological advancements
Ethical principles must adapt to new AI
applications and societal values
AI ETHICS
Ethical AI by Design
Awareness of technology and techniques is a prerequisite
Ethical AI by Design: integrating ethics from initial design stage of AI systems
AI ETHICS
Ethical AI in practice
Healthcare AI systems:
Ensure transparency and explainability
for trust in AI-driven diagnoses
Retail AI systems:
Avoid bias and ensure accountability
AI ETHICS
Let's practice!
AI ETHICS
Honing ethics by
design
AI ETHICS
Joe Franklin
Associate Data Literacy and Essentials
Manager, DataCamp
Deceptively simple
AI Ethics by Design: Consider ethical ramifications of AI in advance
AI ETHICS
The big ones
Define objectives
Align with stakeholders
Design transparently
Evaluate bias
Address concerns
AI ETHICS
Defining objectives
AI ETHICS
The gangs all here
AI ETHICS
The right data in the right place
AI ETHICS
Transparency in design
AI ETHICS
The end is only the beginning
AI ETHICS
It's a wonderful world out there
Explore the intersection of ethics and data. Learn valuable skills to collect and manage
data ethically.
Discover how to ask a good question and connect with stakeholders to drive change with
analytics.
AI ETHICS
Thank you!
AI ETHICS