← Latest papers
🤖 AI

Buried in Textual Debt: Context Pruning with Visual Evidence Preservation for MLLM Agents

The paper introduces SPARE, a KL-guided framework that effectively prunes redundant reasoning text in Multimodal Large Language Model agents while preserving essential visual evidence, thereby improving task accuracy and mitigating the "textual debt" problem in long-horizon multimodal tool-use scenarios.

Original authors: Yuchen Huang, Sijia Li, Jun Zhang, Yi R. Fung

Published 2026-08-25
📖 4 min read☕ Coffee break read

Original authors: Yuchen Huang, Sijia Li, Jun Zhang, Yi R. Fung

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

In the rapidly evolving field of artificial intelligence, a specific type of computer program has emerged that acts as a digital assistant capable of seeing and thinking. These systems, known as multimodal large language models, are designed to look at images, understand questions about them, and use external tools to find answers. To solve complex problems, they do not just guess; they break the task down into a series of steps, writing out their own thoughts and plans as they go. This process of writing down their reasoning helps them stay organized and coordinate different actions, much like a human might jot down notes while solving a puzzle. However, as these digital assistants work through long and difficult tasks, the text they generate begins to pile up. This accumulation of self-written notes eventually becomes so large that it crowds out the original image and the new visual clues the tools provide, causing the system to rely too heavily on its own past words rather than the fresh evidence in front of it.

Researchers at the Hong Kong University of Science and Technology have identified this phenomenon as "textual debt," a state where the history of the conversation drowns out the visual reality the agent is supposed to be analyzing. When an agent gets stuck on an early, incorrect idea, the sheer volume of text reinforcing that idea can blind it to new information, leading to mistakes. To solve this, the team developed a method called SPARE, which acts as a selective editor for the agent's memory. Instead of simply deleting old text or compressing images, SPARE carefully reviews the agent's past reasoning to decide what is still useful and what has become redundant. It works by asking a simple question: if the agent were to summarize its current situation in a few sentences, would it still need to read the specific paragraph of reasoning it wrote earlier to understand the next step?

The process involves a clever diagnostic check where the system compares two versions of its own thinking. In one version, the agent reads its full history of thoughts and actions. In the other, it reads that same history but with a compact summary of the current task state added to the mix. The system then measures how much the presence of that summary changes the agent's predictions for the next word. If the summary makes the agent's thinking shift significantly, it means the old paragraph contains unique, critical details that the summary missed, so the paragraph is kept. If the summary causes almost no change, it means the old paragraph is just repeating information that is already captured in the summary, making it safe to remove. This allows the system to prune away the "stale" text that clutters the context while preserving the specific visual details, such as coordinates or text found in an image, that are essential for the task.

To make this pruning even more effective, the researchers also trained the system to write better, more comprehensive summaries. By teaching the agent to condense its task state more efficiently, they enabled the pruning tool to remove even more of the redundant text without losing important information. When tested across several challenging benchmarks involving image editing, tool use, and visual search, this approach proved highly successful. The system managed to remove between 37.89% and 64.58% of the reasoning tokens—the words the agent wrote to itself—while actually improving its accuracy on the tasks. In many cases, the pruned agents performed better than those that kept their full history, suggesting that reducing the textual noise helped them focus more sharply on the visual evidence.

The findings challenge the common assumption that an agent needs to remember every single step of its reasoning to succeed. Instead, the study suggests that for long, complex tasks, the ability to forget the irrelevant parts of the conversation is just as important as the ability to reason. By clearing away the textual debt, the system restores its ability to attend to the image and the new data provided by its tools, rather than getting trapped in a loop of its own past assumptions. This work indicates that for artificial intelligence to become a truly effective long-term partner in visual tasks, it must learn not just how to think, but also how to let go of the thoughts that no longer serve the goal.

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 →