Saved in:
Bibliographic Details
Main Authors: Stern, Benjamin, Nadel, Peter
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.12948
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911593168633856
author Stern, Benjamin
Nadel, Peter
author_facet Stern, Benjamin
Nadel, Peter
contents LLM agents with persistent memory store information as flat factual records, providing little context for temporal reasoning, change tracking, or cross-session aggregation. Inspired by the drawing effect [3], we introduce dual-trace memory encoding. In this method, each stored fact is paired with a concrete scene trace, a narrative reconstruction of the moment and context in which the information was learned. The agent is forced to commit to specific contextual details during encoding, creating richer, more distinctive memory traces. Using the LongMemEval-S benchmark (4,575 sessions, 100 recall questions), we compare dual-trace encoding against a fact-only control with matched coverage and format over 99 shared questions. Dual-trace achieves 73.7% overall accuracy versus 53.5%, a +20.2 percentage point (pp) gain (95% CI: [+12.1, +29.3], bootstrap p < 0.0001). Gains concentrate in temporal reasoning (+40pp), knowledge-update tracking (+25pp), and multi-session aggregation (+30pp), with no benefit for single-session retrieval, consistent with encoding specificity theory [8]. Token analysis shows dual-trace encoding achieves this gain at no additional cost. We additionally sketch an architectural design for adapting dual-trace encoding to coding agents, with preliminary pilot validation.
format Preprint
id arxiv_https___arxiv_org_abs_2604_12948
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Drawing on Memory: Dual-Trace Encoding Improves Cross-Session Recall in LLM Agents
Stern, Benjamin
Nadel, Peter
Artificial Intelligence
I.2.6; H.3.3
LLM agents with persistent memory store information as flat factual records, providing little context for temporal reasoning, change tracking, or cross-session aggregation. Inspired by the drawing effect [3], we introduce dual-trace memory encoding. In this method, each stored fact is paired with a concrete scene trace, a narrative reconstruction of the moment and context in which the information was learned. The agent is forced to commit to specific contextual details during encoding, creating richer, more distinctive memory traces. Using the LongMemEval-S benchmark (4,575 sessions, 100 recall questions), we compare dual-trace encoding against a fact-only control with matched coverage and format over 99 shared questions. Dual-trace achieves 73.7% overall accuracy versus 53.5%, a +20.2 percentage point (pp) gain (95% CI: [+12.1, +29.3], bootstrap p < 0.0001). Gains concentrate in temporal reasoning (+40pp), knowledge-update tracking (+25pp), and multi-session aggregation (+30pp), with no benefit for single-session retrieval, consistent with encoding specificity theory [8]. Token analysis shows dual-trace encoding achieves this gain at no additional cost. We additionally sketch an architectural design for adapting dual-trace encoding to coding agents, with preliminary pilot validation.
title Drawing on Memory: Dual-Trace Encoding Improves Cross-Session Recall in LLM Agents
topic Artificial Intelligence
I.2.6; H.3.3
url https://arxiv.org/abs/2604.12948