← Latest papers
💬 NLP

The Effect of Scripts and Formats on LLM Numeracy

This paper reveals that large language models suffer significant accuracy drops when processing numerical expressions in underrepresented scripts or formats, but demonstrates that targeted prompting strategies can effectively mitigate this disparity.

Original authors: Varshini Reddy, Craig W. Schmidt, Seth Ebner, Adam Wiemerslage, Yuval Pinter, Chris Tanner

Published 2026-06-30
📖 4 min read☕ Coffee break read

Original authors: Varshini Reddy, Craig W. Schmidt, Seth Ebner, Adam Wiemerslage, Yuval Pinter, Chris Tanner

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant student who has read almost every book in the world. This student is a master at math, able to solve complex addition and multiplication problems instantly. But there's a catch: this student has only ever seen numbers written in the standard way we use in English (like 1, 2, 3).

This paper is about what happens when you ask this super-smart student to do math using numbers written in different "languages" or "styles" that they haven't seen much before.

The Main Discovery: The "Script Tax"

The researchers found that when they swapped standard numbers for other scripts—like १, २, ३ (Devanagari) or ۱, ۲, ۳ (Perso-Arabic)—the student's math skills dropped dramatically.

Think of it like this: If you ask a chef to cook a perfect steak, they can do it easily. But if you hand them a recipe written in a language they don't read, or if you tell them to chop the onions with a spoon instead of a knife, they might drop the ingredients or burn the steak. The chef still knows how to cook, but the format of the instructions confused them.

The paper calls this the "Script Tax." It's a penalty the AI pays just for seeing numbers in a different shape. Even though the math problem is exactly the same (e.g., "5 + 5"), the AI gets it wrong 66% to 87% more often if the numbers aren't in the standard English style.

Why Does This Happen?

The paper points to two main culprits:

  1. The "Training Diet": The AI was trained on a massive diet of text from the internet. Most of that text uses standard English numbers. It's like the student only ever ate apples; when you suddenly give them a pear, they don't know how to chew it properly.
  2. The "Token" Problem: AI doesn't read words like humans do; it breaks text into tiny chunks called "tokens."
    • Standard numbers (like 123) might be one or two chunks.
    • Some other scripts break the same number into many tiny, confusing pieces.
    • The paper found that the more "chunks" a number gets broken into, the harder it is for the AI to do the math. It's like trying to solve a puzzle where someone has cut the picture into 100 tiny pieces instead of 10 big ones.

The Good News: We Can Fix It with "Hints"

The researchers didn't just find a problem; they found a way to help the student. They tried different ways of asking the question (called "prompting"):

  • Just asking nicely: "Please solve this." -> Still failed.
  • Telling them the language: "This is written in Thai." -> Still failed.
  • Giving a cheat sheet (Mapping): Showing the AI a list like "This symbol means 1, this one means 2." -> Better, but not perfect.
  • The Magic Trick (Few-Shot Prompting): This was the winner. The researchers gave the AI a few examples first.
    • Example 1: "Here is a problem in Thai: 1 + 1 = 2. Here is the answer."
    • Example 2: "Here is another one..."
    • Now: "Solve this one."

By showing the AI a few examples of how to handle these weird number styles, its performance skyrocketed. It's like showing the student a few practice problems in the new language before the real test. Suddenly, they could do the math perfectly.

The Formatting Twist

The paper also looked at how numbers are grouped. In the US, we write big numbers like 1,000,000 (commas every three digits). In Europe, they might write 1.000.000 (dots) or 1 000 000 (spaces).

The AI got confused by these styles too. It handled the US style perfectly but struggled with the European styles. Interestingly, the AI often confused these number formats with things like IP addresses (e.g., 192.168.1.1), which are common in its training data but aren't math problems.

The Bottom Line

The paper concludes that these AI models aren't "bad at math." They are actually quite good at the logic. The problem is that they are fragile. They rely heavily on seeing numbers in the specific, familiar way they were taught.

If you want an AI to do math for you in a different language or with different number styles, you can't just ask it directly. You have to give it a little nudge: show it a few examples first, or explain exactly how the symbols work. Once you do that, the "Script Tax" disappears, and the math becomes easy again.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →