Chihuahua vs Muffin — Low-Level Features Get Fooled, High-Level Features Decide

A round brown blob with three dark dots. By any yardstick — a single pixel, average color, or pixel distance — chihuahuas and muffins are each other’s closest match. You’ll see a low-level feature that looks for dark spots respond identically to both photos, check what disappears first when you lower the resolution, and find out why a pixel rule picks irrelevant background cells. Finally, we sum up the three ways models go wrong and the whole series.

61.4Chihuahua ↔ muffin pixel distance (closer than the dog’s 71.0)
3Dark spots detected identically in both photos
5.81 · 5.83%Dark area in the hand-made drawings (Code 1)
61.3%Pixel rule’s accuracy on new drawings (Code 1)
96 → 53%Accuracy at resolution 8×8 → 2×2 (Code 2)
2Code samples that run right away in Colab
1Problem

Chihuahua vs Muffin — A Pair That Briefly Fools Even People

A round brown blob with three dark dots. Two eyes and a nose, three blueberries, in almost the same places. Are the two alike in numbers, too?

A collection of chihuahua face photos and blueberry muffin photos alternating in three rows of four
Image made by the author, based on the idea of the well-known “chihuahua or muffin” internet meme.

This pair is a classic example of how hard image classification can be. Even people are briefly confused when they glance at small thumbnails. What they share are low-level features (a round blob, beige and brown colors, three dark dots arranged in a triangle); what separates them are high-level features (glints in the pupils, the sheen of a moist nose, fur texture vs bread texture, ears vs the pleats of a paper cup).

This episode pulls out every tool from 4-1 to 4-3 to dissect this pair. We’ll look at how alike they are in numbers (Section 2), why low-level features get fooled (Section 3), what happens when you lower the resolution (Section 4), pixel rules vs patterns (Section 5), and how models go wrong and where their limits lie (Section 6), then sum up the whole series on a single page (Section 7).

Explained for Beginners

“Chihuahua or muffin” comes from a collection of photos that spread widely online around 2016, and it has since become a common example for explaining why image recognition is hard. The images on this page were newly made by the author based on the same idea.

2In numbers

Nearly the Same in Numbers — Pixels, Average Color, Distance

We measure the eye cell and the blueberry cell, the average color of the two photos, and the grayscale pixel distance. By the yardstick of numbers, the chihuahua’s closest friend is the muffin.

1In numbers · The eye cell and the blueberry cell
ChihuahuaMuffinDifference
One dark cell (R, G, B) · shrunk to 14 × 14Eye (39, 37, 43)Blueberry (37, 31, 37)Nearly the same
Average color of the whole photo (R, G, B)(189, 162, 138)(189, 164, 136)Nearly the same
Grayscale pixel distance (56 × 56)Chihuahua ↔ muffin 61.4  ·  Chihuahua ↔ dog 71.0  ·  Chihuahua ↔ cat 87.8Muffin is closest

Whichever yardstick you use (a single pixel, the average color, or pixel distance), the chihuahua looks most like the muffin. As we saw in 4-2, these yardsticks have no idea “what is in the picture.” You can check the distances for all five photos in the table below.

2Pixel Distance Table: Who Is the Chihuahua Close To? For the photos on this page

We measured the pixel distance between every pair of the five photos on this page. The smaller the number, the more “alike” they were computed to be. The smallest value is highlighted.

The values in this table were measured on the five photos on this page (cropped to the face and reduced to 56 × 56). With other photos, the values vary greatly with background, lighting, and framing, but the conclusion that “pixel distance differs from distance in meaning” is a well-known property of real photos too.

Explained for Beginners

This result doesn’t happen “because the model is dumb.” It happens because the simplest ways of comparing numbers measure appearance, not meaning. In this collection, made so that the appearances match, that limit shows up most clearly. In real photos, backgrounds and framing vary, so the numbers may be less alike, but the same kind of trap is still there.

3Low-level features

Low-Level Features Get Fooled — Three Dark Spots

We apply the same filter, one that looks for “round spots darker than their surroundings,” to both photos. In both, three spots are picked up in almost the same triangle.

③Chihuahua vs muffin Hard

In the “Dark spot” view, both photos show three black spots in almost the same triangular arrangement. For the chihuahua, they are the two eyes and the nose; for the muffin, three blueberries. The average color is beige and brown for both, too. To a model that uses only the features of the early layers, these two are the same photo.

Note This collection was made with similar framing (front view, white background) to show a “confusing pair.” So the resemblance may stand out more than in randomly taken photos. The same effect is widely known in real chihuahua and muffin photos, but how strong it is varies from photo to photo.

If you lower the resolution to 7 × 7, it gets hard even for people to tell them apart. If a model learned only from small photos, the same thing happens to the model.

The clues that separate the two are subtler: the tiny white glints reflected in the pupils, the moist sheen of the nose, fine fur texture vs crumbly bread texture, ears on top of the head vs the pleats of a paper cup, and whether the three dots are always left-right symmetric (blueberries go wherever they like). To see these, you need the features of the later layers and a wide variety of photos.

Explained for Beginners

The “Dark spot” view finds round dark blobs using the difference between two copies of the photo blurred by different amounts (DoG). This is the same kind of low-level feature that the early layers of a CNN find. To a model that looks only as far as this layer, a chihuahua and a muffin are the same photo. In Code 1, too, the “dark area” of the chihuahua-like and muffin-like pictures we made ourselves came out the same: 5.81% and 5.83%.

4Resolution

Lower the Resolution — The Small Clues Vanish First

We shrink the same photo to 7 × 7, 14 × 14, and 28 × 28. Resolution is the amount of information you give the model.

1Resolution experiment · Start at 7 × 7 and go up

It starts at 7 × 7. Even to the human eye, the two are almost impossible to tell apart. Raise it to 14, 28, and 56, and note what starts to show up first. Usually the outline of the chihuahua’s ears and the vertical pleats of the muffin cup appear first, and the glints in the eyes and the fur texture appear last.

Lowering the resolution reduces the number of values (the number of features), and the small clues vanish first. Low-level features (the three dots) survive even at low resolution, but the high-level features that separate the two only show up at high resolution.

2Results of Colab Code 2 · What gets confused first as resolution drops
ResolutionNo. of featuresTest accuracyMost confused pairs (true→predicted: count)
8 × 86496.2%8→1: 4, 4→1: 2, 3→9: 2
4 × 41689.8%8→1: 14, 1→8: 6, 1→9: 3
2 × 2453.4%0→8: 20, 2→4: 17, 1→9: 16

We shrank handwritten digits by averaging cells and tested them with the same classifier (logistic regression). As the resolution drops, pairs with similar shapes (8 and 1, 0 and 8) get confused first. The same goes for the chihuahua and the muffin. If a model learns only from small photos, it never even receives the clues that separate the two.

Explained for Beginners

Resolution is the number of cells in the grid. Fewer cells make computation cheap, but the small clues vanish. Real models also fix an input size (e.g., 224 × 224) and shrink photos to fit, so for problems where small differences matter (tiny defects, distant road signs), the choice of resolution has a big effect on performance.

5Rules vs patterns

Pixel Rules Pick the Wrong Cells — Meaning Lies in Arrangement, Not Cells

Apply 4-1’s “one variable > threshold” rule to photos, and the computer picks a background cell, out of 784, that happened to fit well. Extract patterns from feature maps, and it gets new photos right too.

1Pixel rule vs feature pattern · On the same photos

In 4-1, the fish were sorted with a single-line rule: “one variable > threshold.” What happens if we apply the same method to the 784 cells of a photo? We find the rule and the patterns on 80 “Training” photos, and check them on 80 “New photos” not used in training.

Photos · pixels → patterns

① In the same way, look for a “one pixel > threshold” rule across all 784 cells.

Press the button to find the pixel rule that gets the most right.

② Make feature maps with filters, then summarize the pattern over each whole map.

Example
Photo
Dark-area map
Top-edge map

The “New photos” were made by shifting the same 12 images differently from the training set and changing their brightness, so this test is easier than one with completely different photos. The two filters in ② were picked by a person; a CNN learns dozens to hundreds of filters like these from data.

2Results of Colab Code 1 · Reproduced with pictures we made

Instead of real photos, Code 1 uses code to draw 28 × 28 “chihuahua-like” and “muffin-like” pictures. Both have a beige circle and 3 black dots; the only differences are the ears (top) and the paper-cup pleats (bottom).

Results: the pixel rule dropped from 73.8% on training to 61.3% on new pictures, and the cell it picked was on the bottom edge of the picture. The low-level feature, dark area, was the same for both kinds (5.81% vs 5.83%), while part patterns (strength of the vertical pleats at the bottom, edge strength at the top) got 96.3% right even on new pictures. We reach the same conclusion as in the real-photo hands-on.

Explained for Beginners

The pixel rule picking a background cell is a small example of shortcut learning. It grabbed an easy clue that just happened to appear together with the right answer in the training photos. To a person, it’s obvious that the cell “has nothing to do with chihuahuas,” but the model only knows that the cell predicts the answer well.

6High-level features and limits

What High-Level Features Decide — and How Models Go Wrong

The clues that separate the two (glints, fur texture, ears, cup pleats) only show up in the later layers. How does a model that never learned those clues go wrong?

1The Deeper the Layer, the Bigger What It Finds
Features found at each layerLayer 1 finds short lines and edges, layer 2 finds corners, curves and textures, layer 3 finds parts like eyes, ears and nose, and layer 4 onward finds the whole face Layer 1 · Lines and edgesLayer 2 · Corners, curves, texturesLayer 3 · PartsDeeper layers · Whole Sees only 3 × 3 pixelsCombines several linesEyes, pointed ears, nose“Cat face” Can’t tell chihuahua from muffinFur texture vs bread texture splitsEyes vs blueberries splitJudges by the whole layout

When you stack layers while shrinking the photo with pooling, one cell in a deeper layer sees a wider area of the original photo. So early layers find small lines, deeper layers find eyes and ears, which are combinations of lines, and even deeper layers find the whole face. This figure is a simplified rendering of the tendency Zeiler and Fergus (2014) showed by visualizing the layer-by-layer responses of a trained CNN.

2How models go wrong · Shortcuts, unfamiliar photos, overconfidence

Shortcut learning. A model grabs the easiest clue that gets the answer right. If the muffins in the training photos were always on white plates, it may learn “white background”; if the chihuahuas were always indoors, it may learn “indoor lighting.” This works well on the training data but falls apart when conditions change [R5]. The pixel rule in Section 5 is a small example of this.

Unfamiliar photos (distribution shift). Under conditions not seen during training, such as a chihuahua in profile, a chocolate chip muffin, or dim lighting, accuracy can drop sharply. A test score is only a score on “photos similar to the training photos” [R6].

Overconfidence. A softmax probability of 0.99 does not mean “99% likely to be right.” A model can output high probabilities even when it is wrong, so for important decisions you need to check separately whether the probabilities match the actual accuracy (calibration) [R7].

So what you need. Data with plenty of confusing pairs, photos under varied conditions (background, angle, lighting), enough resolution, data augmentation (4-3), and the habit of checking what the model based its decision on.

⚖Compared by the same criteria
MatchupDifficultyWhat they look alike inDecisive difference (features)Layers that mainly decide
Cat vs HumanEasyA face, two eyesFur texture across the middle of the face, pointed ears, stripes, nose shapeSplits from layers 1–2
Cat vs DogMediumFur, two eyes, upright earsMuzzle length, nose size, face outlineLayer 3 and beyond (shapes of parts)
Chihuahua vs MuffinHardA round brown blob, three black dotsGlints in the eyes, fur texture vs bread texture, ears vs paper cup, symmetryLater layers (fine texture + overall arrangement)

The harder the pair, the more you need: more photos (especially confusing ones), enough resolution, later layers, and data augmentation such as CutMix.

✓Check Question

Q1. What is the best reason why cat vs human is an easy matchup?

Q2. In Attentive CutMix, if you paste 10 cells of cat patches onto a dog picture, what is the label of the mixed picture?

Q3. Which best explains, in this page’s words, why chihuahua vs muffin is hard?

Explained for Beginners

This pair is only separated once you reach the right end of the layer-by-layer figure, the stage of “judging by the whole arrangement.” That takes a lot of data and a deep model, and it also leaves more room for the model to lean on the wrong clues. Along with performance numbers, looking directly at the photos it got wrong is the most important habit in image classification.

7Series wrap-up

Connecting It All on One Page — From a Photo to an Answer, and from the Answer to Fixing the Model

We connect the four episodes into a single flow. Click a box to jump to the explanation in that episode.

Photo
Cat? Dog?
Forward pass · Making a prediction
Backward pass · Fixing
Repeat
until the loss is small enough

Compared by the same criteria

ConceptOne-line definitionKey formulaWhat happens without it
Pixel matrixA table that writes a photo as a number from 0 to 255 in each cellX ∈ {0…255}H×W×3The computer has no way to compute with photos
Feature · targetOne row of the table = a sample, a column = a feature, the answer column = the target(x, y), x ∈ ℝᵈYou can’t decide what to look at or what to predict
Linear classifier (perceptron · linear SVM)Draws a single plane in feature spacew · x + b > 0No way to set a boundary. Still, this alone doesn’t separate pixel photos well
Convolution filterA stamp that finds patterns with a small table of numbersΣ K·X + bEach pixel is looked at separately, so no meaning is found
Feature mapA new matrix recording where a pattern is and how strong it isF = ReLU(X∗K)The next layer has no ingredients to combine
PoolingKeeps only the strongest response and shrinks the sizemax(2×2)Lots of computation, and wobbles even when something moves one cell
Fully connected + softmaxGathers the features into scores and turns them into probabilitiesezk/ΣezjThe features are found, but no answer can be chosen
Data augmentationIncreases training examples by altering or mixing photosCutMix, flipping, croppingGets only the memorized photos right and fails on new ones

The series in four lines

1. The smallest piece of information a computer reads from a photo is one channel value (0–255) of one pixel, and the whole photo is a matrix of height × width × 3 numbers.
2. Flatten a photo into a row and it becomes classification data just like the fish table, but a single pixel cell has no meaning, so a single plane (perceptron · linear SVM) doesn’t separate it well. That’s why a CNN uses 3 × 3 filters to learn features in the order edges → shapes → parts → whole, changing the coordinates.
3. The final features are turned into probabilities by a perceptron layer and softmax, and the filters and weights are corrected in proportion to the error. A pair with the same low-level features, like the chihuahua and the muffin, is only separated with later layers and lots of data.
4. A pair with the same low-level features (chihuahua and muffin) needs high-level features to be told apart, and a model can go wrong through shortcut clues, unfamiliar photos, and overconfidence. Look at the photos it gets wrong along with the performance numbers.

Explained for Beginners

4-1 covered rules and boundaries built on meaningful variables; 4-2, that a photo is a matrix of numbers and that filters find patterns; 4-3, how to stack layers to change the coordinates and learn by mixing data; and 4-4, the difficulties and limits that still remain. When you meet another classification problem, start by asking: “Do the columns of this data have meaning? If not, what patterns create meaning?”

Colab Code — Run This Page Yourself

Both code samples use only libraries that come preinstalled in Colab and built-in data. Click “Download notebook (.ipynb)” and open it in Colab with File → Upload notebook, or copy the code and paste it into a new notebook cell.

Code 1 · Why does a pixel rule pick the wrong cell — Reproduced with synthetic picturesLinked to Sections 3·5 · numpy, scipy, matplotlib · a few seconds on CPU

Uses code to draw 28 × 28 chihuahua-like and muffin-like pictures, then compares a single-pixel rule, a dark-spot filter, and two part patterns. To use your own data, replace draw() with code that loads your photos, and adjust the regions in pattern() to fit your photos.

Output (run on 2026-10-04, numpy 2.4 · scipy 1.17 · CPU). The random seed is fixed, so it’s the same whenever you run it.
Code 2 · What gets confused first as resolution dropsLinked to Section 4 · numpy, scikit-learn (built-in data) · a few seconds on CPU

Shrinks 8 × 8 handwritten digits to 4 × 4 and 2 × 2, and shows, for each resolution, the accuracy of the same classifier and the most confused digit pairs.

Output (run on 2026-10-04, scikit-learn 1.8 · CPU). Changing the random_state of the data split changes the numbers slightly.

AI Prompts to Try — Use This Code as a Starting Point

These are prompts to paste into an AI assistant such as ChatGPT, Qwen, or Claude. Click “Copy” and the code you selected is attached after the prompt. Replace the text inside 〔 〕 with your own situation.

Code to attach

An AI’s answer is only a starting point. Always check any papers, figures, or library functions it suggests against the originals and the official documentation. If you used AI help for a competition entry or a paper, disclose that you did and to what extent, following the rules of the organizers or the journal.

Glossary

This is the same dictionary as the yellow dotted underlines in the text. The same terms are used throughout the series. Click a section name to jump to where the term first appears.

Analogies — and Where the Analogy Breaks Down

Analogies are a first step toward understanding, but they can also plant misunderstandings. Analogies to the human eye and brain are marked by strength. Direct There is evidence that it actually does the same thing · Partial Only some properties are similar · None No known counterpart

ConceptEveryday analogyHuman eye/brain analogyWhere the analogy breaks down
Low-level featuresA silhouette seen from far awayPartly People, too, judge first by outlines and blobs when they only glance brieflyPeople immediately bring in context (a plate, a leash) and memory. A model that looks only at the early layers has no such backup
High-level featuresA face you recognize up closePartly Higher visual areas have parts that respond to complex shapes such as facesA model’s high-level features are not necessarily things a person can name, like “eye” or “ear”
ResolutionThe number of squares on graph paperPartly The eye, too, sees only the center of the visual field in detailThe eye moves its gaze to where it needs to look closely, but a model sees only one photo shrunk to a fixed size
Shortcut learningA student who memorized the answers by the smudges on the corners of the test sheetsNoneThe student knows they memorized, but a model doesn’t know which clues it is using
OverconfidenceA beginner driver who says, “I’m 99% sure!”NoneA model’s probability is a calculated value, not a feeling. With calibration, it can be matched to the actual accuracy

About the Author and References

E-1 About the Author · E-2 Academic References · E-3 Figure and Data Sources

E-1 About the Author

Sangsun Ahn (CEO, M-Robo Inc.)

After working at the Korea Electrical Safety Corporation and the Maeil Business Newspaper, he founded M-Robo Inc., an external venture of Maeil Business Newspaper, where he currently serves as CEO. M-Robo Inc. is a media venture that began as an in-house venture of a news company. It provided a robot reporter service (StockBot) to the Kukmin Ilbo and has carried out numerous projects for organizations including the Korea Internet & Security Agency, the Korea Press Foundation, and the Korea Radio Promotion Association. It now runs its own AI news service, Money-Robo. While serving as CEO, he won the Asia Open Data Hackathon and received the Minister of the Interior and Safety Award twice for contributions to data entrepreneurship, and he is the inventor and registrant of five patents in artificial intelligence and blockchain. He is the author of the book “AI Crime and Self-Defense”, and he has developed e-learning content on fintech, statistics, and artificial intelligence for the Online Lifelong Education Institute of Korea University of Technology and Education. He holds a Ph.D. in economics (Dongguk University, mathematical microeconomics). He teaches data and AI courses at several universities, including Kookmin University and Hoseo University. Full profile

Courses

  • Ahn, Sangsun (2025). “Data Science for Business” (course materials). Department of AI Convergence, Open Cyber University of Korea.
  • Ahn, Sangsun (2025). [K-Digital] AI Natural Language Processing. STEP (Smart Training Education Platform), Online Lifelong Education Institute, Korea University of Technology and Education.
  • Ahn, Sangsun (2024). [K-Digital] Fintech Data Analysis Basics. STEP (Smart Training Education Platform), Online Lifelong Education Institute, Korea University of Technology and Education.

Go to the STEP courses: link.step.or.kr/1qyVoJ · link.step.or.kr/M9na9N · link.step.or.kr/brqEyc
If the links don’t work because of a site redesign, please go to www.step.or.kr.

Papers and Presentations

  • Ahn, Sangsun (2025). A study on household expenditure prediction models using the Korean Retirement and Income Study panel data: An AI model-based approach. “Future Society”, 16(2). Full text
  • Ahn, Sangsun (2025). A study on household expenditure prediction models using the Korean Retirement and Income Study panel data: An AI approach. Presentation at the KReIS Panel Conference (2025.05.13), National Pension Research Institute, National Pension Service. Slides
  • Ahn, Sangsun (2025). A study on an algorithm for detecting suspected drug transactions from SNS text: Focusing on pattern and context analysis. “Future Society”, 16(1). Full text
  • Ahn, Sangsun (2024). Statistics-based countermeasures against adversarial data for securing anomaly detection models in finance: Empirical analysis and simulation results. “Future Society”, 15(3). Full text
  • Ahn, Sangsun (2024). An AI-based solution for detecting SNS posts based on virtual character traits. Poster presentation at the 2024 Summer Newmedia Party (2024.06.19), Seoul Media Institute of Technology.
  • Ahn, Sangsun (2024). Machine learning models using industrial accident panel data. Poster presentation at the 10th Panel Study of Workers’ Compensation Insurance Conference (2024.05.17), Labor Welfare Research Institute, Korea Workers’ Compensation & Welfare Service.
  • Ahn, Sangsun (2024). Analysis and forecasting of virtual asset time-series data: Comparing time-series and AI models and suggesting improvements. “Future Society”, 15(1). Full text

E-2 Academic References

  1. [R1] Zeiler, M. D., & Fergus, R. (2014). Visualizing and understanding convolutional networks. ECCV 2014. — Section 6
  2. [R2] Lowe, D. G. (2004). Distinctive image features from scale-invariant keypoints. International Journal of Computer Vision, 60(2), 91–110. — Section 3 (finding spots by the difference of blurs)
  3. [R3] Alpaydin, E., & Kaynak, C. (1998). Optical recognition of handwritten digits [Dataset]. UCI Machine Learning Repository. — Code 2
  4. [R4] LeCun, Y., Bottou, L., Bengio, Y., & Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. — Section 4
  5. [R5] Geirhos, R., Jacobsen, J.-H., Michaelis, C., Zemel, R., Brendel, W., Bethge, M., & Wichmann, F. A. (2020). Shortcut learning in deep neural networks. Nature Machine Intelligence, 2, 665–673. — Sections 5·6
  6. [R6] Hendrycks, D., & Dietterich, T. (2019). Benchmarking neural network robustness to common corruptions and perturbations. ICLR 2019. — Section 6
  7. [R7] Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On calibration of modern neural networks. ICML 2017. — Section 6
  8. [R8] Walawalkar, D., Shen, Z., Liu, Z., & Savvides, M. (2020). Attentive CutMix. ICASSP 2020. — Comparison table in Section 6

E-3 Figure and Data Sources

  • The image in Section 1 was made by the author. “Chihuahua or muffin” is the idea of a well-known internet meme
  • The chihuahua and muffin photos in Sections 2–4 are face regions cropped from this image and shrunk
  • The 80 photos in Section 5 were expanded from 12 images by changing only position and brightness, and the two filters in ② were picked by a person
  • The layer-by-layer figure in Section 6 is a conceptual diagram that simplifies the tendency shown in [R1]

TIP for Educators

A guide for instructors, on-the-job training (OJT) leads, and tutors. Times are estimates, so adjust them to your actual class.

AudienceCollege students and working adults who have finished 4-1 to 4-3. Practitioners who want to know “where it goes wrong” before bringing image AI into their work
PrerequisitesPixel distance and filters from 4-2; CNNs and data augmentation from 4-3
Learning Goals① Explain the difference between low-level features and high-level features with examples ② Explain, using experimental results, how resolution and pixel rules affect classification ③ Distinguish shortcut learning, distribution shift, and overconfidence, and describe how to respond to each
Estimated TimeReading 40–50 min · Demo 25 min · Colab hands-on 25 min (Code 1 15 min, Code 2 10 min)

Three Lesson Plans

50-min lecture

Concept-focused

Intro 5 min (Section 1) → Sections 2·3 numbers and low-level features 15 min → Section 4 resolution 10 min → Section 6 limits 15 min → Check questions 5 min.

90-min on-the-job training

Work-focused

Swap Section 1 for “confusing pairs” from your own work and find them, 15 min → Discuss why the pixel rule in Section 5 picks the background, 15 min → Apply the three failure types in Section 6 to your own data, 25 min → Adapt Code 1 to the framing of your own photos and run it, 35 min.

1:1 tutoring

Paced by level

Beginners: Sections 1·2·3·6 only. Intermediate learners: change pattern() in Code 1 to test how well the ear pattern alone separates them, and research and summarize calibration from Section 6.

Teaching Points by Section

SectionQuestions to pause and askInteraction tips
1 Problem“What clues do people use to tell them apart?”Show the image large and point to the glints, ears, and cup
2 In numbers“Who is the chihuahua’s closest friend?”Look at the smallest value in each row of the distance table
3 Low-level features“If the three dots are the same, what will the model use to tell them apart?”Compare the positions of the numbered spots in the “Dark spot” view
4 Resolution“What starts to show up first?”Click in the order 7 → 14 → 28 → 56
5 Rules vs patterns“Does the cell the rule picked have anything to do with chihuahuas?”After “Find pixel rule automatically,” look at the highlighted cell
6 Limits“If the test score is 95%, will it be 95% in the field, too?”Pick which of the three failures is most dangerous for your work
7 Series wrap-up“Do the columns of this data have meaning?”Click the boxes in the flowchart to move between the four episodes

Top 5 Common Misconceptions

MisconceptionCorrect explanationScene to show
It gets confused because the model is stupidBy numerical yardsticks, they really are alike. It needs the data and the architecture to learn high-level featuresTable in Section 2
Higher resolution is always betterComputation and memory go up, and more data is needed. Match it to the size of the clues the problem needsSection 4 and Code 2
High accuracy means it looked at the right cluesShortcut clues such as the background can also produce high scoresThe pixel rule in Section 5
A probability of 0.99 means it’s almost certainA model can output high probabilities even when it’s wrong. Calibration is neededOverconfidence in Section 6
Collecting more data solves everythingIf you only add data under the same conditions, the unfamiliar-photo problem remains. Diversity mattersDistribution shift in Section 6

Check Questions (click to expand the explanations)

Q1. What is the grayscale luminance of the chihuahua eye cell (39, 37, 43) and the blueberry cell (37, 31, 37)?

Chihuahua 0.299×39 + 0.587×37 + 0.114×43 ≈ 38.3, blueberry 0.299×37 + 0.587×31 + 0.114×37 ≈ 33.5. Nearly the same.

Q2. Why can’t a model that looks only at low-level features tell the chihuahua and the muffin apart?

Because both photos have a round blob and three dark spots in a triangular arrangement, so the responses of the early layers are almost the same.

Q3. In Code 2, which pair was most confused at a resolution of 4 × 4, and why?

8→1 (14 times). When the cells are reduced to 16, the two loops of an 8 and the vertical stroke of a 1 end up with similar brightness distributions.

Q4. The pixel rule picked a background cell at the edge of the photo. What phenomenon is this an example of?

Shortcut learning. It grabbed an easy clue that just happened to appear together with the right answer.

Q5. Name two things to check before deploying a model with 95% test accuracy in the field.

Whether the field photos have the same conditions as the training and test photos (distribution shift), and whether the model’s probabilities match the actual accuracy (calibration). You also need to look directly at the photos it gets wrong.

Colab Assignments

Basic

In Code 1, remove the cup pleats from the muffin-like pictures (delete the cup part) and run it again, see how the part patterns’ accuracy on new pictures changes, and explain it in connection with shortcut learning from Section 6.

Challenge

Add a case to Code 2 that applies blur (Gaussian) at the 8 × 8 resolution, and compare which lowers accuracy more: “reducing the number of cells” or “blurring.”

Adjusting Difficulty and Learning More

BeginnersYou can skip the code results table in Section 4 and ② in Section 5. Make sure Sections 2·3·6 are well understood
AdvancedHave learners research and present cases of shortcut learning (medical imaging, self-driving, etc.). Check the papers they find in the original
Learn more4-1 to 4-3 · 3-3 Images and CNNs · Sangsun Ahn, “Data Science for Business” course materials
Instructor materialsGrading criteria for the check questions and sample answers for the assignments are available on the answer page for educators (4-4)

Great work!

You’ve read “4-4 Chihuahua vs Muffin” all the way through. The lab crew each have a final word for you.

Pixel art of the four lab crew members saying goodbye at the door as they turn off the lab lights
Professor
ProfessorYou’ve finished the “How Does AI Tell Images Apart?” series.
  • If the cells have meaning, use rules; if not, patterns
  • Low-level features get fooled; high-level features decide
  • Look at the photos it gets wrong, along with the score
Assistant
AssistantI was so surprised when the pixel rule picked a background cell!
Fruit Fly Researcher
Fruit Fly ResearcherCongrats on finishing! Now go find the “chihuahua and muffin” in your own data.