Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
This paper introduces Tokengeist, a scalable framework that addresses the limitations of single-pass attribution methods in multi-turn conversations by recursively tracing token-level dependencies across conversation turns, achieving significantly higher accuracy in recovering complex provenance graphs compared to existing approaches.
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 figure out why your favorite detective character in a TV show suddenly decided to solve a case in a specific way. You know the final answer, but the show jumps around in time, showing the detective talking to a witness, then checking a map, then calling a friend, and finally making a decision. If you only looked at the very last scene, you might think the decision came from the friend. But what if the friend was just repeating something the witness said, who got the info from the map? To truly understand the story, you can't just look at the final moment; you have to trace the trail of clues backward, step-by-step, through every conversation and action that led there. This is the kind of puzzle scientists are trying to solve with Artificial Intelligence (AI).
In the world of AI, specifically with Large Language Models (the super-smart chatbots we use today), there is a growing problem. These models often have long conversations with us, where they ask questions, we answer, they check a database, and then they give a final answer. Sometimes, the final answer depends on a tiny detail we mentioned five turns ago, which the model then summarized, which the model then used to call a tool, which finally led to the answer. The big question is: How can we see exactly which parts of that long conversation shaped the final answer? Currently, most tools that try to answer this question act like a flashlight that only shines on the immediate room. They can tell you which words in the whole chat seem important, but they miss the "storyline" of how information traveled from the beginning to the end. This matters because if we can't trace where an AI got its facts, we can't trust it, fix its mistakes, or understand why it might be lying to us.
Enter Tokengeist, a new method introduced by researchers Jessica Tang, Shraddha Barke, and Sharad Agarwal. Think of the old way of tracing AI thoughts as a "flat" map. If you ask a flat map to find the source of a rumor, it might point to the person who told you the rumor last, but it won't tell you who told them. The researchers call this failure "provenance collapse." It's like a game of telephone where the final player is blamed for the message, even though the message was distorted three people back. The flat method collapses the whole history into a single layer, missing the deep, multi-step journey of the information.
To fix this, the team built Tokengeist, which acts like a recursive detective. Instead of just looking at the final answer and asking, "Who did you talk to?", Tokengeist asks, "Who did you talk to?" and then, for every person you named, it asks, "And who did they talk to?" It keeps digging backward, step-by-step, through the conversation turns. It treats the conversation like a branching tree (or a family tree of ideas), where it follows the branches back to the very first leaves—the original user inputs or tool results.
The researchers tested this idea using a new benchmark they created called MTCABENCH, which contains 3,845 specific parts of answers from 665 different multi-turn conversations. These conversations were tricky, involving tools like booking flights or checking bank accounts, where the AI had to chain together information from many steps. They found that the old "flat" methods were terrible at this. When asked to find the original source of information, the flat methods only succeeded less than 20% of the time. They kept getting stuck at the middle of the story.
In contrast, Tokengeist was a game-changer. By recursively tracing the path backward, it successfully found the original source of the information more than 90% of the time. It didn't just guess; it mapped out the full journey. For example, if an AI said, "You can cancel your flight because you have insurance," a flat method might just point to the cancellation confirmation. Tokengeist, however, traced it back to the tool result that showed the insurance, then back to the user's ID that unlocked that tool result, and finally to the user's original request.
The paper suggests that this recursive approach is the key to making AI transparent. It shows that simply looking at the whole conversation at once isn't enough; we need to understand the structure of the conversation, how one turn depends on another. While the method works best with the specific AI models they tested (which are open-source and relatively small), the results strongly suggest that for complex, multi-step AI agents, we need to stop treating conversations as a flat list of words and start treating them as a connected web of dependencies. Tokengeist doesn't just tell us what the AI said; it helps us understand the entire story of how it came to say it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.