Manuscript Offprint
arXiv:2610.11776DPPM: Dual-Path Parametric Memory for Personalized Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Long-term personalization requires language models to use interaction history to track users' preferences across sessions. Parametric memory encodes this interaction history into model parameters or adapters, reducing the need to include it in the inference context. However, independent context compilation leaves cross-session integration unspecified, while recurrent updates can attenuate earlier evidence. To address these challenges, we propose Dual-Path Parametric Memory (DPPM). Its Evidence path directly pools representations of the interaction history to preserve earlier evidence, while its Delta path sequentially updates an associative state to capture changes. Fusing both outputs produces history-conditioned LoRA adapters that combine evidence accumulation with ordered revision. Across multiple backbones, DPPM outperforms the evaluated baselines, achieving 54.22% on PersonaMem-v2 and 86.79% on PrefEval. These results suggest that DPPM provides a simple and effective design choice for cross-session personalized parametric memory.
1 Introduction
As large language models (LLMs) become persistent personal assistants, personalization increasingly depends on long-term memory. Such memory must preserve users' preferences, backgrounds, and constraints across sessions to inform subsequent responses (Liu et al., 2026a; Chen et al., 2026). To support this continuity, existing systems maintain textual records and construct response contexts through summarization, retrieval, or explicit memory editing (Zhong et al., 2023; Packer et al., 2024; Chhikara et al., 2025). While these records are easy to inspect and maintain, their effectiveness depends on accurate extraction, retrieval, and contextual reasoning, and including more of the interaction history increases inference-time context costs.

Figure 1: Illustrative comparison of cross-session memory. (a) Context compilation produces separate LoRA adapters. (b) Recurrent updates may dilute earlier evidence. (c) DPPM combines evidence accumulation and sequential revision to preserve dietary constraints while tracking preference changes.
To reduce reliance on the interaction history at inference time, alternative approaches encode it into parameters, adapters, or internal states along two directions. Context compilation methods, such as Doc-to-LoRA (Charakorn et al., 2026) and SHINE (Liu et al., 2026b), use hypernetworks to map individual contexts to LoRA adapters. State maintenance methods integrate information sequentially. RPMem (Zhao et al., 2026) recurrently consolidates session representations into memory adapters, while Metis (Zhang et al., 2026) updates memory matrices within the backbone.
Despite advances in encoding interaction history and updating memory across sessions, two limitations remain. First, independently compiling segments into adapters does not itself support selective retention and revision as new sessions arrive (Charakorn et al., 2026). Second, recurrent consolidation enables revision, but successive updates to a shared state can attenuate earlier contributions (Zhao et al., 2026; Yang et al., 2025). These limitations motivate preserving direct access to earlier evidence while supporting selective revision as the interaction history grows.
Code: https://github.com/isyuhaochen/DPPM.
To address these challenges, we propose Dual-Path Parametric Memory (DPPM), which separates evidence accumulation from sequential state updates within a unified parametric memory interface. The Evidence path directly aggregates representations of the interaction history, while the Delta path maintains an associative state in chronological order. Their outputs jointly form the final memory, combining accumulated evidence with order-dependent updates.
Specifically, DPPM learns cross-session memory consolidation on top of a frozen Doc-to-LoRA compiler, avoiding additional compiler training. The compiler encodes chronological segments of the interaction history into representations shared by both paths. In the Evidence path, coordinate-wise, content-dependent weighting directly aggregates these representations, allowing early evidence to contribute without passing through successive state updates. In the Delta path, the same segment representations are processed in chronological order. A content-derived associative key retrieves a prediction of the current segment representation from the existing state, and the prediction residual is written back to capture order-dependent changes. Finally, learnable fusion and scale calibration combine the two outputs, and a frozen decoder converts the fused memory into history-conditioned LoRA adapters for personalized generation. Training updates only the lightweight memory modules, while the compiler, decoder, and language-model backbone remain frozen.
We evaluate DPPM on PersonaMem-v2 (Jiang et al., 2025) and PrefEval (Zhao et al., 2025) across three backbones spanning different architectures and model sizes (2B–7B parameters). With Qwen3-4B, DPPM outperforms the evaluated baselines, achieving 54.22% accuracy on PersonaMem-v2 and 86.79% accuracy on PrefEval. These results suggest that DPPM offers a simple and effective approach to cross-session personalized parametric memory. In summary, this work makes the following three key contributions:
(1) We propose DPPM, separating evidence accumulation from sequential updates for cross-session memory without compiler retraining.
(2) We analyze how direct accumulation mitigates evidence attenuation and sequential updates capture order-dependent changes.
(3) We validate DPPM across benchmarks, model architectures, and scales through ablations and controlled experiments.
2.1 Parametric Memory Workflow
Let denote the interaction history, divided into chronological segments. Each segment is a contiguous portion of the interaction history. The consolidated memory is
where is the compiled memory for segment , and aggregates these memories in chronological order. A decoder produces memory parameters . Let denote the frozen backbone parameters and the application of adapter updates, giving . For a new query , the response distribution is
Here is the jth response token and its prefix. Inference uses compiled memory without the interaction history in the prompt.
2.2 Hypernetwork-Generated LoRA
Following Doc-to-LoRA (Charakorn et al., 2026), the hypernetwork , parameterized by , comprises a context encoder E, which maps text to latent memory, and an adapter decoder D, which generates LoRA factors. For a segment c of the interaction history and target matrix , indexed by , these factors are
They adapt the frozen weight through
Here is the LoRA rank, , and . The dimensions and are the input and output widths of , and scales the update. Once trained, the shared hypernetwork generates adapters in a forward pass without per-segment optimization.
3 Method
3.1 Overview and Setup
Using the interaction history defined in Section 2, we encode each segment with the frozen compiler E. At a fixed position in the compiled
(a) History Encoding
(b) Dual-Path Consolidation
Trainable memory modules

(c) Personalized Inference
Figure 2: Overall architecture of DPPM. A frozen compiler encodes the interaction history segment by segment, and DPPM consolidates the resulting representations through Evidence pooling and sequential Delta updates. Their calibrated outputs are fused and decoded into history-conditioned LoRA adapters.
memory , let denote the segment representation, where is the latent width. We share consolidation parameters across positions and exclude the query and answer from the history.
DPPM instantiates the aggregation operator in Section 2 with two paths (Figure 2). Evidence directly pools segment representations, while Delta updates an associative state in chronological order. Their fused output h is decoded into a history-conditioned adapter. We first motivate the two paths, then define their computations.
3.2 Motivation for Dual-Path Memory
For the same interaction history , consider a recurrent memory. Its state after segment is , where updates the previous state using the segment representation . Compare two interaction histories that differ at an earlier segment but share all later segments, and write for their state difference. If every subsequent update contracts this difference by at most a factor , then
where is the Euclidean norm and is the age of the earlier contribution. Thus, its influence may attenuate through repeated updates. Proposition E.1 gives sufficient conditions on the full update Jacobian, including state-dependent gates.
Evidence instead connects each segment representation directly to the pooled memory. Let be segment i's pooling weight for latent coordinate j. If the largest and smallest scores across segments differ by at most a constant B that does not grow with T, then
For changes to that leave its scores unchanged, this also bounds how much the raw pooled vector changes relative to the input change (Proposition E.2). This lower bound depends on history length T but not segment position i, so earlier and later segments share the same bound. Since it still decreases with T, direct accumulation is motivated as a way to mitigate age-related attenuation, rather than eliminate forgetting.
However, Evidence pooling gives the same result when fixed segment representations are reordered, so it cannot distinguish opposite update orders requiring different answers (Proposition E.3). Delta supplies ordered revision.
3.3 Evidence Accumulation
To provide a direct route from the interaction history to memory, Evidence weights and pools the segment representations. Using normalized representations of the segment , we apply a learned projection and coordinate-wise temporal softmax to obtain
Here are score and weight vectors, and denotes element-wise multiplication. Each coordinate pools segment representations using scores from normalized representations.
To compensate for magnitude changes from pooling, we rescale into the calibrated Evidence representation . The target root-mean-square (RMS) scale is derived from the coordinate-wise weighted second moment of the segment representations. This rescaling, denoted by , uses a small positive floor for numerical stability and also calibrates the Delta and fused representations. Appendix D gives the definitions.
3.4 Sequential Delta Updates
To complement Evidence with ordered revision, Delta processes the same segment representations sequentially. For key dimension , it computes an unnormalized key , a unit key , and a coordinate-wise write gate ,
Here ELU is the element-wise exponential linear unit with unit parameter, is the sigmoid, and denotes an -dimensional all-ones vector. The learned projections have shapes and , with bias . Using this key and gate, Delta reads a prediction from the associative state and writes back a gated residual ,
The delta-rule updates (Schlag et al., 2021; Yang et al., 2025) correct the current key’s prediction. At another key , the readout changes by . Key similarity controls interference.
To stabilize the readout scale, a parallel normalizer follows the same updates as , using an all-ones target. After processing the interaction history, a learned read key , with , gives the normalized readout
where denotes element-wise division and applies a small positive floor to the denominator. RMS calibration then produces the Delta representation . Appendix D details the normalization, initialization, and calibration.
3.5 Fusion and Adapter Construction
We fuse Evidence and Delta using learned logits and weights ,
RMS calibration then produces h using a target scale derived from both paths (Appendix D). Both and the read key a remain fixed after training.
Finally, the frozen decoder generates LoRA factors , where denotes its output for target matrix . Following Equation 4, the serving weight is
The product forms the history-conditioned low-rank update. The frozen shared-adapter update is added once.
3.6 Answer Supervision
We train both paths and their fusion with cross-entropy over answers. Gradients propagate through the decoder and backbone to update only the memory modules. The compiler, decoder, shared adapter, and backbone remain frozen.
4 Experiments
4.1 Experimental Setup
Dataset. Following RPMem (Zhao et al., 2026), we use the processed PersonaMem-v2 32K-Text split (Jiang et al., 2025) with 18,527 training, 2,059 validation, and 5,000 test examples, excluding test personas from training and validation. PrefEval (Zhao et al., 2025) uses a fixed topic split (seed 42), with 16 training and four held-out topics. Three preference forms at 10, 70, and 300 turns yield 7,380 training and 1,620 test instances.
Baselines. We compare No Context and Full Context, textual memories from Rolling Summary following RPMem (Zhao et al., 2026), top-10 BGE-M3 retrieval (Chen et al., 2025), Mem0 (Chhikara et al., 2025), and LightMem (Fang et al., 2026). Parametric baselines include D2L (Charakorn et al., 2026), PLUME (Shi et al., 2026), RPMem (Zhao et al., 2026), -mem (Lei et al., 2026), and Metis (Zhang et al., 2026). For a fair comparison, our RPMem baseline uses the same frozen D2L encoder as DPPM, without additional encoder-training data. We use released checkpoints for -mem and Metis. Gold State provides annotated user state as a reference.
| Type | Method | PersonaMem-v2 | PrefEval | Avg. | |||||
|---|---|---|---|---|---|---|---|---|---|
| Overall | Self | Current | Overall | 10 | 70 | 300 | |||
| Reference | No Context | 28.54 | 29.83 | 30.38 | 37.72 | 37.04 | 39.26 | 36.85 | 33.13 |
| Gold State | 61.08 | 67.44 | 67.44 | 93.52 | 92.78 | 94.07 | 93.70 | 77.30 | |
| Textual | Rolling Summary | 29.16 | 30.93 | 31.12 | 40.49 | 38.70 | 40.00 | 42.78 | 34.83 |
| LightMem | 30.66 | 31.76 | 32.46 | 71.60 | 80.37 | 69.63 | 64.81 | 51.13 | |
| Mem0 | 30.46 | 31.93 | 33.06 | 75.49 | 77.96 | 76.11 | 72.41 | 52.98 | |
| RAG (BGE-M3) | 32.50 | 34.75 | 34.40 | 57.96 | 65.56 | 57.59 | 50.74 | 45.23 | |
| Full Context | 32.96 | 35.89 | 36.68 | 45.31 | 51.11 | 45.74 | 39.07 | 39.14 | |
| Parametric | Direct D2L | 24.86 | 25.15 | 24.92 | 30.06 | 40.19 | 25.56 | 24.44 | 27.46 |
| PLUME | 30.98 | 32.80 | 34.63 | 40.12 | 45.74 | 39.63 | 35.00 | 35.55 | |
| δ-mem | 30.58 | 32.72 | 34.18 | 37.22 | 36.11 | 37.96 | 37.59 | 33.90 | |
| Metis-4B | 30.86 | 32.05 | 32.56 | 38.64 | 40.00 | 40.00 | 35.93 | 34.75 | |
| Metis-9B | 29.14 | 28.45 | 30.05 | 38.09 | 36.48 | 39.63 | 38.15 | 33.62 | |
| Metis-27B | 34.68 | 36.62 | 38.35 | 43.21 | 44.26 | 42.41 | 42.96 | 38.95 | |
| RPMem | 45.73 | 49.46 | 53.38 | 82.47 | 79.56 | 83.81 | 84.04 | 64.10 | |
| DPPM (Ours) | 54.22 | 54.69 | 58.38 | 86.79 | 84.52 | 88.15 | 87.70 | 70.51 | |
Table 1: Main results on both benchmarks (accuracy, %). Self and Current select who=self and updated=False. PrefEval interval scores average three preference forms. Avg. averages the two Overall scores. Bold and underlining indicate the best and second-best scores, excluding the annotated Gold State reference. Metis uses its native Qwen3.5 backbone at the indicated size; the other methods use Qwen3-4B.
Hyperparameters. We use Qwen3-4B-Instruct-2507, Gemma-2-2B-IT, and Mistral-7B-Instruct-v0.2 with released D2L compilers. DPPM is trained separately per dataset for five epochs using AdamW, learning rate , weight decay 0.01, batch size 1, and gradient clipping at 1. We evaluate the final checkpoint of each run; further settings appear in Appendix B.
4.2 Main Results
Table 1 shows that DPPM reaches on PersonaMem-v2 and on PrefEval, improving over RPMem by 8.50 and 4.32 percentage points. The improvement extends across all seven reported metrics, including both information about the focal user and the currently valid state. On PrefEval, the advantage remains positive at every dialogue interval, including a 3.67-point gain after 300 intervening turns. Thus, the overall result reflects benefits across several evaluation conditions rather than a single favorable subset.
The strongest textual baseline differs across benchmarks, with Full Context leading on PersonaMem-v2 and Mem0 on PrefEval. DPPM exceeds their Overall scores by 21.26 and 11.30 points, respectively. Providing or retrieving text from the interaction history therefore leaves substantial room for better personalization in these settings. Direct D2L also trails the trained consolidation methods, suggesting that compiling the interaction history into parameters benefits from learning how its segments should be integrated for downstream answers. The significance comparison with RPMem appears in Appendix C.
4.3 Ablation Study
Cross-backbone architectural comparison. Table 2 compares the four memory designs within each backbone and its released compiler. DPPM outperforms RPMem on both benchmarks for Gemma, Qwen, and Mistral. The gains range from 8.50 to 13.98 points on PersonaMem-v2 and from 4.19 to 5.31 points on PrefEval. The largest gains occur with Mistral, while Gemma confirms gains with a smaller backbone.
Architectural ablations use Evidence only and Delta only as single-path controls to examine the complementarity of the two memory mechanisms. Their relative strengths vary across tasks and backbones, indicating that direct evidence accumulation and sequential state updates provide distinct memory signals. Combining both paths improves PersonaMem-v2 Overall over either standalone variant on all three backbones and PrefEval Overall on Qwen and Mistral. On Qwen, DPPM exceeds the stronger standalone path by 4.45 and 0.81 percentage points, respectively. These results support combining complementary memory signals to enhance cross-session personalization.
Parameter-matched comparison. To examine whether DPPM's gains arise from a larger trainable budget, we compare the memory modules under
| Backbone | Method | PersonaMem-v2 | PrefEval | |||||
|---|---|---|---|---|---|---|---|---|
| Overall | Self | Current | Overall | 10 | 70 | 300 | ||
| Gemma-2-2B IT | RPMem | |||||||
| Evidence only | ||||||||
| Delta only | ||||||||
| DPPM | ||||||||
| Qwen3-4B Instruct-2507 | RPMem | |||||||
| Evidence only | ||||||||
| Delta only | ||||||||
| DPPM | ||||||||
| Mistral-7B Instruct-v0.2 | RPMem | |||||||
| Evidence only | ||||||||
| Delta only | ||||||||
| DPPM | ||||||||
Table 2: Memory alternatives across three backbones (accuracy, %). All entries are five-run means, with sample standard deviations in subscripts. Best and second-best means are bold and underlined within each backbone.
the same frozen Qwen3-4B compiler–decoder interface. Original RPMem uses 524,800 trainable parameters, while DPPM uses only 2,564 more (0.49%). We also evaluate an RPMem control matched at 527,364 parameters.
The control retains RPMem's recurrence, adding a rank-4 nonlinear gate correction with a biased projection (2,052 parameters), a fixed orthonormal DCT basis, and 512 learned coordinate gains. Zero-initialized gains preserve the initial gate output; all added parameters are trained. All runs share data splits, frozen components, CE, optimizer settings, five epochs, seeds 42–46, and final-epoch evaluation.
| Memory | Params | Persona | PrefEval |
|---|---|---|---|
| RPMem | 524800 | ||
| RPMem-matched | 527364 | ||
| DPPM | 527364 |
Table 3: Scores are five-run Overall accuracy means (%), with sample standard deviations in subscripts. Persona denotes PersonaMem-v2.
As shown in Table 3, increasing RPMem's budget to match DPPM yields on PersonaMem-v2 and on PrefEval, close to the original gate's results. With the same parameter count, DPPM improves these scores by 8.73 and 4.23 percentage points. This comparison supports dual-path consolidation beyond the small difference in trainable capacity.
4.4 Further Analysis
Accuracy, latency, and memory. Figure 4(a) shows that DPPM improves accuracy over RPMem by 8.50 percentage points at an answer-forward latency of 46.14 ms, only 2.43 ms higher. It also achieves higher accuracy than RAG and Full Context with approximately and faster answer computation, respectively.
To examine memory costs with longer histories, Figure 4(b) uses one question selected by maximum official 128K history length, evaluated with both official interaction history versions. Full Context inputs grow from 33,143 to 139,319 tokens, increasing peak GPU memory from 10,203.91 to 18,245.97 MiB. DPPM remains at 7,762.32 MiB, matching RPMem and using less memory than Full Context for the longer history. Together, these results show improved personalization with low answer latency and a compact answering footprint after memory preparation.
Sources of improvement. Figure 3 links DPPM's gains to the appropriate use of accumulated evidence. In PersonaMem-v2, Forget tests whether responses respect requests to stop using prior information, Sensitive tests restraint in using private details, and Therapy tests personalization from individual background (Jiang et al., 2025). DPPM improves these categories over RPMem by 21.68, 17.57, and 15.34 points, respectively. The Others subset tests whether information about another person is incorrectly attributed to the user; accuracy rises from to . These results indicate that much of DPPM's improvement comes from better attribution and more appropriate revision of memory use.
This pattern aligns with our motivation to preserve evidence while revising its applicability. The Evidence path gives earlier representations direct
(a) PersonaMem-v2

(b) PrefEval
Figure 3: Category-level comparison of RPMem and DPPM. Circles and diamonds show five-run mean accuracies, and the right-hand annotations give DPPM's gain in percentage points. The panels cover all seven PersonaMem-v2 information types and all four held-out PrefEval topics. Axis ranges are shown separately for each benchmark.
(a) Accuracy and latency

(b) Long-history GPU memory 32K history 128K history
Figure 4: Answer-stage efficiency on Qwen3-4B with one A800 (batch size 1). (a) Full-test accuracy versus weighted latency. (b) Peak GPU memory for paired histories of one length-selected question. Results use three-forward medians after one warmup, excluding compilation and retrieval; KV cache is disabled in (b).
access to the final memory, while Delta supplies ordered updates as new interactions arrive. DPPM also outperforms both single-path controls on Others and Forget, supporting their complementary roles. On PrefEval, the four topics test preference following in different application domains (Zhao et al., 2025). Gains across all four, from 1.90 points on Technology to 6.50 on Education, show broader use of remembered preferences. Alongside the latent-retention results below, these findings support combining evidence accumulation and state revision for personalization.
Latent retention over time. To test whether direct evidence accumulation mitigates the attenuation of earlier information, we measure latent sensitivity as subsequent interactions accumulate. We freeze the seed-42 benchmark checkpoints and move one preference among 32 fixed distractors after a shared neutral initial segment, keeping each interaction history at 34 segments. For paired preference values A/B, latent sensitivity is , where is the consolidated representation and the representation of the preference segment. We normalize each profile's sensitivity by its age-zero value and average over 24 profiles. Figure 5 shows that at age 32, DPPM retains 0.970/0.667 for PersonaMem-v2/PrefEval checkpoints, compared with RPMem's 0.268/0.116 and Delta only's 0.367/0.300. Evidence only stays at 1.000. This supports a less age-sensitive latent response from the direct evidence route.
Training objectives. To assess compatibility with different objectives, we fix DPPM’s architecture and compare CE with distillation and reward-based variants (Table 4). Answer FKL matches teacher answer distributions. On-policy distillation (OPD) (Agarwal et al., 2024) applies token-level reverse KL to student rollouts capped at 16 or 64 tokens, using a frozen teacher conditioned on training-only user state. One-step GRPO (Shao et al., 2024) uses correctness rewards for sampled answers. All variants retain CE.
The short OPD recipe and answer FKL score below CE on both datasets. The 64-token OPD

Figure 5: Latent retention versus the number of subsequent distractor segments. Curves average 24 profiles after within-profile age-zero normalization.
| Objective | Persona | PrefEval | Avg. |
|---|---|---|---|
| CE (DPPM) | 54.22 | 86.79 | 70.51 |
| + Answer FKL | 53.98 | 86.05 | 70.02 |
| + OPD (16) | 52.96 | 85.80 | 69.38 |
| + OPD (64) | 54.56 | 87.04 | 70.80 |
| + GRPO | 54.80 | 85.06 | 69.93 |
Table 4: Training objectives on DPPM (accuracy, %). Persona denotes PersonaMem-v2. OPD (16/64) caps student rollouts at 16/64 tokens.
configuration, which also uses the revised teacher prompt, reaches 54.56% and 87.04%, giving the highest two-dataset average of 70.80%. GRPO attains the highest PersonaMem-v2 score but trades off PrefEval accuracy, reducing its average below CE. These results suggest that appropriately configured on-policy feedback can complement the dual-path architecture, while plain CE remains competitive with simpler training.
5 Related Work
5.1 Personalized Memory
Personalized memory must distill growing histories into useful information for future responses. MemoryBank and MemGPT maintain persistent records and retrieve relevant content when needed (Zhong et al., 2023; Packer et al., 2024). As records accumulate, storage must be complemented by content selection and revision. Mem0 and A-MEM address these needs through memory extraction, organization, and updating (Chhikara et al., 2025; Xu et al., 2025). Recent work learns adaptive memory strategies that balance shared knowledge and individual needs (Xu et al., 2026; Han et al., 2026).
These developments broaden evaluation from recalling history to using it appropriately. LoCoMo and LongMemEval assess conversational recall and reasoning (Maharana et al., 2024; Wu et al., 2025), while PrefEval and PersonaMem-v2 examine preference following and implicit personalization (Zhao et al., 2025; Jiang et al., 2025). Evolving preferences and multi-user decisions introduce further demands on memory maintenance (Liu et al., 2026a; Chen et al., 2026). We approach these demands through parametric memory for cross-session personalization.
5.2 Parametric Memory
Encoding information into parameters reduces reliance on interaction history at inference time, but requires an effective writing mechanism. ROME and MEMIT edit factual associations (Meng et al., 2023a,b), while FastMem internalizes prompts through optimization (Zhu et al., 2024). To avoid repeated optimization, Doc-to-LoRA and SHINE learn context-to-adapter hypernetworks that generate LoRA parameters in a forward pass (Charakorn et al., 2026; Liu et al., 2026b).
Efficient writing alone does not determine how accumulated memory should evolve. Sequential state updates address this requirement through associative rules in Fast Weight Programmers and Gated DeltaNet (Schlag et al., 2021; Yang et al., 2025), and learned adaptation in TTT and Titans (Sun et al., 2025; Behrouz et al., 2024). Building on state maintenance, Metis integrates forward-updated memory into the backbone (Zhang et al., 2026). RPMem, the work closest to ours, connects recurrent session consolidation with adapter generation (Zhao et al., 2026). DPPM extends this approach with direct evidence accumulation alongside sequential revision, reducing reliance on a single recurrent state.
6 Conclusion
We introduced DPPM for integrating interaction history across sessions in personalized language models. DPPM combines evidence accumulation and sequential updates for retention and revision without extra compiler training. Experiments across two benchmarks and backbones of different architectures and sizes demonstrate its effectiveness, while theoretical analysis and controlled experiments support the complementary roles of the two paths. These findings highlight the value of preserving historical evidence while adapting its use, offering a practical design for long-term personalized parametric memory.
Limitations
Although DPPM advances cross-session personalization through dual-path memory, our study has two limitations. First, computational constraints limit DPPM experiments to 2B–7B backbones, leaving larger-scale validation for future work. Second, our memory interface currently processes textual interaction histories. Extending it to images and speech is a natural next step.
References
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. Preprint, arXiv:2306.13649.
Ali Behrouz, Peilin Zhong, and Vahab Mirrokni. 2024. Titans: Learning to memorize at test time. Preprint, arXiv:2501.00663.
Rujikorn Charakorn, Edoardo Cetin, Shinnosuke Uesaka, and Robert Tjarko Lange. 2026. Doc-to-lora: Learning to instantly internalize contexts. Preprint, arXiv:2602.15902.
Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2025. M3-embedding: Multilinguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. Preprint, arXiv:2402.03216.
Yuhao Chen, Yi Xu, Xinyun Ding, Xiang Fang, Shuochen Liu, Luxi Lin, Qingyu Zhang, Ya Li, Quan Liu, and Tong Xu. 2026. Vehiclemembench: An executable benchmark for multi-user long-term memory in in-vehicle agents. Preprint, arXiv:2603.23840.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building production-ready ai agents with scalable long-term memory. Preprint, arXiv:2504.19413.
Jizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Huajun Chen, and Ningyu Zhang. 2026. Lightmem: Lightweight and efficient memory-augmented generation. Preprint, arXiv:2510.18866.
Yupeng Han, Shuochen Liu, Kai Zhang, Ze Liu, Zhi-hong Pan, and Xianquan Wang. 2026. Learning what to share and what to personalize: Hierarchical strategy co-evolution for agent memory. Preprint, arXiv:2608.25329.
Bowen Jiang, Yuan Yuan, Maohao Shen, Zhuoqun Hao, Zhangchen Xu, Zichen Chen, Ziyi Liu, Anvesh Rao Vijjini, Jiashu He, Hanchao Yu, Radha Poovendran, Gregory Wornell, Lyle Ungar, Dan Roth, Sihao Chen, and Camillo Jose Taylor. 2025. Personamem-v2:
Towards personalized intelligence via learning implicit user personas and agentic memory. Preprint, arXiv:2512.06688.
Jingdi Lei, Di Zhang, Junxian Li, Weida Wang, Kaixuan Fan, Xiang Liu, Qihan Liu, Xiaoteng Ma, Baian Chen, and Soujanya Poria. 2026. -mem: Efficient online memory for large language models. Preprint, arXiv:2605.12357.
Shuochen Liu, Junyi Zhu, Long Shu, Junda Lin, Yuhao Chen, Haotian Zhang, Chao Zhang, Derong Xu, Jia Li, Bo Tang, Zhiyu Li, Feiyu Xiong, Enhong Chen, and Tong Xu. 2026a. Perma: Benchmarking personalized memory agents via event-driven preference and realistic task environments. Preprint, arXiv:2603.23231.
Yewei Liu, Xiyuan Wang, Yansheng Mao, Yoav Gelbery, Haggai Maron, and Muhan Zhang. 2026b. Shine: A scalable in-context hypernetwork for mapping context to lora in a single pass. Preprint, arXiv:2602.06358.
Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. Evaluating very long-term conversational memory of llm agents. Preprint, arXiv:2402.17753.
Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2023a. Locating and editing factual associations in gpt. Preprint, arXiv:2202.05262.
Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau. 2023b. Mass-editing memory in a transformer. Preprint, arXiv:2210.07229.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2024. Memgpt: Towards llms as operating systems. Preprint, arXiv:2310.08560.
Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. 2021. Linear transformers are secretly fast weight programmers. Preprint, arXiv:2102.11174.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Xiaobing Shi, Zherui Li, Yiming Jiang, Kun Wang, and Yufei Guo. 2026. Towards evolving context parameterization for large language models. Preprint, arXiv:2609.14168.
Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu, Arjun Vikram, Genghan Zhang, Yann Dubois, Xinlei Chen, Xiaolong Wang, Sanmi Koyejo, Tatsunori Hashimoto, and Carlos Guestrin. 2025. Learning to (learn at test time): Rnns with expressive hidden states. Preprint, arXiv:2407.04620.
Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2025. Longmemeval: Benchmarking chat assistants on long-term interactive memory. Preprint, arXiv:2410.10813.
Derong Xu, Shuochen Liu, Pengfei Luo, Pengyue Jia, Yingyi Zhang, Yi Wen, Yimin Deng, Wenlin Zhang, Enhong Chen, Xiangyu Zhao, and Tong Xu. 2026. Learning how and what to memorize: Cognition-inspired two-stage optimization for evolving memory. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 44987–45011, San Diego, California, United States. Association for Computational Linguistics.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025. A-mem: Agentic memory for llm agents. Preprint, arXiv:2502.12110.
Songlin Yang, Jan Kautz, and Ali Hatamizadeh. 2025. Gated delta networks: Improving mamba2 with delta rule. Preprint, arXiv:2412.06464.
Zeyu Zhang, Ziliang Guo, Yihang Sun, Xichong Zhang, Xixuan Hao, Zehao Lin, Yang Zhang, Xiaoyan Zhao, Tong Shen, Bo Tang, Zhi-Qin John Xu, Junchi Yan, Haofen Wang, Xu Chen, Feiyu Xiong, Zhiyu Li, and Tat-Seng Chua. 2026. Metis: Memory foundation model. Preprint, arXiv:2607.26760.
Fanyu Zhao, Ruike Cao, Liang Dong, Fugen Yao, Jian Xu, Guanjun Jiang, Han Zhang, Yifei Zhao, and Yin-sheng Li. 2026. Rpmem: Learning long-term recurrent parametric memory across sessions for llm agents. Preprint, arXiv:2609.23466.
Siyan Zhao, Mingyi Hong, Yang Liu, Devamanyu Hazarika, and Kaixiang Lin. 2025. Do llms recognize your preferences? evaluating personalized preference following in llms. Preprint, arXiv:2502.09597.
Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. 2023. Memorybank: Enhancing large language models with long-term memory. Preprint, arXiv:2305.10250.
Junyi Zhu, Shuochen Liu, Yu Yu, Bo Tang, Yibo Yan, Zhiyu Li, Feiyu Xiong, Tong Xu, and Matthew B. Blaschko. 2024. Fastmem: Fast memorization of prompt improves context awareness of large language models. Preprint, arXiv:2406.16069.
A AI Use Statement
Generative AI tools assisted with method implementation, proof drafting, manuscript writing and revision, and figure creation. They also supported discussions and refinement of the interpretation of experimental results. The authors reviewed the implementation and proofs and tested the code. The authors take full responsibility for the final content, including all AI-assisted text, claims, and artifacts.
B Experimental Configuration
For each dataset and backbone, we train a separate memory module using the splits in Section 4.1. The released D2L tokenizer divides interaction histories into chronological segments. The compiler, decoder, shared adapter, and backbone remain frozen. We evaluate final-epoch checkpoints using the settings in Table 5.
| Setting | Value |
|---|---|
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | 0.01 |
| Training epochs | 5 |
| Questions per update | 1 |
| Gradient norm clipping | 1.0 |
| Training seeds | 42-46 |
| Latent width d / key width K | 512 / 4 |
| RMS floor / readout floor |
Table 5: DPPM cross-entropy training settings.
For the auxiliary objectives, answer CE remains active. OPD samples 16 or 64 student tokens and uses teacher-scored reverse KL, with a one-epoch warmup, auxiliary weight 0.5, and one auxiliary update every four examples. GRPO samples eight answer actions with correctness rewards. Latency is measured on one A800 at batch size 1, with one warmup and three timed forwards per question.
C Significance Analysis
We compare DPPM and RPMem on Qwen3-4B-Instruct-2507 across the seven component metrics in Table 1, excluding the derived Avg. column. For each metric, we pair runs with the same training seed (42–46) and apply a two-sided paired t-test to their accuracy differences. Holm correction controls the family-wise error rate at 0.05 within this seven-test family. The analysis assumes independent seeds and approximately normal seed-level differences on fixed evaluation sets.
All seven mean differences favor DPPM, and every Holm-adjusted p-value is below 0.01. The gains remain significant for both Overall metrics and all five diagnostic or interval-specific measures in this comparison.
D Implementation Details
Representations and initialization. Each compiled memory contains vectors indexed by layer, module, and latent slot. The method equations describe one such vector for segments.
| Metric | Gain (pp) | Raw p | Adj. p |
|---|---|---|---|
| PersonaMem-v2 | |||
| Overall | +8.50 | ||
| Self | +5.23 | ||
| Current | +5.00 | ||
| PrefEval | |||
| Overall | +4.32 | ||
| 10 turns | +4.96 | ||
| 70 turns | +4.33 | ||
| 300 turns | +3.67 | ||
Table 6: DPPM versus RPMem on Qwen3-4B-Instruct-2507. Gains are in percentage points. Raw p-values use five paired training runs, and adjusted values use Holm correction across all seven metrics.
Learned projections are shared across positions, while memory states are maintained separately. We use non-affine LayerNorm for , with numerical constant , and compute consolidation in float32. Initially, , , , and are zero, , and entries of follow . Key normalization uses an L2-norm floor of .
Scale calibration. For , let . With target scale and a small positive floor , the shared rescaling operator is
When the floor is inactive, rescaling preserves direction and sets the output RMS to . The calibrated Evidence representation is , with defined by
The fused representation uses with nonnegative target scale
Delta normalization and initialization. Using the same keys and gates as , the normalizer tracks constant-target writes,
Both recurrences start at , with and . In Equation 14, coordinate-wise, with a small positive floor . The Delta representation is , where and
Evaluation conventions. The main DPPM, RP-Mem, and standalone-path comparisons use seeds 42–46. Auxiliary-objective variants use seed 42, with privileged teacher state confined to training. Their two-dataset Avg. is the arithmetic mean of the displayed Overall scores. PersonaMem-v2 Overall averages all 5,000 questions, while Self and Current select the annotations who=self and updated=False. PrefEval Overall averages all 1,620 instances; each interval averages three preference forms. Category gains and attribution subsets describe answer behavior.
Latent-retention protocol. The diagnostic uses frozen seed-42 checkpoints without additional training. Each of 24 profiles has a neutral prefix, one preference segment, and 32 fixed distractors. We move the preference to ages 0, 8, 16, 24, and 32. For each paired preference, the latent sensitivity in the main text is divided by that profile's age-zero sensitivity before averaging profiles. The curves measure latent-response retention with fixed history length and distractors.
E Analysis of the Two Memory Paths
Fix the learned parameters and let contain the segment representations at one latent position. The first two results compare sequences differing only at segment ; primes mark perturbed quantities. We use Euclidean and induced operator norms, with . The results respectively characterize recurrent attenuation, direct access to evidence, and the role of order-sensitive updates.
E.1 Conditional Recurrent Attenuation
Proposition E.1 (Contractive state transitions). Let and , with for . For each , assume is continuously differentiable near the line segment joining and , and throughout it, where . Then
If , the multiplier is at most .
Proof. Set and . Integration along the connecting line segment gives
Thus . Iterating this inequality proves the bound.
To connect this condition to gated consolidation, consider a state-dependent gate and let . Fixing gives
Using , uniform bounds , , and permit . This bound accounts for both state retention and gate sensitivity; values below one ensure contraction.
E.2 Direct Evidence Sensitivity
Direct pooling in Equations 7–8 yields a position-independent bound on the raw pooled vector, before RMS calibration.
Proposition E.2 (Bounded-score pooling). Suppose for each , where is independent of . Then . If only changes to , with and unchanged score vector , then
Proof. Since , dividing the softmax denominator by gives
Since all scores are unchanged, so are all weights. Hence , and . Taking square roots proves the claim.
Normalization bounds the scores independently of history length. Non-affine LayerNorm gives . Cauchy–Schwarz gives . Also, for scalar , giving score-preserving perturbations in real arithmetic.
For fixed , , independently of the source position . If a nonzero perturbation also induces , the raw Evidence lower bound exceeds the recurrent upper bound whenever . Here bounds input sensitivity and bounds contraction.
E.3 The Need for Ordered Revision
Direct evidence access preserves a contribution from each segment, but content-only pooling discards their order. For a permutation , write .
Proposition E.3 (Order cannot be recovered from pooling). Under the Evidence scoring and calibration rules, for every permutation of fixed segment representations. If Q and require different answers to the same query, a deterministic predictor using only that query and cannot be correct on both.
Proof. Permuting inputs reorders scores and weights together. Both and remain unchanged, and therefore so does . Identical predictor inputs produce the same answer, which cannot equal two distinct targets.
Oppositely ordered conflicting updates under a last-update-wins rule illustrate this obstruction. Without separately encoded chronology, this motivates order-sensitive Delta updates.
Design implications. Under the stated conditions, direct Evidence accumulation mitigates the repeated attenuation of recurrent propagation. Its lower bound decreases with history length but carries no additional age factor. Pooling’s permutation invariance motivates the complementary Delta path for ordered revision. Together, the results support combining direct evidence access with sequential state updates.