← Latest papers
💬 NLP

Causally Evaluating the Learnability of Formal Language Tasks

This paper introduces the binning semiring and a causal framework using formal languages to demonstrate that standard correlational evaluations of language model learnability are flawed due to confounders, thereby providing a rigorous method to accurately measure the data requirements for specific tasks.

Original authors: Vésteinn Snæbjarnarson, Anej Svete, Josef Valvoda, Reda Boumasmoud, Brian DuSell, Ryan Cotterell

Published 2026-06-09
📖 5 min read🧠 Deep dive

Original authors: Vésteinn Snæbjarnarson, Anej Svete, Josef Valvoda, Reda Boumasmoud, Brian DuSell, Ryan Cotterell

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 are trying to teach a robot how to speak. You give it a massive library of books (the training data) and ask it to learn everything: how to write code, how to tell jokes, and how to solve math problems.

The big question this paper asks is: How much specific practice does the robot need to learn a specific skill?

For example, if you want the robot to learn a specific type of math puzzle, do you need to show it 10 examples, or 10,000?

The Problem: The "Correlation Trap"

The authors argue that if you just look at the robot's natural learning process, you might get the wrong answer. They call this the Correlation Trap.

The Analogy:
Imagine you are studying how good a chef is at making Spicy Tacos.

  • The Correlation Method: You look at all the chefs in the world. You notice that the chefs who make the most Spicy Tacos are also the ones who have the best kitchens, the freshest ingredients, and the most experience cooking in general.
  • The Mistake: You conclude, "Aha! To make great Spicy Tacos, you just need to make a lot of them!"
  • The Reality: Maybe those chefs are great because of their fancy kitchens, not because they made so many tacos. If you gave a chef with a bad kitchen 10,000 Spicy Tacos to practice, they might still fail.

In the world of AI, "natural" data is messy. If a robot sees a specific pattern (like a math puzzle) often, it usually sees it alongside other helpful patterns (like simple grammar or common words). It's hard to tell if the robot learned the puzzle because it saw it 100 times, or because it saw it alongside 100 easy sentences that helped it learn.

The Solution: The "Causal Intervention"

To fix this, the authors decided to stop watching the robot learn naturally and start forcing the learning environment. They wanted to isolate the variable: "How many times did the robot see this specific thing?"

The Analogy:
Instead of letting the robot wander through a library, you put it in a room with a conveyor belt.

  • The Setup: You control the belt. You say, "Today, this robot will see exactly 50 Spicy Tacos and nothing else."
  • The Control: You do this for 10 robots. One sees 50 tacos, one sees 100, one sees 1,000. You keep everything else (the room, the lighting, the robot's brain) exactly the same.
  • The Result: Now, if the robot gets better at tacos as the number increases, you know for a fact that the number of tacos caused the improvement. You removed the "fancy kitchen" confounders.

The Magic Tool: The "Binning Semiring"

To pull off this conveyor belt trick, the authors invented a new mathematical tool called the Binning Semiring.

The Analogy:
Imagine you are counting marbles rolling down a track. Usually, you just count them as they go. But the authors wanted to count them while they were rolling, and force the track to stop exactly when the count hit a specific number (like 50).

The "Binning Semiring" is like a smart counter built into the track itself.

  • It doesn't just say "1, 2, 3..."
  • It says, "If you roll a red marble, add 1 to the count. If you roll a blue one, add 0."
  • Crucially, it allows the authors to rewind and reroll the track mathematically. They can say, "Show me all the possible paths where the red marble count is exactly 50," and ignore all the paths where it's 49 or 51.

This allows them to generate training data that is mathematically guaranteed to have a specific number of "target" items, without accidentally changing the difficulty of the task or the length of the sentences.

What They Found

The authors tested this on two types of robot brains: LSTMs (an older, simpler type) and Transformers (the powerful type used in modern AI like ChatGPT). They used "formal languages" (strict, rule-based puzzles) instead of real English to keep things simple and controlled.

The Big Discovery:
When they looked at the data naturally (the Correlation Trap), the results were misleading.

  • Sometimes, the data suggested that a robot learned a task better when it saw it less often.
  • Sometimes, the data suggested that a robot was bad at a task just because the specific "recipe" of the training data happened to be hard, not because the task itself was hard.

When they used their Causal Intervention (the conveyor belt):

  • The curves changed completely.
  • They found that for some tasks (like "Parity," which is checking if there is an odd or even number of items), the older robot (LSTM) actually got much better as it saw more examples.
  • But the newer robot (Transformer) hit a wall. No matter how many examples they forced it to see, it didn't get significantly better.

The Takeaway

The paper concludes that standard ways of testing AI are flawed because they mix up "seeing a lot" with "seeing the right things."

If you want to know if an AI can truly learn a specific skill, you can't just look at how it performs on a random pile of data. You have to intervene, control the exact number of examples, and see what happens. Otherwise, you might think the robot is smart when it's just lucky, or think it's dumb when it's just confused by the noise.

In short: Don't trust the correlation. Force the experiment to find the truth.

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 →