Based on the AIF-C01 exam guideReport an error
Through Week 2, we've seen the world of "traditional" machine learning. Collect data, attach labels, train a model to solve one specific problem. Spam or not? Is this photo a cat or dog? What will next month's revenue be? Each model does just one job well. Then at the end of 2022, ChatGPT appeared and the world changed. Writing, coding, drawing, summarizing—one model does dozens of jobs. This is Generative AI.
Generative AI is the largest area in the AIF-C01 exam. Today, we aim not just to memorize terms but to truly understand "what exactly makes Generative AI different from traditional ML?" and what Foundation Models (FM) and Large Language Models (LLM) at their core really are.
The simplest distinction is "what does the model produce?"
| Category | Traditional ML | Generative AI |
|---|---|---|
| Output Character | Judgment/Prediction (numbers, classification labels) | New Content (sentences, images, code) |
| Typical Question | "Is this email spam?" | "Write me a reply to this email" |
| Training Data | Usually labeled data | Massive unlabeled data |
| One Model's Use | Usually one task | Various tasks (general-purpose) |
| Output Determinism | Same input → same output tendency | Same input → can be different each time |
Traditional ML often uses discriminative models. They draw boundaries for "which category does given data belong to?" Generative AI, by contrast, are generative models that learn "the probability distribution itself from which this data is created" and sample new examples from that distribution. This is how they can create sentences or pictures never seen before.
💡 Related Theory: Discriminative models learn conditional probability P(label | data), while generative models learn joint probability P(data, label) or the data's own distribution P(data). Finding "probability of spam" is discriminative; "writing a new spam email" is generative. Generative AI seems like "creation" because it samples plausible samples from learned probability distributions, not because it has human intention.
The biggest cost in traditional ML was "training a new model from scratch for each problem." The innovation of generative AI comes from the Foundation Model concept. Literally, a model that serves as "foundation."
The core idea has three stages:
The term "Foundation Model" was established by Stanford's HAI research team in 2021. The core is the economics of creating one expensive model and reusing it for many downstream tasks. Like building one deep foundation and then putting multiple floors on top when constructing a building.
🔍 Deeper Dive: AWS's flagship service for using foundation models is Amazon Bedrock. Bedrock is a "fully managed FM marketplace" that lets users call FMs from multiple companies (Anthropic Claude, Amazon Titan, Meta Llama, Mistral, AI21, Cohere) through a single API. Users don't need to buy GPUs or train models themselves—they just rent massive models via API calls. This is the generative AI version of "Infrastructure as API." When the AIF exam shows a scenario like "I want to choose among several FMs and don't want to manage infrastructure," Bedrock is the answer.
Foundation models exist for images, audio, text, and more, but the one that handles text (language) is the LLM (Large Language Model). ChatGPT, Claude, and Llama are all LLMs.
What an LLM does is surprisingly simple to explain. "Given text so far, probabilistically predict what word (token) comes next." Repeat this and you create a sentence.
Input: "Today's weather is really"
Model prediction: "good" (45%), "cold" (20%), "cloudy" (15%), ...
→ Pick "good"
→ Input: "Today's weather is really good" → predict next token → repeat
"Just predicting the next word, how does it write code and reason?" you might wonder. The key is scale. When model size (number of parameters) and training data cross a threshold, simple next-word-prediction alone produces "emergent abilities" like translation, summarization, and reasoning. OpenAI formalized this in 2020 as Scaling Laws.
💡 Related Theory: The foundation of LLM is the Transformer architecture published by Google in 2017 (the "Attention Is All You Need" paper). Before that, RNN/LSTM processed sentences sequentially from start to finish, making them slow and difficult to remember long context. Transformer's self-attention looks at all words in a sentence simultaneously, computing weights for "how related is word A to word B." This enables parallel processing on GPUs for fast training and handles long context well. Nearly all modern LLMs are Transformer-based.
LLM handles text, but generative AI isn't just text. The AIF exam frequently asks "which model/service is best for this task?"
| Generated Content | Example Models/Services | Use Cases |
|---|---|---|
| Text | Claude, Titan Text, Llama | Chatbots, summarization, translation, writing |
| Images | Stable Diffusion, Titan Image | Marketing images, design concepts |
| Code | Amazon Q Developer, Claude | Code auto-completion, bug fixing |
| Multimodal | Claude, Titan Multimodal | Describe images, analyze documents |
| Embeddings | Titan Embeddings, Cohere | Search, recommendations, RAG |
Multimodal means models that handle multiple input types simultaneously, like text + images. "Describe what's in this photo" is a typical multimodal task.
📚 Example: In 2023, a global media company was running customer support ticket classification with traditional ML models, then switched to generative AI. Previously, each new category required collecting data and retraining, but with FM-based approach, just describing the category in the prompt enabled instant new classification. The retraining cycle went from "weeks" to "one prompt edit." This is the economic power of Foundation Model reuse.
Generative AI isn't a cure-all. The AIF exam constantly asks about "choosing the right tool."
The core decision criterion is "do we need to create new content, or just make judgments/predictions?" If we need to write a reply, use generative AI. If we just need to flag spam, use traditional ML.
Three key pictures to grasp today. First, traditional ML makes judgments/predictions while generative AI generates new content. Second, a Foundation Model is expensively created once then reused for many tasks, and at AWS we use Amazon Bedrock to rent it. Third, an LLM is an FM for language whose essence is "predict the next token," but as scale grows, abilities like reasoning and translation emerge.
Tomorrow we'll explore when LLM "predicts the next token," what that token really is and how text becomes numbers inside the model—tokens, embeddings, context windows, and inference, all explained simply.
Click a choice to reveal the answer and explanation.
Question 1
Which of the following best describes the most fundamental difference between generative AI and traditional machine learning?
Question 2
What is the core economic advantage of a foundation model?
Question 3
What is the basic principle by which an LLM (large language model) generates sentences?
Question 4
You want to call foundation models from multiple companies (Claude, Titan, Llama, and others) through a single API without managing infrastructure. Which AWS service is the best fit?
Question 5
Which of the following is a task for which traditional ML is more suitable than generative AI?