LiCoMemory: Lightweight and Cognitive Agentic Memory for Efficient Long-Term Reasoning

Zhengjun Huang, Zhoujin Tian, Qintian Guo, Fangyuan Zhang, Yingli Zhou, Di Jiang, Zeying Xie, Xiaofang Zhou

TL;DR

LiCoMemory introduces CogniGraph, a lightweight, hierarchical memory framework that decouples knowledge storage from semantic organization by treating the knowledge graph as an indexing layer rather than a heavy data repository. By combining this multi-layered graph structure with a hierarchy- and temporally aware reranking mechanism, it enables real-time memory updates and highly accurate context retrieval for long-term LLM agent interactions.

What Problem Does This Paper Address?

While Large Language Model (LLM) agents excel at reasoning, they are severely bottlenecked by finite context windows and a lack of persistent long-term memory. Traditional Retrieval-Augmented Generation (RAG) and existing graph-based memory frameworks attempt to solve this by structuring past conversations into relational graphs.

However, most current approaches suffer from coupled and redundant graph structures—they intertwine heavy semantic text directly within the graph's nodes and edges. This results in massive computational overhead during updates and retrieval. For instance, state-of-the-art frameworks like GraphRAG can take up to 20 minutes for graph construction per dialogue and over 2 minutes in query latency, making real-time, multi-session human-agent interaction practically impossible.

Motivation of LiCoMemory compared to existing heavy, flat graph frameworks.

Methods

The authors propose LiCoMemory, an end-to-end agentic memory framework built around a novel three-layer hierarchical graph called CogniGraph:

  1. Session Level: Stores high-level textual summaries of individual dialogue sessions along with distilled keywords (keys) representing central entities and temporal markers.
  2. Entity-Relation Level: A lightweight knowledge graph containing only essential identifiers for entities and relations (no verbose descriptions), which are hyperlinked back to their parent session summaries.
  3. Chunk Level: The lowest layer, storing the raw dialogue text chunks. Bidirectional hyperlinks connect these chunks directly to the extracted triples.
Overview of the LiCoMemory workflow, detailing query processing, reranking, and real-time updates.

Query Processing and Integrated Reranking

When a user queries the agent, LiCoMemory executes a top-down retrieval pipeline:

  • Entity Extraction & Session Matching: It extracts entities from the query and matches them against the session-level keys to prioritize relevant conversation sessions.
  • Graph Traversal: It uses the query entities as anchors to locate fine-grained triples within the prioritized sessions.
  • Unified Reranking: Triples are scored using a combination of session-level similarity ($S_s$), triple-level similarity ($S_t$), and a Weibull-based temporal decay function ($w(\Delta\tau)$). This decay function penalizes outdated information while preserving a long-tailed contribution for older, yet still highly relevant, context.

Real-Time Updates

During ongoing interactions, new dialogue chunks are processed incrementally. Triples are extracted and deduplicated using type-aware and semantic similarity matching. Instead of expanding the graph indefinitely, duplicate entries simply receive additional hyperlinks pointing back to the new source chunks, keeping the graph compact.

Datasets

The framework was evaluated on two public long-term dialogue benchmarks:

  • LongMemEval: Contains 500 dialogues (averaging 50.22 sessions and ~101k tokens per dialogue) paired with 500 evaluation questions across six categories (e.g., temporal reasoning, knowledge update, multi-session consistency).
  • LoCoMo: Focuses on extremely long multi-session dialogues, containing 1,986 questions across five distinct reasoning categories (Single-Hop, Multi-Hop, Open-Domain, Temporal, and Adversarial).

Key Insights and Ideas

  • The Graph as an Index, Not a Vault: Storing verbose text inside graph nodes causes massive memory bloat. Treating the graph strictly as a structural scaffold (a semantic index) that points to raw text chunks yields massive efficiency gains without losing context.
  • Soft Temporal Decay: Instead of hard-cutoff windows for memory, modulating the semantic signal with a Weibull decay function ensures the agent prioritizes recent updates (crucial for knowledge-correction tasks) while maintaining access to foundational historical facts.
  • Hyperlink-Driven Traceability: Bidirectional hyperlinking between abstract summaries, relational triples, and raw text allows the agent to perform multi-granular reasoning—moving fluidly from high-level context down to specific textual evidence.

Key Results

LiCoMemory consistently outperformed established baselines (including Mem0, Zep, A-Mem, and MemOS) in both accuracy and efficiency:

  • Accuracy Boost: On LongMemEval, it surpassed the second-best baseline by 9.0% in accuracy and 9.3% in recall using Llama-3.1-70B-Instruct-Turbo.
  • Latency & Token Reduction: On the LoCoMo dataset, LiCoMemory reduced retrieval latency by 10% and token consumption by 45% compared to Mem0.
  • Real-Time Efficiency: In simulated real-time interactive settings (chunk-by-chunk insertion), LiCoMemory reduced graph construction token costs ($K_G$) by over 3x and cut construction latency ($T_G$) by more than an order of magnitude (e.g., 21 seconds per session vs. 256 seconds for MemOS and 1772 seconds for Mem0).
Ablation study showing the impact of removing structured retrieval, temporal awareness, and summary guidance.

An ablation study confirmed that removing the structured retrieval component caused the most severe performance drops, proving that flat triple retrieval is insufficient for coherent long-term reasoning.

Limitations and Future Work

  • Single Modality: The current framework is strictly limited to text-based conversational data. It cannot natively handle multimodal inputs like images, audio, or structured sensor data.
  • LLM-Dependency for Graph Construction: Extracting triples and generating session summaries still relies on prompting an LLM. As conversational history scales to massive proportions, the frequency of these API/model calls could introduce substantial computational and monetary costs.
  • Future Directions: The authors plan to extend LiCoMemory to multi-agent environments and investigate adaptive memory compression strategies to further boost scalability.

Summary updated

BibTeX
@inproceedings{huang2026licomemory,
  author = {Zhengjun Huang and Zhoujin Tian and Qintian Guo and Fangyuan Zhang and Yingli Zhou and Di Jiang and Zeying Xie and Xiaofang Zhou},
  title = {{LiCoMemory: Lightweight and Cognitive Agentic Memory for Efficient Long-Term Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1835},
}
Figure