Personalization and Long-Term Memory

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 45 of 67Knowledge, Memory, Editing, and Unlearning
Chapter 349Personalization and Long-Term Memory
Reading section 1 of 15 · Personalization and Long-Term Memory · 3 minSection 1 of 15 · 3 min

Section 1 of 15 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A user tells your assistant, on a Monday, that they are vegetarian. On Tuesday they mention they are flying to Osaka next month. On Wednesday, in a different session about expense reports, they ask you to "remember I do not want reminders before 9am." Each of those utterances carries a different kind of fact. One is a durable preference that shapes what the assistant should recommend. One records a plan mentioned on Tuesday, with travel scheduled for next month. One is a behavioral instruction about the assistant itself. A well-designed system must know which is which, where each belongs, how long it should survive, who can see it, and what happens when two memories disagree.

Personalization adapts an assistant's answers to a user. This chapter builds one way to do it: hold the base model fixed, store selected information in the application, and retrieve what the current request may use. The application can then carry a preference across sessions without updating the model.

A memory store gives each record a type, purpose, source, and lifetime. Start with the decisions the assistant needs to make. A calendar reminder may consult a scheduling instruction. A restaurant recommendation may consult a dietary preference. Each request has a different reason to read the same user's profile.

Part XLIV on Retrieval-Augmented Generation covered retrieving documents for the current prompt. Here we reuse retrieval and prompt assembly for a frequently updated per-user store. The application must check who can use each record, for which purpose, and how long the record stays available. Machine Unlearning covers a separate operation on model parameters.

Three claims frame the rest of the chapter:

  • Separate what a user prefers from what a user did from what the user told you to do. Each has different semantics, different consent obligations, and different extraction logic.
  • Attach a use scope, provenance, and expiry policy to each durable memory.
  • Resolve conflicts by policy and track every store that can retain a value. That inventory defines the work required when a user asks for erasure.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy