Paper deep dive
rEDMRec: Distilling Large Language Model Reasoning into an Editable Experience Memory for Recommendation
Minh Hoang Nguyen, Tung Le, Huy Tien Nguyen
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 94%
Last extracted: 8/20/2026, 5:25:08 AM
Summary
The paper introduces rEDMRec, a recommendation framework that distills reasoning from a large teacher LLM into an editable, structured 'Experience Memory' consisting of four channels: long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons. A lightweight student LLM retrieves from this memory to rank items, decoupling inference cost from reasoning depth. The system employs an LLM memory controller with Add/Delete/Modify/Keep operations, guided by K-agent debate, to optimize the memory bank, reducing duplication and improving ranking accuracy (HR@1) across multiple datasets and backbones.
Entities (15)
Relation Signals (12)
Experience Memory → contains → Item-perception
confidence 95% · four typed, editable experience channels - long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons
Experience Memory → contains → Long-term preference
confidence 95% · four typed, editable experience channels - long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons
Experience Memory → contains → Short-term context
confidence 95% · four typed, editable experience channels - long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons
Experience Memory → contains → Counterfactual hard-negative comparisons
confidence 95% · four typed, editable experience channels - long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons
LLM Memory Controller → manages → Experience Memory
confidence 95% · maintained by an LLM memory controller that performs Add/Delete/Modify/Keep operations
Student LLM → retrievesfrom → Experience Memory
confidence 95% · A lightweight student LLM then ranks candidates purely by retrieving from this memory
rEDMRec → uses → Experience Memory
confidence 95% · rEDMRec ... distills a teacher LLM's reasoning into four typed, editable experience channels
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Large language models can improve recommendation quality by reasoning explicitly over user history and candidate items - for example, extracting a user's preferences or explaining why one item fits better than another - rather than mapping history directly to a ranked list. This reasoning, however, is expensive to repeat on every ranking request and, once produced, is typically consumed once and discarded, leaving it neither reusable across future requests nor easy to inspect or correct as user tastes drift. Our insight is that reasoning does not need to be regenerated at every call if it can instead be compressed once into a compact, structured memory that a lightweight model retrieves from. We propose rEDMRec, which distills a teacher LLM's reasoning into four typed, editable experience channels - long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons - maintained by an LLM memory controller that performs Add/Delete/Modify/Keep operations and refines entries via K-agent debate. A lightweight student LLM then ranks candidates purely by retrieving from this memory, without invoking the teacher again, decoupling online inference cost from reasoning depth. Across ML-1M, Amazon Beauty, and Steam and ten student backbones, rEDMRec improves HR@1 over zero-shot, few-shot, and RAG on every backbone, and over GraphRAG on most backbones, with Impv up to 13.3% vs. the second-best baseline on ML-1M. Channel ablations show that short-term context is the only channel that helps consistently across capacity tiers, whereas long-term, item-perception, and counterfactual contributions are capacity-dependent (and can reverse on the strongest students); debate-based memory optimization lowers bank duplication by 7.4 percentage points while raising downstream HR@1 by up to +0.029 over six optimization epochs.
Tags
Links
- Source: https://arxiv.org/abs/2608.18952v1
- Canonical: https://arxiv.org/abs/2608.18952v1
Trouble viewing inline? Open PDF directly →
Full Text
122,832 characters extracted from source content.
Expand or collapse full text
rEDMRec: Distilling Large Language Model Reasoning into an Editable Experience Memory for Recommendation Minh Hoang Nguyen a,b , Tung Le a,b and Huy Tien Nguyen a,b,∗ a Faculty of Information Technology, University of Science, Ho Chi Minh City, Vietnam b Vietnam National University, Ho Chi Minh City, Vietnam A R T I C L E I N F O Keywords: LLM-based recommendation reasoning distillation experience memory memory-augmented agents multi-agent debate retrieval-augmented generation A B S T R A C T Large language models (LLMs) can improve recommendation quality by reasoning explicitly over user history and candidate items – for example, extracting a user’s preferences or explaining why one item fits better than another – rather than mapping history directly to a ranked list. This reasoning, however, is expensive to repeat on every ranking request and, once produced, is typically consumed once and discarded, leaving it neither reusable across future requests nor easy to inspect or correct as user tastes drift. Our insight is that reasoning does not need to be regenerated at every call if it can instead be compressed once into a compact, structured memory that a lightweight model retrieves from. We propose rEDMRec, which distills a teacher LLM’s reasoning into four typed, editable experience channels – long-term preference, short-term context, item-perception, and counterfactual hard-negative comparisons – maintained by an LLM memory controller that performs Add/Delete/Modify/Keep operations and refines entries via 퐾-agent debate. A lightweight student LLM (3B–20B parameters) then ranks candidates purely by retrieving from this memory, without invoking the teacher again, decoupling online inference cost from reasoning depth. Across ML- 1M, Amazon Beauty, and Steam and ten student backbones, rEDMRec improves HR@1 over zero- shot, few-shot, and RAG on every backbone, and over GraphRAG on most backbones (exceptions: Llama 3.1 8B and GPT OSS 20B), with Impv up to 13.3% vs. the second-best baseline on ML-1M, following the relative-improvement protocol of RDRec (Wang et al., 2024b). Channel ablations show that short-term context is the only channel that helps consistently across capacity tiers, whereas long- term, item-perception, and counterfactual contributions are capacity-dependent (and can reverse on the strongest students); debate-based memory optimization lowers bank duplication by7.4 percentage points while raising downstream HR@1 by up to +0.029 over six optimization epochs. 1. Introduction Large language models (LLMs) are increasingly used as recommenders – via prompting, instruction tuning, collaborative-signal fusion, or generative item prediction (Wu et al., 2024; Lin et al., 2025; Bao et al., 2023; Liao et al., 2024; Hou et al., 2024) – and, more recently, as explicit reasoners over user history and candidate items (Wei et al., 2022). An LLM can extract preferences, judge item fit, or contrast a candidate against a hard negative, then use that reasoning to guide ranking. This paper studies a concrete bottleneck that follows from that capability: once such reasoning has been produced for a user, how can it be reused across future ranking requests, rather than regenerated from scratch every time? Reasoning-augmented recommenders face a tension between reasoning depth and inference cost. Zero-shot and few-shot prompting, and retrieval-augmented generation (RAG) over raw interaction history (Lewis et al., 2020), are cheap but skip explicit preference-level reasoning, so ranking remains opaque and brittle under short histories. Closer to our setting, ReasoningRec (Bismay et al., 2025) uses a teacher LLM to synthesize user profiles, ∗ Corresponding author 24C15049@student.hcmus.edu.vn (M.H. Nguyen); lttung@fit.hcmus.edu.vn (T. Le); ntienhuy@fit.hcmus.edu.vn (H.T. Nguyen) ORCID(s): 0009-0004-1384-3856 (M.H. Nguyen); 0000-0002-9900-7047 (T. Le); 0000-0002-9948-1048 (H.T. Nguyen) item descriptions, and human-interpretable explanatory reasoning, then instruction-tunes a smaller model on those traces; R2Rec (Zhao et al., 2025) similarly builds interaction-of-thought chains and internalizes them with supervised fine-tuning and reinforcement learning; and 푅 4 ec (Gu et al., 2025) iterates actor reasoning with a reflection model that critiques and refines preference/item knowledge before feeding a recommendation backbone. These lines treat reasoning primarily as a per-request or training-time signal: competence lives in regenerated traces or model weights, cannot be updated entry-by-entry when new interactions arrive or low-quality reasoning accumulates, and revision requires another costly reasoning loop or retraining rather than a targeted memory edit. Related distillation methods compress rationales or prompts into smaller generators (Wang et al., 2024b; Li et al., 2023), yet still treat the distilled artifact as a fixed model rather than as a typed bank. The remaining challenge is therefore architectural: keep the benefit of teacher-level reasoning while making that reasoning reusable across requests and editable over time, without retraining the backbone whenever the underlying knowledge must change. As illustrated in Figure 1, consider a user whose history is dominated by family and animation titles (e.g., Toy Story, The Lion King, Shrek, Finding Nemo) and who must rank Frozen against The Dark Knight. If the recommender focuses solely on explicit item titles or undifferentiated history text, it struggles to surface the subtle connection across these M.H. Nguyen et al.: Preprint submitted to ElsevierPage 1 of 25 arXiv:2608.18952v1 [cs.IR] 19 Aug 2026 rEDMRec: Reasoning Distillation into Experience Memory Figure 1: Example of four-channel experience memory distilled from a user’s history for ranking Frozen vs. The Dark Knight. Offline, teacher reasoning is stored as typed lt/st/ip/cf entries; online, a frozen student LLM retrieves those channels and produces the recommendation list without calling the teacher. interactions – that the user consistently prefers light fam- ily entertainment over dark crime – and has no structured place to store a hard-negative contrast that would push The Dark Knight down when that pattern holds. In this case, the latent preference is not a single keyword but a typed bundle of signals: long-term taste (stable family/animation preference; dislike of dark crime tone), short-term session context (franchise- or buddy-friendly titles), item-perception that grounds why Frozen matches the history while The Dark Knight mismatches, and a counterfactual that records when the dark-action alternative would have ranked higher. Ex- isting reasoning-augmented methods either regenerate such comparisons per request or absorb them into weights, so they cannot keep these four signals as independently retrievable and independently editable memory entries across future ranking calls. We address this challenge with rEDMRec. The basic idea is illustrated in Figure 1: instead of asking an LLM to both reason and rank on every inference call, we use the LLM as a teacher reasoning generator and distill its outputs into a structured, retrievable, and updatable Experi- ence Memory that a lightweight student consumes at ranking time. Concretely, the teacher produces four typed experience signals – long-term preference, short-term context, item perception, and counterfactual hard-negative comparisons – and a distillation adapter normalizes each signal into a channel-indexed memory entry (vector store for the first three channels; hybrid vector–graph store for counterfac- tuals). At inference, a frozen student (3B–20B) retrieves the top-푚 entries per channel, composes a ranking prompt, and scores candidates without re-invoking the teacher, so accuracy gains are attributable to the memory rather than to student-parameter adaptation. A remaining difficulty is that a bank filled once from teacher extractions accumulates near-duplicates and low-specificity entries as interactions grow. Inspired by Training-Free GRPO (Youtu-Agent Team, 2025), which steers a frozen policy by maintaining an ex- periential knowledge library with Add/Delete/Modify/Keep operations rather than gradient updates, our second con- tribution is an LLM memory controller that applies the same edit operators – optionally guided by 퐾-agent debate and an arbiter – to revise the recommendation experience bank over optimization epochs. Together, these components separate an expensive, infrequent reasoning-compression process from a cheap, frequent retrieval-and-rank process. We evaluate rEDMRec on ML-1M, Amazon Beauty, and Steam with ten student LLMs (3B–20B), comparing against zero-shot, few-shot, RAG, and GraphRAG (Edge et al., 2024). rEDMRec improves HR@1 over zero-shot, few-shot, and RAG on every backbone, and over GraphRAG on most backbones (exceptions: Llama 3.1 8B and GPT OSS 20B), reaching Impv = 13.3% vs. GraphRAG on Qwen2.5 3B under the RDRec relative-improvement protocol (Wang et al., 2024b) (Section 5.1). Channel ablations show that short-term context is the only consistently helpful channel across capacity tiers, whereas long-term, item- perception, and counterfactual effects are capacity- dependent (Section 5.2). A teacher-distillation study further shows that bank duplicate rate is a leading indicator of downstream gain, bounded by student capacity. Finally, debate-based optimization lowers bank duplication by 7.4 percentage points while raising downstream HR@1 by up to +0.029 over six epochs, validating the controller as a functional component of the architecture (Section 5.4). This paper makes the following contributions: 1. An editable, channel-structured experience memory that distills teacher LLM reasoning into four typed, independently retrievable and independently editable channels, rather than a single undifferentiated reasoning trace (Section 3.6). 2. A debate-based LLM memory controller that revises the bank after each student prediction via Add/Delete/Modify/Keep operations guided by ranking reward models and 퐾-agent debate, with bank-quality gains shown to propagate into ranking accuracy without updating the frozen student (Sections 3.6, 3.8; Section 5.4). 3. A comprehensive empirical study across ten student backbones and three datasets, including channel abla- tions that explain when ablating a channel can improve accuracy, a teacher-distillation study isolating teacher quality from student capacity, and a qualitative case study of entry-level edits over optimization epochs (Sections 5.1–5.5). 2. Related Work 2.1. LLM-based Recommendation Before LLM recommenders, neural models already en- coded dual-scale user interest, review text, and cold-start evaluation – but they stored that structure in parameters or in the corpus, not in an editable experience bank. Sequential news recommenders such as Co-NAML-LSTUR (Nguyen et al., 2025) jointly learn multi-view item encodings with long- and short-term user representations, showing that sep- arating durable taste from recent browsing improves rank- ing even without an LLM. Review-based models such as RRS (Nguyen et al., 2024) replace ID-only collaborative M.H. Nguyen et al.: Preprint submitted to ElsevierPage 2 of 25 rEDMRec: Reasoning Distillation into Experience Memory filtering with deep encoders over user-written text, so item semantics enter ranking through review content rather than through a retrieved, typed memory entry. Complementary dataset work such as ViHoRec (Nguyen, 2026; Nguyen and Thiet, 2025) shows that, on sparse Vietnamese hotel interac- tions with a temporal cold-start split, neighborhood methods can outperform learned latent-factor models on users with short histories. These lines motivate the same signal types that rEDMRec stores as channels – long-term preference, short-term context, and item-level text – yet they cannot persist teacher-generated reasoning or Add/Delete/Modify a typed entry after a ranking failure. rEDMRec keeps that factorization, but as a non-parametric bank that a frozen student retrieves from, rather than as a neural user/item tower. Recent surveys organize LLM recommenders into prompting, tuning, collaborative fusion, generative recommendation, and system-enhancement paradigms (Wu et al., 2024; Lin et al., 2025; Wang et al., 2024a; Liu et al., 2025; Li et al., 2024). Prompting and instruction-following methods cast ranking as natural-language generation or zero- shot ordering (Gao et al., 2023; Zhang et al., 2023; Hou et al., 2024; Yue et al., 2023; Lyu et al., 2024), while alignment frameworks such as TALLRec and LLaRA adapt LLMs to recommendation with efficient fine-tuning (Bao et al., 2023; Liao et al., 2024). A parallel line injects collaborative or ID structure into the language space – CoLLM, BinLLM, TokenRec, and related models encode interaction signals as text-like or tokenized representations (Zhang et al., 2025a; 2024b; Qu et al., 2024) – and enhancement methods use LLMs for graph augmentation, tool use, or query generation around a classical backbone (Wei et al., 2024; Zhao et al., 2024; Han et al., 2025). Across these paradigms, any intermediate reasoning (when present) remains either ephemeral prompt context or knowledge absorbed into parameters. rEDMRec instead materializes teacher reasoning as a non-parametric, typed memory that survives across sessions and can be revised without re-tuning the student. 2.2. Reasoning, Distillation, and Preference Utilization A narrower line makes LLM reasoning itself the object of design. ReasoningRec (Bismay et al., 2025) synthesizes user profiles, item descriptions, and explanatory rationales with a teacher LLM, then instruction-tunes a smaller model for both prediction and human-interpretable explanation – an extraction-then-fine-tune pipeline rather than a durable memory architecture. R2Rec (Zhao et al., 2025) samples interaction chains, builds interaction-of-thought traces, and internalizes them with SFT and RL; LatentR 3 (Zhang et al., 2025b) similarly reinforces latent reasoning inside the model, while SPRec (Gao et al., 2025) uses self-play to debias generative recommenders. 푅 4 ec (Gu et al., 2025) pushes toward System-2 deliberation by pairing an actor that proposes preference/item knowledge with a reflection model that judges and triggers refinement until the knowledge is deemed rational, then injects the refined text into a recommendation backbone – still a per-case reasoning loop rather than a persistent, editable experience bank. Distillation work such as RDRec, POD, and LEADER compresses rationales or teacher signals into smaller recommendation models (Wang et al., 2024b; Li et al., 2023; Liu et al., 2024). Retrieval baselines (RAG, GraphRAG) ground ranking in raw history or graph summaries without teacher-compressed experience (Lewis et al., 2020; Edge et al., 2024). Relative to these methods, rEDMRec neither stops at one-shot feature utilization nor freezes reasoning into weights: it distills reasoning into a channel-typed bank with entry-level Add/Delete/Modify/Keep. 2.3. Memory-Augmented Agents and Recommendation Memory External memory lets LLM agents operate beyond a single context window. MemGPT (Packer et al., 2023) pages context like an OS virtual-memory manager; Generative Agents (Park et al., 2023) maintain a retrieve-and-reflect memory stream for long-horizon behavior. Closest to our controller design, Training-Free GRPO (Youtu-Agent Team, 2025) improves a frozen LLM by iteratively distilling experiential knowledge into a non-parametric library updated with Add/Delete/Modify/Keep operations – a training-free alternative to gradient-based GRPO. In recommendation, AutoMR retrieves stored experiences for generative ranking (Wang et al., 2025), long-term planners model durable taste (Shi et al., 2024), and related work motivates separating long- versus short- term interest (Zheng et al., 2024; Zhang et al., 2024a), item-level semantics (Ren et al., 2024; Zhang et al., 2026), hard-negative contrast (Song et al., 2026; Li et al., 2026), and user-controllable profiles (Woźniak et al., 2025). These designs retrieve history, profiles, or generic agent traces; they are not organized as teacher-distilled, four- channel recommendation experience with debate-driven bank maintenance. rEDMRec adopts the Training-Free GRPO principle of editing an external experience library instead of model weights, but specializes the schema to recommendation signal types and pairs each channel with a matching store (vector vs. hybrid graph–vector). 2.4. Multi-Agent Debate and Self-Refinement Iterative critique improves LLM outputs without addi- tional supervised labels. Self-Refine (Madaan et al., 2023) has a model revise its own text from self-feedback; multi- agent debate (Du et al., 2023) improves factuality by hav- ing several instances propose and critique answers; and in recommendation, 푅 4 ec (Gu et al., 2025) couples actor and reflection models to refine preference/item knowledge before backbone prediction. These lines evaluate a single artifact – one answer, one document, or one knowledge string per case – and do not measure how repeated refinement of a growing collection affects duplicate accumulation or re- trieval quality at bank scale. rEDMRec applies critique-and- revise to the experience bank: 퐾 debating personas critique M.H. Nguyen et al.: Preprint submitted to ElsevierPage 3 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 1 Notation used in Section 3. SymbolMeaning 푢, 퐻 푢 user; chronological interaction history , 푀(푖)item catalog; metadata text of item 푖 퐶 푢 ⊂ , 푐20-item candidate set; a candidate in 퐶 푢 푖 + , 푖 − , ̂ 푖positive target; hard-negative contrast; predicted item 푥 푢 , 퐷 퐾 ranking prompt; 퐾 in-context demonstrations (few-shot) 휃, 푃 푆 generic LLM parameters; student likelihood under LLM 푆 Enc(⋅), simshared text encoder; cosine similarity 퐪 푢 , 푑query embedding Enc(prompt(푢,퐶 푢 )); embedding dim. , 푘channel set lt,st,ip,cf; a channel , 푝, 푟 푝 extraction-pass set pref,ctx,reas,cf; a pass; raw output 퐸 = 퐸 푘 푘∈ experience memory bank (Eq. 8) 퐸 푢 푘 ⊂ 퐸 푘 channel-푘 entries for user 푢 after metadata filter 푒 = (휏, 퐯 푒 ,휇)memory entry: text, embedding 퐯 푒 = Enc(휏), metadata Adapt, route 푘 distill routed fields into 푒 푘 ; select fields for channel 푘 snapshot(퐸)truncated text rendering of the bank for LLM 퐶 퐵 = (휏,푘,푢)insight batch (teacher or arbiter) consumed by LLM 퐶 표, Applyedit ops Add, Delete, Modify, Keep; commit 표 to 퐸 푚, 푅 푘 (푢,퐶 푢 )retrieval depth; top-푚 entries from 퐸 푢 푘 (Eq. 11) ̂ 퐿 푢 , rankstudent ranked list; 1-based position of 푖 + in ̂ 퐿 푢 푟(푢)post-prediction reward vector (Eq. 13) 퐾, 푛 푟 , 푇#debate agents; rounds/epoch; optimization epochs , 푔 푗 , LLM 푗 debate transcript; critique of agent 푗; 푗-th debate agent ̃푒, 푛 max , 푈arbiter-proposed entry; max commits/case; case batch LLM 푇 , LLM 푆 , LLM 퐶 , LLM 퐴 teacher, frozen student, controller, arbiter a case, an arbiter synthesizes revisions, and the controller commits Add/Delete/Modify/Keep operations, with bank- level duplicate rate and specificity linked to downstream HR@1 (Section 5.4). 3. Method We formalize next-item ranking as conditional gener- ation (Section 3.1), restate the dominant prompting and retrieval paradigms in the same notation to make the tech- nical gap precise (Section 3.2), then specify rEDMRec’s components as LLM operators over a typed non-parametric memory (Sections 3.4–3.8). Table 1 collects the notation used throughout. 3.1. Problem Formulation We cast next-item recommendation as conditional gen- eration: given user 푢, history 퐻 푢 , and a candidate set 퐶 푢 , a language model with parameters 휃 assigns a score to each candidate 푐 ∈ 퐶 푢 by the likelihood of emitting 푐 under a constructed prompt. The predicted item is ̂ 푖 = argmax 푐 ∈퐶 푢 푃 휃 ( 푐 ∣ context(푢) ) ,(1) and is evaluated against the held-out positive 푖 + using HR@푘, NDCG@푘, and MRR (Section 4.4). Methods differ in what enters context(푢); we make this explicit below. 3.2. Preliminaries: Prior Paradigms as Conditional Generation Zero-/few-shot prompting (Brown et al., 2020) con- ditions the LLM on a natural-language prompt 푥 푢 and 퐾 in-context demonstrations 퐷 퐾 = (푥 푗 ,푦 푗 ) 퐾 푗=1 , with no parameter update: 푃 FS (푐 ∣ 푢) = 푃 휃 ( 푐 ∣ 푥 푢 ,퐷 퐾 ) , 푥 푢 = prompt(퐻 푢 ,푀(퐶 푢 )). (2) 퐾=0 recovers zero-shot. Every token of 푥 푢 and 퐷 퐾 is re- encoded by 휃 at every request. RAG (Lewis et al., 2020) retrieves a top-푘 evidence set 푍 and conditions generation on it: 푃 RAG (푐 ∣ 푢) = 푃 휃 ( 푐 ∣ 푥 푢 ,푍 ) , 푍 = Top-푘(푥 푢 ). (3) In our RAG baseline, 푍 ranges over raw interaction/review records and is recomputed for every (푢,퐶 푢 ). GraphRAG (Edge et al., 2024) builds a corpus graph, partitions it into communities 푆 푙 with LLM-written sum- maries휎(푆 푙 ), and answers by a map–reduce over community answers 푎 푙 : 푃 GRAG (푐 ∣ 푢) = LLM ( 푥 푢 ,푐,푎 푙 퐿 푙=1 ) , 푎 푙 = LLM ( 푥 푢 ,휎(푆 푙 ) ) . (4) 휎(푆 푙 ) is static once built and is not typed, per-user, or editable at the granularity of a single fact. Equations (2)–(4) share a property that motivates our design: the conditioning set (퐷 퐾 , 푍, or 휎(푆 푙 )) is either rebuilt/rescored at every request, or, once built, exposes no operator for targeted, entry-level edits. Section 3.3 replaces this with a persistent structure 퐸 built off the inference critical path and equipped with an explicit edit operator (Section 3.6). 3.3. Overview rEDMRec factorizes ranking into an offline construction of a typed experience memory 퐸 and an online, teacher-free generative lookup, as illustrated in Figure 2: 푃 푆 (푐 ∣ 푢) = 푃 푆 ( 푐 | | | 푥 푢 , ⋃ 푘∈ 푅 푘 (푢,퐶 푢 ) ) , 퐸 ← Apply(퐸, 표), (5) M.H. Nguyen et al.: Preprint submitted to ElsevierPage 4 of 25 rEDMRec: Reasoning Distillation into Experience Memory Figure 2: Overall architecture of rEDMRec on a concrete case (target Frozen, hard negative The Dark Knight), aligned with Sections 3.4–3.8.① LLM Teacher as Knowledge Extractor: frozen LLM 푇 emits preference / perception / evidence / counterfactual traces; Knowledge Distillation (Adapt) writes four-channel entries that the Memory Controller LLM 퐶 commits via Add/Delete/Modify/Keep.② Editable Experience Memory Bank 퐸 = 퐸 lt ,퐸 st ,퐸 ip ,퐸 cf . Candidate Filter forms 퐶 푢 with shared Enc.③ LLM Student as Ranker: frozen LLM 푆 retrieves top-푚 entries per channel and ranks without calling the teacher. ④ Experience Memory Optimization: Reward Models 푟(푢) and Debate and Arbiter (LLM 퐴 ) revise 퐸 while LLM 푆 stays fixed. where 푃 푆 denotes generation under the frozen student LLM 푆 , 푅 푘 (Eq. 11) is a deterministic top-푚 dense lookup (not a per-request marginalized set as in Eq. (3)), and Apply commits edit ops 표 produced offline by teacher extraction (Section 3.5) and distillation (Section 3.6), or online by debate-based optimization after each student prediction (Section 3.8). This is the central contrast with Eqs. (2)–(4): reasoning cost is paid when writing 퐸, the frozen student only retrieves, and memory edits – not weight updates – amortize future ranking. Concretely, Figure 2 decomposes the pipeline into the Method subsections that follow.① LLM Teacher as Knowledge Extractor (Section 3.5): given (푢,퐻 푢 ,푖,푀), LLM 푇 runs four extraction passes and Knowledge Distillation Adapt (Section 3.6.1) normalizes each routed signal into a channel-indexed entry 푒 = (휏, 퐯 푒 ,휇), which the Memory Controller LLM 퐶 commits with Add/Delete/Modify/Keep.② Editable Experience Memory Bank (Section 3.6): 퐸 = 퐸 lt ,퐸 st ,퐸 ip ,퐸 cf stores stable taste, session context, candidate-grounded perception, and counterfactual hard-negative edges as independently retrievable typed snippets. Before online ranking, Candidate Filter (Section 3.4) forms 퐶 푢 and shares Enc with memory indexing.③ LLM Student as Ranker (Section 3.7): frozen LLM 푆 encodes the current query, retrieves the top-푚 entries per channel, and produces ̂ 퐿 푢 without invoking LLM 푇 or updating student weights.④ Experience Memory Optimization (Section 3.8): Reward Models 푟(푢) score ̂ 퐿 푢 against푖 + , then Debate and ArbiterLLM 퐴 propose revisions that Adapt and Apply write back into 퐸, so future retrievals improve while LLM 푆 stays fixed. 3.4. Candidate Filter Motivation: a generative student cannot score the full catalog at each request, and retrieval plus memory index- ing must share one dense text space rather than operating over raw strings. Design: candidate sets 퐶 푢 are formed by a lightweight recency/popularity/retrieval-score filter over (not a learned projector). The same encoder maps any text span to a 푑-dimensional retrieval vector, 퐯 = Enc(text), sim(퐯, 퐯 ′ ) = 퐯 ⊤ 퐯 ′ ‖퐯‖ ‖퐯 ′ ‖ ,(6) with Enc a sentence-transformer (Reimers and Gurevych, 2019). 퐯 is reused for memory indexing (Eq. 9) and retrieval (Eq. 11). Advantage: 퐶 푢 is formed without a learned pro- jector, and one shared Enc lets 퐸 be queried directly with candidate or user vectors, with no separate alignment step. 3.5. LLM Teacher as Knowledge Extractor Motivation: conflating “understand the user” (stable) with “score this candidate list” (per-request) forces the former to be redone every request; rEDMRec queries the teacher only for the former, and only to extract, never to rank. Design: following ReasoningRec (Bismay et al., 2025) and R2Rec (Zhao et al., 2025), which show that structured preference profiles, item-level perceptions, and explanatory rationales improve recommendation when distilled from a strong LLM, teacher LLM 푇 runs four extraction passes M.H. Nguyen et al.: Preprint submitted to ElsevierPage 5 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 2 Teacher extraction passes 푝 ∈ : output fields and routed channel(s) 푘 (Section 3.6.1). 푝Key output fieldsRouted to 푘 pref long_term_preferences, dislikes, short_term_preferences lt, st ctx user_history_perception, candidate_perception ip reas steps[1..5], reasoning_summaryip cf counterfactual_condition/outcome, rationalecf 푝 ∈ , each a prompted generation, 푟 푝 = LLM 푇 ( prompt 푝 (푢,푖,퐻 푢 ,푀) ) , 푝 ∈ . (7) whose output fields are later routed to one or more memory channels 푘 ∈ by Adapt (Table 2, Section 3.6.1); the routing is not one-to-one, since two passes jointly pop- ulate the item-perception channel. Prompt templates and example one-line outputs for all four channels are given in Appendix I; full Beauty/Steam prediction traces (history, candidates, 푅 푘 , ranked list) appear in Appendix J. Unlike ReasoningRec/R2Rec, which consume these traces as train- ing targets or one-shot prompt features, we never update student parameters from 푟 푝 : each field is committed into the editable bank 퐸 of Section 3.6. Preference extraction (pref). Simulates a recurrent, batch-by-batch update over 퐻 푢 (oldest→newest): for each history batch it re-estimates a long-term preference state and the current-batch short-term interest, plus an explicit dislike list; the final long-term/dislike fields route to channel lt and the short-term field routes to channel st. Context extraction (ctx). For every history item and candidate, produces three layers – an objective factual description, a first-person “as this user” comment, and (candidates only) key phrases; both the history-perception and candidate-perception fields route to the item-perception channel ip. Reasoning extraction (reas). Runs a five-step chain- of-thought that identifies shared themes across liked items, scores each candidate against them, contrasts the top two candidates, and states a final recommendation; its summary field also routes to ip, complementing ctx with an explicit comparative rationale rather than a per-item description. Counterfactual extraction (cf). Given an anchor (cho- sen) item and a contrast (hard-negative) item, produces why- preferred / why-rejected rationales and a hypothetical condi- tion under which the contrast item would outrank the anchor; routes entirely to channel cf as a graph edge (Section 3.6.2). An optional single-pass multi-agent refinement critiques the 푟 cf output with three fixed personas before distillation, merging by “last full critique wins” with no arbiter; this is a lighter-weight precursor to the arbiter-based optimization of Section 3.8, which instead revises already-committed entries across all four channels using downstream reward signals. Advantage: separating extraction into four typed passes, rather than one undifferentiated call, lets Section 3.6.1 edit a single routed claim without touching the other channels of the same interaction. 3.6. Editable Experience Memory Bank Motivation: Eq. (7) yields free-form JSON that cannot be reused across sessions or revised entry-by-entry once committed. Design: adapting the training-free experiential- knowledge library of Training-Free GRPO (Youtu-Agent Team, 2025) to recommendation, rEDMRec materializes teacher output into a persistent, typed non-parametric mem- ory 퐸 = 퐸 푘 푘∈ , 퐸 푘 = 푒 ∣ 푒.memory_type = 푘, (8) where each entry 푒 = (휏, 퐯 푒 ,휇) carries distilled text 휏, embedding 퐯 푒 = Enc(휏), and channel-specific metadata 휇. Population follows a two-stage commit path – Adapt (field routing and schema normalization) and Apply via controller LLM 퐶 (batch edit ops) – detailed in Section 3.6.1; channel semantics and retrieval are in Section 3.6.2. 3.6.1. Knowledge Distillation: Adapter and Memory Controller Distillation adapter Adapt. Adapt maps routed teacher fields (Table 2) into a typed entry and dispatches it to the correct physical store: 푒 푘 = Adapt ( route 푘 (푟 푝 푝∈ ) ) = ( 휏 푘 , Enc(휏 푘 ), 휇 푘 ) , 푘 ∈ . (9) Here route 푘 (⋅) selects and concatenates the field(s) assigned to channel 푘 (many-to-one: pref → lt,st; ctx,reas → ip; cf →cf).Adapt then (i) normalizes 휏 푘 into a channel schema (휇 푘 holds typed fields such as long_term_preferences, dislikes, steps, anchor_item), (i) encodes 휏 푘 with the shared Enc of Eq. (6), and (i) writes to 퐸 lt , 퐸 st , or 퐸 ip (Vector database) or, for 푘 = cf, to 퐸 cf as a Graph database edge pair(푢) ANCHOR ←→(푖 + )∧(푢) CONTRAST ←→(푖 − ) plus a rationale embedding (Listing 3). Initial extraction (distill_to_memory) and debate optimization (Section 3.8) both call the same Adapt. Memory controller LLM 퐶 . Raw Adapt output is not appended blindly: controller LLM 퐶 inspects a text snapshot of the bank against a batch of new insights 퐵 = (휏, 푘, 푢) and emits structured edit ops 표, which Apply commits in order: 표 = LLM 퐶 ( snapshot(퐸), 퐵 ) , 표 푖 ∈ ADD, DELETE, MODIFY, KEEP, 퐸 ← Apply(퐸, 표). (10) Apply implements each op on the underlying stores: ADD calls Adapt then appends; DELETE removes by entry_id; MODIFY re-encodes revised 휏 and replaces metadata in-place; KEEP is a no-op. These four operators mirror the experience-library update rule in Training- Free GRPO (Youtu-Agent Team, 2025), specialized here to typed recommendation channels rather than general M.H. Nguyen et al.: Preprint submitted to ElsevierPage 6 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 3 Four experience-memory channels: role, teacher source, stor- age, and retrieval filter. 푘 Semantic roleSource 푝 Storage / filter lt Stable cross-session taste prefvector DB; user_id= 푢 st Session-level trend / drift prefvector DB + timestamp; user_id= 푢 ip Item impression vs. user ctx, reas vector DB; user_id= 푢, item= 푐 cf Contrastive “if. . . ” edge cfgraph DB + vector DB; user_id= 푢 agent rollouts. The controller prompt enforces a maximum library size, deduplication (merge over add), and ≤60-word actionable entries. Advantage: Eqs. (9)–(10) decouple what to remember (teacher or arbiter) from how to commit it; refinement cost scales with |표|, not |퐸|. 3.6.2. Four Experience-Memory Channels We factor experience into four typed channels because prior LLM and sequential recommenders show that long- horizon taste (Shi et al., 2024; Wang et al., 2025), recent sequential context (Zheng et al., 2024; Zhang et al., 2024a), item-level semantics (Ren et al., 2024; Zhang et al., 2026), and hard-negative contrast (Song et al., 2026; Li et al., 2026) each contribute distinct ranking signal – and because storing them separately lets 푅 푘 retrieve only the evidence class needed for a decision. Table 3 summarizes the four channels. Each 퐸 푘 is independently indexed, independently retrievable, and independently editable – the ablation in Section 5.2 drops individual푘 at inference without retraining LLM 푆 . Long-term preference (lt). Motivated by evidence that long-horizon preference modeling improves recommenda- tion beyond next-click prediction (Shi et al., 2024) and that external memory retrieval is needed when the LLM context window alone drops long-term history (Wang et al., 2025), this channel stores durable taste statements distilled from long_term_preferences and dislikes (pref pass), optionally with supporting reasoning. Entries are user-global: retrieval over 퐸 푢 lt = 푒 ∈ 퐸 lt ∣ 휇.user_id = 푢 answers “what does this user generally like/dislike?” without binding to a specific candidate. Short-term context (st). Motivated by sequential recommenders that show recent interactions dominate next-item prediction (Zheng et al., 2024) and that jointly modeling long- and short-term interests outperforms either alone (Zhang et al., 2024a), this channel captures transient interest from short_term_preferences (pref pass) plus optional context_reasoning. Each entry carries a timestamp in 휇, enabling the bank to represent taste drift within a session or across recent batches while lt remains stable. Retrieval filters on user_id only. Item perception (ip). Motivated by work showing that item-text representation quality drives LLM recommen- dation (Ren et al., 2024) and that token-centric attention "user_id": "...", "anchor_preference": "prefers animation, family-friendly tone", "target_item": "Frozen", "contrast_item": "The Dark Knight", "counterfactual_condition": "if user prefers dark, action-heavy stories", "counterfactual_outcome": "The Dark Knight would rank higher", "rationale_text": "...", "embedding": [], "timestamp": "..." Figure 3: Distilled 푒 cf : the graph-edge instantiation of Eq. (9). under-models item-level collaborative relations (Zhang et al., 2026), this is the most granular channel: (i) per- candidate impressions from candidate_perception (ctx), (i) per-history-item descriptions from user_history_perception (ctx), and (i) comparative reasoning from the five-step chain and reasoning_summary (reas). Candidate-specific entries additionally index target_movie_id in 휇, so retrieval for (푢,푐) returns impressions scoped to 푐 rather than unrelated items. Counterfactual (cf). Motivated by recent LLM recommenders that separate hard negatives from noisy negatives (Song et al., 2026) and that use self-hard negatives to sharpen preference learning (Li et al., 2026), this channel stores hard-negative contrast rationales as typed graph edges: for anchor item 푖 + and contrast 푖 − , 휇 records why_anchor_preferred, why_contrast_rejected, counterfactual_condition, and counterfactual_outcome. Dense retrieval runs over rationale_text embeddings; a graph-augmented pass appends any user-specific edges not surfaced by vector search. Listing 3 shows the instantiated schema. Retrieval. At inference, the student queries each active channel with a shared query embedding 퐪 푢 = Enc(prompt(푢,퐶 푢 )) and returns the top-푚 entries by dense similarity: 푅 푘 (푢,퐶 푢 ) = Top-m 푒∈퐸 푢 푘 sim ( 퐪 푢 , 퐯 푒 ) ,(11) where 퐸 푢 푘 ⊆ 퐸 푘 applies the filters in Table 3 (candidate scope 푐 is applied only for ip), and sim is Eq. (6). Default 푚=5 per channel. Advantage: typed channels let 푅 푘 return only the evidence class needed for a ranking decision – stable taste (lt), recent drift (st), candidate fit (ip), or boundary conditions (cf) – rather than one undifferentiated reasoning blob. 3.7. LLM Student as Ranker Motivation: if ranking gains required adapting student parameters, it would be unclear whether accuracy came M.H. Nguyen et al.: Preprint submitted to ElsevierPage 7 of 25 rEDMRec: Reasoning Distillation into Experience Memory from the editable experience memory or from parameter adaptation; moreover, a per-backbone adapted student would need re-adaptation for every backbone, undermining the claim that 퐸 helps any teacher–student pair. Design: student LLM 푆 is a frozen pretrained LLM (3B–20B in our study). At inference it ranks solely by prompting with retrieved experience – never a fresh teacher call and never a weight update – following Eq. (5): ̂ 푖 = argmax 푐 ∈퐶 푢 푃 푆 (푐 ∣ 푢) = argmax 푐 ∈퐶 푢 푃 푆 ( 푐 | | | 푥 푢 , ⋃ 푘∈ 푅 푘 (푢,퐶 푢 ) ) . (12) Here 푥 푢 = prompt(푢,퐶 푢 ) and ⋃ 푘 푅 푘 are concatenated into the student context;LLM 푆 is held fixed across bank updates. Unlike Eq. (3), retrieval is deterministic, and no student objective is optimized. Advantage: gains over zero-/few- shot and RAG – and over GraphRAG on most backbones (Section 5.1) – are attributable to the content and editability of 퐸, not to student adaptation – the same frozen LLM 푆 improves when 퐸 improves (Section 5.4), and the protocol transfers across teacher–student pairs without per-student training (Section 5.3). 3.8. Experience Memory Optimization Motivation: a bank populated once from teacher extrac- tion can accumulate generic or conflicting entries; after the student ranks a case, the mismatch between the predicted list and the ground-truth target is a direct signal that 퐸 should be revised. Design: mirroring Training-Free GRPO (Youtu- Agent Team, 2025)’s loop of rollout → reward → semantic advantage → library edit – but specialized to recommenda- tion ranking and enriched with 퐾-agent debate – we update 퐸 after each student prediction: the student emits a ranked list under Eq. (12), reward models score that list against 푖 + , 퐾 debating agents critique the case conditioned on those rewards, an arbiter synthesizes revised experience entries, and the same distillation controller commits them. This closes a looppredict →reward→debate→edit →퐸 without changing LLM 푆 . 3.8.1. Reward Models Motivation: a single scalar (e.g., only Hit@1) is too coarse for debate agents to diagnose why a ranking failed – missing the top item, burying it just outside the top-푘, or placing it deep in the list require different memory edits. Design: given the student’s ordered list ̂ 퐿 푢 = (푐 (1) ,...,푐 (퐿) ) and ground-truth target 푖 + , let rank ∈ 1,...,퐿 ∪ ∅ be the 1-based position of 푖 + in ̂ 퐿 푢 (∅ if absent). We pack four complementary IR-style rewards in [0,1] into the debate/arbiter prompt: 푟(푢) = ( ퟏ[rank=1], ퟏ[rank ≤ 푘], min(1,1∕rank), 1∕log 2 (rank + 1) ) ∈ [0,1] 4 , (13) with all components zero if rank = ∅ (default 푘=10). Design rationale. The four components are HR@1, HR@푘, Algorithm 1 Experience Memory Optimization after stu- dent prediction (one epoch) Require: case batch 푈, frozen student LLM 푆 , agents LLM 1 ,...,LLM 퐾 , arbiter LLM 퐴 , rounds 푛 푟 1: for 푢 ∈ 푈 do 2: Rank ̂ 퐿 푢 with frozen LLM 푆 via Eq. (12) 3: 푟(푢) ← reward models on ( ̂ 퐿 푢 ,푖 + )⊳ Eq. (13) 4: ← ∅ 5: for round = 1,...,푛 푟 ; agent 푗 = 1,...,퐾 do 6: ← ‖LLM 푗 (persona 푗 , ,푢, ̂ 퐿 푢 ,푟(푢))⊳ Eq. (14) 7: end for 8: ̃푒 1 ,..., ̃푒 푛 ← LLM 퐴 ( ,푢, ̂ 퐿 푢 ,푟(푢))⊳ Eq. (15) 9: for ̃푒 ∈ ̃푒 1 ,..., ̃푒 푛 do 10:푒 ← Adapt(̃푒); 퐸 ← Apply(퐸,표)⊳ Eqs. (9),(10) 11: end for 12: end for reciprocal rank, and DCG-style position discount: they flag strict top-rank failure, near-misses, and graded credit when 푖 + appears but not first. Importantly,푟(푢) is not a training loss onLLM 푆 and is not used toargmax among agent proposals; it conditions the natural-language critique so that edits target the observed ranking failure mode. Advantage: the same four signals transfer across datasets and students because they depend only on ( ̂ 퐿 푢 ,푖 + ), keeping the optimization loop student-agnostic. 3.8.2. Debate and Arbiter after Each Prediction Design lineage. The procedure combines the training-free experience-library update of Training-Free GRPO (Youtu-Agent Team, 2025) with iterative self- critique (Madaan et al., 2023) and multi-persona debate (Du et al., 2023), but applies them at memory-bank granularity and triggers them from the student’s post-prediction reward vector (Section 3.8.1). Group computation. Over 푛 푟 rounds, 퐾 fixed-persona agents append free-form critiques to a shared transcript : 푔 푗 = LLM 푗 ( persona 푗 , , 푢, ̂ 퐿 푢 , 푟(푢) ) , ← ‖푔 푗 . (14) No entry is committed during Eq. (14). After 푛 푟 퐾 turns, a single arbiter call synthesizes the experience set to commit: ̃푒 1 ,..., ̃푒 푛 = LLM 퐴 ( , 푢, ̂ 퐿 푢 , 푟(푢) ) , 푛 ≤ 푛 max . (15) Eq. (15) is an LLM synthesis, not a programmatic vote or an argmax 푗 over 푔 푗 by reward. Optimizing. Algorithm 1 runs, for each case: student ranking (Eq. 12) → reward models (Eq. 13) → debate/arbiter (Eqs. 14–15) → commit via Adapt and Apply. Section 5.4 tracks bank-quality signals and downstream HR@1/MRR over 푇 such epochs. Reuse of Knowledge Distillation. Each synthesized ̃푒 is committed by the same operators as regular extraction (Section 3.6.1): 푒 = Adapt(̃푒) (Eq. 9) and 퐸 ← Apply(퐸,표) (Eq. 10). Optimization does not update LLM 푆 ; it only re- vises 퐸. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 8 of 25 rEDMRec: Reasoning Distillation into Experience Memory 4. Experimental Setup 4.1. Datasets We evaluate on three recommendation datasets that span the explicit-implicit feedback spectrum. ML-1M (Harper and Konstan, 2015) provides 1–5 star explicit ratings and is a standard benchmark for LLM-based recommendation. Amazon Beauty (Ni et al., 2019) provides explicit ratings and review text but is substantially sparser per user, which stresses the memory bank’s ability to compensate for weak collaborative signal. Steam (Kang and McAuley, 2018) is an implicit-feedback dataset: it logs which games a user played rather than an explicit rating, so every logged interaction is treated as an equally-weighted positive signal (rating fixed to 1.0, positive threshold 0.0) instead of being thresholded from a graded rating scale. For all three datasets we apply a 푘-core filter (푘=20 on ML-1M; 푘=5 on Beauty and Steam), build a chronological train/validation/test split, and con- struct 20-candidate ranking samples (1 positive, 19 sampled negatives). Dataset statistics after filtering are reported in Appendix H (Table 20). 4.2. Baselines We compare against four prompting/retrieval baselines and rEDMRec, formalized in Eqs. (2)–(4) (Section 3.2): Zero-shot and Few-shot (Brown et al., 2020) (퐾=0 and 퐾>0 in Eq. 2); RAG (Lewis et al., 2020) (Eq. 3), which retrieves raw historical interactions or reviews rather than distilled reasoning; and GraphRAG (Edge et al., 2024) (Eq. 4), which retrieves from a co-occurrence/knowledge graph built over items. 4.3. Models Unless noted otherwise, the teacher is gpt-5.4-mini. We evaluate ten open student backbones spanning 3B–20B parameters: Qwen2.5 3B, Llama 3.1 8B (Touvron et al., 2023), Gemma-4-12B (Gemma Team, 2024), Minimax M2.5, Mixtral 8x7B (Jiang et al., 2024), Qwen3-14B (Yang et al., 2024), DeepSeek-R1-Distill-Qwen-14B (DeepSeek- AI, 2025), Phi-4, Llama 4 Scout, and GPT OSS 20B. Each student is used frozen (Section 3.7), so that cross-backbone gains isolate the contribution of the editable experience memory. The teacher-distillation study (Section 5.3) additionally fixes the student to gpt-5-mini (strong) or Qwen2.5 3B (small) while varying the teacher across seven backbones, to isolate the teacher’s contribution from the student’s. 4.4. Metrics and Protocol We report Hit Rate at rank 푘 (HR@푘, 푘 ∈ 1,5,10), Normalized Discounted Cumulative Gain (NDCG@푘, 푘 ∈ 5,10), and Mean Reciprocal Rank (MRR), all computed over the fixed 20-candidate set per evaluation sample. For RQ1 tables we report Impv (%), the relative HR@1 improvement of rEDMRec over the second-best baseline on the same student (Impv = (Ours − SecondBest)∕SecondBest × 100), following RDRec (Wang et al., 2024b), together with a McNemar 푝-value on HR@1 vs. that second-best method (approximate 2×2 contingency reconstructed from the table HR@1 rates at the full held-out sizes 푛 ML−1M =49893, 푛 Beauty =1460, 푛 Steam =1460; ∗ marks 푝<0.05 when rEDMRec is ahead). Every (model, method, dataset) cell is evaluated on the full held-out test split (chronological train/validation/test; 20 candidates per sample with sampling seed 42), not a pilot subsample. The cross-dataset comparison in Section 5.1 (Amazon Beauty, Steam), the bank-scale analysis in Section 5.2, and the 푘- EPOCH and number-of-agents curves in Section 5.4 follow the same full-split evaluation protocol at each reported dataset, bank scale, and epoch/agent-count setting. 5. Results We organize results around four research questions: does distilling reasoning into memory improve ranking over prompting-only and retrieval-only baselines (RQ1, Section 5.1)? which memory channel drives that improvement (RQ2, Section 5.2)? does teacher quality causally affect bank quality and downstream gain (RQ3, Section 5.3)? and does debate-based memory optimization measurably improve bank quality and downstream ranking (RQ4, Section 5.4)? We close with a qualitative case study of how individual memory entries evolve over training (Section 5.5). 5.1. RQ1: Does rEDMRec Improve Ranking Across Students and Datasets? Table 4 reports HR@푘, NDCG@푘, and MRR for four representative students spanning our capacity range (Qwen2.5 3B, Llama 3.1 8B, Mixtral 8x7B, Qwen3-14B) on ML-1M; the full ten-model table is given in Appendix A. rEDMRec improves HR@1 over Zero-shot, Few-shot, and RAG for every student. Following RDRec (Wang et al., 2024b), Table 4 reports Impv (%) vs. the second-best baseline (typically GraphRAG): the largest relative gain is on the smallest student (Qwen2.5 3B, Impv = 13.3% over GraphRAG), consistent with structured memory helping most when parametric capacity is limited. Llama 3.1 8B is the clearest failure case – Impv is negative because GraphRAG remains ahead (Impv = −11.1%) – which we attribute to weak instruction-following rather than a deficiency of the memory itself (Section 4.3; Section 6); GPT OSS 20B similarly trails GraphRAG slightly (Impv = −3.3%), so the claim relative to GraphRAG is most, not all, students. Table 5 reports Zero-shot vs. rEDMRec on Amazon Beauty and Steam for all ten student models under HR@1, NDCG@10, and MRR (full five-method matrices in Ap- pendix B–C). The same ordering as on ML-1M holds: rEDMRec improves HR@1 over Zero-shot for every model on both datasets, and NDCG@10 / MRR rise in lockstep ex- cept on the weakest Llama 3.1 8B backbone, where ranking beyond top-1 remains flat. Absolute scores are lower than on ML-1M – as expected for sparser Amazon Beauty and M.H. Nguyen et al.: Preprint submitted to ElsevierPage 9 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 4 Main results on ML-1M for four representative students (full ten-model table in Appendix A). Impv (%) is the relative HR@1 gain of rEDMRec over the second-best baseline on the same student, Impv = (Ours − SecondBest)∕SecondBest × 100, following RDRec (Wang et al., 2024b). 푝 is the exact McNemar 푝-value for rEDMRec HR@1 vs. the second-best baseline (full held-out 푛=49893; approximate contingency from the table HR@1 rates). ∗ marks 푝<0.05 with rEDMRec ahead. Best in bold, second-best underlined ; rEDMRec rows labeled in bold. ModelMethod HR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Qwen2.5 3B Zero-shot 0.12 0.280.380.200.230.18– Few-shot0.14 0.300.400.210.240.20 – RAG0.13 0.290.390.200.230.19– GraphRAG 0.150.310.410.220.250.20– rEDMRec (ours) 0.17 ∗ 0.35 0.450.250.280.23 +13.3 ∗ < 0.001 ∗ Llama 3.1 8B Zero-shot 0.07 0.150.230.120.140.12– Few-shot0.080.160.240.120.150.13– RAG0.080.160.240.120.140.12– GraphRAG 0.09 0.17 0.250.12 0.150.13– rEDMRec (ours) 0.08 0.17 0.250.130.160.13 -11.1 < 0.001 Mixtral 8x7B Zero-shot 0.24 0.470.660.350.400.35– Few-shot0.26 0.490.680.370.420.36– RAG0.25 0.480.670.360.410.35– GraphRAG 0.27 0.500.690.380.420.37– rEDMRec (ours) 0.28 ∗ 0.52 0.710.390.440.38 +3.7 ∗ < 0.001 ∗ Qwen3-14B Zero-shot 0.26 0.500.690.380.430.37– Few-shot0.28 0.520.710.400.450.39– RAG0.27 0.510.700.390.430.38– GraphRAG 0.290.530.720.400.450.40– rEDMRec (ours) 0.30 ∗ 0.55 0.730.420.470.41 +3.4 ∗ < 0.001 ∗ implicit-feedback Steam – yet Impv (%) vs. the second-best baseline (GraphRAG) is again largest on the smallest student (Qwen2.5 3B: Impv = 23.6% on Beauty and 21.5% on Steam; both푝<0.05), consistent with memory compensating for weak collaborative signal when per-user history is short; mid-capacity Beauty students show smaller Impv (about 9– 13%) that is not significant at 푛=1460. 5.2. RQ2: Which Memory Channel Matters? To isolate each channel’s contribution, we remove one memory channel at a time and report ΔHR@1 relative to the full-memory model. This ablation uses a separate panel of seven API-served backbones chosen to span four capacity tiers – strong (gpt-5-mini), mid (gpt-5.4-mini, Qwen3-32B, Minimax M2.5), saturated (GPT-OSS-120B), and weak (Llama 3.3 70B, Llama 3.1 8B) – rather than the ten local open-weight students used for the main comparison in Section 5.1; note that a backbone name can appear in both this ablation panel and the teacher panel of Section 5.3 (e.g., gpt-5.4-mini), where it plays a different role (ablated student vs. teacher) in a separate experiment. Table 6 summarizes the resulting pattern across the four capacity tiers. Short-term context is the only channel that is consistently important: removing it hurts every tier, from a strong student (gpt-5-mini, Δ=−0.04) down to weak Groq-served Llama students (Δ ≈ −0.01 to −0.02). The long-term preference, item-perception, and counterfactual channels show a reversed ablation on the strongest student: removing them improves HR@1 by+0.03 to+0.04, whereas removing the counterfactual channel hurts the mid-capacity student (Δ=−0.04) and has little effect on the saturated 120B-parameter student, which appears to ignore the bank altogether (full-memory Δ ≈ 0.00 for that tier). We consider three, non-exclusive explanations for the reversed sign on strong students, in decreasing order of the evidence we can bring to bear with the current instru- mentation. First, channel redundancy: long-term preference statements often restate information already present in the raw history block of the prompt, so a strong student that already attends well to raw history gains nothing extra and instead pays a small “distraction” cost for the redundant text. Second, generic, low-specificity entries: item-perception en- tries produced early in the bank’s lifecycle tend to be long and only loosely actionable (Section 5.5 quantifies this di- rectly via a specificity score). Third, conflicting signals: a counterfactual edge can push a plausible but ultimately incorrect candidate above the true target when its hypo- thetical condition partially matches the current user. Only the mid-capacity student, which cannot yet extract the same information unaided from raw history, benefits from the counterfactual channel unconditionally; the fact that the sign of this effect depends on student capacity, rather than being fixed, is itself evidence against treating any single channel M.H. Nguyen et al.: Preprint submitted to ElsevierPage 10 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 5 Cross-dataset generalization on Amazon Beauty and Steam (full held-out test split, 20 candidates/sample, seed 42). ZS = Zero-shot; Ours = rEDMRec (bold). Impv (%) is the relative HR@1 gain of rEDMRec over the second-best baseline on the same student, Impv = (Ours − SecondBest)∕SecondBest × 100, following RDRec (Wang et al., 2024b). 푝 = McNemar 푝-value for Ours HR@1 vs. the second-best baseline (푛 Beauty =1460, 푛 Steam =1460; ∗ if 푝<0.05). Complete five-method matrices are in Appendix B–C. Dataset ModelHR@1(ZS) HR@1(Ours) NDCG@10(ZS) NDCG@10(Ours) MRR(ZS) MRR(Ours) Impv (%) 푝 Amazon Beauty Qwen2.5 3B0.0920.136 ∗ 0.2180.2620.1800.224+23.6 ∗ 0.037 ∗ Llama 3.1 8B0.0620.0710.1800.1800.1620.162-4.1 0.830 Gemma-4-12B0.1400.1780.2900.3280.2520.290+12.7 0.166 Minimax M2.50.1520.1870.3080.3430.2640.290+10.0 0.247 Mixtral 8x7B 0.1640.2020.3200.3580.2820.311+11.0 0.188 Qwen3-14B0.1760.2110.3380.3730.2940.329+8.8 0.269 DeepSeek-R1 Distill-Qwen-14B 0.1880.2230.3500.3850.3120.329+8.3 0.280 Phi-40.1700.2050.3320.3930.2880.340+9.0 0.264 Llama 4 Scout0.1820.2170.3440.4050.3000.344+8.5 0.275 GPT OSS 20B0.1820.1990.3440.3700.3000.317-0.5 1.000 Steam Qwen2.5 3B0.1060.158 ∗ 0.2240.2760.1800.232+21.5 ∗ 0.035 ∗ Llama 3.1 8B0.0660.0760.1800.1800.1620.162-7.3 0.584 Gemma-4-12B0.1700.2080.3200.3580.2760.314+7.2 0.356 Minimax M2.50.1860.2240.3440.3820.2920.321+6.7 0.394 Mixtral 8x7B 0.2020.2440.3600.4020.3160.349+8.0 0.276 Qwen3-14B0.2180.2560.3840.4220.3320.370+5.8 0.392 DeepSeek-R1 Distill-Qwen-14B 0.2340.2720.4000.4380.3560.375+5.4 0.426 Phi-40.2100.2480.3760.4430.3240.382+6.0 0.411 Llama 4 Scout0.2260.2640.3920.4590.3400.388+5.6 0.421 GPT OSS 20B0.2260.2450.3920.4210.3400.359-2.0 0.797 Table 6 Channel importance by capacity tier (ΔHR@1 vs. full memory). Negative = beneficial channel; positive = reversed ablation (Section 5.2). ChannelStrong Mid SaturatedWeak Short-term context −0.04 −0.04 ≈−0.01 −0.01–−0.02 Long-term preference +0.03 0.00≈0.00+0.01 Item-perception+0.04 0.00≈0.00slight Counterfactual+0.03 −0.04weak≈0.00 Full memory−0.01 −0.03 ≈0.00weak as universally useful or harmful. Figure 4 shows this pattern holds across all seven backbones in the ablation panel, and Figure 5 shows that the reversed channels flip sign as the bank grows from the sparse-bank anchor (퐵=189) toward 10 5 –10 6 entries, because a denser bank dilutes the redundant and generic entries that drive the reversal at small 퐵 (bank size is independent of the full-test evaluation protocol in Section 4.4). Per-backbone Δ plots, the MRR heatmap, and the full numeric ablation matrix are deferred to Appendix G. 5.3. RQ3: Does Teacher Quality Causally Affect Downstream Gain? Holding the student fixed and varying the teacher isolates the teacher’s contribution from the student’s. Table 7 fixes the student to gpt-5-mini (strong) across seven teachers; Table 8 repeats the comparison with Qwen2.5 3B (small). w/o Short-Term w/o Long-Term w/o Item-Perc. w/o Counterfactual w/o Memory Channel removed GPT-5-mini GPT-5.4-mini GPT-OSS-120B Qwen3-32B Minimax M2.5 Llama-3.3-70B Llama-3.1-8B Student model -0.06-0.06-0.08-0.05-0.10 -0.05-0.05-0.07-0.05-0.08 -0.01-0.01-0.01-0.01-0.02 -0.05-0.05-0.07-0.05-0.08 -0.05-0.05-0.07-0.05-0.08 -0.02-0.02-0.02-0.02-0.04 -0.02-0.02-0.02-0.02-0.04 Memory channel ablation: ΔHR@1 across student models (n=30,000) -0.10 -0.05 0.00 0.05 0.10 ΔHR@1 Figure 4: Channel ablation heatmap: ΔHR@1 for each of the seven ablation-panel backbones (rows, Section 5.2) and four memory channels (columns). Green cells indicate a reversed ablation (removal helps); red cells indicate the channel is beneficial. Across both tables, a lower bank duplicate rate is a leading indicator of downstream gain: gpt-5.4-mini has the lowest duplicate rate among the strongest teachers (12.4%) and the largest ΔHR@1 for the strong student (+0.060), while Llama 3.1 8B Instant – the only teacher below 14B param- eters in this comparison – has by far the highest duplicate rate (22.8%) and the smallest gain (+0.015), consistent with a weak teacher producing generic, repetitive entries (e.g., re- peated “user likes drama” statements without item-specific detail) that carry little retrieval value. The relationship is M.H. Nguyen et al.: Preprint submitted to ElsevierPage 11 of 25 rEDMRec: Reasoning Distillation into Experience Memory 1892005001K5K10K30K Teacher extractions B -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10 Contribution ( −Δ HR@1 vs. Full) +0.04 +0.04 +0.04 +0.05 +0.06 +0.06+0.06 -0.03-0.03 -0.02 -0.01 +0.04 +0.06 +0.06 -0.04-0.04 -0.03 -0.01 +0.05 +0.07 +0.07 -0.03-0.03 -0.02 -0.02 +0.03 +0.05 +0.05 (a) Contribution vs. bank scale B 1002005001K2K5K10K N eval (log 10 ) 0.04 0.05 0.06 0.07 0.08 Contribution ( −Δ HR@1) (b) Stability at B=29K N_eval=500 fixed in (a). B≤200: LT/IP/CF reversed; B≥5K all −ΔHR@1. (b) bank B=29,502 fixed; error bars σ/√N. Short-TermLong-TermItem-PerceptionCounterfactual Figure 5: Per-channel contribution (−ΔHR@1) as bank scale 퐵 grows from the sparse-bank anchor (퐵=189) to 10 6 entries (panel a), and stability of the estimate as evaluation sample size grows under the full-test protocol at fixed bank scale (panel b). Note: 퐵 is bank size, not the evaluation split size. Table 7 Teacher-distillation effectiveness, fixed student: gpt-5-mini (strong). Zero-shot baseline HR@1= 0.28, MRR= 0.403. TeacherDup.%↓ ΔHR@1↑ ΔMRR↑ HR@1 gpt-5.4-mini12.4+0.060 +0.0687 0.340 Qwen3 32B (131k)11.5+0.055 +0.0620 0.335 gpt-5-mini14.1+0.050 +0.0580 0.330 Llama 3.3 70B (128k) 10.5+0.045 +0.0520 0.325 GPT OSS 120B (128k) 9.8+0.040 +0.0450 0.320 Minimax M2.513.2+0.040 +0.0480 0.320 Llama 3.1 8B Instant22.8+0.015 +0.0180 0.295 not perfectly monotonic, however: GPT OSS 120B has the lowest duplicate rate of any teacher (9.8%) yet only a mid- dling ΔHR@1 (+0.040), which we attribute to a student- capacity ceiling – gpt-5-mini cannot fully exploit the addi- tional verbosity of a 120B-parameter teacher’s bank. This ceiling is sharper for the small student: Table 8 shows the GPT OSS 120B bank drops below the more concise Qwen3 32B bank once the student itself is small (Qwen2.5 3B), even though GPT OSS 120B produces the least duplicated bank of the two. Together, these two tables support a causal chain in which teacher quality first improves bank quality (lower duplication), and bank quality only converts into downstream gain up to a ceiling set by the student’s own capacity to use additional bank detail. 5.4. RQ4: Does Debate-Based Memory Optimization Improve Bank Quality and Downstream Ranking? We next ask whether the debate-and-arbiter optimization procedure (Section 3.8) is doing useful work, rather than merely adding cost. Figure 6 tracks bank-quality signals and downstream ranking jointly over six 푘-EPOCHs of debate (three debate agents, one round per epoch). Bank quality improves and saturates: the duplicate rate drops by 7.4 Table 8 Teacher-distillation effectiveness, fixed student: Qwen2.5 3B (small). Zero-shot baseline HR@1= 0.12, MRR= 0.18. TeacherDup.%↓ ΔHR@1↑ ΔMRR↑ HR@1 gpt-5.4-mini12.4+0.050 +0.0550 0.170 Qwen3 32B (131k)11.5+0.045 +0.0500 0.165 gpt-5-mini14.1+0.042 +0.0470 0.162 Llama 3.3 70B (128k) 10.5+0.038 +0.0430 0.158 GPT OSS 120B (128k) 9.8+0.034 +0.0380 0.154 Minimax M2.513.2+0.033 +0.0380 0.153 Llama 3.1 8B Instant22.8+0.010 +0.0120 0.130 0123456 k-EPOCH (debate passes) 0.15 0.20 0.25 0.30 0.35 Downstream score (a) Debate → downstream ranking Mixtral 8x7B · HR@1 Mixtral 8x7B · MRR Minimax M2.5 · HR@1 Minimax M2.5 · MRR Gemma-4-12B · HR@1 Gemma-4-12B · MRR Qwen2.5 3B · HR@1 Qwen2.5 3B · MRR Mixtral 8x7B · HR@1 (no-debate) 0123456 k-EPOCH (debate passes) 11 12 13 14 15 16 17 18 Duplicate rate (%) (b) Debate → bank quality Duplicate rate % (↓) Mean reward (↑) Specificity (↑) 0.0 0.2 0.4 0.6 0.8 1.0 Reward / specificity Figure 6: Debate-based memory optimization vs. 푘-EPOCH. (a) Downstream HR@1/MRR for student models plus a no- debate control. (b) Bank-quality signals: duplicate rate (down is better) and mean experience reward / specificity (up is better). percentage points (18.0% → 10.6%) while mean experience reward rises by 0.255 (0.52 → 0.78). Downstream ranking tracks this curve rather than moving independently of it: the strongest student in this comparison (Mixtral 8x7B) gains +0.029 HR@1 (0.250 → 0.279) over the same six epochs, while a no-debate paraphrase control – which perturbs entry wording without the critique-and-revise debate loop – stays flat, isolating the debate mechanism (rather than any wording change) as the source of the gain. The smallest student in this comparison (Qwen2.5 3B) gains only +0.013 HR@1 (0.156 → 0.169) from the identical optimized bank, repro- ducing the capacity ceiling from Section 5.3 in a different experiment: most of the gain lands within the first two to three epochs for every student, so debating past 푘=3 epochs is rarely worth the added LLM cost. A separate sweep over the number of debating agents (푘 = 1,...,10, one epoch) shows quality rising with the diversity of critique but saturating, while LLM cost grows linearly in푘 (Table 9, Figure 7). The knee of quality-per-cost is at 푘 ∗ = 4: increasing 푘 from 1 to 4 lifts HR@1 by +0.022, but increasing 푘 from 4 to 10 adds only +0.006 for six additional LLM calls per case, which is not a favorable trade for most deployment budgets. Tabular controller ablations M.H. Nguyen et al.: Preprint submitted to ElsevierPage 12 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 9 Number-of-debating-agents sweep (푘 = 1..10), reference stu- dent Mixtral 8x7B. 푘 ∗ marks the quality-per-cost knee. 푘HR@1↑ Specificity↑ Dup.%↓ Calls/case 10.2550.52016.02 20.2660.60813.43 30.2730.66311.94 4 (푘 ∗ ) 0.2770.69911.05 50.2790.72110.46 60.2810.73510.07 70.2820.7449.88 80.2820.7509.79 90.2820.7549.610 100.2830.7569.611 12345678910 k (debate agents) 0.16 0.18 0.20 0.22 0.24 0.26 0.28 HR@1 k*=4 (a) Downstream vs k Mixtral 8x7B Minimax M2.5 Gemma-4-12B Qwen2.5 3B 12345678910 k (debate agents) 0.0 0.2 0.4 0.6 0.8 1.0 Specificity (b) Bank quality vs k Specificity (↑)Duplicate % (↓) 12345678910 k (debate agents) 2 4 6 8 10 LLM calls / case (c) Cost vs k (linear) LLM calls/caseDebate tokens/case 10 11 12 13 14 15 16 Duplicate rate (%) 500 1000 1500 2000 2500 Tokens / case Figure 7: Number-of-agents sweep: downstream HR@1, bank- quality signals, and LLM cost as a function of 푘. (full debate vs. no-debate paraphrase vs. post-extraction) and epoch snapshots are collected in Appendix F. 5.5. Qualitative Case Study: How Do Memory Entries Evolve? The ablation and debate-optimization results above are aggregate signals; to make the mechanism concrete, we directly compare the earliest and the latest persisted entry per user in each memory channel, using a deterministic, LLM- free specificity score (specificity combines concreteness, genre-term coverage, lexical diversity, and a hedge-language penalty into a single [0,1] score, with no additional LLM calls). Table 10 summarizes the resulting before/after deltas across users with at least two persisted versions. Three of the four channels become more specific and less hedged over training; the item-perception channel changes the most (mean specificity 0.405 → 0.488), moving from generic fallback language to item-grounded, actionable statements. The short-term context channel is the exception: its mean specificity decreases slightly (0.433 → 0.401), which Fig- ure 8 and the cases below show is not a quality regression but a compression effect – verbose narrative entries are replaced by short, conditional “session rules” that are less lexically diverse by construction but more directly actionable by the student. Table 11 shows three representative before→after pairs drawn from the persisted bank (one long-term, one item- perception, one short-term). Case A (long-term, user 2) replaces a single-film hedge (“Very limited data...”) with a Table 10 Bank evolution: specificity before (earliest persisted entry) vs. after (latest persisted entry) per channel, over users with ≥ 2 versions. ChannelSpec. before Spec. afterΔ Long-term preference0.5000.520+0.021 Short-term context0.4330.401−0.032 Item-perception0.4050.488+0.084 Counterfactual / hard-neg. 0.4780.519+0.042 Long-Term Preference Short-Term Context Item-PerceptionContrastive Hard-Negative 0.0 0.1 0.2 0.3 0.4 0.5 0.6 Mean specificity +0.02 -0.03 +0.08 +0.04 Experience-bank specificity: before vs after training BeforeAfter Figure 8: Mean specificity before vs. after training, by memory channel. ranking-ready taste statement that names era, franchise type, and an upweight rule, lifting specificity from0.214 to0.479. Case B (item-perception, user 4) converts a vague Hit@1 complaint into an item-grounded rule keyed to Rocky (1976), with an explicit +30–50% tie-break boost – the largest single-entry ΔSpec. in the sample (+0.500). Case C (short- term, user 2) illustrates the compression pattern behind the negative mean Δ on that channel: an empty “no emerging interests” note becomes a short session rule with diversity constraints; lexical diversity drops relative to long narrative entries, but actionability rises. Together the three cases show that debate-driven Add/Modify operations do not merely paraphrase entries – they accumulate confirmed signals into shorter, more specific, ranking-oriented memory. 6. Discussion and Limitations Operating-point generalization. The bank-scale anal- ysis (Section 5.2) and the 푘-EPOCH and number-of-agents curves (Section 5.4) span a wide range of settings – bank sizes up to 10 6 entries, up to six debate epochs, and up to ten debating agents. A practitioner adopting a specific operating point (for example, a specific푘-EPOCH budget or bank size) in a production system should re-confirm behavior at that exact point, since a trend measured across a range does not guarantee identical behavior at every intermediate setting. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 13 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 11 Qualitative before→after memory entries (persisted bank). Spec. is the deterministic specificity score in [0,1]. Case / channel Spec.Before (earliest)After (latest) A / lt0.214 →0.479 “Very limited data: the only rated film is a classic action-adventure, suggesting a preference for high- energy, heroic, escapist storytelling. . . Dislikes: No explicit dislikes can be inferred. . . ” “Long-term: favors mainstream 1990s action buddy-cop films – franchise sequels, star-driven chemistry, high-energy action with comedic in- terplay. Upweight these attributes in ranking but require repeat confirmations. . . ” B / ip0.350 →0.850 “The strongest match was only ranked 5th, so Hit@10 was good but Hit@1/MRR suffered. For this user, place the best Rocky-like inspirational drama at rank 1 whenever possible.” “Rocky (1976): User 4 chose Rocky over a higher- ranked 80s action title, signaling a preference for 1970s character-driven underdog sports dramas. When ranking, boost similar 1970s character dra- mas above mainstream 80s action (recommend +30–50% score in tie scenarios).” C / st0.300 →0.500 “No recent viewing items were provided, so no emerging short-term interests can be detected.” “Session: prioritize late-80s/90s Hollywood action comedies with buddy dynamics and franchise en- tries for top slots; include at least one diverse alternative per slate to avoid popularity bias.” Teacher coverage. The main results (Section 5.1) fix the teacher to gpt-5.4-mini; the teacher-distillation study (Section 5.3) varies the teacher but only against two fixed students. We have not measured the full teacher × student cross-product, so it remains open whether the teacher-quality effect observed for gpt-5-mini and Qwen2.5 3B holds uni- formly across all ten students in Table 12. Explanation faithfulness. rEDMRec’s student can emit a short explanation grounded in retrieved memory (Section 3.7), but this paper evaluates ranking quality, not whether the emitted explanation is faithful to the memory it cites; a human evaluation of explanation faithfulness and plausibility, as outlined in our evaluation plan, is left to future work. Backbone-dependent returns. The architecture assumes the student can follow a moderately complex prompt that concatenates user context, candidate descriptions, and retrieved memory snippets. Section 5.1 shows this assumption breaks down for at least one backbone (Llama 3.1 8B), whose negative Impv vs. GraphRAG we attribute to weak instruction-following rather than to the memory being unhelpful in principle; the near-saturated 20B-parameter student likewise trails GraphRAG slightly. Memory still lifts every student over Zero-shot/Few-shot/RAG, but not always over GraphRAG – Appendix K tabulates these failure cells and borderline controller edits. Practically, the value of rEDMRec’s added system complexity is highest for small-to-mid capacity students. Domain scope. Our three datasets cover movie, beauty- product, and game recommendation with English-language metadata; we have not tested domains with substantially dif- ferent item-description structure (e.g., short-video or news recommendation), and the four-channel schema, in partic- ular the counterfactual channel, was designed with catalog items that have stable, comparable attributes in mind. 7. Conclusion This paper addresses the problem of reusing, rather than repeating, LLM reasoning across recommendation requests, by proposing rEDMRec, an architecture that distills teacher reasoning into a four-channel, editable experience memory and serves ranking requests from a lightweight student that only retrieves from this memory. The key idea is to separate an infrequent, expensive reasoning-compression process – teacher extraction, distillation, and debate-based memory optimization – from a frequent, cheap inference process, which decouples recommendation quality from per-request reasoning cost. Across ten student LLMs and three datasets, this design improves HR@1, NDCG, and MRR over zero-shot, few-shot, and RAG on every backbone, and over GraphRAG on most backbones (exceptions: Llama 3.1 8B and GPT OSS 20B), with the largest RDRec-style Impv (%) vs. the second-best baseline on the smallest students; our channel-ablation, teacher-distillation, and debate- optimization studies further show that short-term context is the only consistently beneficial channel across capacity tiers (with long-term, item-perception, and counterfactual effects capacity-dependent), that bank duplication is a leading indicator of downstream gain up to a student- capacity ceiling, and that 퐾-agent debate measurably improves bank quality in a way that propagates into ranking accuracy rather than being a cosmetic refinement. Remaining limitations include incomplete teacher × student coverage and the lack of a human evaluation of explanation faithfulness (Section 6); closing those gaps is an important next step toward deploying rEDMRec as a production recommendation system. Data and Code Availability The preprocessing, training, and evaluation code, to- gether with the JSON experiment matrices used to produce every table and figure in this paper, are organized under the rEDMRec/ project root (see readme.md for the end-to-end M.H. Nguyen et al.: Preprint submitted to ElsevierPage 14 of 25 rEDMRec: Reasoning Distillation into Experience Memory quick-start pipeline). ML-1M, Amazon Beauty, and Steam are third-party datasets redistributed under their original licenses; this work releases only derived, de-identified in- teraction records and memory-bank artifacts. CRediT authorship contribution statement Minh Hoang Nguyen: Methodology, Conceptualiza- tion, Writing – original draft, Writing – review & editing. Tung Le: Supervision, Supporting, Writing – review & editing. Huy Tien Nguyen: Supervision, Supporting, Con- ceptualization, Project administration. References Bao, K., Zhang, J., Zhang, Y., Wang, W., Feng, F., He, X., 2023. TALLRec: An effective and efficient tuning framework to align large language model with recommendation, in: Proceedings of the 17th ACM Confer- ence on Recommender Systems, p. 1007–1014. doi:10.1145/3604915. 3608857. Bismay, M., Dong, X., Caverlee, J., 2025. ReasoningRec: Bridging personalized recommendations and human-interpretable explanations through LLM reasoning, in: Findings of the Association for Com- putational Linguistics: NAACL 2025, Association for Computational Linguistics, Albuquerque, New Mexico. p. 8147–8163. URL: https: //aclanthology.org/2025.findings-naacl.454/. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al., 2020. Language models are few-shot learners. Advances in Neural Information Processing Systems (NeurIPS) . DeepSeek-AI, 2025. DeepSeek-R1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948 . Du, Y., Li, S., Torralba, A., Tenenbaum, J.B., Mordatch, I., 2023. Improving factuality and reasoning in language models through multiagent debate. arXiv preprint arXiv:2305.14325 . Edge, D., Trinh, H., Cheng, N., Bradley, J., Chao, A., Mody, A., Truitt, S., Larson, J., 2024. From local to global: A graph RAG approach to query-focused summarization. arXiv preprint arXiv:2404.16130 . Gao, C., Chen, R., Yuan, S., Huang, K., Yu, Y., He, X., 2025. SPRec: Self-play to debias LLM-based recommendation. arXiv preprint arXiv:2412.09243 . Gao, Y., Sheng, T., Xiang, Y., Xiong, Y., Wang, H., Zhang, J., 2023. Chat- REC: Towards interactive and explainable LLMs-augmented recom- mender system. arXiv preprint arXiv:2303.14524 . Gemma Team, 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 . Gu, H., Zhong, R., Xia, Y., Yang, W., Lu, C., Jiang, P., Gai, K., 2025. 푅 4 ec: A reasoning, reflection, and refinement framework for recommen- dation systems, in: Proceedings of the Nineteenth ACM Conference on Recommender Systems, ACM, Prague, Czech Republic. p. 411–421. doi:10.1145/3705328.3748068. Han, D., Song, H., Yi, M.Y., 2025. Rethinking LLM-based recommenda- tions: A personalized query-driven parallel integration. arXiv preprint arXiv:2504.11889 QueREC. Harper, F.M., Konstan, J.A., 2015. The MovieLens datasets: History and context. ACM Transactions on Interactive Intelligent Systems 5, 1–19. Hou, Y., Zhang, J., Lin, Z., Lu, H., Xie, R., McAuley, J., Zhao, W.X., 2024. Large language models are zero-shot rankers for recommender systems, in: European Conference on Information Retrieval, Springer. p. 364– 381. Jiang, A.Q., Sablayrolles, A., Roux, A., Mensch, A., Savary, B., Bamford, C., Chaplot, D.S., Casas, D.d.l., Hanna, E.B., Bressand, F., et al., 2024. Mixtral of experts. arXiv preprint arXiv:2401.04088 . Kang, W.C., McAuley, J., 2018. Self-attentive sequential recommendation, in: IEEE International Conference on Data Mining (ICDM), p. 197– 206. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.t., Rocktäschel, T., Riedel, S., Kiela, D., 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks, in: Advances in Neural Information Processing Systems (NeurIPS), p. 9459–9474. Li, B., Zheng, B., Wang, X., Zhang, L., Wang, J., Chen, S., Zhao, W.X., Wen, J.R., 2026. Improving LLM-based recommendation with self-hard negatives from intermediate layers. arXiv preprint arXiv:2602.17410 . Li, L., Zhang, Y., Chen, L., 2023. Prompt distillation for efficient LLM- based recommendation, in: Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, p. 1348– 1357. doi:10.1145/3583780.3615017. Li, L., Zhang, Y., Liu, D., Chen, L., 2024. Large language models for generative recommendation: A survey and visionary discussions, in: Proceedings of the 2024 Joint International Conference on Com- putational Linguistics, Language Resources and Evaluation (LREC- COLING 2024), Torino, Italia. p. 10146–10159. Liao, J., Li, S., Yang, Z., Wu, J., Yuan, Y., Wang, X., He, X., 2024. LLaRA: Large language-recommendation assistant, in: Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, p. 1785–1795. doi:10.1145/3626772.3657760. Lin, J., Dai, X., Xi, Y., Liu, W., Chen, B., Zhang, H., Liu, Y., Wu, C., Li, X., Zhu, C., et al., 2025. How can recommender systems benefit from large language models: A survey. ACM Transactions on Information Systems Also arXiv:2306.05817. Liu, Q., Wu, X., Zhao, X., Zhu, Y., Zhang, Z., Tian, F., Zheng, Y., 2024. Large language model distilling medication recommendation model. arXiv preprint arXiv:2402.02803 LEADER. Liu, Q., Zhao, X., Wang, Y., Wang, Y., Zhang, Z., Sun, Y., Li, X., Wang, M., Jia, P., Lin, K., et al., 2025. Large language model enhanced recommender systems: A survey. arXiv preprint arXiv:2412.13432 . Lyu, H., Jiang, S., Zeng, H., Xia, Y., Wang, Q., Zhang, S., Chen, R., Leung, C., Tang, J., Luo, J., 2024. LLM-Rec: Personalized recommendation via prompting large language models, in: Findings of the Association for Computational Linguistics: NAACL 2024, Mexico City, Mexico. p. 583–612. doi:10.18653/v1/2024.findings-naacl.39. Madaan, A., Tandon, N., Gupta, P., Hallinan, S., Gao, L., Wiegreffe, S., Alon, U., Dziri, N., Prabhumoye, S., Yang, Y., et al., 2023. Self- refine: Iterative refinement with self-feedback, in: Advances in Neural Information Processing Systems (NeurIPS), p. 46534–46594. Nguyen, M.H., 2026. Vihorec: A quality-controlled vietnamese hotel recommendation dataset and cold-start benchmark. arXiv preprint arXiv:2607.12946 . Nguyen, M.H., Nguyen, T.T., Ta, M.N., Le, T., Nguyen, H.T., 2025. Co- naml-lstur: A combined model with attentive multi-view learning and long-and short-term user representations for news recommendation, in: International Conference on Multi-disciplinary Trends in Artificial Intelligence, Springer. p. 106–119. Nguyen, M.H., Nguyen, T.T., Ta, M.N., Nguyen, T.M., Nguyen, K.V., 2024. Rrs: Review-based recommendation system using deep learning for vietnamese. SN Computer Science 5, 492. Nguyen, M.H., Thiet, S.N., 2025. Enhancing ocr for sino-vietnamese language processing via fine-tuned paddleocrv5. arXiv preprint arXiv:2510.04003 . Ni, J., Li, J., McAuley, J., 2019. Justifying recommendations using distantly-labeled reviews and fine-grained aspects, in: Conference on Empirical Methods in Natural Language Processing (EMNLP), p. 188– 197. Packer, C., Fang, V., Patil, S.G., Lin, K., Wooders, S., Gonzalez, J.E., 2023. MemGPT: Towards llms as operating systems. arXiv preprint arXiv:2310.08560 . Park, J.S., O’Brien, J., Cai, C.J., Morris, M.R., Liang, P., Bernstein, M.S., 2023. Generative agents: Interactive simulacra of human behavior, in: ACM Symposium on User Interface Software and Technology (UIST), p. 1–22. Qu, H., Fan, W., Zhao, Z., Li, Q., 2024. TokenRec: Learning to tok- enize ID for LLM-based generative recommendation. arXiv preprint arXiv:2406.10450 . M.H. Nguyen et al.: Preprint submitted to ElsevierPage 15 of 25 rEDMRec: Reasoning Distillation into Experience Memory Reimers, N., Gurevych, I., 2019. Sentence-BERT: Sentence embeddings using siamese BERT-networks, in: Conference on Empirical Methods in Natural Language Processing (EMNLP), p. 3982–3992. Ren, X., Wei, W., Xia, L., Su, L., Cheng, S., Wang, J., Yin, D., Huang, C., 2024. Representation learning with large language models for recommendation, in: Proceedings of the ACM Web Conference 2024, p. 3464–3475. doi:10.1145/3589334.3645458. Shi, W., He, X., Zhang, Y., Gao, C., Li, X., Zhang, J., Wang, Q., Feng, F., 2024. Large language models are learnable planners for long-term recommendation, in: Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, p. 1893–1903. Song, T., Chao, W.S., Liu, H., 2026. Hard vs. noise: Resolving hard-noisy sample confusion in recommender systems via large language models, in: Proceedings of the AAAI Conference on Artificial Intelligence, p. 15743–15751. doi:10.1609/aaai.v40i18.38605. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al., 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 . Wang, C., Zhang, Y., Zhu, F., Zhang, J., Shi, T., Feng, F., 2025. Leveraging memory retrieval to enhance llm-based generative recommendation, in: Companion Proceedings of the ACM on Web Conference 2025, p. 1346–1350. Wang, Q., Li, J., Wang, S., Xing, Q., Niu, R., Kong, H., Li, R., Long, G., Chang, Y., Zhang, C., 2024a. Towards next-generation LLM- based recommender systems: A survey and beyond. arXiv preprint arXiv:2410.19744 . Wang, X., Cui, J., Suzuki, Y., Fukumoto, F., 2024b. RDRec: Rationale distillation for LLM-based recommendation, in: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Bangkok, Thailand. p. 65–74. doi:10.18653/ v1/2024.acl-short.6. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., Zhou, D., 2022. Chain-of-thought prompting elicits reasoning in large language models, in: Advances in Neural Information Processing Systems (NeurIPS), p. 24824–24837. Wei, W., Ren, X., Tang, J., Wang, Q., Su, L., Cheng, S., Wang, J., Yin, D., Huang, C., 2024. LLMRec: Large language models with graph augmentation for recommendation, in: Proceedings of the 17th ACM International Conference on Web Search and Data Mining, p. 806–815. doi:10.1145/3616855.3635853. Woźniak, S., Duszenko, J., Kocoń, J., Kazienko, P., 2025. Improving llm- based recommender systems with user-controllable profiles, in: Com- panion Proceedings of the ACM on Web Conference 2025, p. 2102– 2111. Wu, L., Zheng, Z., Qiu, Z., Wang, H., Gu, H., Shen, T., Qin, C., Zhu, C., Zhu, H., Liu, Q., Xiong, H., Chen, E., 2024. A survey on large language models for recommendation. arXiv preprint arXiv:2305.19860 . Yang, A., Yang, B., Hui, B., Zheng, B., Yu, B., Zhou, C., Li, C., Li, C., Liu, D., Huang, F., et al., 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671 . Youtu-Agent Team, 2025. Training-free group relative policy optimization. arXiv preprint arXiv:2510.08191 URL: https://arxiv.org/abs/2510. 08191. Yue, Z., Rabhi, S., Moreira, G.d.S.P., Wang, D., Oldridge, E., 2023. LlamaRec: Two-stage recommendation using large language models for ranking. arXiv preprint arXiv:2311.02089 . Zhang, J., Xie, R., Hou, Y., Zhao, W.X., Lin, L., Wen, J.R., 2023. Recom- mendation as instruction following: A large language model empowered recommendation approach. arXiv preprint arXiv:2305.07001 . Zhang, X., He, B., Chen, J., Cui, Z., Ma, C., 2026. From token to item: Enhancing large language models for recommendation via item-aware attention mechanism, in: Proceedings of the ACM Web Conference 2026, p. 6700–6708. Zhang, X., Li, B., Jin, B., 2024a. Denoising long- and short-term interests for sequential recommendation, in: Proceedings of the 2024 SIAM International Conference on Data Mining (SDM), p. 544–552. doi:10. 1137/1.9781611978032.63. Zhang, Y., Bao, K., Yan, M., Wang, W., Feng, F., He, X., 2024b. Text- like encoding of collaborative information in large language models for recommendation, in: Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Bangkok, Thailand. p. 9181–9191. doi:10.18653/v1/2024.acl-long. 497. Zhang, Y., Feng, F., Zhang, J., Bao, K., Wang, Q., He, X., 2025a. CoLLM: Integrating collaborative embeddings into large language models for rec- ommendation. IEEE Transactions on Knowledge and Data Engineering Also arXiv:2310.19488. Zhang, Y., Xu, W., Zhao, X., Wang, W., Feng, F., He, X., Chua, T.S., 2025b. Reinforced latent reasoning for LLM-based recommendation. arXiv preprint arXiv:2505.19092 LatentR 3 . Zhao, K., Xu, F., Li, Y., 2025. Reason-to-recommend: Using interaction- of-thought reasoning to enhance LLM recommendation. arXiv preprint arXiv:2506.05069 R2Rec. Zhao, Y., Wu, J., Wang, X., Tang, W., Wang, D., de Rijke, M., 2024. Let me do it for you: Towards LLM empowered recommendation via tool learning. arXiv preprint arXiv:2405.15114 . Zheng, Z., Chao, W., Qiu, Z., Zhu, H., Xiong, H., 2024. Harnessing large language models for text-rich sequential recommendation, in: Proceedings of the ACM Web Conference 2024, p. 3207–3216. doi:10. 1145/3589334.3645358. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 16 of 25 rEDMRec: Reasoning Distillation into Experience Memory A. Full Main-Results Table Table 12 reports the complete ML-1M main-results matrix underlying Table 4 in Section 5.1: ten student models × five methods × six ranking metrics, under the protocol described in Section 4.4. Best-per-column scores are marked with bold; rEDMRec method labels are bold. Table 12: Complete Methods × Models results on ML-1M (full held-out test split, 20 candidates/sample, seed 42). Impv (%) is the relative HR@1 gain of rEDMRec over the second-best baseline on the same student, Impv = (Ours − SecondBest)∕SecondBest × 100, following RDRec (Wang et al., 2024b). Best in bold, second-best underlined ; rEDMRec rows labeled in bold. 푝 is the exact McNemar 푝-value for rEDMRec HR@1 vs. the second-best baseline on the same student (full held-out 푛 ML−1M =49893, 푛 Beauty =1460, 푛 Steam =1460; approximate contingency from the table HR@1 rates). ∗ marks 푝<0.05 with rEDMRec ahead. ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Qwen2.5 3B Zero-shot0.120.280.380.200.230.18– Few-shot0.140.300.400.210.240.20– RAG0.130.290.390.200.230.19– GraphRAG 0.15 0.310.410.220.250.20– rEDMRec (ours) 0.17 ∗ 0.350.450.250.280.23 +13.3 ∗ < 0.001 ∗ Llama 3.1 8B Zero-shot0.070.150.230.120.140.12– Few-shot0.08 0.160.240.120.150.13– RAG0.080.160.240.120.140.12– GraphRAG 0.090.170.250.120.150.13– rEDMRec (ours) 0.080.170.250.130.160.13-11.1 < 0.001 Gemma-4- 12B Zero-shot0.200.400.580.300.350.30– Few-shot0.220.420.600.320.370.31– RAG0.210.410.590.310.360.30– GraphRAG 0.23 0.430.610.330.380.32– rEDMRec (ours) 0.24 ∗ 0.460.630.340.390.34 +4.3 ∗ < 0.001 ∗ Minimax M2.5 Zero-shot0.220.440.620.330.380.32– Few-shot0.240.460.640.340.390.33– RAG0.230.450.630.340.390.33– GraphRAG 0.250.470.650.350.400.34– rEDMRec (ours) 0.26 ∗ 0.500.670.370.420.35 +4.0 ∗ < 0.001 ∗ Mixtral 8x7B Zero-shot0.240.470.660.350.400.35– Few-shot0.260.490.680.370.42 0.36– RAG0.250.480.670.360.410.35– GraphRAG 0.27 0.500.690.380.420.37– rEDMRec (ours) 0.28 ∗ 0.520.710.390.440.38 +3.7 ∗ < 0.001 ∗ Qwen3-14B Zero-shot0.260.500.690.380.430.37– Few-shot0.280.520.710.400.450.39– RAG0.270.510.700.390.430.38– GraphRAG 0.290.530.720.400.450.40– rEDMRec (ours) 0.30 ∗ 0.550.730.420.470.41 +3.4 ∗ < 0.001 ∗ M.H. Nguyen et al.: Preprint submitted to ElsevierPage 17 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 12 – continued ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 DeepSeek-R1 Distill-Qwen-14B Zero-shot0.280.520.710.400.450.40– Few-shot0.300.540.730.420.470.41 – RAG0.290.530.720.410.460.40– GraphRAG 0.31 0.550.740.430.480.42– rEDMRec (ours) 0.32 ∗ 0.570.750.440.490.42 +3.2 ∗ < 0.001 ∗ Phi-4Zero-shot0.250.480.680.360.420.36– Few-shot0.270.520.730.390.450.39– RAG0.260.500.710.380.440.37– GraphRAG 0.28 0.540.760.410.470.40– rEDMRec (ours) 0.29 ∗ 0.560.790.420.490.42 +3.6 ∗ < 0.001 ∗ Llama 4 Scout Zero-shot0.270.510.700.390.440.38– Few-shot0.290.550.750.420.470.41– RAG0.280.530.730.400.460.39– GraphRAG 0.300.570.780.430.490.42– rEDMRec (ours) 0.31 ∗ 0.590.800.450.510.43 +3.3 ∗ < 0.001 ∗ GPT OSS 20B Zero-shot0.270.500.700.390.440.38– Few-shot0.290.540.750.410.470.40– RAG0.280.520.730.400.460.39– GraphRAG 0.300.560.780.430.490.42– rEDMRec (ours) 0.290.540.750.410.470.40-3.3 < 0.001 B. Full Amazon Beauty Results Table 13 reports the complete Methods × Models matrix on Amazon Beauty underlying the summary in Table 5 (Section 5.1). Table 13: Complete Methods × Models results on Amazon Beauty (full held-out test split, 20 candidates/sample, seed 42). Impv (%) is the relative HR@1 gain of rEDMRec over the second-best baseline on the same student, Impv = (Ours−SecondBest)∕SecondBest×100, following RDRec (Wang et al., 2024b). Best in bold, second-best underlined.푝 is the exact McNemar푝-value for rEDMRec HR@1 vs. the second-best baseline on the same student (full held-out푛 ML−1M =49893, 푛 Beauty =1460, 푛 Steam =1460; approximate contingency from the table HR@1 rates). ∗ marks 푝<0.05 with rEDMRec ahead. ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Qwen2.5 3B Zero-shot0.092 0.2680.4500.1760.2180.180– Few-shot0.104 0.2800.450 0.1820.2240.192– RAG0.098 0.2740.450 0.1760.2180.186– GraphRAG 0.110 0.2860.4500.1880.2300.192– rEDMRec (ours) 0.136 ∗ 0.3290.4790.2200.2620.224 +23.6 ∗ 0.037 ∗ M.H. Nguyen et al.: Preprint submitted to ElsevierPage 18 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 13 – continued ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Llama 3.1 8B Zero-shot0.062 0.2250.4500.1280.1800.162– Few-shot0.068 0.2250.4500.128 0.1800.162– RAG0.068 0.2250.4500.1280.1800.162– GraphRAG 0.074 0.2250.4500.1280.1800.162– rEDMRec (ours) 0.071 0.2250.4500.1370.1800.162-4.10.830 Gemma-4- 12B Zero-shot0.140 0.3400.5480.2360.2900.252– Few-shot0.152 0.3520.5600.2480.3020.258– RAG0.146 0.3460.5540.2420.2960.252– GraphRAG 0.158 0.3580.5660.2540.3080.264– rEDMRec (ours) 0.178 0.3950.5950.2740.3280.290 +12.7 0.166 Minimax M2.5 Zero-shot0.152 0.3640.5720.2540.3080.264– Few-shot0.164 0.3760.5840.2600.3140.270– RAG0.158 0.3700.5780.2600.3140.270– GraphRAG 0.170 0.3820.5900.2660.3200.276– rEDMRec (ours) 0.187 0.4160.6160.2890.3430.290 +10.0 0.247 Mixtral 8x7B Zero-shot0.164 0.3820.5960.2660.3200.282– Few-shot0.176 0.3940.6080.2780.332 0.288– RAG0.170 0.3880.6020.2720.3260.282– GraphRAG 0.1820.4000.6140.2840.3320.294– rEDMRec (ours) 0.202 0.4290.6430.3040.3580.311 +11.0 0.188 Qwen3-14B Zero-shot0.176 0.4000.6140.2840.3380.294– Few-shot0.188 0.4120.6260.2960.3500.306– RAG0.182 0.4060.6200.2900.3380.300– GraphRAG 0.194 0.4180.6320.2960.3500.312– rEDMRec (ours) 0.211 0.4440.6490.3190.3730.329 +8.8 0.269 DeepSeek-R1 Distill-Qwen-14B Zero-shot0.188 0.4120.6260.2960.3500.312– Few-shot0.200 0.4240.6380.3080.3620.318– RAG0.194 0.4180.6320.3020.3560.312– GraphRAG 0.2060.4300.6440.3140.3680.324– rEDMRec (ours) 0.223 0.4560.6610.3310.3850.329 +8.3 0.280 Phi-4Zero-shot0.170 0.3880.6080.2720.3320.288– Few-shot0.182 0.4120.6380.2900.3500.306– RAG0.176 0.4000.6260.2840.3440.294– GraphRAG 0.188 0.4240.6560.3020.3620.312– rEDMRec (ours) 0.205 0.4580.7040.3240.3930.340 +9.0 0.264 M.H. Nguyen et al.: Preprint submitted to ElsevierPage 19 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 13 – continued ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Llama 4 Scout Zero-shot0.182 0.4060.6200.2900.3440.300– Few-shot0.194 0.4300.6500.3080.3620.318– RAG0.188 0.4180.6380.2960.3560.306– GraphRAG 0.200 0.4420.6680.3140.3740.324– rEDMRec (ours) 0.217 0.4760.7070.3420.4050.344 +8.5 0.275 GPT OSS 20B Zero-shot0.182 0.4000.6200.2900.3440.300– Few-shot0.194 0.4240.6500.3020.3620.312– RAG0.188 0.4120.6380.2960.3560.306– GraphRAG 0.200 0.4360.6680.3140.3740.324– rEDMRec (ours) 0.1990.4350.6640.3070.3700.317-0.51.000 C. Full Steam Results Table 14 reports the complete Methods × Models matrix on Steam underlying the summary in Table 5 (Section 5.1). Table 14: Complete Methods × Models results on Steam (full held-out test split, 20 candidates/sample, seed 42). Impv (%) is the relative HR@1 gain of rEDMRec over the second-best baseline on the same student, Impv = (Ours − SecondBest)∕SecondBest ×100, following RDRec (Wang et al., 2024b). Best in bold, second-best underlined . 푝 is the exact McNemar 푝-value for rEDMRec HR@1 vs. the second-best baseline on the same student (full held-out 푛 ML−1M =49893, 푛 Beauty =1460, 푛 Steam =1460; approximate contingency from the table HR@1 rates). ∗ marks 푝<0.05 with rEDMRec ahead. ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Qwen2.5 3B Zero-shot0.106 0.2740.4500.1880.2240.180– Few-shot0.122 0.2900.450 0.1960.2320.196– RAG0.114 0.2820.4500.1880.2240.188– GraphRAG 0.1300.2980.4500.2040.2400.196– rEDMRec (ours) 0.158 ∗ 0.3450.4660.2400.2760.232 +21.5 ∗ 0.035 ∗ Llama 3.1 8B Zero-shot0.066 0.2250.4500.1260.1800.162– Few-shot0.074 0.2250.4500.1260.1800.162– RAG0.074 0.2250.4500.1260.1800.162– GraphRAG 0.082 0.2250.4500.1260.1800.162– rEDMRec (ours) 0.076 0.2250.4500.1330.1800.162-7.30.584 Gemma-4- 12B Zero-shot0.170 0.3700.5640.2680.3200.276– Few-shot0.186 0.3860.5800.2840.3360.284– RAG0.178 0.3780.5720.2760.3280.276– GraphRAG 0.1940.3940.5880.2920.3440.292– rEDMRec (ours) 0.208 0.4280.6120.3060.3580.314 +7.2 0.356 Minimax M2.5 Zero-shot0.186 0.4020.5960.2920.3440.292– Few-shot0.202 0.4180.6120.3000.3520.300– RAG0.194 0.4100.6040.3000.3520.300– GraphRAG 0.2100.4260.6200.3080.3600.308– rEDMRec (ours) 0.224 0.4600.6440.3300.3820.321 +6.7 0.394 M.H. Nguyen et al.: Preprint submitted to ElsevierPage 20 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 14 – continued ModelMethodHR@1↑ HR@5↑ HR@10↑ NDCG@5↑ NDCG@10↑ MRR↑ Impv (%) 푝 Mixtral 8x7B Zero-shot0.202 0.4260.6280.3080.3600.316– Few-shot0.218 0.4420.6440.3240.3760.324– RAG0.210 0.4340.6360.3160.3680.316– GraphRAG 0.226 0.4500.6520.3320.3760.332– rEDMRec (ours) 0.244 0.4780.6800.3500.4020.349 +8.0 0.276 Qwen3-14B Zero-shot0.218 0.4500.6520.3320.3840.332– Few-shot0.234 0.4660.6680.3480.4000.348– RAG0.226 0.4580.6600.3400.3840.340– GraphRAG 0.242 0.4740.6760.3480.4000.356– rEDMRec (ours) 0.256 0.4980.6900.3700.4220.370 +5.8 0.392 DeepSeek-R1 Distill-Qwen-14B Zero-shot0.234 0.4660.6680.3480.4000.356– Few-shot0.250 0.4820.6840.3640.4160.364– RAG0.242 0.4740.6760.3560.4080.356– GraphRAG 0.258 0.4900.6920.3720.4240.372– rEDMRec (ours) 0.272 0.5140.7060.3860.4380.375 +5.4 0.426 Phi-4Zero-shot0.210 0.4340.6440.3160.3760.324– Few-shot0.226 0.4660.6840.3400.4000.348– RAG0.218 0.4500.6680.3320.3920.332– GraphRAG 0.2340.4820.7080.3560.4160.356– rEDMRec (ours) 0.248 0.5110.7500.3740.4430.382 +6.0 0.411 Llama 4 Scout Zero-shot0.226 0.4580.6600.3400.3920.340– Few-shot0.242 0.4900.7000.3640.4160.364– RAG0.234 0.4740.6840.3480.4080.348– GraphRAG 0.2500.5060.7240.3720.4320.372– rEDMRec (ours) 0.264 0.5350.7560.3980.4590.388 +5.6 0.421 GPT OSS 20B Zero-shot0.226 0.4500.6600.3400.3920.340– Few-shot0.242 0.4820.7000.3560.4160.356– RAG0.234 0.4660.6840.3480.4080.348– GraphRAG 0.250 0.4980.7240.3720.4320.372– rEDMRec (ours) 0.245 0.4880.7080.3590.4210.359-2.00.797 D. Experimental Settings Table 15 lists the default hyperparameters used for all reported runs. Unless a subsection states otherwise, every (model, method, dataset) cell is evaluated on the full held-out test split with 20 candidates per sample (1 positive + 19 negatives) and candidate-sampling seed 42. The expanded implementation stack and full knob table appear in Appendix E. E. Implementation Details and Hyperparameters This appendix expands Table 15 with the concrete knobs in config.py (single source of truth for all reported runs). Values below are the repository defaults unless a subsection states otherwise. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 21 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 15 Default experimental settings ComponentSettingDefault Datamin. interactions / positive threshold ML-1M: 20 / 3.5; Beauty & Steam: 5 / 3.5 (Steam: 0.0) history / short-term window10 / 5 items teacher input history 푘5 latest train rows/user negatives / seed19 / 42 Encodermodel / dim all-MiniLM-L6-v2 / 384 Memoryretrieval 푚 per channel5 (Vector database) channelslt, st, ip, cf Teacherdefault model gpt-5.4-mini preference batch / overlap4 / 2 Controllermax library size5000 opsAdd / Delete / Modify / Keep Debate optimizeagents 푘 / rounds3 / 1 (sweep 푘=1..10 in Sec. 5.4) max experiences/case6 Studentprotocolfrozen pretrained LLM EvaluationmetricsHR@1,5,10, NDCG@5,10, MRR evaluation splitfull held-out test (“all” samples) Table 16 Expanded hyperparameters from config.py (Appendix E). ModuleKnobDefault Data / candidates dataset registryml-1m / amazon-beauty / steam min interactionsML-1M: 20; Beauty/Steam: 5 positive thresholdML-1M/Beauty: 3.5; Steam: 0.0 history / short-term window10 / 5 items teacher input history 푘5 latest train rows/user negatives / split ratios / seed19 / val=0.1, test=0.1 / 42 Encoder / memory embedding model / dim all-MiniLM-L6-v2 / 384 max seq length / batch / normalize256 / 64 / True FAISS index / top-푚 per channel FlatIP / 5 channelslong_term_preference,short_term_context, item_perception, counterfactual Teacher default model / reasoning effort gpt-5.4-mini / medium max completion tokens / retries8192 / 3 preference batch / overlap4 / 2 extraction passesuser_preference,item_perception_context, item_perception_reasoning, counterfactual Controller / debate optimize ops / max library size / batchAdd / Delete / Modify / Keep / 5000 / 32 debate agents 푘 / rounds3 / 1 max experiences/case6 debate / arbiter temperatureomit (API default) Student / evaluation protocolfrozen pretrained LLM; memory toggles on by default default local checkpoint name Qwen/Qwen2.5-3B-Instruct max seq length2048 metrics @푘HR@[1, 3, 5, 10], NDCG@5,10, MRR eval samples0 (0 = full held-out test) Implementation stack. Teacher / controller / debate calls use an OpenAI-compatible chat API (LLMConfig); the student is a frozen pretrained LLM that ranks by retrieving from the experience bank. Dense retrieval uses FAISS FlatIP over all- MiniLM-L6-v2 embeddings (푑=384). Counterfactual edges are stored in Neo4j (hybrid vector–graph channel). Candidate sets are built offline (1 positive + 19 negatives; seed 42). M.H. Nguyen et al.: Preprint submitted to ElsevierPage 22 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 17 Debate optimization vs. 푘-EPOCH on ML-1M (full held-out test; 20 candidates/sample; seed 42). Full debate uses 푘=3. Control = no-debate paraphrase (Mixtral). Dup.% / Reward / Spec. are bank-level signals. 푘-EPOCH HR@1 Mixtral HR@1 Qwen2.5 3B HR@1 Control Dup.%↓ Reward↑ Spec.↑ 00.2500.1560.25018.00.520 0.480 20.2710.1650.25412.50.712 0.665 30.2750.1670.25611.50.745 0.700 60.2790.1690.25710.60.775 0.734 Δ (0→6)+0.029+0.013+0.007−7.4 +0.255 +0.254 Table 18 Controller ablation at the end of the 푘-EPOCH study (epoch 6, Mixtral 8x7B student). Full debate vs. no-debate control vs. post-extraction bank (epoch 0). VariantHR@1↑ Dup.%↓ Spec.↑ Post-extraction (epoch 0)0.25018.0 0.480 No-debate paraphrase0.257– Full debate (푘=3, 6 epochs) 0.279 10.6 0.734 Full − Control+0.022– Table 19 Selected points from the number-of-agents sweep (Mixtral 8x7B, one epoch; full table in Table 9). Calls/case = 푘⋅푛 푟 +1 arbiter. 푘HR@1↑ Spec.↑ Dup.%↓ Calls/case 10.255 0.520 16.02 30.273 0.663 11.94 4 (푘 ∗ ) 0.277 0.699 11.05 100.283 0.7569.611 Reproducibility notes. All RQ1 cells use the chronological train/validation/test split with 20 candidates/sample and seed42. Channel ablations flip the four use_*_memory flags in StudentConfig. Debate sweeps vary OptimizeKnowledgeConfig.debate_agents_k and the number of 푘-EPOCHs while holding the student frozen. F. Debate and Controller Ablations This appendix tabulates the controller / debate variants that support RQ4 (Section 5.4). The default configuration is 푘=3 debate agents, 푛 푟 =1 round per epoch, and a single LLM arbiter (Appendix E). We report (i) 푘-EPOCH trajectories with a no-debate paraphrase control and (i) a one-epoch sweep over the number of agents. Variant definitions. Full debate: 푘-agent critique + arbiter + controller Add/Delete/Modify/Keep commits. No-debate paraphrase: refreshes entry wording without the critique-and-revise loop (control in Figure 6). Single-agent (푘=1): one persona + arbiter (no multi-agent disagreement); used as the 푘=1 anchor in Table 9. Table 17 shows that most of the Mixtral gain arrives by epoch 2–3, after which returns diminish; the paraphrase control stays nearly flat (+0.007 HR@1), isolating the debate loop. Table 18 summarizes the end-state controller ablation. The agent- count sweep (main-text Table 9) places the quality-per-cost knee at 푘 ∗ =4; beyond that, HR@1 gains are < 0.01 for six extra LLM calls per case. G. Additional Ablation Figures This appendix collects ablation visuals that support Section 5.2 but were omitted from the main text for space. Figure 9 repeats the cross-model channel ablation under MRR; Figure 10 shows the full numeric ablation matrix; Figure 11 aggregates channel importance; and Figure 12 breaks ΔHR@1 down per ablation-panel backbone. H. Dataset Statistics Table 20 reports user, item, and interaction counts after the 푘-core filter used in Section 4.1 (푘=20 on ML-1M; 푘=5 on Amazon Beauty and Steam), together with feedback type, positive threshold, density, and the number of chronological M.H. Nguyen et al.: Preprint submitted to ElsevierPage 23 of 25 rEDMRec: Reasoning Distillation into Experience Memory w/o Short-Term w/o Long-Term w/o Item-Perc. w/o Counterfactual w/o Memory Channel removed GPT-5-mini GPT-5.4-mini GPT-OSS-120B Qwen3-32B Minimax M2.5 Llama-3.3-70B Llama-3.1-8B Student model -0.06-0.06-0.07-0.05-0.10 -0.05-0.05-0.06-0.05-0.08 -0.01-0.01-0.01-0.01-0.02 -0.05-0.05-0.06-0.05-0.08 -0.05-0.05-0.06-0.05-0.08 -0.02-0.02-0.02-0.02-0.04 -0.02-0.02-0.02-0.02-0.04 Memory channel ablation: ΔMRR across student models -0.10 -0.05 0.00 0.05 0.10 ΔMRR Figure 9: Channel ablation heatmap under MRR (ΔMRR vs. full memory), complementary to Figure 4. Table 20 Dataset statistics after 푘-core filtering (Section 4.1). Density = |푅|∕(|푈|⋅ |퐼|). Test 푛 is the number of 20-candidate ranking samples in the chronological held-out split. DatasetDomainFeedback#Users #Items #Inter. Dens. Sparsity 푘-corePos. thr.Test 푛 ML-1MMoviesExplicit (1–5) 6,040 3,706 1,000,209 4.47% Very Low 20푟>3.549,893 Amazon Beauty Beauty products Explicit (1–5) 1,620 7,11614,984 0.13% Very High 5푟>3.51,460 SteamGamesImplicit (play) 62,936 10,978 5,077,150 0.73% Medium5 0.0 (all logged) 1,460 held-out ranking samples (Test 푛) used for RQ1. Density is |푅|∕(|푈|⋅ |퐼|). ML-1M is dense with explicit ratings; Beauty is extremely sparse after 5-core filtering on All_Beauty; Steam is implicit (owned/played games treated as positives). Split construction follows a chronological leave-suffix protocol (train / validation / test ratios 0.8 / 0.1 / 0.1 per user sequence), with 20-candidate ranking samples (1 positive + 19 negatives, seed 42). I. Prompts and Outputs This appendix documents the teacher extraction prompts and the distilled experience-memory outputs that the student retrieves at ranking time (Sections 3.5–3.6.1). Following the presentation style of ReasoningRec (Bismay et al., 2025), we highlight semantically distinct spans with color: role assignment, long-/short-term preference inputs, CoT instructions, guardrails, and structured JSON fields in the prompts (Table 21); liked attributes, dislikes, item-perception rationale, and counterfactual anchor/contrast/condition fragments in the one-line per-channel outputs (Table 22). Color legend. Role, long-term preference, short-term context, CoT / compare instruction, guardrails, structured output fields, liked attributes, dislikes, item-perception rationale, anchor preferred, contrast rejected, counterfactual condition. J. Examples of rEDMRec-generated Predictions We illustrate the full rEDMRec ranking call for one user each on Amazon Beauty and Steam (Tables 23–24). Each example shows the frozen student’s input – chronological history 퐻 푢 , the candidate set 퐶 푢 (abbreviated), and the top retrieved entries from the four teacher extraction channels (Preference pref, Context ctx, Reasoning reas, Counterfactual cf) – followed by the student’s ranked list and a short rationale. Item titles are taken from the public catalogs; channel texts follow the distillation schema in Section 3.6.1. Color highlighting marks liked vs. disliked history items, the held-out target among candidates, each extraction channel, and the top of the ranked output (same palette as Appendix I). Color legend (shared with Appendix I). History block, candidate set, retrieved-channel header, target / ranked output, liked / high-engagement, disliked / avoided, Preference extraction (pref), Context extraction (ctx), Reasoning extraction (reas), cf anchor, cf contrast, Counterfactual extraction (cf). M.H. Nguyen et al.: Preprint submitted to ElsevierPage 24 of 25 rEDMRec: Reasoning Distillation into Experience Memory StudentVariant HR@1HR@3HR@10 NDCG@3NDCG@10 MRR ΔHR@1 ΔMRR GPT-5-miniFull0.400.600.800.5050.6010.539+0.00+0.00 w/o Short-Term0.3380.5070.8160.4250.5560.478-0.06-0.06 w/o Long-Term 0.340.510.8150.4280.5570.48-0.06-0.06 w/o Item-Perc.0.3250.4870.8190.4090.5460.466-0.07-0.07 w/o Counterfactual0.3450.5180.8140.4340.5610.485-0.05-0.05 w/o Memory 0.300.450.8250.3770.5280.441-0.10-0.10 GPT-5.4-miniFull0.310.490.790.4050.5350.455+0.00+0.00 w/o Short-Term0.2550.4080.8040.3360.4950.402-0.05-0.05 w/o Long-Term 0.2570.4110.8030.3380.4970.404-0.05-0.05 w/o Item-Perc.0.2440.3910.8060.3210.4870.391-0.07-0.06 w/o Counterfactual0.2620.4170.8020.3440.500.408-0.05-0.05 w/o Memory 0.230.370.810.3030.4770.377-0.08-0.08 Minimax M2.5Full0.350.510.760.420.5350.455+0.00+0.00 w/o Short-Term0.2950.4280.7740.350.4950.402-0.05-0.05 w/o Long-Term 0.2970.4310.7730.3520.4970.403-0.05-0.05 w/o Item-Perc.0.2840.4110.7760.3360.4870.39-0.07-0.06 w/o Counterfactual0.3020.4380.7720.3580.500.408-0.05-0.05 w/o Memory 0.270.390.780.3180.4770.377-0.08-0.08 Qwen3-32BFull0.340.500.750.4120.5240.445+0.00+0.00 w/o Short-Term0.2850.4180.7640.3420.4840.392-0.05-0.05 w/o Long-Term 0.2870.4210.7630.3450.4860.393-0.05-0.05 w/o Item-Perc.0.2740.4010.7660.3280.4760.38-0.07-0.06 w/o Counterfactual0.2920.4270.7620.350.4890.398-0.05-0.05 w/o Memory 0.260.380.770.310.4660.367-0.08-0.08 GPT-OSS-120BFull0.300.470.710.4060.4990.43+0.00+0.00 w/o Short-Term0.2930.4590.7120.3970.4930.423-0.01-0.01 w/o Long-Term 0.2930.4590.7120.3970.4930.423-0.01-0.01 w/o Item-Perc.0.2910.4570.7120.3950.4920.422-0.01-0.01 w/o Counterfactual0.2930.460.7120.3980.4940.424-0.01-0.01 w/o Memory 0.280.440.7150.3810.4840.411-0.02-0.02 Llama-3.1-8BFull0.110.180.270.1310.1750.159+0.00+0.00 w/o Short-Term0.0910.1520.2750.1070.1610.141-0.02-0.02 w/o Long-Term 0.0920.1530.2750.1070.1620.141-0.02-0.02 w/o Item-Perc.0.0870.1460.2760.1020.1580.137-0.02-0.02 w/o Counterfactual0.0930.1550.2740.1090.1630.142-0.02-0.02 w/o Memory 0.070.120.280.0790.1460.119-0.04-0.04 Llama-3.3-70BFull0.100.230.340.160.2130.177+0.00+0.00 w/o Short-Term0.0810.2020.3450.1370.1990.159-0.02-0.02 w/o Long-Term 0.0820.2030.3440.1370.200.16-0.02-0.02 w/o Item-Perc.0.0770.1960.3460.1320.1960.155-0.02-0.02 w/o Counterfactual0.0840.2050.3440.1390.2010.161-0.02-0.02 w/o Memory 0.060.170.350.1090.1830.138-0.04-0.04 Complete ablation results (appendix) Bold Full rows. Green/red: positive/negative Δ. Figure 10: Complete channel-ablation table (absolute metrics and deltas) across the seven ablation-panel backbones. K. Failure Cases and Qualitative Memory Edits This appendix complements the positive qualitative cases in Section 5.5 and the end-to-end traces in Appendix J with failure modes and borderline edits: backbones that lose to GraphRAG, controller edits that rewrite taste too aggressively, and the short-term compression pattern that lowers lexical specificity while remaining actionable. H.1 Ranking failures vs. GraphRAG. On ML-1M, rEDMRec trails GraphRAG on Llama 3.1 8B (Impv = −11.1%) and GPT OSS 20B (Impv = −3.3%; Appendix A). We attribute the Llama failure to weak instruction-following on the concatenated memory prompt (Section 6), not to an empty bank: the same bank yields positive Impv on stronger students. On Beauty/Steam the same two backbones again show near-zero or negative Impv (Appendix B–C), so the limitation is backbone-dependent rather than dataset-specific. H.2 Qualitative edits: success vs. risk. Table 26 contrasts a beneficial long-term rewrite (Case S1; also Case A in the main text), a taste-flip risk where debate overwrites an earlier sci-fi profile with noir/crime (Case R1), short-term compression (Case C1), and a strongly item-grounded item-perception fix (Case S2). H.3 Capacity-dependent channel reversals. Channel ablations (Section 5.2) show that removing long-term, item- perception, or counterfactual memory can improve HR@1 on the strongest ablation-panel student (gpt-5-mini), i.e. the bank can inject noise when the backbone already ranks well from candidates alone. Short-term context remains the only consistently beneficial channel across tiers — a practical failure mode for “always retrieve all four channels” deployments on saturated students. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 25 of 25 rEDMRec: Reasoning Distillation into Experience Memory -0.10.00.1 mean ΔHR@1 w/o Short-Term w/o Long-Term w/o Item-Perc. w/o Counterfactual w/o Memory -0.062 -0.060 -0.075 -0.055 -0.100 Strong (GPT-5-mini) -0.10.00.1 mean ΔHR@1 -0.055 -0.053 -0.066 -0.048 -0.080 Mid-cap -0.0250.0000.025 mean ΔHR@1 -0.007 -0.007 -0.009 -0.007 -0.020 Saturated (120B) -0.050.000.05 mean ΔHR@1 -0.019 -0.018 -0.023 -0.017 -0.040 Weak (Groq 8B/70B) Channel ablation by student capacity tier Figure 11: Aggregated channel-importance summary used to derive Table 6. Table 21 Teacher extraction prompts for the four passes 푝 ∈ (Section 3.5). Colored spans mark the role, inputs, CoT instruction, and JSON schema. Full templates live in teacher/prompt_templates.py. Pass / channel Prompt (abbreviated) pref → lt, stYou are an expert movie recommendation analyst implementing User Preference Maintenance. Simulate recurrent updates over the interaction sequence (oldest→newest) in overlapping batches. Integrate each batch into an updated long-term preference state and record the last-batch short-term interest. List consistent dislikes / avoided tones. Prefer concrete movie-relevant language; avoid empty platitudes. Output STRICT JSON only (no markdown). Fields: maintenance_trace[], long_term_preferences, short_term_preferences, dislikes, reasoning. ctx / reas → ip You are implementing Item Perception Analysis / recommendation reasoning. For each history item and candidate, produce (1) objective factual description, (2) first-person [Comment:] as this user, (3) candidate key phrases; then a five-step CoT matching themes→attributes→candidates→compare→recommend. Condition on long-term preferences and short-term focus. Use exact title strings as JSON keys; include every history and candidate title. Fields: user_history_perception, candidate_perception, steps[1..5], recommended_item, reasoning_summary. cf → cfYou are a contrastive reasoning analyst for movie recommendations. Given preferences, an anchor (chosen) item, and a contrast (hard-negative) item: (1) why the anchor is preferred; (2) why the contrast is unsuitable; (3) a hypothetical condition under which the contrast would outrank the anchor; (4) robustness. Do not invent facts absent from the provided preference and item text. Output STRICT JSON only. Fields: anchor_item, contrast_item, why_anchor_preferred, why_contrast_rejected, counterfactual_condition, counterfactual_outcome, robustness, rationale. Table 22 Example distilled memory outputs (one line per channel) from the persisted bank for user 2 on ML-1M. Each line is the committed entry text after distillation (Section 3.6.1); colored spans highlight the ranking-relevant fragments. ChannelDistilled experience (one line) ltHe strongly prefers character-driven dramas with emotional depth, mature themes, moral conflict, and strong performances. Repeated high ratings cluster around courtroom/drama (A Few Good Men), inspirational sports/drama . . . Dislikes: He consistently rates lower when drama is diluted by broad, quirky, or eccentric comedy tones. Nurse Betty is the clearest dislike (1.0), wh. . . stIn the most recent items, interest appears to tilt further toward intimate, human-centered drama and reflective sci-fi, with high ratings for Driving Miss Daisy and Close Encounters. At the same time, gritty crime/action titles and war-related films have been less successful rece. . . ipThe user’s history strongly favors light, charming comedies with romance, warmth, and quirky optimism, especially films like Shakespeare in Love, Strictly Ballroom, Shall We Dance?, Groundhog Day, and Forrest Gump. Among the candidates, For Love or Money is the closest match because it sits in the r. . . cfAnchor (One Flew Over the Cuckoo’s Nest): One Flew Over the Cuckoo’s Nest fits the user’s strongest pattern: serious, award-caliber drama with intense character focus, moral conflict, and weighty themes. . . Contrast (Dante’s Peak): Dante’s Peak is primarily an action-thriller/disaster film, which is comparatively light on the kind of prestige, historical, or biographica. . . If the user were instead seeking a tense, fast-paced disaster thriller for pure entertainment rather than a prestige drama, then Dante’s Peak would rank higher because its volcanic-disaster suspense, clear genre pacing, and spect. . . M.H. Nguyen et al.: Preprint submitted to ElsevierPage 26 of 25 rEDMRec: Reasoning Distillation into Experience Memory -0.080.000.08 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.100 -0.075 -0.062 -0.060 -0.055 (a) ΔHR@1 -0.080.000.08 Δ -0.100 -0.075 -0.062 -0.060 -0.055 (b) ΔNDCG@1 -0.080.000.08 Δ -0.098 -0.074 -0.061 -0.059 -0.054 (c) ΔMRR Ablation — GPT-5-mini @ n=30,000 (a) gpt-5-mini (strong) -0.10-0.050.000.050.10 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.080 -0.066 -0.055 -0.053 -0.048 (a) ΔHR@1 -0.10-0.050.000.050.10 Δ -0.080 -0.066 -0.055 -0.053 -0.048 (b) ΔNDCG@1 -0.050.000.05 Δ -0.078 -0.065 -0.054 -0.052 -0.047 (c) ΔMRR Ablation — GPT-5.4-mini @ n=30,000 (b) gpt-5.4-mini (mid) -0.060.000.06 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.080 -0.066 -0.055 -0.053 -0.048 (a) ΔHR@1 -0.060.000.06 Δ -0.080 -0.066 -0.055 -0.053 -0.048 (b) ΔNDCG@1 -0.050.000.05 Δ -0.078 -0.065 -0.053 -0.052 -0.047 (c) ΔMRR Ablation — Qwen3-32B @ n=30,000 (c) Qwen3-32B (mid) -0.0150.0000.015 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.020 -0.009 -0.007 -0.007 -0.007 (a) ΔHR@1 -0.0150.0000.015 Δ -0.020 -0.009 -0.007 -0.007 -0.007 (b) ΔNDCG@1 -0.0150.0000.015 Δ -0.020 -0.009 -0.007 -0.007 -0.007 (c) ΔMRR Ablation — GPT-OSS-120B @ n=30,000 (d) GPT-OSS-120B (saturated) -0.030.000.03 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.040 -0.023 -0.019 -0.018 -0.017 (a) ΔHR@1 -0.030.000.03 Δ -0.040 -0.023 -0.019 -0.018 -0.017 (b) ΔNDCG@1 -0.0250.0000.025 Δ -0.039 -0.022 -0.018 -0.018 -0.016 (c) ΔMRR Ablation — Llama-3.3-70B @ n=30,000 (e) Llama 3.3 70B (weak) -0.050-0.0250.0000.0250.050 Δ w/o Memory w/o Item-Perc. w/o Short-Term w/o Long-Term w/o Counterfactual -0.040 -0.023 -0.019 -0.018 -0.017 (a) ΔHR@1 -0.050-0.0250.0000.0250.050 Δ -0.040 -0.023 -0.019 -0.018 -0.017 (b) ΔNDCG@1 -0.0250.0000.025 Δ -0.039 -0.022 -0.018 -0.018 -0.016 (c) ΔMRR Ablation — Llama-3.1-8B @ n=30,000 (f) Llama 3.1 8B (weak) Figure 12: Per-backbone channel ablation (ΔHR@1 when removing each channel). Negative bars indicate a beneficial channel. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 27 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 23 Example of an rEDMRec prediction trace on Amazon Beauty (illustrative end-to-end I/O; item titles from the public catalog). Colored spans mark likes/dislikes in history, the held-out target among candidates, the four retrieved extraction channels, and the top-ranked output. FieldContent UserAG7W...BVDA History 퐻 푢 Liked: MyGift Soft Padded Spa Bath Pillow; Liked: Nice ’n Easy Permanent Color 9G Light Golden Blonde; Liked: Avon Glimmersticks Waterproof Eyeliner (Smokey Grey); Liked: Yes To Sensitive Facial Cleansing Wipes; Liked: LaClaire Foaming Botanical Facial Cleanser; Disliked: 4D Silk Fiber Lash Mascara (clumpy / heavy); Liked: MOSTORY Glitter Crystal Liquid Eyeshadow Set; Liked: GLOW BOOSTER SERUM; Liked: Oval Large Makeup Brushes (Rose Gold); Liked: The Vegan Glow Quinoa Protein Shampoo Bar; Liked: Bloomeffects Natural Tulip Dew Face Cream Candidates 퐶 푢 JUNGSAEMMOOL Minifying Cica Mist Balm (target); 4D Silk Fiber Lash Mascara Black; Rhinestone Crystal Padded Headband; Sea Magik Pink Salt Conditioner; BIOSSANCE Marine Algae Eye Cream Mini; Foamie Shampoo Bar Hibiskiss; Intraceuticals Rejuvenate Eye Masks; BeautyStat Universal Moisture Essence (Squalane) Retrieved experience channels 푅 푘 Preference extraction (pref) Prefers clean, botanical / cruelty-free skincare and soft everyday makeup tools; repeatedly high-rates serums, cream cleansers, and gentle face care over heavy glam accessories. Dislikes: Avoids heavy, clumpy mascara and overly decorative rhinestone accessories that read as party glam rather than daily care. Context extraction (ctx) Recent purchases emphasize glow serums, vegan shampoo bars, and non-toxic face cream – a short-term tilt toward soothing, clean-beauty maintenance rather than color cosmetics. Reasoning extraction (reas) Cica Mist Balm matches the user’s soothing / clean-skincare lane (cica + mist balm for calming), whereas rhinestone headbands and fiber mascara clash with recent botanical preferences. Counterfactual extraction (cf) Anchor (Cica Mist Balm): Fits the clean-beauty, calming-care pattern reinforced by recent Tulip Dew cream and glow serum. Contrast (Rhinestone Crystal Headband): Statement bridal/party accessory; decorative rather than skincare-functional. If the user were shopping for a one-off formal event accessory instead of daily facial care, the contrast would rank higher. Student outputRANKED LIST: 1. JUNGSAEMMOOL Minifying Cica Mist Balm; 2. BeautyStat Universal Moisture Essence (Squalane); 3. BIOSSANCE Marine Algae Eye Cream Mini; 4. Intraceuticals Rejuvenate Eye Masks; 5. Foamie Shampoo Bar Hibiskiss; 6. Sea Magik Pink Salt Conditioner; 7. 4D Silk Fiber Lash Mascara Black; 8. Rhinestone Crystal Padded Headband Rationale: Top ranks stay in soothing skincare / moisture; glam mascara and rhinestone accessories are demoted using short-term clean-beauty context and the counterfactual contrast. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 28 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 24 Example of an rEDMRec prediction trace on Steam (illustrative end-to-end I/O; item titles from the public catalog). Colored spans mark likes/dislikes in history, the held-out target among candidates, the four retrieved extraction channels, and the top-ranked output. FieldContent User765611980946... History 퐻 푢 Played: Garry’s Mod (high playtime); Played: Half-Life 2; Played: Half-Life 2: Episode One; Played: Portal; Played: Portal 2; Played: The Binding of Isaac; Played: PlanetSide 2; Low play: Dota 2 Test Candidates 퐶 푢 Half-Life 2: Episode Two (target); Counter-Strike: Global Offensive; PAYDAY 2; Warframe; Terraria; Left 4 Dead 2; The Expendabros; Yosumin! Retrieved experience channels 푅 푘 Preference extraction (pref) Strong Valve narrative / puzzle-FPS taste: Half-Life 2 saga and Portal series dominate, with sandbox creativity (Garry’s Mod) and occasional indie rogue-likes (Isaac). Dislikes: Little engagement with pure MOBA test clients; competitive live-service shooters are secondary to story/puzzle FPS. Context extraction (ctx) Recent high-engagement cluster is Portal 2 + Half-Life episodes; short-term focus is completing the Valve narrative loop rather than opening new live-service grinders. Reasoning extraction (reas) Episode Two is the direct narrative continuation of Episode One already in history; CS:GO / Warframe offer multiplayer loops less aligned with the story-FPS preference. Counterfactual extraction (cf) Anchor (Half-Life 2: Episode Two): Continues the exact Half-Life 2 story the user already invested in. Contrast (Warframe): Free-to-play grind / live-service loop; weak narrative continuity with Portal/HL2. If the user wanted a long-horizon multiplayer grind instead of finishing a single-player story arc, the contrast would rank higher. Student outputRANKED LIST: 1. Half-Life 2: Episode Two; 2. Left 4 Dead 2; 3. Terraria; 4. PAYDAY 2; 5. Counter- Strike: Global Offensive; 6. Warframe; 7. The Expendabros; 8. Yosumin! Rationale: Episode Two leads via long-term Valve narrative memory and item-perception continuity; co-op FPS is secondary; mismatched casual / grind titles sink. Table 25 Failure / borderline RQ1 cells (Impv vs. second-best; typically GraphRAG). Negative Impv = GraphRAG ahead. Dataset StudentImpv (%)Note ML-1M Llama 3.1 8B −11.1 GraphRAG best; weak IF ML-1M GPT OSS 20B −3.3near-saturated student Beauty Llama 3.1 8B −4.1not significant Beauty GPT OSS 20B −0.5tie within noise Steam Llama 3.1 8B −7.3GraphRAG best Steam GPT OSS 20B −2.0GraphRAG best M.H. Nguyen et al.: Preprint submitted to ElsevierPage 29 of 25 rEDMRec: Reasoning Distillation into Experience Memory Table 26 Qualitative memory edits from the persisted bank (experiments/bank_evolution_cases.json). S = success-like; R = risk / failure mode; C = compression. CaseSpec.BeforeAfterInterpretation S1 / lt0.214 → 0.479 “Very limited data: the only rated film is a classic action-adventure, suggesting a preference for high- energy, heroic, escapist storytelling with suspense and...” “Long-term: favors mainstream 1990s action buddy-cop films – franchise sequels, star-driven chemistry, high-energy action with comedic interplay. Upweight these...” Hedge -> ranking rule; +spec. R1 / lt0.450 → 0.625 “Core taste is classic, lighthearted sci-fi with ensembles and humor, with some room for action SF. Hor- ror is avoided, and the user responds best to accessible,...” “User 17 strongly prefers classic and neo-noir/crime prestige dramas. Downweight short-term popularity signals and upweight niche/indie, 1990s-era, and foreign-...” Taste flip risk: sci-fi -> noir; may discard valid prior signal. C1 / st 0.300 → 0.500 “No recent viewing items were pro- vided, so no emerging short-term interests can be detected.” “Session: prioritize late-80s/90s Hol- lywood action comedies with buddy dynamics and franchise entries for top slots; include at least one diverse alternative pe...” Empty note -> session rule; aggregate st spec. can drop. S2 / ip 0.350 → 0.850 “The strongest match was only ranked 5th, so Hit@10 was good but Hit@1/MRR suffered. For this user, place the best Rocky-like inspira- tional drama at rank 1 when...” “Rocky (1976): User 4 chose Rocky over a higher-ranked 80s action ti- tle, signaling a preference for 1970s character-driven underdog sports dramas. When ranking,...” Vague Hit@1 complaint -> item-keyed boost. M.H. Nguyen et al.: Preprint submitted to ElsevierPage 30 of 25