DawnLoop

Blog

Episodic vs semantic memory for AI agents

Raw events and the beliefs distilled from them: what each layer stores, where the terms come from, and what both look like in a working prototype.

Episodic vs semantic memory is the distinction that AI agent memory systems borrow most often from cognitive science, usually without saying exactly what they mean by it. This post gives a plain definition of each, traces where the terms come from, shows how agent frameworks use them, and ends with real output from our prototype, where the two layers are separate node types in one graph.

Last verified: October 12, 2026.

What is episodic memory in AI?

Episodic memory in an AI agent is a record of a specific event: who did what, when, in what context, and how it turned out. “The agent deployed the auth changes straight to production, and the deploy was rolled back” is an episode. Episodes are raw, timestamped, and tied to one occasion. They’re the evidence. An agent with only episodic memory can recall what happened, but it has to work out what it means every time it looks.

What is semantic memory in AI?

Semantic memory in an AI agent is general knowledge that isn’t tied to one occasion: “this team deploys through CI, never over SSH.” It’s distilled from many episodes, or stated directly. In a well-built system, each semantic memory also records where it came from (provenance), how sure the system is (confidence), and when it was last confirmed. Semantic memories are the conclusions. An agent with only semantic memory knows what it believes, but it can’t check why.

Where do the terms come from?

From psychology. Endel Tulving proposed the distinction in a 1972 chapter, “Episodic and semantic memory”, in Organization of Memory, a volume he edited with Wayne Donaldson. The summary printed with his 1987 Citation Classic commentary defines the two this way: episodic memory “refers to memory for personal events and the temporal-spatial relations among these events”, while semantic memory “represents organized knowledge that a person possesses about words and other verbal symbols, their meaning and referents”.

Two details from that commentary are worth knowing. Tulving wrote that the distinction “was not at all original”, because philosophers and students of memory pathology had expressed similar ideas all along. And neither word was new: “semantic memory” came from M. Ross Quillian’s 1966 dissertation, and Tulving took “episodic” from a small book by S. Munsat that used the phrase “nonepisodic memory”.

Tulving also never treated the two as sealed boxes. A historical review by Renoult and Rugg (Neuropsychologia, 2020) traces how he argued from 1972 on that the two systems are interdependent. That’s a useful reminder for anyone building agents: in practice, the layers feed each other.

One caveat before borrowing. Agent memory isn’t a model of the brain. The terms are good labels for two kinds of data that do different jobs. Using them doesn’t make an agent’s memory work like a person’s.

How do AI agent frameworks use the terms?

Cognitive architectures used these terms before LLM agents existed. As the CoALA paper describes it, Soar, the canonical example, keeps semantic memory for facts about the world and episodic memory for sequences of the agent’s past behaviour. CoALA itself (Sumers et al., published in TMLR in 2024) carried that taxonomy over to LLM agents: a working memory for the current decision, plus three long-term memories. In CoALA’s words, episodic memory “stores experience from earlier decision cycles” and semantic memory “stores an agent’s knowledge about the world and itself.”

Frameworks have adopted the same vocabulary:

  • LangGraph’s memory overview cites CoALA. It describes semantic memory as facts, often facts about a user, and says episodic memory is “often used to help an agent remember how to accomplish a task”, frequently implemented as few-shot examples of past runs.
  • Zep (Rasmussen et al., 2025) splits its graph into an episode subgraph, which it calls “a non-lossy data store”, and a semantic entity subgraph extracted from it. The paper maps the two explicitly onto human episodic and semantic memory.

The usage is loose, though. Reflexion stores an agent’s verbal reflections on its failed attempts in what it calls an “episodic memory buffer”. CoALA describes those same reflections as semantic knowledge, because they’re inferences drawn from experience rather than records of it. Both readings are defensible. When you evaluate a memory system, check what it actually stores, not what it calls it.

What about procedural memory in AI agents?

The third long-term type in CoALA is procedural memory: knowing how to act. For an LLM agent it comes in two forms, the implicit knowledge in the model’s weights and the explicit knowledge in the agent’s code. LangGraph’s docs add the agent’s prompt, and note that agents rarely change their own weights or code but more often rewrite their own prompts.

For coding agents, instruction files such as AGENTS.md or CLAUDE.md sit close to procedural memory: they tell the agent how to behave in this repository. CoALA warns that writing to procedural memory is riskier than writing to episodic or semantic memory, because it can introduce bugs or let an agent drift from what its designers intended. We agree. DawnLoop is designed to keep learning in the graph by default, and treats changing weights as a separate research bet.

Episodic vs semantic memory at a glance

  Episodic memory Semantic memory
Stores Specific events General beliefs and facts
Reads like “This happened, then, with this result” “This is how things work here”
Written As things happen Later, distilled from many episodes, or stated directly
Changes? Rarely. Episodes are a record Yes: confirmed, weakened, or replaced
Should carry Who, what, when, where, outcome Provenance, confidence, last confirmed
On its own Recall without conclusions: the agent re-derives everything per request Conclusions without evidence: nothing to check or revise against

Why do agents need both?

Episodes alone don’t scale. Retrieving raw events means the agent gets fifteen near-identical records of how auth changes ship, plus one failure, and has to reason its way to the pattern inside the request, every time.

Beliefs alone don’t correct themselves. A belief with no link to its evidence can’t be re-checked when the evidence changes. If “deploying over SSH is fine” has no episodes behind it, a failed deploy has nothing to attach to.

Together they form a loop. Episodes are evidence, beliefs are conclusions that cite their evidence, and new episodes can strengthen or overturn old beliefs. Turning episodes into beliefs is consolidation, covered in Memory consolidation for AI agents. Retiring the beliefs that stopped being true is the subject of Forgetting in AI memory.

What both layers look like in our prototype

We have a small Ruby prototype of the memory graph. It’s a wireframe for the mechanics, not a product. It has three node types:

Node Layer What it holds
topic Anchor A label, such as auth or deploy
episode Episodic Actor, action, context, timestamp, and an outcome that starts as pending and becomes ok or fail
belief Semantic A statement, confidence, the IDs of supporting episodes, what it asserts, its source (seed, consolidation or contradiction), and when it was last confirmed

Episodes and beliefs both link to their topic with an about edge. Each belief links to the episodes it was built from with a derived_from edge, which is its provenance. Retrieval ranks nodes by salience, a score built from outcome magnitude, access frequency, recency of confirmation and contradiction pressure, so failures and frequently used beliefs rank higher.

Here is the context the prototype retrieves on day two for the question “How do we ship a change to the auth service?”. It’s real output from a deterministic run of a synthetic three-day scenario, trimmed and wrapped for width:

episode[13] Deploy the auth changes straight to production | outcome: fail
episode[1] Split auth middleware out of the router | outcome: ok
episode[3] Consolidate the two auth token helpers | outcome: ok
episode[10] Refactor the auth service to support OpenID Connect | outcome: ok
episode[11] Add rate limiting to the auth service | outcome: ok
...
belief[6] Team uses service objects, not fat models | conf: 0.69 | salience: 0.368
belief[16] Team auth work is repeatable and succeeds every time: Split auth middleware
  out of the router; Consolidate the two auth token helpers; ... | conf: 0.92 | salience: 0.313
(12 nodes pulled from 16 in the graph)

What to notice:

  • Episodes carry outcomes. The failed deploy comes first because failures get a larger outcome magnitude in the salience score.
  • Beliefs carry confidence and salience. The service-objects belief was seeded at 0.7 and has decayed slightly, because nothing confirmed it that day.
  • Belief 16 is semantic memory built from episodic memory. The prototype’s nightly pass created it from six successful auth episodes, and its derived_from edges point back to them.

And what’s crude, because it’s a prototype:

  • “Where” is only a topic label. The design is meant to link episodes to the files, decisions and bugs they touched. The prototype doesn’t model files yet.
  • Belief 16’s text is a concatenation of episode titles, and “succeeds every time” is a large claim to make from six episodes. Writing a good belief statement is the hard part of consolidation, and this one isn’t good.
  • The outcomes are scripted. In the demo, a script marks each episode ok or fail. In the design, those labels are meant to come from tests, merges and reverts.

Where DawnLoop fits

DawnLoop is designed with these two layers: an episodic layer of events with outcomes, and a semantic layer of beliefs with provenance, confidence and a last-confirmed timestamp, built from the episodes by a nightly pass. None of it has shipped yet. The full architecture is on How it works, and Long-term memory for AI agents compares this approach with the alternatives.