← Latest papers
🤖 AI

Semantic Bandits: In-Context Exploration-Exploitation is Biased by Semantic Priors

This paper introduces the "semantic bandit" framework to demonstrate that large language models' exploration-exploitation trade-offs are significantly biased by semantic priors derived from pre-training, where informative labels can either enhance or degrade performance depending on alignment with rewards, and negative rewards disproportionately trigger exploration due to expected-scale biases.

Original authors: David Eric Austin, Kaheer Suleman, Jackie Chi Kit Cheung

Published 2026-08-18
📖 5 min read🧠 Deep dive

Original authors: David Eric Austin, Kaheer Suleman, Jackie Chi Kit Cheung

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 a computer program that has read almost every book, article, and website on the internet. It can write poetry, solve math problems, and hold conversations that feel remarkably human. This is a large language model. Now, imagine giving this program a job where it must make a series of choices to get the best possible reward, like a farmer deciding which field to plant crops in, or a recommendation engine picking which shirt to show a customer. This is a decision-making task. In the world of computer science, there is a classic way to test how well an agent learns from experience: the multi-armed bandit problem. It is named after the row of slot machines in a casino, each with a different, unknown payout. To win the most money, you must balance two competing needs: sticking with the machine that seems to be paying out the most right now, and trying the other machines just in case one of them is actually better. This balance is called exploration versus exploitation. For decades, researchers have studied how to solve this mathematically. But when they started using these powerful language models as the decision-makers, they noticed something strange. The models were not just looking at the numbers; they were reading the words.

A team of researchers at McGill University and Mila decided to investigate this phenomenon by creating a new kind of test called the "semantic bandit." In a standard test, the choices are labeled with neutral codes like "Arm A" or "Arm B." In this new test, the researchers gave the choices names that carried meaning, such as "divine," "mild," or "nasty." They wanted to see if the computer would let the meaning of these words override the actual data it was collecting. They set up a scenario where the computer acted as a farmer choosing between three fields. Each field produced a random amount of crop yield, and the goal was to maximize the total harvest over time. The researchers gave the fields names that suggested their quality. In one version, the best field was named "divine" and the worst was named "nasty." In another version, they swapped the names, so the best field was called "nasty" and the worst was called "divine."

The results were striking. When the names matched the reality of the fields—when the "divine" field actually produced the most crops—the computer learned incredibly fast. It stopped trying the other fields almost immediately and stuck with the "divine" one, achieving a perfect score with very little trial and error. However, when the names were misleading, the computer made a catastrophic error. It became convinced that the field named "divine" was the best, even after the data showed it was producing the worst harvest. It ignored the evidence and kept choosing the "divine" field, while the field named "nasty" (which was actually the best) was left untouched. The computer was not acting on the numbers; it was acting on the associations it had learned from reading billions of words during its training. It had learned that "divine" usually means good and "nasty" usually means bad, and it applied that rule even when the specific numbers in front of it said otherwise.

The researchers also discovered that the computer reacted differently to positive and negative numbers. When the computer received a negative reward—a loss or a penalty—it suddenly became much more curious. It started trying all the different options again, exploring the unknown fields with high energy. But when it received a positive reward, even a small one, it tended to stop exploring and stick with what it knew. This suggests that the computer does not see numbers as abstract signals in a vacuum. Instead, it seems to have an internal expectation of what a "normal" reward looks like, likely shaped by the way rewards are described in the text it was trained on. A negative number breaks that expectation so severely that it forces the computer to re-evaluate everything, while a positive number feels safe and encourages it to stay the course.

This behavior was not limited to one specific computer model. The researchers tested three different large language models, ranging from open-source systems to advanced commercial versions, and they all showed the same bias. The effect was so strong that it could turn a simple decision problem into a failure. In a task where a classical computer program would solve the problem in a few steps, the language model could fail completely if the words were slightly misleading. The researchers found that they could partially fix this by explicitly telling the computer in its instructions to ignore the names and to keep exploring, but the bias was deep-seated. Even with warnings, the models often struggled to separate the meaning of the words from the reality of the numbers.

The study concludes that using language to describe a decision-making environment introduces unavoidable biases. Because these models are trained on the co-occurrence of words in human text, they carry a set of assumptions about how the world works. When those assumptions align with the task, the model is a genius, learning faster than any traditional algorithm. When they clash, the model becomes stubborn, ignoring clear evidence because it is too busy following the story the words are telling it. This is not a bug in the code, but a feature of how these systems learn from language. As these models are deployed in real-world situations, from financial advice to autonomous driving, understanding when their linguistic intuition helps and when it leads them astray is critical. The researchers found that in the simplest possible decision-making scenario, a computer can be tricked into making the worst possible choice simply by changing the label on a button.

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 →