MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ji, Baibei, Weng, Xiaoyang, Li, Juntao, Tang, Zecheng, Lou, Yihang, Zhang, Min
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911671046373376
author Ji, Baibei
Weng, Xiaoyang
Li, Juntao
Tang, Zecheng
Lou, Yihang
Zhang, Min
author_facet Ji, Baibei
Weng, Xiaoyang
Li, Juntao
Tang, Zecheng
Lou, Yihang
Zhang, Min
contents To tackle long-context reasoning tasks without the quadratic complexity of standard attention mechanisms, approaches based on agent memory have emerged, which typically maintain a dynamically updated memory when linearly processing document chunks. To mitigate the potential loss of latent evidence in this memorize-while-reading paradigm, recent works have integrated retrieval modules that allow agents to recall information previously discarded during memory overwriting. However, retrieval-based recall suffers from both evidence loss during memory formation and interference induced by invalid queries. To overcome these limitations, we propose MemReread. Built upon streaming reading, MemReread circumvents intermediate retrieval. It triggers question decomposition and rereading when the final memory is insufficient, enabling the recovery of indirect facts that were prematurely discarded. This design supports non-linear reasoning while preserving the inherent logical flow of document comprehension. To further enhance practicality, we introduce a reinforcement learning framework that enhances length extrapolation capability while dynamically determining the number of rereading passes based on task complexity, thereby flexibly controlling computational overhead. Extensive experiments demonstrate that MemReread consistently outperforms baseline frameworks on long-context reasoning tasks, while maintaining linear time complexity with respect to context length.
format Preprint
id arxiv_https___arxiv_org_abs_2605_10268
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading
Ji, Baibei
Weng, Xiaoyang
Li, Juntao
Tang, Zecheng
Lou, Yihang
Zhang, Min
Computation and Language
Artificial Intelligence
To tackle long-context reasoning tasks without the quadratic complexity of standard attention mechanisms, approaches based on agent memory have emerged, which typically maintain a dynamically updated memory when linearly processing document chunks. To mitigate the potential loss of latent evidence in this memorize-while-reading paradigm, recent works have integrated retrieval modules that allow agents to recall information previously discarded during memory overwriting. However, retrieval-based recall suffers from both evidence loss during memory formation and interference induced by invalid queries. To overcome these limitations, we propose MemReread. Built upon streaming reading, MemReread circumvents intermediate retrieval. It triggers question decomposition and rereading when the final memory is insufficient, enabling the recovery of indirect facts that were prematurely discarded. This design supports non-linear reasoning while preserving the inherent logical flow of document comprehension. To further enhance practicality, we introduce a reinforcement learning framework that enhances length extrapolation capability while dynamically determining the number of rereading passes based on task complexity, thereby flexibly controlling computational overhead. Extensive experiments demonstrate that MemReread consistently outperforms baseline frameworks on long-context reasoning tasks, while maintaining linear time complexity with respect to context length.
title MemReread: Enhancing Agentic Long-Context Reasoning via Memory-Guided Rereading
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2605.10268