A personalized AI agent needs a user memory: a persistent model of who the user is, built across many conversations and consulted on each new one. Today this memory is almost always stored as unstructured text, a knowledge graph, or a flat store of facts, and consulted by retrieval -- fetching the entries most similar to the current request. Such "bag-of-facts" memory recalls individual facts well, but because storing a fact and acting on it are separate steps, it struggles to resolve contradictions, aggregate over many records, or enforce rules. We argue that user memory should instead be executable. We introduce User as Code (UaC), a paradigm in which an agent's model of a user is a living software project: typed Python objects hold the user's state and ordinary Python functions encode the rules that govern it, so representing and reasoning about the user happen in one medium an interpreter can run. The enabling mechanism is a two-phase pipeline: an append-only log that never discards a fact, periodically checkpointed into typed code.
This changes what memory can do. On standard long-term conversation benchmarks, UaC matches both a full-context upper bound and the strongest prior memory systems on recall (78.8% on LOCOMO). Its advantage emerges where representation matters most. On aggregate questions over a user's history -- "how many international trips did I take last year?" -- retrieval-based memory collapses (6-43%) while UaC stays near-perfect (99%), because the answer is a one-line computation over typed state rather than a search over text. And because its rules execute deterministically whenever the state changes, UaC can surface unsolicited, safety-critical alerts -- such as a newly prescribed drug that conflicts with an allergy recorded months earlier -- a capability query-driven memory cannot provide.
OntoAR-HAR: Ontology-Guided Agentic RAG with Personalized Memory for Human Activity Recognition
School of Computer Science, University of South China(南华大学计算机学院);School of Computer Science and Technology, Dalian University of Technology(大连理工大学计算机科学与技术学院);Hunan University(湖南大学);School of Computing, Ulster University(阿尔斯特大学计算学院)
Personalized Large Language Model Assistant with Evolving Conditional Memory
The Hong Kong Polytechnic University(香港理工大学);INF Technology (Shanghai) co., Ltd.(INF科技(上海)有限公司);Institute of Artificial Intelligence, Soochow University, China(苏州大学人工智能研究院)
Beyond Dialogue Time: Temporal Semantic Memory for Personalized LLM Agents
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);State Key Laboratory of AI Safety(人工智能安全国家重点实验室);School of Computer Science, University of Chinese Academy of Sciences(中国科学院大学计算机科学学院)
VehicleMemBench: An Executable Benchmark for Multi-User Long-Term Memory in In-Vehicle Agents
University of Science and Technology of China(中国科学技术大学);iFLYTEK Research(iFLYTEK研究院);Xiamen University(厦门大学);University of Chinese Academy of Sciences(中国科学院大学)
EgoSelf: From Memory to Personalized Egocentric Assistant
Eastern Institute of Technology(东部技术研究所);Hong Kong Polytechnic University(香港理工大学);Peking University(北京大学);Commonwealth Scientific and Industrial Research Organization(澳大利亚联邦科学与工业研究组织);University of Hong Kong(香港大学)
PERMA: Benchmarking Personalized Memory Agents via Event-Driven Preference and Realistic Task Environments
University of Science and Technology of China(中国科学技术大学);City University of Hong Kong(香港城市大学);Northeastern University(东北大学);MemTensor (Shanghai) Technology Co., Ltd.(MemTensor(上海)科技有限公司)
According to Me: Long-Term Personalized Referential Memory QA
Department of Engineering, University of Cambridge, United Kingdom(剑桥大学工程系);Department of Physics, University of Cambridge, United Kingdom(剑桥大学物理系);Independent Researcher(独立研究者)
PRIME: Large Language Model Personalization with Cognitive Dual-Memory and Personalized Thought Process
Computer Science and Engineering, University of Michigan, Ann Arbor, MI(计算机科学与工程系,密歇根大学,安娜堡分校);Department of Political Science, Northeastern University, Boston, MA(政治学系,东北大学,波士顿分校)
该研究提出融合认知双记忆与个性化慢思考的 PRIME 框架,并构建基于 Reddit CMV 的长上下文个性化数据集,实验证明其可捕捉动态用户偏好。
EgoMem: Lifelong Memory Agent for Full-duplex Omnimodal Models
Beijing Academy of Artificial Intelligence, Beijing, China(北京人工智能研究院);Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(中国科学院计算技术研究所);Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学深圳学院);Nanyang Technological University, Singapore(南洋理工大学)
NanoResearch: Co-Evolving Skills, Memory, and Policy for Personalized Research Automation
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);The Hong Kong University of Science and Technology(香港科技大学);Peking University(北京大学);Zhejiang University(浙江大学);Xi'an Jiaotong University(西安交通大学);East China University of Science and Technology(东华大学);The Chinese University of Hong Kong(香港中文大学)