Lecture 1 Flashcards

(32 cards)

1
Q

Goal of Lec 1

A
  • Explain what ML & DL are
  • Explain why DL matters
  • Explain why efficiency matters
  • Set mental framework for the whole course
    πŸ‘‰ This lecture is about β€œWHY”, not β€œHOW”.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

AI (Artificial Intelligence)

A
  • Broad goal: make machines behave intelligently
  • Many approaches exist:
    • Rule-based systems
    • Symbolic reasoning
    • Expert systems
    • Machine Learning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Machine Learning (ML)

A

Definition (understand, don’t memorize): ML lets computers learn patterns from data, instead of following fixed rules.
Arthur Samuel (1959): β€œComputers learn without being explicitly programmed”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Key contrast

A
  • Rule-based programming
    Rules + Data β†’ Output
  • Machine learning
    Data + Output β†’ Rules (model)
    πŸ’‘ Mental model: ML = learning rules by observing examples, like humans do.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Some problems are easy to hard-code

A
  • Sorting numbers
  • Arithmetic
  • Following instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Some problems are NOT

A
  • Image recognition
  • Face recognition
  • Speech understanding
  • Language translation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Example: Image classification

A

Task: β€œIs this image a plane?”
Why rules fail:
* Different angles
* Different lighting
* Different backgrounds
* Different shapes
πŸ‘‰ Too many edge cases β†’ rules explode
πŸ’‘ Insight: If you cannot describe a task clearly in words, ML is useful.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ML is used when

A
  • Patterns exist
  • Rules are unclear
  • Data is available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Examples

A
  • Face recognition
  • Voice assistants
  • Search engines
  • Recommendation systems
  • Translation
    πŸ’‘ Connection to real life: You learned faces and language without explicit rules β€” by exposure.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Standard ML pipeline

A
  1. Collect data + labels
  2. Train a model
  3. Test on new unseen data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Training

A
  • Model adjusts itself to fit data
  • No explicit rules written by humans
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Evaluation

A
  • Check if learning generalizes, not memorizes
    πŸ’‘ Key word: generalization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Strengths

A
  • Pattern recognition
  • Object detection
  • Face recognition
  • Anomaly detection
  • Prediction
  • Recommendation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What ML is NOT good at

A
  • Logical reasoning with guarantees
  • Small data problems
  • Tasks with strict rules
  • Perfect correctness
    πŸ’‘ Rule of thumb: ML β‰  logic engine
    ML β‰ˆ statistical pattern learner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Where Deep Learning fits

A

AI β†’ Machine Learning β†’ Neural Networks β†’ Deep Neural Networks (DNNs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Other ML approaches

A
  • Kernel methods
  • Probabilistic models
  • Genetic algorithms
  • Symbolic methods
    This course focuses on: πŸ‘‰ Deep Neural Networks
17
Q

Artificial Neural Network (ANN)

A
  • Inspired by biological neurons
  • Consists of:
    • Input layer
    • Hidden layers
    • Output layer
18
Q

Deep Neural Network (DNN)

A
  • Neural network with more than 2 hidden layers
19
Q

Why depth matters

A
  • Shallow networks learn simple patterns
  • Deep networks learn hierarchical features
    Example (vision):
    • Early layers: edges
    • Middle layers: shapes
    • Later layers: objects
      πŸ’‘ Mental model: Depth = layered abstraction
20
Q

Important terms

A
  • AI β†’ goal
  • ML β†’ learning from data
  • DL β†’ deep neural networks
  • DNN / NN β†’ the model
  • CNN, RNN, Transformer β†’ architectures
  • LLM β†’ large language-focused DNN
  • GenAI β†’ models that generate content
    πŸ’‘ Memory trick: Architecture = structure
    Model = trained instance
21
Q

Three main reasons

A
  1. Record-breaking performance
    * Vision (ImageNet)
    * Speech recognition
    * NLP (question answering)
  2. Huge social impact
    * AlphaGo
    * ChatGPT
    * AI-generated art
    * Autonomous systems
  3. Industry adoption
    * Search
    * Translation
    * Healthcare
    * Finance
    πŸ’‘ Why now?
    * Large datasets
    * GPUs
    * Better algorithms
22
Q

Evidence

A
  • Chatbots
  • Self-driving cars
  • Code generation
  • Image generation
  • Multi-agent systems
    πŸ’‘ Key realization: AI is now infrastructure, not a toy.
23
Q

Why this matters

A

Deep learning models are:
* Powerful
* Accurate
* Expensive to run

24
Q

Energy definition

A

Energy = Power Γ— Time
Energy-efficient DL means:
* Faster execution
* Lower power consumption

25
Two main costs
1. Computation cost * Billions of operations * Example: ResNet-152 β†’ 11.3 billion MACs 2. Storage cost * Huge number of parameters * Example: GPT-3 β†’ 175 billion parameters πŸ’‘ Mental image: DNNs are like giant factories β€” powerful but costly.
26
Scaling trends
* More data * Larger models * Higher accuracy * Higher compute cost Known as scaling laws: Accuracy ↑ when: * Model size ↑ * Data ↑ * Compute ↑ Problem: πŸ‘‰ Energy cost ↑↑↑
27
Two complementary paths
Path 1: Hardware innovation * GPUs * Specialized accelerators * Optimized memory access Path 2: Algorithm innovation * Model compression * Efficient training * Faster inference This course focuses on: πŸ‘‰ Algorithm + HW/SW co-design
28
Deep models can be
* Fooled by adversarial inputs * Vulnerable to attacks Understanding: * Attacks * Defenses * Robust design Is part of responsible AI
29
You will learn
* ML basics * DNN fundamentals * Training & evaluation * Energy-efficient design * Robustness & security Not just using DL β€” understanding it deeply.
30
One master story
Rules fail β†’ ML learns from data β†’ DL learns deep patterns β†’ DL is powerful but expensive β†’ Efficiency & robustness are critical
31
One question per section
* Why ML? * Why depth? * Why efficiency? * Why robustness? If you can answer these aloud, you mastered Lec 1.
32
Final One-Line Summary
Deep learning works because the world has patterns, not rules β€” but making it efficient, scalable, and safe is the real challenge.