Deep Dive into Digital and Data Methods for Chinese Studies · University of Michigan
Learning generative AI through its mistakes
Before we start
Before we start
I use several AI models and agents in all my digital work. This workshop is no different.
Overview
| When | Session | For |
|---|---|---|
| Mon 10:00 | When AI Gets It Wrong · hands-on | everyone, beginners |
| Mon 2:00 | From Printed Page to Research Data · demonstration | everyone |
| Mon 3:45 | Office hours | bring your questions about your own project. Happy to help |
| Tue 10:00 | Agentic Search for Libraries | U-M Library staff |
Laptop check · a free Chrome extension
CHROME WEB STORE
chromewebstore.google.com/detail/local-llm-teaching-lab/pgiamcckeikfpelhfojoodjejfhpmmmhNo account and no payment. What you type stays on your laptop.
Laptop check
STEP 3 · THE MODELS TAB
STEP 4 · THE CHAT TAB, THINKING MODE UNTICKED
The theme of the two days
This morning
| # | Mistake | Category |
|---|---|---|
| 1 | Counting the r's in “strawberry” | model |
| 2 | Reading a biography backwards | model |
| 3 | The doctor riddle | model |
| 4 | The prime minister of Japan | engineering |
| 5 | A Chinese calendar date | engineering |
Self-check
Self-check · rate each from 0 to 6
Self-check · highest possible score: 42
Raise your hand when I call your range.
Then: who uses an AI chatbot every week? Who has caught it in a mistake?
Why a Teaching Lab?
Why a Teaching Lab?
ON YOUR LAPTOP · TEACHING LAB
AN AI SERVICE · THROUGH AN APP OR AN API
WHAT CAN BE INSIDE THE BOXES WE CANNOT SEE
Why a Teaching Lab? · one example
| On your laptop | Through a service | |
|---|---|---|
| Who decides | The model alone | The model, and the parts around it |
| How | By probability. It may refuse, or it may answer. Ask again and it may change | A simple word match can catch it before the model reads anything |
| What happens next | You see the model's own behavior | Text may be added to your question, or you get a fixed “I cannot help with that” |
| Can you tell which? | Yes | No |
Model problems · mistake 1
Ask three times. Each time in a new chat.
LOOK FOR
The question went around the internet in 2024. Read more: Amanda Silberling, “Why AI can’t spell ‘strawberry’”, TechCrunch, 27 August 2024. Tairan Fu and others, “Why Do Large Language Models (LLMs) Struggle to Count Letters?”, arXiv:2412.18626, 2024.
MY RUNS ON QWEN3 0.6B: 2, 3, AND “20 … THAT'S 2”
Model problems · mistake 1 · why
Tokenizer → “Inspect a real tokenizer” → Qwen3 0.6B → type strawberry, then 草莓. Then change the tokenizer model.
| Tokenizer | strawberry | 草莓 | 呂祖謙字伯恭 |
|---|---|---|---|
| Qwen3 0.6B | 3 tokens: str · aw · berry | 1 token | 8 tokens (呂 and 謙 are cut in two) |
| SmolLM2 360M | 3 tokens: st · raw · berry | 6 tokens (bytes) | 13 tokens |
| Gemma 3 270M | 1 token | 2 tokens | 6 tokens, one per character |
| LFM3 1.7B | 3 tokens: st · raw · berry | 3 tokens | 8 tokens |
Model problems · mistake 1 · why
The pieces and IDs are the real Qwen3 ones. The embedding numbers are only a drawing.
Model problems · mistake 1 · solution
QWEN3 0.6B: “10 r”
Model problems · mistake 2 · an idea of Professor Peter Bol
LOOK FOR
Giving a model a Chinese text backwards is the idea of Professor Peter K. Bol, Harvard University. This prompt is revised from his.
BACKWARDS: IT INVENTS PEOPLE (張友又, 游憲胡辰 …)
IN READING ORDER: IT FINDS 6 OF THE 7
Model problems · mistake 2 · why
Model problems · mistake 3
LOOK FOR
Mistake 3 · layer 1
THE CLASSIC STORY · OLDER AND SMALLER MODELS · 10 RUNS EACH
| Model | Year | The surgeon is |
|---|---|---|
| Vicuna 7B | 2023 | father 10 of 10 |
| Phi-2 | 2023 | father 6 of 10 |
| Orca Mini 3B | 2023 | father 6 of 10 |
| Qwen3 0.6B (ours) | 2025 | father 10 of 10 |
Mistake 3 · do it again
The same story, twice. Only one word is different.
LOOK FOR
Mistake 3 · layer 2 · three versions, 10 runs each, on my laptop
ONE FAMILY OVER TIME: LLAMA, FROM META
| Model | Open | Father died | Text: father |
|---|---|---|---|
| Llama 2 · Jul 2023 | mother 6 | mother 7 | father 10 |
| Llama 3 · Apr 2024 | father 7 | mother 8 | mother 8 |
| Llama 3.1 · Jul 2024 | mother 8 | mother 10 | mother 9 |
| Llama 3.2 · Sep 2024 | mother 5 | mother 9 | mother 7 |
OTHER NEWER MODELS
| Model | Open | Father died | Text: father |
|---|---|---|---|
| Gemma 3 4B · 2025 | father 10 | mother 10 | mother 10 |
| Qwen3 8B · 2025 | mother 10 | mother 10 | mother 8 |
| gpt-oss 20B · 2025 | mother 10 | mother 10 | mother 9 |
| Gemma 4 E2B · 2026 | mother 10 | mother 10 | father 10 |
Mistake 3 · layer 2 · a public test, June 2025 · 100 runs each
| OpenAI, Anthropic | The surgeon is the boy's |
|---|---|
| GPT-4o · three versions | mother 100 |
| GPT-4.1 | mother 100 |
| o1 * | mother 91 |
| o3 * | mother 92 |
| Claude 3.5 Sonnet · two versions | mother 100 |
| Claude 3.7 Sonnet | mother 53, unclear 47 |
| Claude Sonnet 4 | mother 100 |
| Claude Opus 4 | father 100 |
| Google and others | The surgeon is the boy's |
|---|---|
| Gemini 2.0 Flash | mother 100 |
| Gemini 2.5 Pro · March preview | father 100 |
| Gemini 2.5 Pro · May preview | father 100 |
| Gemini 2.5 Pro · June preview | mother 100 |
| Grok 3 | father 100 |
| DeepSeek R1 | mother 98 |
| Llama 4 Maverick | mother 90 |
| Mistral Large | mother 94 |
Data: T. D. Laajala (Syksy), LLMSurgeonSonRiddle, github.com/Syksy/LLMSurgeonSonRiddle. Runs of 18 to 27 June 2025, temperature 0. * o1 and o3 ran at temperature 1 only. I copied the numbers from the project's table.
Mistake 3 · layer 3
Engineering problems · mistake 4
MY RUNS ON QWEN3 0.6B · THREE RUNS, THREE NAMES: NAOTOYO KISHIO, SHINZO ITO, SHINZŌ OBAKE
Engineering problems · mistake 4 · solution
Engineering problems · mistake 4 · solution
Engineering problems · mistake 5
Ask three times. Each time in a new chat.
THEN OPEN CONFIDENCE AND LOOK AT THE YEAR
My run 1sureless surenot sure
Engineering problems · mistake 5 · why · openai.com/index/why-language-models-hallucinate
OpenAI, “Why language models hallucinate” (September 2025):
Engineering problems · mistake 5 · solution · github.com/kltng/calendar_converter
光緒二十四年三月廿七日 → day number 2414397 → 1898-04-17
Summing up
| Mistake | Category | Solution | Fixed? |
|---|---|---|---|
| Strawberry | model | A clearer instruction, as a workaround | partly |
| Backwards text | model | Change the input | no |
| The surgeon | model | Another model, or train it again | not by us |
| Prime minister | engineering | Give context | yes |
| Chinese date | engineering | Connect a tool | yes |
Summing up
Summing up
| Teaching Lab | With the calendar tool on | A cloud AI service | |
|---|---|---|---|
| What leaves your laptop | nothing | the date you asked about | your question, files and images |
This afternoon
Human problems. The model is able, the tools are there, and the result is still poor, because of how we asked.
| 2:00 PM | From Printed Page to Research Data One Ming source, 4,310 pages, in ten small checked steps. No laptop needed |
| 3:45 PM | Office hours Bring your questions about your own project. Happy to help |
When AI Gets It Wrong · University of Michigan · thank you
Now, at office hours this afternoon, or by email after today.