← Latest papers
💻 computer science

Interpreting Black-Box Large Language Models with Sentence-Level Energy Landscapes

This paper proposes a model-agnostic, post-hoc attribution interpreter that utilizes an Energy-Based Model as a surrogate to train a standalone tool capable of quantifying sentence-level prompt influence on LLM outputs without requiring further API queries.

Original authors: Maryam Rezaee, Pooriya Safaei, Maryam Asgarinezhad, Fatemeh Seyyedsalehi

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

Original authors: Maryam Rezaee, Pooriya Safaei, Maryam Asgarinezhad, Fatemeh Seyyedsalehi

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 talking to a very smart, but mysterious, robot friend. You ask it a question, and it gives you a long, helpful answer. But here's the catch: you can't see inside the robot's brain. You can't peek at its gears or read its diary to see why it chose those specific words. This is the world of "Black-Box" Artificial Intelligence. These are powerful computer programs called Large Language Models (LLMs) that are so complex and secretive that even their creators sometimes can't explain exactly how they make decisions. This is a big problem if you want to trust the robot with important tasks, like giving medical advice or legal help. You need to know: "Did the robot say this because of that part of my question, or did it just make it up?"

To solve this, scientists have been trying to build "interpreters"—tools that act like X-ray glasses for AI. Usually, these tools try to look at the tiny building blocks of language, like individual words or letters (called "tokens"). But thinking about language one letter at a time is like trying to understand a movie by looking at single pixels; it's messy and often misses the bigger picture. The real magic happens in complete thoughts, or sentences. The big question this paper tackles is: Can we build a tool that ignores the tiny pixels and instead looks at whole sentences to figure out which parts of your question actually caused the robot's answer?

The researchers in this paper say "Yes, we can!" and they built a clever new way to do it. Instead of trying to open the black box, they built a "shadow twin" of the robot. Think of this twin as a detective who watches the real robot work, learns its habits, and then builds a map of its thinking process. They call this map an "Energy Landscape." Imagine a hilly terrain where low valleys represent "good, logical answers" and high peaks represent "weird, wrong answers." The real robot always tries to stay in the low valleys.

The team trained their detective twin to understand this landscape. Once the twin knows the map, it can look at a specific answer the robot gave and ask, "Which sentence in the question pushed the robot down into this specific valley?" They built a lightweight tool, which they call ESCI, that acts as a standalone translator. Once trained, this tool doesn't need to ask the big robot for help anymore; it can just look at the question and the answer and point directly to the most important sentences.

Here is how they tested it and what they found. They used a popular AI model (GPT-4o-Mini) as their "black box" and fed it thousands of questions and answers. They trained their ESCI tool to figure out which parts of the questions mattered most. When they compared ESCI's guesses to the guesses made by other super-smart AI models (acting as "oracles"), they found that ESCI was surprisingly accurate. It could spot the main point of a question even when there was a lot of extra chatter or "filler" words. For example, if you asked, "Explain like I'm five," ESCI correctly identified that the "Explain like I'm five" part was the most important instruction, not just the topic you were asking about.

However, the paper is careful not to claim this is a perfect, magic solution. The authors suggest that while ESCI is very good at finding the right sentences, it's not a crystal ball that sees the robot's exact internal thoughts. They measured this by doing a "what-if" test: they took the sentences ESCI said were important, removed the rest, and asked the robot to answer again. The robot was still able to give a very similar answer, which suggests ESCI found the true "causal" drivers. But, they also noted that if you remove the important sentences, the robot sometimes still guesses the right answer because it has so much general knowledge. This means ESCI is great, but it's not the final word on how the robot thinks.

One of the coolest things about this method is how efficient it is. Other methods that try to do this often have to ask the big robot thousands of questions just to figure out one answer, which is slow and expensive. The ESCI tool, once trained, can do its job instantly without asking the big robot for help at all. It's like training a guide dog once, and then the dog can lead you through the city forever without needing to call the trainer. The researchers found that after training on about 20,000 examples, their tool could handle new questions much faster than the old methods, saving a huge amount of time and computer power.

In the end, the paper suggests that looking at sentences instead of tiny words is a smarter way to understand AI. It shows that we can build tools that help us trust these mysterious robots by pointing out exactly which parts of our conversation matter. While it's not a perfect window into the robot's soul, it's a very strong pair of glasses that helps us see the logic behind the magic, making it safer and more reliable to use these powerful tools in our daily lives.

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 →