← Latest papers
🤖 AI

HyMem: Hierarchical Context Management for Long-Horizon Agents via Information Isolation

HyMem is a hierarchical context management framework that improves long-horizon LLM agent performance by isolating high-level planning from execution traces and using structured summaries to maintain focus and accuracy, achieving state-of-the-art results on GAIA and Browsecomp-plus benchmarks.

Original authors: XinQi Wang, Jinwei Xiao, Sijia Cui, Hongming Zhang, Yanna Wang, Qingyang Zhang, Bo Xu

Published 2026-08-18
📖 6 min read🧠 Deep dive

Original authors: XinQi Wang, Jinwei Xiao, Sijia Cui, Hongming Zhang, Yanna Wang, Qingyang Zhang, Bo Xu

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 a brilliant assistant who can read, reason, and search the internet to solve incredibly difficult problems. For years, scientists have been building these digital helpers using large language models, hoping they could tackle complex, multi-step challenges like planning a scientific expedition or navigating a website to find a specific historical fact. However, a persistent problem has held them back: as these assistants work longer and gather more information, their "memory" of the conversation becomes a cluttered mess. The assistant starts to drown in the details of its own actions—the raw text of every search result, every failed attempt, and every intermediate thought—until it forgets the original goal it was trying to reach. It is as if a librarian, while trying to find a single book, gets buried under a mountain of every page they have ever turned, losing track of the title they were looking for.

Researchers at the Institute of Automation in the Chinese Academy of Sciences have proposed a new way to organize this digital memory to solve that problem. They call their system HyMem, a method designed to keep long-term tasks on track by strictly separating different types of information. Instead of letting every piece of data mix together in one long list, HyMem builds a structure where high-level planning happens in a clean, quiet room, while the noisy, messy work of searching and testing happens in separate, isolated spaces. This approach allows the assistant to focus on the big picture without getting distracted by the clutter of its own daily operations.

The core idea behind this work is that not all information is created equal. When an agent works on a long task, it generates two very different kinds of data. One type is the strategic plan: the goals, the verified facts, and the steps needed to finish the job. The other type is the execution trace: the raw, often repetitive, and sometimes failed attempts to use tools, browse websites, or check details. In older systems, these two types of information were mixed together in a single stream. As the task went on, the sheer volume of the messy execution traces would overwhelm the sparse, critical planning signals. The assistant would lose its way, unable to distinguish the important goal from the noise of its own history.

To fix this, the researchers designed a framework that acts like a strict gatekeeper for information. They created a "Planner" layer that holds the main strategy and a separate "Executor" layer that handles the actual work of using tools. When the Planner needs to check a fact or run a search, it sends a specific instruction to the Executor. The Executor goes off and does the work, gathering all the raw data, but it does not dump that raw data back into the Planner's main memory. Instead, the Executor processes the information, filters out the noise, and returns only a clean, structured summary of what it found. This summary is then added to the Planner's memory, while the messy details are discarded.

The system also includes a special "Isolated Reasoning" module for particularly tricky sub-problems. If a task requires deep thinking or checking conflicting evidence, the Planner sends that specific problem to this isolated module. The module works through the problem on its own, keeping its own internal thoughts and intermediate steps hidden from the main Planner. Once it reaches a conclusion, it sends back just the answer and the key evidence, leaving the main Planner's memory free of the long, winding path taken to get there. This ensures that the main decision-maker never gets bogged down by the complexity of the sub-tasks it delegated.

To keep the system running smoothly over long periods, HyMem also uses a structured memory system that acts like a filing cabinet. It organizes past events, current goals, and lessons learned about how to use tools into neat, compact summaries. When the system needs to remember what it has done, it consults these organized files rather than trying to recall every single detail of the past. This allows the assistant to maintain a clear sense of progress and continuity, even after many hours of work, without its memory becoming too large to manage.

The researchers tested this new approach on two challenging sets of tasks: one involving general reasoning and tool use, and another focused on deep research questions that required finding specific facts across the internet. They compared their system against several other methods, including older approaches that simply tried to compress the entire history of a conversation into a shorter summary. The results showed that by keeping the planning and execution separate, the HyMem system was significantly more successful. On the general reasoning tasks, it solved about 66.7% of the problems correctly, while on the deep research tasks, it solved 61.3%. These numbers were notably higher than the best-performing alternative methods, which struggled to maintain focus as the tasks grew longer and more complex.

The study also looked at how much information the system had to process to reach these answers. The researchers found that the HyMem system did not simply solve problems by using more computing power or reading more text. Instead, it solved them more efficiently by directing its attention only to the information that mattered. The main planning memory grew very slowly, staying focused on the goal, while the isolated spaces handled the heavy lifting of exploration and analysis. This suggests that the key to solving long, difficult problems is not just having a bigger memory, but having a smarter way to organize it.

While the results are promising, the researchers note that the system relies on the underlying artificial intelligence being able to follow strict instructions and produce well-organized summaries. If the model cannot follow these rules, the system's benefits may not appear. However, for tasks that require sustained attention and the ability to navigate complex information over time, this hierarchical approach offers a clear path forward. By separating the signal from the noise, HyMem allows digital agents to think clearly, even when the work they are doing is incredibly complicated.

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 →