Would this change your answer? Evaluating Explanations of LLM Behavior In The Wild with Counterfactual Experiments
This paper introduces CHIVE, an agentic pipeline that evaluates and improves LLM explanation methods by using counterfactual experiments to assess whether explanations can accurately predict model behavior on related inputs, revealing that current interpretability techniques offer no predictive advantage while demonstrating that training on CHIVE-generated data enhances generalization.
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
To understand what this research is about, imagine trying to understand why a person makes a specific choice. If you ask them, they might give you a reason, but that reason might be a guess, a rationalization, or simply wrong. In the world of artificial intelligence, researchers face a similar challenge with large language models. These systems are powerful tools that can write code, tell stories, and solve problems, but they are also "black boxes." We can see what they say, but we cannot easily see the internal gears that turn to produce those words. Scientists have long tried to build tools to peek inside these gears, hoping to find the true cause of a model's behavior. The goal is to know if a model is being honest about its own reasoning or if it is hiding a different motive. The question is: how do we know if an explanation is actually good? If a researcher says, "The model made a mistake because it was confused by a specific word," how can we test if that is true?
A team of researchers at Anthropic decided to test this by moving beyond simple guesses and into the realm of "what if." Instead of just asking a model to explain itself, they built a system that actively changes the model's environment to see if the explanation holds up. They call this process counterfactual investigation. It works like this: if you believe a model made an error because of a specific word, you change that word and see if the error disappears. If the error vanishes when you change the word, your explanation was likely correct. If the error stays the same, your explanation was wrong. This method turns a vague theory into a testable fact. The researchers wanted to see if the current tools scientists use to look inside AI models could actually help predict these changes, and whether they could teach the models to understand their own behavior better.
To do this, the researchers created a new automated pipeline called CHIVE. This system acts like a tireless investigator. It starts by asking a target AI model thousands of questions from real-world conversations, looking for moments where the model does something unexpected or strange. Once it finds a strange behavior, the system doesn't just stop there. It launches a series of experiments. It takes the original question and makes small, specific edits to it—like changing a name, removing a sentence, or swapping a word—and then asks the model the new question again. It does this dozens of times to see how often the strange behavior happens with the original question versus the edited one. If changing a specific word causes the strange behavior to vanish, the system records that as proof that the word was the cause. This process generates thousands of high-quality examples where the cause of a behavior is known and verified by the experiment itself.
The researchers used this massive collection of verified examples to test two major ideas. First, they wanted to see if the existing tools that scientists use to interpret AI models were actually helpful. These tools are designed to read the model's internal activity, similar to how a doctor might read a brain scan, to find the "thoughts" behind an answer. The researchers gave these tools to a smart computer agent and asked it to predict whether a specific change to a prompt would alter the model's behavior. They expected the tools to give the agent a significant advantage, helping it see the hidden causes that a simple reading of the conversation would miss. Surprisingly, the tools provided no help at all. The agent performed just as well, or sometimes even worse, when it had access to these internal reading tools compared to when it only had the text of the conversation. The tools failed to reveal the connection between a specific input and the resulting behavior, leaving the agent in the dark just as it was before.
Second, the researchers asked if they could teach the models to predict their own behavior using the data they had collected. They took the target models and trained them on the thousands of experiments they had run. The training task was simple: show the model a conversation and a proposed change, and ask it to guess whether that change would stop the strange behavior from happening. The results here were much more promising. The models that received this training became significantly better at predicting the outcome of these changes. They learned to recognize patterns in their own behavior that they had not noticed before. This improvement held up even when the researchers tested the models on completely new types of questions and scenarios they had never seen during training. The models had learned a general skill for understanding how their own actions were influenced by their inputs.
The study also explored whether the models were simply memorizing the answers or if they had gained a deeper, internal understanding of themselves. To test this, the researchers trained one model on data about its own behavior and another model on data about a different model's behavior. If the first model had a special, private access to its own internal state, it should have performed better than the second model. However, both models performed equally well. This suggests that the models were not accessing some hidden, privileged knowledge about themselves. Instead, they were learning to recognize the patterns of cause and effect from the data they were shown, much like a student learning a subject by studying examples.
The findings offer a clear picture of where the field stands. The current tools for looking inside AI models, which have shown promise in simpler, controlled tests, do not seem to work when applied to the messy, complex behaviors that happen in real-world conversations. They fail to provide the "aha" moment that explains why a model did what it did. On the other hand, the study shows that models can be trained to become much better at predicting their own reactions to changes in their environment. This suggests that the path to understanding AI behavior might not be through building better microscopes to look inside the machine, but rather through training the machine to recognize the patterns of its own actions. The researchers have released all their data and code, providing a new foundation for others to continue this work, ensuring that future explanations of AI behavior are grounded in what actually happens when the world changes, not just in what we think might be happening.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.