← Latest papers
💬 NLP

Semantic Content Determines Algorithmic Performance

The paper introduces "WhatCounts," an atomic benchmark demonstrating that frontier LLMs fail to implement truly invariant algorithms, as their performance on simple counting tasks varies unpredictably by over 40% based solely on the semantic content of the items being counted, revealing hidden input-dependent biases that extend beyond mere reasoning complexity.

Original authors: Martiño Ríos-García, Nawaf Alampara, Kevin Maik Jablonka

Published 2026-01-30
📖 5 min read🧠 Deep dive

Original authors: Martiño Ríos-García, Nawaf Alampara, Kevin Maik Jablonka

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 very smart robot assistant. You ask it to do a simple job: "Count how many items are in this list."

In the world of computers, a true "algorithm" (a set of instructions) is like a perfect, blind robot. If you give it a list of 5 apples, it counts 5. If you give it a list of 5 rocks, it also counts 5. The robot doesn't care what it is counting; it only cares how many things are there. The meaning of the items shouldn't change the result.

This paper, titled "Semantic Content Determines Algorithmic Performance," reveals a surprising and slightly embarrassing truth about the most advanced AI models (Large Language Models or LLMs) we have today: They are not perfect blind robots. They are actually very sensitive to what they are counting.

Here is a breakdown of their findings using simple analogies:

1. The "WhatCounts" Test

The researchers created a super-simple test called WhatCounts.

  • The Setup: They gave the AI a list of items separated by pipes (like |).
  • The Rule: The list had no tricks. No duplicates, no confusing words, no "distractors." Just a clean list of 10 items.
  • The Variable: They changed what the items were. Sometimes it was 10 cities, sometimes 10 chemicals, sometimes 10 names, and sometimes 10 emojis.

The Result: The AI's accuracy swung wildly depending on the type of item.

  • If the list was Cities, the AI might get it right 95% of the time.
  • If the list was Chemicals, the same AI might only get it right 50% of the time.
  • The Gap: In some cases, the difference in accuracy was over 40%.

The Analogy: Imagine a cashier who is great at counting apples but somehow keeps losing count when you hand them oranges, even though the task is exactly the same. The cashier isn't bad at math; they are just weirdly biased by the type of fruit.

2. It's Not a "Counting" Problem

The researchers wanted to know why this happened. They ran several experiments to rule out common excuses:

  • Is it because some words are longer? (Token Count)
    • Test: They made sure every list had the exact same number of "tokens" (computer words), even if the items were different.
    • Result: The bias remained. It wasn't about length.
  • Is it because the AI can't see where one item ends and the next begins? (Identification)
    • Test: They asked the AI to just wrap each item in XML tags (like <item>City</item>) instead of counting them.
    • Result: The AI was excellent at identifying the items. It knew exactly where the cities and chemicals started and stopped. The problem wasn't seeing the items; it was counting them.
  • Is it because the AI needs to "think harder"? (Reasoning)
    • Test: They forced the AI to use more "reasoning effort" (think step-by-step).
    • Result: Surprisingly, making the AI think harder didn't fix the problem. In fact, for the smartest models, thinking harder sometimes made the gap between "easy" items and "hard" items even wider.

3. The "Unstable" Nature of the Bias

The researchers also looked at how these models are trained. They found that the bias is unpredictable.

  • If you take two models that are almost identical but trained on slightly different data, one might be great at counting chemicals but bad at counting names.
  • The other might be the exact opposite.
  • The Analogy: It's like two students who studied the same textbook. Student A is great at solving math problems about "apples" but fails at "oranges." Student B is the reverse. You can't predict which student will fail just by looking at their general grade; it depends entirely on the specific topic.

4. Why This Matters (The "Agent" Problem)

The paper shows that this isn't just a trivia game. These models are increasingly being used as "agents" that do work for us, like running code or managing databases.

  • The Scenario: Imagine an AI agent that needs to count items in a list to send a package. It uses a Python tool (a calculator) to help.
  • The Failure: Even when the AI has a calculator to help it count, it still gets confused if the items are "Chemicals" instead of "Cities."
  • The Consequence: If a system relies on the AI to count things correctly to make a decision (like "Do we have enough ingredients?"), the system might fail simply because the meaning of the words changed, not because the math was hard.

The Big Conclusion

The paper concludes that LLMs do not actually "implement" algorithms.

  • True Algorithm: A rule that works the same way no matter what you plug into it. (Like a vending machine: put in a coin, get a soda. It doesn't matter if the coin is a quarter or a euro; the machine just counts the value).
  • LLM Behavior: They are approximating algorithms. They are pattern-matching. They have learned that "counting cities" usually looks a certain way in their training data, and "counting chemicals" looks different. They aren't following a rigid rule; they are guessing based on the flavor of the words.

In short: If you ask a human to count 10 things, they count 10. If you ask a top-tier AI to count 10 things, the answer might depend on whether those things are "emojis" or "chemicals." The AI is not a calculator; it is a very good guesser that gets tripped up by the meaning of the words.

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 →