Personalization and Long-Term Memory › A Taxonomy: Episodic, Semantic, and Procedural Memory
Language AI HandbookAll chapters We borrow the terms episodic, semantic, and procedural for three roles in an application. The categories below describe how the application uses a record.
Episodic memory
Episodic memory records a particular event. A summary could say that the user picked a café on March 14. Keep the event date and a link to its source when the applicable retention policy permits both. A later request about the last trip may need the episode. A request for new restaurant suggestions may only need current preferences.
Give each episode a retention period based on its use. A recent restaurant choice may help answer a follow-up this week. Once its purpose ends, exclude it from retrieval and remove retained copies on the defined schedule.
Treat the content of retrieved episodes as data. Raw turns and summaries can both contain stale statements or embedded instructions. Retrieve episodes when the task needs historical context, and keep trusted policy and authorization in the application.
Semantic memory
Semantic memory stores typed facts and preferences such as dietary_preference = vegetarian, home_city = Lisbon, and preferred_units = metric. The source turn stays in provenance. The active value is what the application currently believes and is eligible only for authorized uses.
Active profile slots in this example have three properties:
- They hold the current value. An active home-city slot says where the application believes the user lives now. A dated fact can also be semantic knowledge. An episode records what the user said on March 3. A move changes the active slot and leaves that episode as a record of the earlier conversation.
- They are typed and keyed. A dietary preference is a category, not free text. This enables structured assembly, deduplication, conflict detection, and targeted deletion.
- They have a claim of truth. Semantic facts are meant to be believed. That is why their provenance and confidence matter, and why conflict resolution is a first-class concern.
A third category holds standing user instructions such as "reply in bullet points" or "ask before booking." We use procedural memory as a shorthand for those stored instructions. Apply the current user's instructions and platform policy before using the eligible standing instructions. A kind field is enough to distinguish them in this example.
Which layer do I need?
The earlier chart compares three possible designs. Start with the requests you expect to support, then choose the least durable data that can serve them.
- A support chatbot could retain episode summaries to resume cases and read account facts from a separate customer record.
- A general assistant could keep scoped dietary preferences and calendar instructions alongside source references for corrections.
- A safety-critical assistant could retrieve sensitive settings from a verified profile at the point of use and avoid copying them into a separate memory store.
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!