Comprehensive AI and Generative AI Boot Camp: Session 1 Study Notes
Introduction and Mentorship Background
Speaker Specialization: The mentor's background is rooted in Data Science, core electronics, and Artificial Intelligence (AI) with a specialization in MLOps (Machine Learning Operations).
Academic and Mentorship Journey:
Development began as a teaching assistant during undergraduate studies, assisting professors and interacting with students.
Previous mentorship roles include Algo University and other platforms.
The speaker has mentored over individuals who have secured positions at companies such as Amazon, Google, and Microsoft.
Over people have been guided in career-specific areas, including resume building and selecting paths in software engineering, data science, AI, Generative AI (Gen AI), and Data Structures and Algorithms (DSA).
The Evolving Landscape of AI and the "Learn to Learn" Mantra
The Problem of Skill Obsolescence: In the current industry phase, specifically for third and fourth-year students, the rapid advancement of AI creates confusion. The core philosophy shared is that no single skill will remain relevant for long because AI can now perform most specialized tasks.
The "Learn to Learn" Principle: This is described as the fundamental mantra for professional longevity. Because new technology emerges every year, the ability to adapt and learn how to solve problems using AI principles is what creates human value and ensures a career remains relevant for the next to years.
Boot Camp Focus: The focus is on the fundamental approach to AI problems and developing the learn-to-learn mindset rather than just memorizing current tools.
Structural Overview of the AI Boot Camp
Day 1 (Introduction): Climbing the ladder from basics. Topics include the origins of AI, differentiation between ML and AI, primitive models, and advanced concepts like how computers perceive text, images, and audio. It introduces multimodal systems (models using multiple data types simultaneously).
Day 2 (Problem Solving): Distribution of a problem statement. Participants work on solutions and build new features on top of existing foundations.
Day 3 (Career and Interviews): The final session focuses on maximizing the impact of AI projects on a resume. It covers preparation for Gen AI job interviews, expected questions, and provides an AI roadmap for engineering roles. There is also a planned surprise regarding in-depth technical concept learning.
Defining the AI Hierarchy and Core Concepts
Artificial Intelligence (AI): Replicating the human brain's cognitive abilities (thinking, learning, and understanding) artificially. It is the broad umbrella of artificial cognitive functions.
Machine Learning (ML): A subset of AI focused specifically on the "ability to learn." It is compared to the way a child learns fundamental associations (e.g., "A for Apple").
Deep Learning (DL): A sub-field of Machine Learning specialized in high-level, complex functions. It is compared to preparing for advanced exams like IIT-JEE, NEET, or UPSC, requiring focused and high-level study structures to handle sophisticated tasks.
Data Science: The practice of using AI and Machine Learning to solve real-world, day-to-day problems.
Data as the Foundational Element of AI
Data as the "Gold Mine": Every major organization (Amazon, Google, Microsoft, Meta, Swiggy, Zomato) uses AI, and their common fuel is data. AI feeds upon data to function.
Pattern Recognition: At its highest level, AI and ML work by understanding patterns in data. Humans follow patterns (e.g., daily schedules like waking at ); AI does the same.
Outliers: If something new or non-patterned is introduced, AI initially rejects it; these anomalies are known as outliers.
Evolution from Procedural Logic to AI:
Traditional Code: Relied on
if-elseconditionals. For example,if (age > 18) and (degree == BTech) then (get job).Scalability Issue: Manual logic is not scalable for large amounts of data. For example, writing code for a property purchase involves parameters (area, neighbors, rent, parking, etc.). Manually writing conditions is unfeasible.
AI Solution: AI resolves this by automatically identifying patterns in large datasets without requiring manual conditional programming.
The Mathematical and Functional Mechanics of AI Models
Models as Black Boxes: From a high-level perspective, a model is a "black box" where an input is provided and an output is generated.
Parameters (): A model is essentially a collection of numbers called parameters, represented by the symbol . These parameters are organized into a matrix.
Mathematical Operations:
Machine learning is fundamentally built on matrix multiplication and differentiation.
The basic operation can be represented as: where is the input matrix, is the parameter matrix, and is the output.
Model Training and Backpropagation:
Initial State: Initially, a model has random parameters () and does not understand the pattern (e.g., it doesn't know if it should add or multiply).
Training Process: The model takes an input (e.g., and ), produces a random output (e.g., ), and compares it to the correct ground truth (e.g., for a multiplication model).
Punishment and Update: When the output is incorrect, the model "punishes" itself and updates its parameters from to to , iteratively reducing error.
Learning: This iterative process continues until the model identifies the pattern (e.g., realizing it is a multiplication model). This entire process is called "backpropagation" or "model training."
Categorization of Machine Learning Paradigms
Supervised Learning:
Requires a dataset where both inputs and their corresponding outputs (labels) are known.
Example: A dataset of images labeled as "dog," "cat," or "horse."
Unsupervised Learning:
Used when the data has no labels.
The goal is clustering—grouping things that look similar based on identified features. It identifies that specific images belong to the same group but cannot name the group as "dog" or "cat" unless told.
Reinforcement Learning (RL):
Advanced learning based on feedback from an environment.
Mechanism: It uses a reward-based system where the model learns from mistakes/fouls and achievements.
Metaphor (Flappy Bird): Initially, the agent fails (makes a foul). It receives feedback from the environment and improves in the next attempt.
Metaphor (Corporate Feedback): Similar to a manager giving feedback on product versions until a perfect version is reached by the fifth or sixth iteration.
Natural Language Processing (NLP) and Computer Vision (CV)
The Branches of AI perception:
Natural Language Processing (NLP): Enables algorithms to understand and process human text and speech.
Computer Vision (CV): Relates to images and videos, enabling computers to "see."
Biomimicry in AI: AI is inspired by the human brain. Just as humans see, hear, and read, AI uses CV and NLP. This follows the general human invention trend of mimicking nature (e.g., airplanes mimicking bird aerodynamics and fluid mechanics).
Foundational Text Processing in NLP
Numeric Representation: Computers cannot understand text intrinsically; they only understand numbers (integers or decimals).
Tokenization: The process of converting words into unique identities called "tokens" (usually integers). For example:
"I" becomes
"am" becomes
"Nippon" becomes
Embeddings: Integers alone do not show relationships between words. Embeddings represent words as vectors (combinations of numbers in a space).
Vector representation: .
Embeddings allow the computer to calculate closeness between concepts (e.g., "Man" and "Nippon" or various animals being mathematically close in vector space).
Questions & Discussion
Question: Why does a model make mistakes after training if it learned during training?
Response: It depends on the dataset quality and the variation between training and testing data. If a model is trained on to but asked about Roman alphabets, it will fail. Garbage data in yields garbage results out.
Question: What is the difference between and bias?
Response: is a combination of weights and biases (). Bias is just one of the parameters.
Question: Why are matrices used so much in AI?
Response: Matrix multiplication is simpler and much faster when performed through GPUs (Graphics Processing Units).
Question: Which is better: Supervised or Unsupervised learning?
Response: It depends on the use case. For specific output labels, use supervised. For clustering and finding hidden structures, use unsupervised.