CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
  • Week 1
    • 1.The Relationship and Differences Between AI, Machine Learning, and Deep Learning
    • 2.Learning Types: Supervised, Unsupervised, and Reinforcement Learning
    • 3.Problems Where ML Fits vs. Problems Where It Doesn't
    • 4.Key Terms: Model, Training, Inference, Feature, Label, Overfitting
    • 5.Week 1 Review: AI/ML Fundamentals
  • Week 2
  • Week 3
    • 1.What Is Generative AI: Difference from Traditional ML, and Foundation Models
    • 2.How LLMs Work: Tokens, Embeddings, Context Window, and Inference
    • 3.Prompt Engineering Basics: Good Prompts, Zero/Few-shot, and the Limits
    • 4.Limitations and Risks of Generative AI: Hallucinations, Bias, Non-determinism, and Appropriate Use Cases
    • 5.Week 3 Comprehensive Review: Tying Together Generative AI Basics at a Glance
  • Week 4
  • Week 5
  • Week 6
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← AIF-C01/Week 3/Day 1

Based on the AIF-C01 exam guide·Report an error

AIF-C01· AssociateWeek 3 · Day 1~21 min read

Day 1 - What Is Generative AI: Difference from Traditional ML, and Foundation Models

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.

Traditional ML vs Generative AI: What Does the Model "Output"?

The simplest distinction is "what does the model produce?"

CategoryTraditional MLGenerative AI
Output CharacterJudgment/Prediction (numbers, classification labels)New Content (sentences, images, code)
Typical Question"Is this email spam?""Write me a reply to this email"
Training DataUsually labeled dataMassive unlabeled data
One Model's UseUsually one taskVarious tasks (general-purpose)
Output DeterminismSame input → same output tendencySame 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.

Foundation Model (FM): A Base Created Once, Used in Many Places

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:

  1. Pre-training: Train one huge model on internet-scale massive data. This stage costs enormously (millions of dollars, thousands of GPUs).
  2. Versatility: The resulting model is not for specific tasks but becomes a "universal foundation" that has learned general patterns of language and images.
  3. Adaptation: On this foundation, adding just a prompt or minor additional training (fine-tuning) allows reuse for many tasks—translation, summarization, classification, chatbots, etc.

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.

LLM (Large Language Model): Foundation Models for Language

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.

What Kinds of Content Does Generative AI Create?

LLM handles text, but generative AI isn't just text. The AIF exam frequently asks "which model/service is best for this task?"

Generated ContentExample Models/ServicesUse Cases
TextClaude, Titan Text, LlamaChatbots, summarization, translation, writing
ImagesStable Diffusion, Titan ImageMarketing images, design concepts
CodeAmazon Q Developer, ClaudeCode auto-completion, bug fixing
MultimodalClaude, Titan MultimodalDescribe images, analyze documents
EmbeddingsTitan Embeddings, CohereSearch, 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.

So When Use Generative AI and When Use Traditional ML?

Generative AI isn't a cure-all. The AIF exam constantly asks about "choosing the right tool."

  • Traditional ML is better for: Accurate numerical prediction (revenue, pricing), tasks with clear classification boundaries and obvious correct answers, environments requiring determinism and explainability (regulatory: loan approval, etc.).
  • Generative AI is better for: Free text/image generation, doing many tasks with one model quickly, situations where it's hard to gather labeled data, conversational interfaces with people.

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.

Wrapping Up

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.

📝 Practice Questions

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?

PreviousWeek 2 Wrap-Up: ML Lifecycle and Data at a GlanceWeek 2 · Day 5Next How LLMs Work: Tokens, Embeddings, Context Window, and InferenceWeek 3 · Day 2

Official references

  • AIF-C01 official exam page(opens in a new tab)
  • Amazon Bedrock documentation(opens in a new tab)

On this page

  • Traditional ML vs Generative AI: What Does the Model "Output"?
  • Foundation Model (FM): A Base Created Once, Used in Many Places
  • LLM (Large Language Model): Foundation Models for Language
  • What Kinds of Content Does Generative AI Create?
  • So When Use Generative AI and When Use Traditional ML?
  • Wrapping Up
  • Practice Questions