NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ConvMem: Convolutional Memory for Long-Context Reasoning

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

TL;DR

ConvMem is a training-free, highly parallelizable framework that reformulates long-context LLM reasoning as a hierarchical convolution. By treating a prompted LLM as a semantic convolutional kernel, it compresses linear text processing into a logarithmic tree structure, drastically reducing inference latency while avoiding the overfitting pitfalls of reinforcement learning-based memory agents.

What Problem Does This Paper Address?

Large Language Models (LLMs) frequently struggle with extremely long documents. Standard self-attention mechanisms suffer from quadratic computational complexity ($O(N^2)$), and models often fall victim to the "lost-in-the-middle" phenomenon, where reasoning performance degrades for information located mid-document.

To scale up, recent approaches have turned to sequential memory agents (like MemAgent) that process text linearly chunk-by-chunk to achieve linear complexity ($O(N)$). However, this introduces a strict temporal dependency bottleneck: you cannot process chunk $t$ until chunk $t-1$ is finished, leading to high inference latency. Furthermore, these agents rely heavily on reinforcement learning (RL) to optimize memory update policies. The authors reveal that this RL training causes models to overfit to specific datasets, leading them to hallucinate answers based on pre-trained parametric knowledge rather than faithfully reasoning over the provided text.

Methods

ConvMem introduces a training-free framework inspired by Convolutional Neural Networks (CNNs), mapping core computer vision concepts directly to textual reasoning:

  • Semantic Convolutional Kernel: A frozen LLM is prompted to act as a kernel ($\mathcal{K}_{LLM}$). It scans local text segments, filters out noise, compresses token length, and outputs a condensed summary along with a discrete relevance score ($r \in \{0, 1, 2\}$) indicating if the segment is irrelevant, relevant, or critical.
  • Configurable Strides: Instead of rigid partitioning, ConvMem uses overlapping sliding windows (stride $S < W$). This ensures contextual continuity across boundaries and enables "multi-view" robustness by scanning tokens multiple times from different window positions.
  • Skip Connections: To prevent fine-grained details (like dates or exact names) from being lost during hierarchical summarization, high-confidence raw segments ($r=2$) bypass intermediate layers via a semantic highway and are passed directly to the final aggregation layer.
  • Multi-Kernel Convolution: Complex queries are decomposed into independent sub-questions (channels). Distinct kernels process these channels in parallel, preventing orthogonal logical threads from interfering with one another.

Instead of a linear chain, this architecture processes text segments concurrently at each layer, transforming the information flow into a logarithmic tree structure ($O(\log N)$ depth) that allows massive parallelization.

Figure 2: The overall workflow of ConvMem. (a) Query

Datasets

The authors evaluated ConvMem across context lengths ranging from 28k to 896k tokens using two main benchmarks:

  1. RULER-HotpotQA (In-Distribution): A benchmark that adapts multi-hop questions into a long-context Needle-in-a-Haystack (NIAH) paradigm. This dataset was used during the training of baseline RL memory agents.
  2. RULER-2WikiMultiHopQA (Out-of-Distribution): A novel, more rigorous long-context dataset synthesized by the authors using the same construction protocol but based on the 2WikiMultiHopQA corpus. This serves as a strict out-of-distribution (OOD) testbed to isolate genuine reasoning from dataset-specific memorization.

Key Insights and Ideas

  • Exposing the RL Overfitting Trap: One of the paper's most striking findings is that RL-trained memory agents often prioritize memorized priors over input evidence. For instance, when a dataset contains a typo in its ground-truth label (e.g., "Levni Yilmaz" instead of the context's actual text "Lev Yilmaz"), RL agents blindly output the memorized typo. ConvMem, being training-free, faithfully extracts the exact context, demonstrating true in-context reasoning.
  • The Power of Multi-View Scanning: Single-pass scanning is highly vulnerable to boundary truncation. The authors show that an over-scanning factor of 5× (processing tokens multiple times via overlapping strides) provides the optimal balance between context coverage and noise reduction.
Figure 4: (Left) Higher over-scanning factors (W/S) improve recall by mitigating segmentation boundaries, optimal at 5×. (Right) The absence of the residual path results in noticeable degradation, confirming the necessity of propagating raw high-fidelity evidence.

Key Results

  • Superiority Over Training-Free Baselines: ConvMem significantly outperforms vanilla LLMs (Qwen2.5-32B-Instruct) and standard retrieval methods like RAG-BM25, which struggle with multi-hop logic due to retrieving isolated chunks.
  • Robust OOD Generalization: While RL-trained specialists like MemAgent achieve high scores on their training domain (RULER-HotpotQA), their performance collapses on the unseen RULER-2WikiMultiHopQA dataset. ConvMem maintains high accuracy across both, proving its robustness.
  • Model-Agnostic Scaling: ConvMem requires zero parameter updates and can be applied out-of-the-box to various model sizes. It yields consistent performance gains when scaling from 7B to 72B parameter backbones.
Figure 3: ConvMem yields consistent performance im- provements across diverse backbone sizes (7B-72B), validating its effective scaling capabilities.

Limitations and Future Work

Despite its latency advantages, ConvMem introduces a token consumption trade-off. Because it utilizes overlapping strides and multi-channel query decomposition, the total computational cost (in terms of total tokens processed) is higher than simple linear scanning methods.

Additionally, the framework is highly dependent on query decomposition. If the backbone LLM fails to correctly break down a complex user query into orthogonal sub-questions at the very beginning, the subsequent convolutional kernels will operate on incomplete or flawed premises. Future work will likely target optimizing token efficiency and making the query decomposition step more resilient.

Summary updated

BibTeX
@misc{zhang2026convmem,
  author = {Hongming Zhang and Zhaozhen Gu and Fengshuo Bai and Ming Hao and Qingyang Zhang and Yuanyuan Wang and Shiyang Tang and Yanna Wang and Bo Xu},
  title = {{ConvMem: Convolutional Memory for Long-Context Reasoning}},
  year = {2026},
  eprint = {2609.10441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10441},
}
Figure