HMARS: A Hierarchical Multi-Agent Memory System for Long-Context Reasoning

Zeju Li, Ziyang Zheng, Yizhou Zhou, Qiang Xu
6/3/2026
cs.IRcs.AI

No confident code implementation found for this paper.

Abstract

Long-context reasoning requires models to access, retrieve, and integrate evidence scattered across documents, dialogues, and accumulated interaction histories. Standard retrieval-augmented generation reduces this problem to top-$K$ chunk retrieval, but such passive access can discard relevant evidence before reasoning begins, especially when relevance depends on broader context.

Show full abstract

We propose HMARS, a hierarchical multi-agent memory system that treats long contexts as managed memory rather than a flat retrieval corpus. Sub-agents maintain grounded access to bounded memory regions, mid-agents manage regional context and provide query-specific coordination, and a frontier model performs final reasoning over retrieved evidence pages. To evaluate this view, we construct two diagnostic benchmarks targeting evidence breadth and context-dependent relevance. Across long-document and multi-turn memory tasks, HMARS achieves the best overall performance against retrieval, reranking, full-context, graph-based, and agentic long-context baselines. Evidence coverage analysis further shows that its gains come from retrieving the required supporting evidence more completely, rather than merely changing the final answer prompt.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026hmars,
  title  = {HMARS: A Hierarchical Multi-Agent Memory System for Long-Context Reasoning},
  author = {Zeju Li and Ziyang Zheng and Yizhou Zhou and Qiang Xu},
  year   = {2026},
  eprint = {2606.28349},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.28349v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.28349.svg)](https://codeofpaper.com/paper/2606.28349)

Discussion