Scalaris splits user turns from assistant replies to cut memory context 10x
Storing user interactions and assistant responses separately — a temporal knowledge graph for the first, atomic retrievable units for the second — cuts retrieved context by roughly an order of magnitude without giving up long-term memory accuracy.
On this page
Your team has 3 memory vendors on the shortlist, but the comparison sheet only lists benchmark accuracy. The usual advice is to pick whichever system scores highest on LongMemEval or LoCoMo and move on. That advice hides a second column nobody puts on the sheet: how much retrieved context the answer model has to read for every single reply. Scalaris, a memory architecture from Motilal Oswal Financial Services, argues the fix is not better retrieval but a different storage split, and reports 92.2% on LongMemEval-S with roughly 10x fewer retrieved context tokens than Hindsight [1].
What the user says and what the assistant says age at different rates
Scalaris starts from a claim about lifetimes. What a user says carries preferences, identity and circumstances that stay useful across sessions and keep changing; what the assistant says mostly serves the turn it was written for and goes stale once that turn ends. Most memory systems, Zep and Hindsight among them, put both under one shared representation anyway [1].
The cost of that choice shows up as a trade-off. Per the comparison in the paper's introduction, Zep retrieves relatively little context but scores lower on long-term memory benchmarks, while Hindsight scores substantially higher while retrieving considerably more. Retrieval accuracy and context efficiency pull against each other: more retrieved context buys recall and charges for it in inference cost and latency.
- User interactions: valuable across sessions and evolving, so they get a relational representation — a graph that can express changing facts and entities.
- Assistant responses: largely contextual, so they are decomposed into independently retrievable atomic units and only the matching excerpt is recalled.
- Both: preserved verbatim in a shared history store for the most recent turns.
Long-term memory is a temporal graph, short-term memory is atomic units plus recent turns
The long-term component is built on Graphiti, an open-source temporal knowledge graph framework that the authors substantially modified. It holds an evolving user summary covering attributes, behavioural patterns and focus areas, together with relevant facts, relevant entities and the verbatim user messages those facts came from.
Each incoming user message is ingested as an episode. Entities are extracted, and each keeps a summary of up to 250 characters describing its conversational context. Entity resolution combines exact matching, lexical similarity and embedding similarity, linking to an existing node or creating a new one. Facts are then extracted as relationships between resolved entities, de-duplicated against existing edges, and time-normalised so that explicit dates and relative expressions both map onto a validity interval. When a new fact contradicts an old relationship, the old edge is invalidated rather than deleted, so the user's history survives.
That last step is what the paper calls a bi-temporal model: each fact records both when it was true and when the system learned it. Assistant responses take a different path. Conversations are cut into fixed windows, windows containing only greetings or acknowledgements are discarded, and informative replies are decomposed into self-contained atomic units with references resolved. Keywords and entities are stored alongside as metadata, and the units land in a vector store.
Retrieval begins with query reformulation, turning a pronoun-laden follow-up into a self-contained search key. User memory is then searched three ways: semantically with Cohere's embed-english-v3.0, lexically with BM25 for exact names and rare expressions, and by bounded graph traversal from seed entities. The three ranked lists are fused with Reciprocal Rank Fusion at the default constant k=60, and entities use only two of the three routes.
| Component | What it stores | What it solves |
|---|---|---|
| Session summary | Compressed state of the ongoing dialogue | Intra-session coherence |
| Last-N exchanges | Verbatim recent turns | Coreference and intent tracking |
| Relevant assistant messages | Atomic units from assistant replies | Retrieving an excerpt, not a whole reply |
Keeping assistant messages in short-term memory is deliberate, and the paper gives two reasons. Assistant replies are often useless across sessions, so allowing cross-session retrieval raises context with limited benefit. And in fast-moving domains such as finance, retrieving stale assistant replies raises the chance of hallucination, meaning the model produces plausible-sounding but unsupported content. The behaviour is configurable.
92.2% and 90.77%, with roughly 10x fewer context tokens
Using Qwen3-32B, a comparatively small model, Scalaris reaches 92.2% on LongMemEval-S and 90.77% on LoCoMo, which the paper describes as state-of-the-art on both benchmarks. At the same time it supplies the answer-generation model with approximately 10 times fewer retrieved context tokens than Hindsight. Integrated with the authors' proprietary closed-source assistants, it improved overall response quality by 36% [1].
| Item | Number | Basis |
|---|---|---|
| LongMemEval-S accuracy | 92.2% | Qwen3-32B |
| LoCoMo accuracy | 90.77% | Qwen3-32B |
| Retrieved context tokens | ~10x fewer | versus Hindsight |
| Internal assistant quality | +36% | proprietary assistants, overall response quality |
What those two scores cover, and what they leave out
LongMemEval-S and LoCoMo are English long-term conversational memory benchmarks: given a multi-session history, can the system answer questions about the user correctly. The 92.2 and 90.77 figures come from that measurement setup, compared against systems including Hindsight. They say nothing about Chinese, multilingual or multimodal memory.
The 36% figure needs separate handling. It comes from integrating Scalaris into the authors' own closed-source assistants, with no public dataset and no released evaluation script, so an outside team cannot reproduce it. The abstract does not spell out how overall response quality was judged; that detail sits in the paper's internal evaluation section. Treat the number as a vendor self-assessment, not a third-party finding.
The paper also contains an ablation section. This article relies only on the abstract and the first three sections, so it does not restate experimental numbers it did not read. To learn how much the graph route contributes versus the atomic units, go to the original.
When this architecture does not apply
- When assistant replies must be cited across sessions. By default they stay in short-term memory and are never retrieved across sessions. Quotes, contract clauses and confirmed proposals that resurface days later need configuration changes, and the paper does not report how accuracy or context cost shift once you make them.
- When domain information turns over fast. The paper names finance directly: stale assistant replies raise hallucination risk. That is both why replies are walled off from long-term memory and where the design stops fitting.
- When there is no cross-session personalisation at all. Every user message runs through entity extraction, resolution, fact extraction and temporal normalisation, while the payoff comes from cross-session recall. For single-turn Q&A that pipeline buys nothing back.
- When the deployment is not English. Both benchmarks are English, and the paper reports no evaluation in other languages.
So return to the comparison sheet with one extra question: beyond the accuracy column, how much context does each reply cost? Scalaris answers with a split — user interactions into a temporal knowledge graph, assistant replies into atomic units in a vector store — and its 92.2% and 90.77% arrive under that split, with roughly 10x fewer retrieved context tokens than Hindsight [1]. The precondition is equally explicit: you need cross-session memory, and your assistant's own words never need to be dug up the next day.
