Phase 1. Behavioral inputs

Garbage In, Fluent Garbage Out

A language model learns from patterns in its training data. If that data is messy, biased, outdated, or low quality, the model can produce answers that sound good but are still wrong. In this lesson, we explore why data quality matters more than most people think.

Phase progress
2 of 2
Course progress
2 of 2
track Foundations
lesson Lesson 2 of 2
duration 15 min
level Beginner
Course contents
Course contents

Data & Prompting

2 lessons · 30 min
Phase 1

Phase 1. Behavioral inputs

Study the practical forces that shape output quality before a model ever answers the user.

2 lessons · 30 min
  1. 1
    Why Some Words Are Easy for AI and Others Are Hard
    Next
  2. 2
    Garbage In, Fluent Garbage Out
    Current

Quick Recap

In the previous lesson, we learned that not all words are equally easy for AI systems to process.

Some words split into clean token pieces. Others break into many smaller parts. That affects cost, speed, and sometimes quality.

Now we move to an even bigger question.

If tokenization affects how language is represented, what affects what the model learns in the first place?

The answer is simple.

The data.


The Problem: A Model Can Only Learn From What It Sees

Imagine teaching a student using three kinds of material:

  • one textbook that is clear and correct
  • one notebook full of messy notes
  • one website with outdated or wrong information

What kind of student will that create?

Probably a confused one.

The student may remember some correct ideas. But they may also repeat mistakes, mix things together, or sound confident about something that is not true.

A language model works in a similar way.

It does not learn from one perfect book. It learns from enormous collections of text gathered from many different places.

If that data is strong, the model learns stronger patterns.

If that data is noisy, biased, contradictory, or outdated, the model can learn those weaknesses too.


Why Fluent Output Can Be Misleading

This is where many people get fooled.

A model can write in clean, confident, natural language.

That makes it easy to assume the answer must be correct.

But fluency is not the same as truth.

A person can speak confidently and still be wrong.

A model can do the same.

This happens because the model is not checking reality when it answers. It is generating text that fits the patterns it learned during training.

If those learned patterns are weak, incomplete, or misleading, the answer may still sound smooth while being wrong.


A Simple Example

Imagine a model was trained on many examples where old information appears again and again.

Then a user asks a question about something that changed recently.

The model may produce an answer that sounds polished and reasonable, but it may reflect the older pattern instead of the current truth.

Or imagine the training data contains a lot of low-quality advice written in a confident tone.

The model may copy that style and produce output that sounds helpful, even when the advice is weak.

This is one reason AI can be impressive and dangerous at the same time.

It can produce language that sounds trustworthy before it has earned that trust.


What Bad Data Can Do

When training data is weak, several problems can appear.

1. Wrong answers

If the model learns from incorrect or outdated material, it may repeat those mistakes.

2. Bias

If the data overrepresents one viewpoint, one style, or one group of people, the model may reflect that imbalance.

3. Inconsistency

If the training material contains conflicting patterns, the model may give different answers to similar questions.

4. Hallucination

If the model has weak evidence for a topic, it may still generate a smooth answer by filling the gap with a likely-sounding pattern.


Why Data Work Is So Important

Many people think the power of AI comes mostly from clever architecture.

Architecture matters.

But data quality often matters even more than beginners expect.

A strong model trained on weak data can still behave poorly.

A better dataset can improve behavior dramatically.

This is why AI teams spend huge amounts of time cleaning data, filtering bad examples, removing duplicates, checking labels, and curating high-quality sources.

That work is not glamorous.

But it is one of the main reasons good systems become good.


A Realistic Way to Think About It

A language model is like a student that has read a giant pile of documents very quickly.

Some of those documents are useful.

Some are messy.

Some are biased.

Some are outdated.

The model absorbs patterns from all of them.

That is why better data usually leads to better behavior.

And that is why you should never assume a fluent answer is automatically a reliable one.


Your Turn

Imagine two models.

  • Model A was trained on clean, well-reviewed, up-to-date material.
  • Model B was trained on noisy, duplicated, contradictory, and outdated text.

Both models are asked the same question.

Which one is more likely to give a trustworthy answer?

And which one is more likely to sound confident while still being wrong?

Pause for a moment before reading on.

A Reasonable Answer

Model A is more likely to produce a stronger answer because it learned from better examples.

Model B is more likely to produce mistakes, inconsistencies, or fluent nonsense.

That does not mean Model A will always be correct.

But it does mean that better training material usually creates better model behavior.


The Key Idea

A language model can only learn from the patterns in its training data.

If the data is messy, biased, outdated, or low quality, the model may produce output that sounds good but is still wrong.

This is why data quality matters so much.


Summary

Large Language Models do not learn truth directly. They learn patterns from examples.

That means the quality of the training data strongly shapes the quality of the model.

Clean and reliable data can improve behavior. Weak or noisy data can create wrong answers, bias, inconsistency, and hallucinations.

In the next lesson, we will look at the part users control directly: the prompt. Because even a good model can produce weak results when the instruction is vague, messy, or incomplete.

Finish this lesson

Mark your place before you move on.

Return to Data & Prompting. Progress is stored on this device so the course can show what to continue next.