External memory systems give large language models (LLMs) access to long user histories, but keep memory outside the model: before retrieval, the model lacks a holistic view of the user and cannot decide whether retrieval is needed or how to query the history. We introduce GistPilot, a personalized memory framework that couples an internal user trace with adaptive external-memory access. User Gist Trace (UGT) compresses each user's history into a fixed-length latent KV prefix available before retrieval. Conditioned on UGT, the Gist-guided Memory Access Policy (GAP) estimates how much question-relevant memory the trace retains and selects direct answering, specific-query retrieval, coarse-query retrieval, or retrieval with the original query. UGT is learned through history reconstruction and context distillation; GAP is trained with a supervised warm start followed by outcome-driven reinforcement learning using counterfactual rollouts and role-specific advantage assignment. Experiments on LongMemEval and PersonaBench show that GistPilot achieves the best overall answer quality in Judge score over the strongest baseline. These results show that a compact internal gist can provide global user context while enabling effective, query-dependent memory access.
翻译:暂无翻译