Evaluate Long-Term Personalized Memory Across Multi-Session Dialogues
git clone --recurse-submodules https://github.com/ai-forever/RUMBA.gitThe following environment was used for full reproduction.
Python version: 3.11.13
pip version: 24.0
Create and activate a virtual environment, then install the dependencies:
python -m venv venv
source venv/bin/activate
pip install --no-cache-dir \
--extra-index-url https://download.pytorch.org/whl/cu121 \
-r requirements.txtOS: Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Kernel: Linux 6.8.0-1015-nvidia #16-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 2 16:23:51 UTC 2024
Architecture: x86_64
glibc: 2.35
GPU:
- 2 × NVIDIA A100-SXM4-80GB
NVIDIA Driver: 560.35.03
CUDA Driver API: 12.6
CUDA Toolkit: not installed (nvcc not found)
Copy the example environment file and fill in the required variables:
cp env.example .envneo4j-community 5.26.0, used bygraphitiandmemOS. It must be installed and run locally on your server.qdrant 1.14.0, used bymemOS. It must be installed and run locally on your server.ChromaDB, used bycortex. It is installed automatically throughrequirements.txtand run locally through its CLI.
Most LLMs are accessed through OpenRouter using an OpenAI-compatible API. To reproduce the experiments, you need an OpenRouter API key.
The experimental pipeline consists of two main stages.
At this stage, the dataset is ingested into memory frameworks that maintain persistent storage, such as databases, vector stores, or graph structures. This stage is skipped for full-context evaluation.
- Before ingestion, all existing user memories are deleted to prevent contamination between experiments.
- The dataset is processed as user–assistant message pairs.
- Each pair is associated with a specific user and processed sequentially according to the chronological order of that user’s sessions.
- Parallel processing is used only across different users.
During this phase, each framework:
- processes incoming conversational message pairs;
- extracts or stores relevant information;
- saves the resulting information in its internal memory representation.
The base script for this stage is evaluation/run_experiments_add.py.
This stage uses the lighteval framework.
For each question in the dataset:
-
Retrieval (
search) The system retrieves relevant memories from storage using the user ID and the question. This step is skipped for full-context evaluation, in which all user sessions are included directly in the prompt. -
Prompt Construction A standardized instruction prompt is constructed. It includes:
- the retrieved memories, formatted with timestamps;
- the question and its timestamp.
-
Answer Generation The answer is generated using the configured answer model described below.
-
Evaluation (
LLM-as-a-Judge) The generated answer is evaluated against the reference answer by an LLM judge.
The base script for this stage is evaluation/run_lighteval.py.
-
Embedding models
- Russian: ai-forever/FRIDA
- English: Qwen/Qwen3-Embedding-0.6B
-
Answer model
- openai/gpt-4.1-mini, used for RAG-based methods
-
LLM-as-a-Judge models
- Russian: ai-forever/pollux-judge-32b
- English: deepseek/DeepSeek-R1
The dataset is available in two representations:
- Local JSON files under
evaluation/data, used during Stage 1. - A public Hugging Face dataset, used by lighteval during Stage 2.
The dialogue and question content is identical in both representations. Only the file structure and field names differ.
The data-processing scripts are located in evaluation/data/scripts.
To evaluate different memory implementations consistently, all frameworks and model-based baselines are wrapped in a unified interface:
class MemoryService:
async def clear_user_collection(
self,
user_id: str,
):
"""Delete all memories associated with the given user."""
async def add_one(
self,
user_id: str,
payload: Any,
timestamp: datetime,
):
"""Process a payload and add it to the user's memory."""
async def get_relevant_memories(
self,
user_id: str,
message: str,
query_date: datetime,
lan: str,
):
"""Retrieve relevant memories and construct the answer prompt."""All add and evaluation scripts are run in the same environment configured in the Setup Instructions. The add stage is required for all experiments except full-context runs.
For every framework or model and every language (ru for Russian and en for English), the Makefile provides separate ready-to-use commands.
For the add stage, which does not apply to full-context experiments:
make run-<framework>-add-<ru/en>For the evaluation stage:
make run-<framework>-lighteval-<ru/en>A separate experiment must be run for each language.
Do not run experiments for the same framework in parallel, for example, on the Russian and English subsets simultaneously. Most frameworks use the same database collections for both languages, so concurrent runs could interfere with one another. This restriction does not apply to full-context experiments.
After evaluation is complete, a DataFrame containing the score distribution and aggregate scores is printed to the terminal. The results are also saved to:
evaluation/results/lighteval_out/detailsevaluation/results/lighteval_out/results
All artifacts for the experiments reported in the paper are provided in the corresponding method-specific directories.
memOS is included as a Git submodule and must be run locally as a server. It requires separately configured neo4j and qdrant databases.
It also requires a separate Python environment. See the memOS repository for environment setup instructions.
To configure and run the memOS server for RUMBA evaluation, follow the instructions in memos/README.md. After starting the server, run the corresponding make commands described above.
mem0 is accessed as an external service. To use it, register an account at mem0.dev.
A paid plan is required to process the entire dataset in a single run or to evaluate both languages. The free plan can be used for smaller test runs.
Important considerations:
- Before running the
addscript, create an empty project in your organization. The endpoint for deleting user memories did not work reliably during our experiments, but clearing existing memories is necessary to prevent contamination between runs. - Create another empty project before running an experiment for a different language or graph configuration.
- Copy the new API key and project ID into the
.envfile. - After running the
addscript, wait until all memories have finished appearing in the project. Memory creation requests are queued and processed in the background, and the processing time is not specified.
graphiti is included as a Git submodule. It requires a separately configured local neo4j database.
cortex is included as a Git submodule. It uses a local ChromaDB database, and the required Python package is installed automatically.
A small modification is required to enable custom local embedding models. Open cortex/cortex/constants.py and replace the LOCAL_EMBEDDING_MODELS variable with:
LOCAL_EMBEDDING_MODELS = {
"all-MiniLM-L6-v2": 384,
"all-mpnet-base-v2": 768,
"sentence-transformers/all-MiniLM-L6-v2": 384,
"sentence-transformers/all-mpnet-base-v2": 768,
"ai-forever/FRIDA": 1536,
"Qwen/Qwen3-Embedding-0.6B": 1024,
}Before running the add script, start ChromaDB:
make run-chromadbAfter completing these steps, you can run the Cortex experiments using the corresponding make commands.
In the full-context setting, the entire dialogue history, including all sessions associated with a user, is included in a single answer prompt.
Both open-source and proprietary models are accessed through the OpenRouter API.
See the Makefile for model-specific commands. You can also evaluate any publicly available model by changing the answer_model argument.
To evaluate a new model or framework, create a service that implements the methods defined by the abstract interface in services/interface.py.
See the existing implementations in the services/ directory for examples. Depending on the framework, you may also need to modify the base-script arguments (e.g, technique_type for your method) or add new environment variables (e.g., to configure lighteval parameters).
| Agent/RAG-like | ru (POLUX judge) | en (Deepseek-R1 judge) |
|---|---|---|
| mem0g (atemporal) | 0.3493 | 0.3526 |
| graphiti (open-source zep) (FRIDA | Qwen3-Embedding-0.6B) | 0.4271 | 0.4511 |
| mem0 | 0.5321 | 0.5412 |
| cortex (FRIDA | Qwen3-Embedding-0.6B) | 0.6824 | 0.5580 |
| simple RAG (FRIDA | Qwen3-Embedding-0.6B) | 0.6889 | 0.6546 |
| memOS (FRIDA | Qwen3-Embedding-0.6B) | 0.6682 | 0.6999 |
| Full context | ||
| llama-4-maverick (1M) | 0.4835 | 0.5081 |
| minimax/minimax-01 (1M) | 0.5671 | 0.5742 |
| gpt4.1-mini (1M) | 0.6008 | 0.6293 |
| gemini-3.1-flash-lite (1M) | 0.7006 | 0.6909 |
| x-ai/grok-4.1-fast (2M) | 0.7622 | 0.7959 |
| claude-sonnet-4.6 (1M) | 0.7861 | 0.8198 |
| gpt-5.4 (1.05M) | 0.8360 | 0.8399 |
If you use RUMBA in your research, please cite:
@misc{shevtsova2026rumbarussianusermemory,
title = {RUMBA: Russian User Memory Benchmark},
author = {Elizaveta Shevtsova and Inna Glebkina and Mark Baushenko and Pavel Gulyaev and Alena Fenogenova},
year = {2026},
eprint = {2607.21447},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2607.21447}
}