← Latest papers
💬 NLP

Test, then Route: How Language Models Execute In-Context Conditional Rules Across Models and Languages

This paper demonstrates through activation patching that while language models modularly encode conditional predicate truth values in a mid-stack residual band, the mechanism for routing answers based on these conditions is not an abstract, transferable module but rather a token-bound, pair-specific process that varies across models and languages.

Original authors: Luxshan Thavarasa, Sivasuthan Sukumar

Published 2026-08-06
📖 3 min read☕ Coffee break read

Original authors: Luxshan Thavarasa, Sivasuthan Sukumar

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 super-smart robot that can read your mind and finish your sentences. Scientists who study these robots, called Large Language Models, are like detectives trying to figure out how the robot thinks. They don't just look at the robot's final answer; they want to peek inside its "brain" while it's working to see which parts are doing what. One big mystery is how the robot handles rules it learns on the spot, like "If the number is big, say 'dog'; otherwise, say 'cat'." Does the robot have a special, reusable switch that flips between "dog" and "cat" every time? Or does it just figure out the answer from scratch each time, mixing the rule and the answer together in a messy way? Understanding this is crucial because if we know exactly how the robot decides, we might be able to teach it better rules or stop it from making mistakes.

This paper is a deep dive into that exact question. The researchers set up a game where they asked three different AI models to follow simple "If-Then" rules in six different languages. They used a clever trick called "activation patching," which is like swapping a specific thought in the robot's brain with a thought from a different scenario to see if the robot changes its answer. Think of it as swapping the fuel in a car's engine to see if the car still runs.

Here is what they found, and it's a bit surprising: The robot's brain is split into two very different zones. The first zone, which they call the TEST, is like a dedicated, modular switch. When the robot checks if a number is bigger than 5, this specific part of the brain lights up with the answer "True" or "False." The researchers proved this by swapping this "True/False" signal with a different one, and the robot instantly changed its final answer to match the new signal. This "Test" zone works the same way across different models, different languages (even ones like Tamil and Sinhala), and different types of rules. It's a clean, reusable module.

However, the second zone, which they call the ROUTE, is a total mess. This is the part supposed to take that "True/False" signal and decide whether to output "dog" or "cat." The researchers tried to find a special "switch" or "subspace" in the brain that handles this routing. They found a direction that seemed to flip the answer perfectly for "dog" and "cat." But here's the catch: when they tried to use that same switch for a different pair of words, like "fox" and "owl," it stopped working completely. It was like finding a key that opens a specific door but fails to open any other door, even if they look the same.

So, the big conclusion is an asymmetry. The part of the brain that checks the rule is a sturdy, portable, and reusable tool. But the part that delivers the answer is not a separate, reusable tool at all. Instead, it seems to be tightly glued to the specific words being used. If you change the words, the "routing" mechanism breaks. The robot doesn't have a universal "Answer Switch"; it just has a specific way of reading out the answer for the specific words it was just trained on in that moment. This means that while we might be able to easily steer the robot's logic (the "Test"), trying to steer its specific choices (the "Route") might be much harder and less reliable than we hoped.

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 →