[ACL26 Findings] LiCoMemory: Lightweight and Cognitive Agentic Memory for Efficient Long-Term Reasoning
See the code
LiCoMemory is a novel end-to-end agentic memory framework that supports real-time updating and retrieval, enabling efficient and scalable retrieval over multi-session dialogues. LiCoMemory introduces Cognigraph, a lightweight hierarchical graph that utilizes entities and relations as semantic indexing layers, and employs temporal and hierarchy-aware search with integrated reranking for adaptive and coherent knowledge retrieval.
Requirements.txt is included to help get you started. To run LiCoMemory, use the following command:
python main.py -opt config/Memory.yaml -dataset_name <dataset_name> -root <root_name> -query 1
-opt: Path to the configuration YAML file (e.g., config/Memory.yaml)-dataset_name: Name of the dataset (e.g., locomo_0, longmem_ku/lm_1)-external_graph: (Optional) Path to external graph file to load from-root: (Optional) Root directory name for storing results-query: (Optional) Whether to run query and evaluation (1 to enable, 0 to disable). If not specified, will prompt userUpdate config/Memory.yaml to configure:
data_root to your dataset directoryforce: Set True for compulsary graph reconstruction; Set False for loading existing graph structure from given pathenable_visual: Set True for a visual feedback of the retrieved contentenable_CogniRank: Set True to enable the unified rerankenable_llm_eval: Set True to utilize LLM judging for the answer; Set False to enable the exact match evaluationenable_summary: Set True to activate session summary generationWe have incorporated several baseline methods:
The following datasets are utilized for testing:
Use the scirpts in the folder 'dataset' to modify the original dataset into the intended format for LiCoMemory.
LiCoMemory achieves state-of-the-art QA accuracy and recall with lower latency, retrieval volume and token consumption than competing memory frameworks on two long-term dialogue benchmarks across different backbone models, verifying the advantages of its CogniGraph structure and precise retrieval design.
Subset breakdowns also confirm LiCoMemory's consistent superiority across all task types, with the largest improvements in temporal-reasoning and multi-session related queries.
We acknowledge these excellent works for providing open-source code and inspiration: Zep, Mem0, A-Mem, LoCoMo, LongMemEval, MemOS, MemoryBank.
4 commits
Python
100.0%
[ACL26 Findings] LiCoMemory: Lightweight and Cognitive Agentic Memory for Efficient Long-Term Reasoning
See the code
LiCoMemory is a novel end-to-end agentic memory framework that supports real-time updating and retrieval, enabling efficient and scalable retrieval over multi-session dialogues. LiCoMemory introduces Cognigraph, a lightweight hierarchical graph that utilizes entities and relations as semantic indexing layers, and employs temporal and hierarchy-aware search with integrated reranking for adaptive and coherent knowledge retrieval.
Requirements.txt is included to help get you started. To run LiCoMemory, use the following command:
python main.py -opt config/Memory.yaml -dataset_name <dataset_name> -root <root_name> -query 1
-opt: Path to the configuration YAML file (e.g., config/Memory.yaml)-dataset_name: Name of the dataset (e.g., locomo_0, longmem_ku/lm_1)-external_graph: (Optional) Path to external graph file to load from-root: (Optional) Root directory name for storing results-query: (Optional) Whether to run query and evaluation (1 to enable, 0 to disable). If not specified, will prompt userUpdate config/Memory.yaml to configure:
data_root to your dataset directoryforce: Set True for compulsary graph reconstruction; Set False for loading existing graph structure from given pathenable_visual: Set True for a visual feedback of the retrieved contentenable_CogniRank: Set True to enable the unified rerankenable_llm_eval: Set True to utilize LLM judging for the answer; Set False to enable the exact match evaluationenable_summary: Set True to activate session summary generationWe have incorporated several baseline methods:
The following datasets are utilized for testing:
Use the scirpts in the folder 'dataset' to modify the original dataset into the intended format for LiCoMemory.
LiCoMemory achieves state-of-the-art QA accuracy and recall with lower latency, retrieval volume and token consumption than competing memory frameworks on two long-term dialogue benchmarks across different backbone models, verifying the advantages of its CogniGraph structure and precise retrieval design.
Subset breakdowns also confirm LiCoMemory's consistent superiority across all task types, with the largest improvements in temporal-reasoning and multi-session related queries.
We acknowledge these excellent works for providing open-source code and inspiration: Zep, Mem0, A-Mem, LoCoMo, LongMemEval, MemOS, MemoryBank.
4 commits
Python
100.0%