ScrapMem: A Bio-inspired Framework for On-device Personalized Agent Memory via Optical Forgetting Jiale Chang Nanjing Agricultural University Nanjing, China [email protected]
Yuxiang Ren* Nanjing University Suzhou, China [email protected]
arXiv:2605.03804v1 [cs.AI] 5 May 2026
Abstract
finite context window of current foundation models poses substantial challenges for multimodal memory integration and long-range reasoning, making an efficient external memory mechanism indispensable (Lewis et al., 2020; Lu et al., 2025; Lee et al., 2024).
Long-term personalized memory for LLM agents is challenging on resource-limited edge devices due to high storage costs and multimodal complexity. To address this, we propose ScrapMem, a framework that integrates multimodal data into ”Scrapbook Page.” ScrapMem introduces Optical Forgetting, an optical compression mechanism that progressively reduces the resolution of older memories, lowering storage cost while suppressing low-value details. To maintain semantic consistency, we construct an Episodic Memory Graph (EM-Graph) that organizes key events into a causal-temporal structure. Extensive experiments on the multimodal ATM-Bench showcase that ScrapMem provides three main benefits: (1) strong performance, achieving a new state-of-the-art with a 51.0% Joint@10 score; (2) high storage efficiency, reducing memory usage by up to 93% via optical forgetting; and (3) improved recall, increasing Recall@10 to 70.3% through structured aggregation. ScrapMem offers an effective and storage-efficient solution for on-device long-term memory in multimodal LLM agents.
1
Existing LLM agent memory systems primarily follow two paradigms. The first is parametric memory augmentation, which internalizes knowledge into model weights through pre-training (Brown et al., 2020), fine-tuning (Zheng et al., 2024), or parameter-efficient adaptation such as LoRA (Bai et al., 2025d; Hu et al., 2021). The second is retrieval-augmented memory (Zhong et al., 2024), which encodes user memories as high-dimensional semantic vectors or organizes them into structured knowledge graphs for semantic retrieval and compositional reasoning (Borgeaud et al., 2022; Edge et al., 2024; Gutierrez et al., 2024). Despite progress, current approaches remain limited for multimodal personalized memory. Parametric memory is prone to catastrophic forgetting and lacks interpretability (Luo et al., 2025). Retrieval-based methods struggle to align heterogeneous modalities such as text, vision, and speech within a unified semantic space, leading to weak performance on causal, temporal, and logical reasoning (Bai et al., 2025c; Liu et al., 2024; Zhang and Wang, 2026). Moreover, multimodal memory storage is highly inefficient, imposing prohibitive memory and inference overhead for resource-constrained edge devices (Zeng et al., 2025; Cai et al., 2024; Li et al., 2025).
Introduction
LLM-based intelligent agents are increasingly being deployed on edge devices to enable personalized, long-term interactions while preserving the privacy of user-specific data (Xu et al., 2024; Yu et al., 2024; Fu et al., 2024). This setting requires the agent to continuously integrate both static personal data (e.g., photos, emails, videos, and application records) and dynamic interaction traces (e.g., multi-turn dialogues) as memory inputs (Liu et al., 2025; Wu et al., 2024; Mei et al., 2026), so as to accumulate user-centric knowledge and support reasoning over distant historical experiences (Maharana et al., 2024; Park et al., 2023). However, the
As shown in Figure 1, Recent advances in cognitive neuroscience, vision-language modeling, and optical character recognition offer a promising new direction for multimodal memory design (Bai et al., 2025b; Chen et al., 2024; McClelland et al., 1995). Inspired by the Complementary Learning Systems
* Corresponding author: [email protected]
1
ken consumption can be compressed by nearly an order of magnitude compared with raw text (Wei et al., 2025). Furthermore, the progressive degradation of visual fidelity over time—analogous to the natural aging of a scrapbook—closely resembles the biological mechanism of Optical Forgetting, in which fine-grained details fade while salient structure remains. Motivated by these observations, we propose ScrapMem, a bio-inspired personalized multimodal memory framework for edge devices via optical forgetting. ScrapMem redefines long-term interaction history not as a conventional collection of heterogeneous multimodal records, but as a sequence of scrapbook images. Specifically, ScrapMem consolidates cross-temporal user photos, textual records, behavioral traces, and interaction histories into unified scrapbook pages, which are then transformed through visual encoding and optical perception into compact, information-dense memory carriers. Our Contributions are summarized as follows: • We propose ScrapMem, a bio-inspired multimodal memory framework that models longterm agent memory as a sequence of scrapbook pages, enabling highly efficient ondevice storage and unified multimodal integration.
Figure 1: Comparison between human memory (CLS theory) and Scrapbook Memory. Top: The hippocampus rapidly encodes multimodal episodic experiences, while the neocortex gradually consolidates them into stable long-term knowledge. Bottom: ScrapMem similarly binds heterogeneous user data into scrapbook pages and progressively compresses old memories via optical forgetting, preserving core semantics for efficient retrieval and personalized reasoning on edge devices.
• We introduce Optical Forgetting, a progressive resolution decay mechanism that mimics biological memory aging, which filters trivial details and drastically reduces storage cost while preserving core semantic structure. • We design an Episodic Memory Graph (EMGraph) to organize memory nodes along causal-temporal paths, enabling robust longrange reasoning even under visually degraded memories.
(CLS) theory (McClelland et al., 1995), memory can be modeled through the cooperative dynamics of the hippocampus–neocortex system: the hippocampus rapidly binds visual scenes and contextual cues into episodic memory for one-shot learning, while the neocortex gradually consolidates transient traces into structured long-term knowledge (Sun et al., 2023; Thota et al., 2023). Meanwhile, the human practice of maintaining a scrapbook naturally embodies multimodal information fusion, where heterogeneous artifacts such as photographs, notes, and sketches are aggregated on a single page to form scene-centric memory representations. Recent findings from DeepSeek-OCR further demonstrate that vision can serve as a substantially more efficient carrier of information than text: when multimodal content is rendered as images, to-
• Extensive experiments on ATM-Bench show that ScrapMem achieves new state-of-the-art performance with up to 93% storage reduction, demonstrating its effectiveness and efficiency for edge-deployed personalized agents.
2
Related Work
2.1
Memory Systems for Personalized Agents
Personalized agents rely on dynamic user profiling and persistent memory to sustain consis2
storage and lack explicit modeling of temporal dependencies and causal relations, limiting their support for long-horizon personalized decisionmaking.
tent behaviors and enable long-horizon reasoning.Parametric memory internalizes user preferences via fine-tuning or LoRA (Hu et al., 2021), with hybrid architectures such as NextMem (Zhang et al., 2026) to alleviate forgetting. Retrievalbased memory stores interaction histories for similarity search, with representative systems including MemoryBank (Zhong et al., 2024) and Agentic Unlearning (Li et al., 2026b). Structured and agentic memory organizes knowledge via graphs or hierarchical controllers, including Generative Agents (Park et al., 2023), MemGPT (Packer et al., 2023), A-MEM (Xu et al., 2025), and AgenTEE (Abdollahi et al., 2026). Despite progress, these methods still face challenges in multimodal alignment, temporal reasoning, and on-device efficiency, which motivates our ScrapMem framework. 2.2
Our proposed ScrapMem differs by treating memory as multimodal scrapbook pages. It unifies heterogeneous personal data into compact visual carriers, introduces optical forgetting for progressive compression, and incorporates a graph-based episodic structure for causal-temporal reasoning.
3
Preliminaries
In this section, we formalize long-term personalized referential memory QA as the task for ondevice multimodal agent memory. We consider long-term personalized memory includes a user’s long-term, multimodal, and multisource personal memories. We denote the multimodal personal memory corpus as D, which consists of three types of raw user data:
Visual Memory Agents Based on OCR and VLM
Recent studies explore visual memory as an alternative to token-based storage, leveraging VisionLanguage Models (VLMs) and Optical Character Recognition (OCR) to encode lengthy textual histories into compact image representations. These methods exploit the high information density of visual tokens, enabling substantial reductions in context length and storage costs (Wei et al., 2025).
NV NT I D = {Ii }N i=1 ∪ {Vi }i=1 ∪ {Ti }i=1 ,
(1)
where {Ii } denotes image memories, {Vi } denotes video memories, and {Ti } denotes textual memories. To obtain a unified representation from the raw personal memory data D, we define a memory construction function P that transforms the heterogeneous corpus into a standardized memory store M:
Representative systems include AgentOCR (Feng et al., 2026), which performs segment-level optical caching and reinforcement learning-based self-compression for agent trajectories; MemOCR (Shi et al., 2026), which improves robustness under strict memory budgets through layout-aware visual encoding and adaptive density control; and OCR-Memory (Li et al., 2026a), which stores interaction histories as images and retrieves evidence through locate-and-transcribe pipelines. These works demonstrate that visual memory significantly improves efficiency compared with raw text serialization.
M = P(D),
(2)
where M serves as a generic and unified memory representation for all downstream retrieval and reasoning procedures. Given a query q, the agent retrieves a set of relevant memory items E ⊆ M using a retriever R, and generates an answer â based on the retrieved evidence:
However, existing visual memory agents face three major limitations. First, they are largely textcentric: images serve primarily as containers for rendered text rather than native carriers of multimodal user data such as photos and behavioral records. Second, many methods rely on reinforcement learning for memory optimization, resulting in high training costs and weak cross-domain generalization. Third, they focus on appearance-level
E = R(q, M, k),
(3)
where E ⊆ M denotes the retrieved evidence set. An answerer A then generates an answer conditioned on the query and retrieved evidence: â = A(q, E). 3
(4)
vision tokens Zt , while an OCR module produces textual content Tt .
To model realistic long-term memory dynamics, we further define two cognitive operations in a generic form:
To bridge the modality gap, we further project vision tokens into the textual tokens via a vision-totext transformation:
1. Memory Linking. We define a memory linking function that establishes relational connections between memory items: L : M → RN ×N ,
T̃t = Tt ⊕ g(Zt ),
(5)
where g(·) denotes a semantic description function (e.g. image captioning or summarization) that converts vision tokens into textual descriptions.
where N is the number of memory items in M, and RN ×N denotes the adjacency matrix of relational connections.
Based on T̃t , a large language model extracts semantic nodes, and we directly incorporate raw vision tokens as visual nodes to form a hybrid node set:
2. Memory Forgetting. We define a memory forgetting function that updates memory states over time: F : M → M, (6)
Vt = ELLM (T̃t ) ∪ Zt ,
which models changes in memory accessibility over time.
4
Method: ScrapMem
4.2
EM-Graph Construction
To enable structured reasoning over long-term memories, we organize the extracted node sets into an Episodic Memory Graph (EM-Graph). The EM-Graph is defined as S a event-structured graph G = (V, P), where V = t Vt denotes the global node set and P denotes the units of all episodic memory paths.
Scrapbook Page Consolidation and Optical Perception
Given the multimodal memory corpus D defined in Eq. (1), we first organize heterogeneous user data into temporally grounded scrapbook pages, which serve as the fundamental units of episodic memory. Specifically, all multimodal records within a temporal page are aggregated into a unified page representation: St = C({Ii , Vj , Tk }t ),
(9)
where ELLM (·) denotes an LLM-based semantic extraction function that identifies entities, events, and their relations, and Zt denotes the raw vision tokens treated as explicit visual graph nodes. This process establishes an index–content separation: scrapbook pages retain raw multimodal evidence, while the hybrid node set integrates textual semantics and visual features for downstream retrieval.
Figure 2 illustrates our bio-inspired multimodal retrieval and reasoning framework. Specifically, the process leverages three core stages: Scrapbook Page Consolidation and Optical Perception, EMGraph Construction, and Optical Forgetting, which supports personalized reasoning through episodic memory retrieval. 4.1
(8)
Within each scrapbook page, related nodes are arranged into Episodic Memory Paths (EM-Paths), which capture localized causal and logical event chains. Each EM-Path is an ordered subset of nodes originating from the same temporal page:
(7)
(k)
Pt
where C(·) denotes a temporal consolidation function, St represents the constructed scrapbook page at time step t.
= vt,1 , vt,2 , . . . , vt,lk ,
vt,i ∈ Vt , (10)
where k indexes distinct semantic paths within page t. Intuitively, EM-Paths model coherent eventcentric narratives (e.g., diagnosis → treatment → recovery), forming the basic units for multi-hop reasoning.
Each scrapbook page preserves both highfidelity visual content and textual information. To enable efficient storage and unified processing, we introduce an optical perception pipeline that transforms the raw page into textual descriptions. Concretely, a vision encoder extracts a sequence of
To facilitate efficient matching during retrieval, we explicitly encode node–path relationships via a 4
1
Scrapbook Page Consolidation & Optical Perception
… Images
Videos
2
Scrapbook Page
Multimodal Memory Corpus Temporal Consolidation
EM-Graph Construction
3
Temporal Degradation
Hybrid Node Sets from All Pages
…
…
Optical Forgetting
Original Page
Faded Page
Increase
…
Texts
…
Optical Perception Pipeline
Vision Encoder
Episodic Memory Graph (EM-Graph)
Vison Decoder
OCR
Nodes
(Description)
(Text) Visited hospital due to fever. Doctor diagnosed influenza and prescribed meds.
Vision Tokens
Fading
Semantic Node
A person on a hospital bed. A doctor is checking the patient.
Visual Node
(Enriched Text)
Updated EM-Graph
EM-Paths
LLM Semantic Extraction Hybrid Node Set Visual Nodes (Vision Tokens)
…
Query
…
…
Semantic Nodes (Textual)
Node Extraction
…
…
Retriever Query Nodes
What was the diagnosis and treatment?
…
Prune
Q-matrix
…
Q-matrix Matching 1 0 1
… …
1
1
0
0
1
1
…
0
…
…
…
…
…
1
0
0
…
1
1
Storage & Computation Efficiency
Retrieved EM-Paths
Answerer
… … …
Cognitive Filtering for Stable Reasoning
Predicted Answer Diagnosis: Influenza Treatment: Medication and rest.
Figure 2: Overview of the ScrapMem. (1) Consolidation and Perception: Unifies heterogeneous records (images, videos, text) into hybrid representations via OCR and vision-to-text extraction. (2) EM-Graph Construction: Organizes nodes into an Episodic Memory Graph with event-centric paths (EM-Paths) for structured retrieval and multi-hop reasoning. (3) Optical Forgetting: Compresses outdated memories through temporal degradation to reduce costs while preserving salient knowledge. The system retrieves relevant EM-Paths to generate personalized, evidence-grounded responses.
4.3
binary incidence matrix (Q-matrix):
Optical Forgetting
To model long-term memory updating under limited storage and cognitive constraints, we propose an optical forgetting mechanism to gradually compress and fade outdated scrapbook pages over time.
( 1, Qij = 0,
vj ∈ Pi , Q ∈ {0, 1}|P|×|V| , otherwise, (11) where P = {Pi } denotes the set of all EM-Paths. This structure enables efficient matching between query nodes and candidate paths by measuring node overlap.
For a scrapbook page at time step t, its information fidelity decays with temporal interval τ . Instead of modeling raw pixel-level degradation explicitly, we formulate the forgetting process as a time-dependent lossy transformation:
For retrieval, given an input query q, we first process q through the same optical perception and LLM extraction pipeline to yield a set of query nodes. Following the problem formulation in Preliminaries, our retriever R leverages the node–path incidence matrix Q to measure semantic overlap between query nodes and graph nodes, and returns the top-k most relevant EM-Paths as retrieved memory evidence:
(τ )
St
= Dτ (St ),
(12)
where Dτ (·) is a temporal degradation operator that gradually eliminates trivial visual details and redundant textual contents from the original scrapbook page. As the degree of forgetting intensifies, finegrained visual and textual clues within the scrapbook page become less accessible, which inevitably degrades the optical perception and semantic node extraction procedure. Accordingly, the original hybrid node set evolves into a condensed subset:
E = R(q, M, k), where E ⊆ M denotes the retrieved evidence set consisting of salient episodic memory paths. The retrieved evidence E is then fed into the answerer A for downstream reasoning and response generation, producing the final predicted answer â = A(q, E).
(τ )
Vt
⊆ Vt ,
(13)
where only semantically salient and structurally critical nodes are retained after temporal fading. 5
This condensation further drives the evolution of the event-structured EM-Graph. Nodes that can no longer be reliably perceived or semantically interpreted are eliminated, and the corresponding episodic memory paths containing these faded nodes are pruned. The evolved graph after optical forgetting is formalized as: G (τ ) = V (τ ) , P (τ ) , (14)
we employ Qwen3-VL-2B-Instruct (Bai et al., 2025a) as the memory processor, all-MiniLM-L6v2 (Reimers and Gurevych, 2019) as the default retriever embedding model, and set the retrieval budget top-k=10. 5.2
In this section, we conduct extensive experiments on ATM-Bench to evaluate the overall performance improvement. Table 1 reports the main results.
where V (τ ) denotes the pruned global node set, and P (τ ) is the condensed collection of survived EM-Paths. The evolved graph preserves high-level causal and event-level semantic structures while discarding transient, noisy, and time-decayed details.
State-of-the-Art Performance. The experimental results demonstrate that ScrapMem (No-Forget) achieves a Joint@10 score of 51.0% on the full ATM-Bench dataset, outperforming the previous strong baseline ATM-RAG (48.6%) and establishing a new state-of-the-art performance on this benchmark. These results demonstrate the effectiveness of our integrated framework, which leverages Scrapbook pages for multimodal aggregation and EM-graphs for structured path indexing. ScrapMem surpasses baseline methods on complex crossmodal memory QA tasks.
From the system perspective, optical forgetting plays two essential roles in our memory framework. First, it alleviates storage and computational overhead by compacting obsolete long-term memories within the memory store M. Second, it acts as a native cognitive filtering mechanism, ensuring that downstream retrieval and multi-hop reasoning rely on stable, salient, and long-lasting memory patterns.
5
Experiments and Results
5.1
Experimental Setup
Main Results
Superior List Recall Capability ScrapMem (NoForget) demonstrates a substantial advantage on the challenging List Recall (R) task, achieving a score of 50.4%, which significantly outperforms HippoRAG2 (39.3%) and ATM-RAG (32.4%). When processing fragmented, heterogeneous evidence, the Scrapbook Page aggregates daily texts and images into a unified visual layout. This enables the model to capture correlated contextual information comprehensively during retrieval, greatly improving the completeness of personalized memory retrieval in complex scenarios.
Datasets and Metrics. We evaluate ScrapMem on ATM-Bench (Mei et al., 2026), a challenging longterm multimodal personalized memory benchmark containing four years of real-world personal data across heterogeneous sources (emails, images, and videos). Following the official standard protocol, we report Question Type Score (QS) for answer accuracy, Recall@10 (R@10) for retrieval quality, and Joint@10 to measure end-to-end performance. We further break down performance over three question types: Number (N), List Recall (R), and Open-ended (O).
High Retrieval Precision. ScrapMem (No-Forget) achieves superior retrieval performance with an R@10 score of 70.32%, making it the only system across all baselines to exceed 70%. This remarkable result verifies the efficacy of the EMGraph mechanism and the two-stage retrieval pipeline. The hybrid strategy first performs dailylevel matching and then fine-grained evidence reranking, effectively boosts overall retrieval recall.
Baselines. We compare ScrapMem against two categories of baselines: (1) Memory Agents, including A-Mem (Xu et al., 2025) and Mem0 (Chhikara et al., 2025), (2) RAG Systems: represented by HippoRAG2 (Gutierrez et al., 2025) and ATM-RAG (Mei et al., 2026). We also include an Oracle setting with ground-truth evidence as the performance upper bound.
Robust Memory Forgetting. After adopting optical forgetting, with degraded visual inputs, ScrapMem still retains strong performance, achieving a Joint@10 score of 46.9% and an R@10 score of 66.1%. In particular, performance under optical forgetting substantially surpasses A-Mem (44.0%)
Implementation Details. We access GPT-5-mini via the OpenAI API for the LLM-based judge, 6
#
Memory
System
ATM-Bench
Rep.
QS
R@10
Joint@10
N
R
O
– DM SGM
0.2 70.0 77.8
– – –
– – –
0.0 81.8 85.0
0.0 69.3 90.4
0.6 61.9 69.5
DM DM DM DM
46.1 44.8 43.5 41.5
66.6 66.4 61.9 61.9
44.0 42.8 41.8 38.4
55.0 57.2 57.2 58.6
27.0 16.9 25.9 25.9
44.9 43.6 48.4 33.7
HippoRAG2 HippoRAG2 Self-RAG Self-RAG ATM-RAG ATM-RAG
DM SGM DM SGM DM SGM
42.9 47.7 42.1 50.3 42.0 51.0
66.4 69.6 61.8 68.7 61.8 68.7
41.5 46.9 42.8 48.2 41.3 48.6
58.6 59.4 46.4 59.7 50.6 60.3
34.9 39.3 33.1 35.3 31.0 32.4
34.1 41.8 30.9 48.4 38.9 48.2
ScrapMem (No-Forget) ScrapMem
Graph Graph
52.5 48.4
70.3 66.1
51.0 46.9
57.2 55.3
50.4 45.3
48.8 42.8
Upper / Lower Bounds 1 2 3
No-Evidence Oracle Oracle
Memory Agents 4 5 6 7
A-Mem (Piled) A-Mem (Linked) Mem0Agentic Mem0Plain
RAG Systems 8 9 10 11 12 13 Ours 14 15
Table 1: Overall performance comparison across models on the ATM-Bench dataset. QS is the overall comprehensive metric. N, R, and O denote the accuracy of Number, List Recall, and Open-ended questions. ScrapMem (No-Forget) achieves state-of-the-art results on Joint@10 and the R@10, and surpasses existing baseline methods across key metrics.
and Mem0 (41.8%), and reaches the same level as HippoRAG2 (46.9%). This indicates that the nodes and EM-paths extracted and stored in the EM-Graph maintain robust semantic foundations when visual information is impaired. Furthermore, optical forgetting serves as an effective mechanism to filter redundant information. 5.3