Free sample lesson ยท Where It Quietly Gets It Wrong
Numbers Are Just Text To It
It writes flawless code about calculus, then adds up four invoices wrong.
Lesson 1 of the Wondering course Where It Quietly Gets It Wrong
Overview
- Tokens
- Prediction
- Safety
Explore how AI processes numbers as text tokens rather than quantities, leading to plausible arithmetic errors.
Numbers are just text chunks
AI models do not see numbers the way humans or calculators do. They process text in small chunks called tokens.
A number like 4,817 is often chopped into pieces like "48" and "17".
The model has no internal place to store the actual quantity. It does not know that 4,817 sits between 4,816 and 4,818. To the AI, these are just symbols that usually appear together.
- Tokenization: The model processes text and numbers in small chunks called tokens.
- Splitting: Numbers like 4,817 are broken down into smaller pieces like 48 and 17.
- Symbolic Nature: The model treats these pieces as symbols with no internal quantity or numerical value.
Prediction instead of calculation
Because the AI lacks a calculator, it predicts which digits should come next. It uses patterns from its training data to guess the answer.
Small sums like $$2 + 2$$ are usually correct because the model has memorized them.
Larger tasks are harder. If you ask for 17% of 84,320, the AI might return 14,334.40. This looks correct, but it is actually a guess based on the shape of a plausible answer.
- Small Sums
- Larger Tasks
The danger of plausible errors
AI errors are dangerous because they look reasonable. A broken calculator might show symbols or zero, but an AI provides a figure with the right number of digits.
Consider these two results for a sum:
- True value: 14,334.40
- AI guess: 14,434.40
You cannot tell the difference by glancing. The AI might even explain the steps perfectly while giving the wrong final total.
Why spot checking fails
You might think you can catch errors by checking if a number looks right. This is a mistake.
AI models are excellent at getting the order of magnitude correct. They know a bill for four items should be around 200 USD rather than 2 million USD.
However, it might miss the total by 40 USD. Because the result is in the right ballpark, your brain is less likely to flag it as an error.
- Actual Total: The correct bill amount.
- AI Estimate: Close enough in magnitude to fool your brain.
- Wrong Scale: An obvious error that is easily caught.
How to use AI safely
Do not use the chat window for critical arithmetic. The system is designed for language, not math.
If you need to sum four invoices, do not ask the AI to do the math. Instead, use it to write code that performs the calculation.
Understanding that numbers are just tokens helps you predict when the AI will fail. Use it for ideas, but use a calculator for the math.
- New Task
- Is it math?
- Write code or use calculator
- Use chat window for ideas
- Safe Result
- Yes
- No
Putting It All Together
- Recognize Tokens: Remember that models see numbers as text tokens, not quantities.
- Expect Plausible Errors: Anticipate that wrong answers will have the correct number of digits and magnitude.
- Delegate Math: Use the AI to write code or generate ideas, but leave actual calculations to a real calculator.
Check yourself
An AI language model processes multi-digit numbers like 4,817 as _____.
- text tokens without internal numerical values
- stored numerical quantities on a memory grid
Answer: text tokens without internal numerical values
AI models chop text and numbers into small chunks called tokens. They store no numerical value or quantity for these symbols.
When completing math tasks, asking an AI for direct calculations produces _____ guesses based on text patterns, while asking it to write _____ lets a real program execute the accurate math.
Answer: When completing math tasks, asking an AI for direct calculations produces plausible guesses based on text patterns, while asking it to write code lets a real program execute the accurate math.
Because AI models predict text tokens based on patterns, direct answers look believable but are often wrong. Writing code delegates the calculation to a real execution engine.
Why is spot-checking an AI's mathematical output for 'reasonableness' unreliable?
- The model generates outputs with the correct order of magnitude and digit count, hiding specific errors.
- The model randomly changes digits into non-numeric symbols when it fails a calculation.
- The model always outputs zero whenever it encounters numbers larger than two digits.
- The model intentionally alters the dollar sign position to signal an uncertain calculation.
Answer: The model generates outputs with the correct order of magnitude and digit count, hiding specific errors.
AI models predict the visual structure of a correct response. They regularly output answers with the expected length and order of magnitude (such as $14,434.40 instead of $14,334.40), making errors invisible to a quick glance.
Keep going
This is lesson 1 of 7 in Where It Quietly Gets It Wrong. Next up:
- Make It Show Its Working
- It Was Trained To Please You
- Hedging And Sameness
- How To Get A Real Critique
- Reading And Hearing Are Predictions Too
Wondering turns any topic into short lessons you can read, watch, or listen to, with practice questions and an AI tutor.