Manuscript Offprint

arXiv:2609.10441

ConvMem: Convolutional Memory for Long-Context Reasoning

Hongming Zhang, Zhaozhen Gu, Fengshuo Bai, Ming Hao, Qingyang Zhang, Yuanyuan Wang, Shiyang Tang, Yanna Wang, Bo Xu

Abstract

While Large Language Models (LLMs) have demonstrated impressive capabilities, they often struggle with extremely long contexts due to fixed context limits. To address this, sequential approaches like MemAgent extend the effective context by reading text in segments and iteratively updating a fixed-size memory. However, this sequential paradigm suffers from high latency and requires costly reinforcement learning (RL) training, which can lead to overfitting on specific datasets. To overcome these limitations, we propose ConvMem, a training-free, highly parallelizable framework that reformulates long-context reasoning as a hierarchical convolution. Inspired by CNNs, ConvMem treats an LLM prompted with a specific query as a convolutional kernel. This kernel summarizes text segments hierarchically, shortening the reasoning path from a linear chain into a logarithmic tree. Specifically, ConvMem integrates Configurable Strides and Skip Connections to ensure robust evidence capture and propagation, while employing Multi-Kernel Convolution to decompose complex queries into disentangled semantic channels. This design not only mitigates error accumulation but also enables massive parallelization across both text segments and reasoning threads. Experiments on RULER-HotpotQA and RULER-2WikiMultiHopQA demonstrate that ConvMem outperforms training-free baselines and avoids the risk of overfitting to parametric priors often observed in RL-trained models on out-of-distribution tasks.

1 Introduction

The capability to process extremely long contexts, ranging from digesting entire books to executing complex multi-step reasoning, has become a central objective for large language models (LLMs) (Achiam et al., 2023; Liu et al., 2024a; Team et al., 2025). While advancements in positional encoding and attention mechanisms (Su et al.,

2024; Beltagy et al., 2020; Liu et al., 2023) have theoretically extended context windows to millions of tokens, practical deployment faces bottlenecks regarding inference latency and performance degradation. Specifically, standard self-attention suffers from quadratic complexity (O(N2)O(N^2)), making it prohibitive for massive inputs. Furthermore, even models capable of processing long texts often exhibit the lost-in-the-middle phenomenon (Liu et al., 2024b), where reasoning performance degrades as context length increases.

To address these scalability issues, recent research has pivoted towards memory-based agents, such as MemAgent (Yu et al., 2025), Mem-α\alpha (Wang et al., 2025), and grounded-memory agents (Yang et al., 2025; Cui et al., 2025). By treating text as a sequential stream with iterative memory updates, these methods achieve linear complexity (O(N)O(N)). However, this paradigm introduces two critical limitations. The first is the sequential bottleneck, where the strict temporal dependency of memory states prohibits parallelization and results in high inference latency. The second is the risk of overfitting. To optimize memory policies, these systems rely heavily on reinforcement learning (RL) (Sutton and Barto, 2018; Dong et al., 2020; Zhang and Yu, 2020). Our analysis reveals that RL-trained agents tend to overfit to specific datasets, often hallucinating superficially correct answers based on pre-trained knowledge rather than faithfully reasoning over the provided context.

To overcome these challenges, we propose Convolutional Memory (ConvMem), a training-free framework designed for high-fidelity, parallelizable long-context reasoning. Drawing inspiration from convolutional neural networks (CNNs), ConvMem reformulates long-text processing by treating a frozen LLM prompted with a specific query as a semantic convolutional kernel. Unlike sequential approaches, ConvMem scans text segments concurrently at each layer. This hierarchical architecture transforms the information flow from a linear chain into a logarithmic tree structure (O(log⁡N)O(\log N) depth). This topological shift not only accelerates inference via parallelization but also mitigates cumulative error propagation by shortening the reasoning path.

ConvMem incorporates three architectural mechanisms to enhance reasoning fidelity and precision:

  • Configurable Strides for Robust Evidence Capture: Relying on a single pass renders reasoning vulnerable to boundary truncation and model stochasticity. ConvMem introduces overlapping windows to perform multi-view scanning. This approach enables the kernel to cross-verify information across different receptive fields, enhancing the stability and recall of key evidence.

  • Skip Connections for Detail Preservation: Hierarchical summarization inevitably compresses information, risking the loss of fine-grained details. We introduce a semantic residual mechanism where high-confidence raw evidence bypasses intermediate layers and propagates directly to the final reasoning stage, ensuring the answer is grounded in precise details.

  • Multi-Kernel Convolution for Semantic Disentanglement: Complex tasks often involve intertwined logical threads. ConvMem decomposes queries into sub-questions and deploys distinct kernels to extract relevant information into separate semantic channels, preventing interference between orthogonal reasoning paths.

We evaluate ConvMem on RULER-HotpotQA and RULER-2WikiMultiHopQA (Hsieh et al., 2024; Yang et al., 2018; Ho et al., 2020). Results demonstrate that ConvMem outperforms training-free baselines and exhibits superior generalization compared to RL-trained models in out-of-distribution tasks. Our contributions are threefold:

  • We propose ConvMem, the first training-free, CNN-inspired hierarchical framework that enables parallelizable long-context reasoning by breaking the sequential bottleneck.

  • We empirically expose the overfitting risks of RL-based memory agents, demonstrating that their performance relies heavily on parametric memorization rather than in-context reasoning.

  • We demonstrate that through the principled integration of configurable strides, semantic skip

connections, and multi-kernel convolution, ConvMem establishes a new state-of-the-art for training-free methods, while offering superior generalization compared to RL-trained models.

References (21)