← ëĒŠëĄ

𝗔𝗜 𝗘đ—ģ𝗴đ—ļđ—ģ𝗲𝗲đ—ŋđ—ļđ—ģ𝗴 𝗖đ—ĩ𝗮đ—Ŋ𝘁𝗲đ—ŋ đŸ¯: đ—Ēđ—ĩ𝘆 𝗘𝘃𝗮𝗹𝘂𝗮𝘁đ—ļđ—ģ𝗴 𝗔𝗜 𝗜𝘀 𝗛𝗮đ—ŋ𝗱𝗲đ—ŋ 𝗧đ—ĩ𝗮đ—ģ 𝗜𝘁 𝗟đ—ŧđ—ŧ𝗸𝘀

devto 2026-07-07 뛐ëŦ¸ ëŗ´ę¸° ↗


One of the biggest takeaways from Chapter 3 of AI Engineering was realizing that building an AI model is only part of the challenge. Figuring out đ—ĩđ—ŧ𝘄 𝘁đ—ŧ 𝗲𝘃𝗮𝗹𝘂𝗮𝘁𝗲 đ—ļ𝘁 đ—ŗđ—Žđ—ļđ—ŋ𝗹𝘆 𝗮đ—ģ𝗱 𝗮𝗰𝗰𝘂đ—ŋ𝗮𝘁𝗲𝗹𝘆 can be just as difficult.

With traditional software, it's usually easy to tell whether something works. If a calculation is wrong or a test fails, you know there's a bug. But AI doesn't always work that way. A model can generate multiple reasonable answers to the same question, making it much harder to determine which one is actually better.

That made me think:

𝗛đ—ŧ𝘄 𝗱đ—ŧ 𝘄𝗲 𝗸đ—ģđ—ŧ𝘄 đ—ļđ—ŗ 𝗮đ—ģ 𝗔𝗜 đ—ēđ—ŧ𝗱𝗲𝗹 đ—ļ𝘀 𝗮𝗰𝘁𝘂𝗮𝗹𝗹𝘆 đ—ļđ—ēđ—Ŋđ—ŋđ—ŧ𝘃đ—ļđ—ģ𝗴?

𝗕𝗲đ—ģ𝗰đ—ĩđ—ē𝗮đ—ŋ𝗸𝘀 𝗡𝗲𝗲𝗱 𝘁đ—ŧ 𝗞𝗲𝗲đ—Ŋ 𝗘𝘃đ—ŧ𝗹𝘃đ—ļđ—ģ𝗴

Reading this section made me realize how difficult it is for evaluation benchmarks to keep up with the pace of AI development.

The chapter explains that GLUE (General Language Understanding Evaluation) was introduced in 2018 to measure how well language models performed on common natural language tasks. But within about a year, models had already become so good at it that researchers introduced SuperGLUE in 2019 as a more difficult benchmark.

GLUE evaluates tasks such as:

Question answering
Sentiment analysis
Sentence similarity
Text classification

The chapter also mentions newer benchmarks like:

SuperGLUE
MMLU (Massive Multitask Language Understanding)
MMLU-Pro

Each one was introduced because the previous benchmark was no longer challenging enough.

What I found interesting is that a model getting a higher benchmark score doesn't always mean it understands language better. Sometimes it simply means the model has become very good at solving that particular benchmark.

𝗨đ—ģ𝗱𝗲đ—ŋ𝘀𝘁𝗮đ—ģ𝗱đ—ļđ—ģ𝗴 𝗘đ—ģ𝘁đ—ŋđ—ŧđ—Ŋ𝘆 𝗮đ—ģ𝗱 đ—Ŗđ—˛đ—ŋđ—Ŋ𝗹𝗲𝘅đ—ļ𝘁𝘆

Another section I really enjoyed was the explanation of entropy and perplexity.

The chapter explains entropy as a measure of how much information a token carries and how difficult it is to predict the next token in a sequence.

Perplexity measures uncertainty. If a model is very uncertain about what comes next, its perplexity will be higher. If it predicts confidently and accurately, the perplexity becomes lower.

I also liked learning that cross entropy, perplexity, bits-per-character (BPC), and bits-per-byte (BPB) are all different ways of measuring how well a language model predicts text. The better a model predicts text, the lower these metrics become.

Another point that stood out was that there isn't a single "good" perplexity score. The value depends on:

the dataset being evaluated
the tokenizer being used
how perplexity is calculated
how much context the model has access to

That was a helpful reminder that metrics should always be interpreted in context instead of being compared blindly.

I also found it fascinating that these metrics connect directly to text compression. If a model predicts text efficiently, it can represent that information using fewer bits. I had never thought about language models and data compression being so closely related before reading this chapter.

𝗘𝘅𝗮𝗰𝘁 𝗘𝘃𝗮𝗹𝘂𝗮𝘁đ—ļđ—ŧđ—ģ 𝘃𝘀. đ—Ļđ˜‚đ—¯đ—ˇđ—˛đ—°đ˜đ—ļ𝘃𝗲 𝗘𝘃𝗮𝗹𝘂𝗮𝘁đ—ļđ—ŧđ—ģ

Another concept that made a lot of sense was the difference between exact and subjective evaluation.

Some tasks have one correct answer.

For example:

Solving a math problem
Passing a unit test
Answering a multiple-choice question

Those are easy to evaluate because the answer is either correct or incorrect.

But many AI applications don't work that way.

How do you measure whether one response is more helpful, more creative, or better written than another?

That's where evaluation becomes much more subjective.

𝗔𝗜 𝗝𝘂𝗱𝗴đ—ļđ—ģ𝗴 𝗔𝗜

This was probably my favorite section of the chapter.

Instead of relying only on humans, researchers are now using one AI model to evaluate another.

An AI judge can answer questions like:

Is this response relevant?
Does it contain hallucinations?
Which response is better?
Which answer would users probably prefer?

The chapter even discusses research showing that some AI judges can agree with human evaluators surprisingly often.

But it also explains why we shouldn't blindly trust these judges.

They can be influenced by:

the prompt
the order responses are presented
the model itself
different scoring methods

One sentence from the chapter really stuck with me:

"Do not trust any AI judge if you can't see the model and the prompt used for the judge."

That feels like a good reminder as more AI tools become black boxes.

𝗟đ—ŧđ—ŧ𝗸đ—ļđ—ģ𝗴 𝗕𝗲𝘆đ—ŧđ—ģ𝗱 𝘁đ—ĩ𝗲 đ—Ēđ—ŧđ—ŋ𝗱𝘀

Another idea I found interesting was the difference between lexical similarity and semantic similarity.

Two sentences can use completely different words while meaning almost the same thing.

For example:

"What's up?"
"How are you?"

On the other hand, two sentences can look almost identical while meaning something completely different.

The classic example from the chapter was:

"Let's eat grandma."
"Let's eat, grandma."

A single comma changes everything.

This is where embeddings become so important. Instead of comparing words directly, embeddings represent meaning as vectors, allowing models to compare ideas rather than just matching text.

That's what powers many modern AI applications like semantic search, recommendation systems, retrieval, clustering, and RAG.

𝗖đ—ŧđ—ēđ—Ŋ𝗮đ—ŋđ—ļđ—ģ𝗴 𝗜đ—ģ𝘀𝘁𝗲𝗮𝗱 đ—ŧđ—ŗ đ—Ļ𝗰đ—ŧđ—ŋđ—ļđ—ģ𝗴

The chapter also discusses comparative evaluation, an approach that compares responses instead of scoring them individually.

It's often easier to compare two responses than to assign one response an absolute score.

It's much easier to say:

"Response A is better than Response B."

than to confidently say:

"This response deserves exactly 8 out of 10."

That idea is now used heavily in preference training and ranking AI models.

This chapter gave me a new appreciation for AI evaluation.

Before reading it, I mostly thought about model architectures, prompting, fine-tuning, and inference. Now I realize that evaluation is just as important.

A powerful model isn't necessarily a useful model. If we can't measure reliability, usefulness, safety, or alignment, it's difficult to know whether a model is actually improving.

One of my biggest takeaways from this chapter is that evaluation isn't just about assigning a score to a model. It's about understanding what those scores actually mean, choosing the right evaluation method for the task, and recognizing the limitations of each approach.

As AI continues to evolve, I think building better evaluation methods will become just as important as building better models.