RuleMem: Active Rule Memory for Long-Term Conversational Agents

Xingyuan Zeng, Zuohan Wu, Quanming Yao, Yue Wang, Wei Liu +3 more
9/3/2026
cs.CLcs.IR

No official code found. Best implementation: zjunlp/MemBase (49 stars, MIT, last commit 2026-09-03).

Abstract

Question answering agents in long-term conversations must reason over massive, temporally dispersed dialogue histories. However, existing memory mechanisms primarily treat past information as \textit{passively} stored facts, leading to semantic gaps and unreliable reasoning. To address this limitation, we propose RuleMem, a rule-based memory framework that induces reusable logical rules from historical interactions to \textit{actively} guide both evidence retrieval and reasoning. Specifically, RuleMem constructs natural-language Horn clauses from conversations and validates them via a Rule Perplexity Consistency (RPC) mechanism. These induced rules enable the retrieval of semantically distant evidence while providing an explicit logical structure for answer generation. We conducted a comprehensive evaluation of RuleMem on two long-term conversational benchmarks, LoCoMo and LongMemEval_s*. In a rigorous comparison against 14 baselines on LoCoMo, RuleMem achieved the highest accuracy, exceeding the baseline average by 27.47 points (a 54.3% relative improvement).

View on arXivView PDF

Code Implementations(1)

zjunlp/MemBaseCommunity71%
MIT

A Comprehensive Benchmarking Framework for Long-Term Conversational Memory Layers

498Feb 14, 20261 months agoMIT
agent-memoryai-memoryartificial-intelligencebenchmarklarge-language-models+2 more

Similar Papers

Cite this paper

@article{zeng2026rulemem,
  title  = {RuleMem: Active Rule Memory for Long-Term Conversational Agents},
  author = {Xingyuan Zeng and Zuohan Wu and Quanming Yao and Yue Wang and Wei Liu and Libin Zheng and Jiuke Wang and Jian Yin},
  year   = {2026},
  eprint = {2609.03915},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.03915v1}
}

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/2609.03915.svg)](https://codeofpaper.com/paper/2609.03915)

Discussion