← 10 Session 12 - Agentic memory - introduction, desiderata, and evaluation - Mon 26 Oct 14 →
All decks
  1. 1 Why retrieval nowMon 31 Aug
  2. 2 The inverted indexWed 02 Sep
  3. 3 Index construction and ranking foundationsMon 07 Sep
  4. 4 BM25: finish probabilistic rankingWed 09 Sep
  5. 5 Evaluation and the changing goals of retrieval benchmarksMon 14 Sep
  6. 6 Coarse retrieval and rerankingWed 16 Sep
  7. 7 LLM embeddings and rerankingMon 28 Sep
  8. 9 Hard queries: reasoning and ambiguityWed 07 Oct
  9. 10 Approximate nearest neighbour search and search systemsMon 12 Oct
  10. 12 Agentic memory - introduction, desiderata, and evaluationMon 26 Oct
  11. 14 Agentic memory - approaches and handcrafted methodsMon 02 Nov
  12. 16 Agentic memory - RL methods and wrap-upMon 09 Nov
  13. 18 Retrieval from the parametersMon 16 Nov
  14. 20 An explicit index of the training dataMon 23 Nov
  15. 22 Architectural lookupMon 30 Nov
  16. 24 Retrieval from the context - attention and the KV cacheMon 07 Dec
  17. 25 Retrieval from the context - which tokens are readWed 09 Dec
  18. 26 Course wrap-upMon 14 Dec
Contents
  1. 1Agentic memory
  2. 2Discussion preparation
  3. 3Lecture outline
  4. 4From search to writable memory
  5. 5Search actions
  6. 6WRITE actions
  7. 7Create, update, and delete
  8. 8ChatGPT memory
  9. 9Claude Code memory
  10. 10Memory in this lecture preparation
  11. 11Memory beyond the active context
  12. 12What should agentic memory do?
  13. 13Conflicting invoice records
  14. 141. Representation and organisation
  15. 152. Memory maintenance
  16. 163. Human control
  17. 174. Need for memory
  18. 18How do we evaluate agentic memory?
  19. 19What does a benchmark ask the memory to do?
  20. 20Benchmark coverage
  21. 21LoCoMo
  22. 22LongMemEval
  23. 23MemoryAgent<wbr>Bench
  24. 24MEME
  25. 25Quiz: current and previous deadlines
  26. 26Which desiderata need further evaluation?
  27. 27Desiderata and benchmark coverage
  28. 281. Representation and organisation
  29. 292. Memory maintenance
  30. 303. Human control
  31. 314. Need for memory
  32. 32Logistics

The recording

1

Agentic memory

Information retrieval for AI

26 October 2026

Seong Joon Oh - KAIST AI

2

Discussion preparation

LIMIT - 28 October

Preparation due 27 October, 18:00 KST.

REFLECT - 4 November

Preparation due 3 November, 18:00 KST.

RAW-RAG - 18 November

Preparation due 17 November, 18:00 KST.

3

Lecture outline

  1. Add WRITE actions to the search agent.
  2. Ask what a memory system should do.
  3. Compare evaluation benchmarks.
  4. Identify requirements that need further evaluation.
4

From search to writable memory

Give the agent WRITE actions alongside the search actions already covered.

5

Search actions

A research agent can formulate a query, retrieve papers, and inspect evidence.

The agent chooses what to read. The searched collection does not have to change.

6

WRITE actions

The agent can save a result or revise a project note.

A later query can retrieve the saved result or revised note.

7

Create, update, and delete

CRUD stands for create, read, update, and delete. WRITE covers CUD; read includes the search and retrieval operations already covered.

OperationProject example
CreateSave the initial latency budget.
UpdateRecord the revised budget.
DeleteRemove an accidental duplicate.
Do nothingLeave the current record unchanged.
8

ChatGPT memory

With memory enabled, a preference from an earlier chat can guide a later reply.

Official ChatGPT memory-summary screenshot with selected text and a Make a correction control.

Example: ask for short replies in British English. A later draft can use that preference without another reminder.

Official product screenshot: the memory summary exposes remembered information and a correction control. Available controls vary by account.

9

Claude Code memory

With auto memory enabled, Claude Code can retain a correction across sessions.

Screenshot of the Claude Code documentation: MEMORY.md indexes individual memory files.

First session: a test fails. The user explains that it needs a local Redis service. Claude saves the correction.

Later session: Claude can read the note before the next test run.

Use /memory to browse the files and open them in an editor.

Official documentation. Screenshot of the documented file layout; the Redis example also comes from the documentation.

10

Memory in this lecture preparation

Decision: cover agentic memory in three lectures instead of two.

Write: the assistant revises the saved lecture queue, including the agreed section order and dates.

Later read: it opens that file before constructing or revising slides.

The saved plan remains available after the original conversation leaves the active context.

11

Memory beyond the active context

A conversation can leave the active context while a retained memory remains available to later searches.

MemoryLater use
Project constraintCheck whether a design is acceptable.
User preferenceChoose an appropriate response.
Previous attemptAvoid a failure or reuse a useful procedure.

Retain information that supports later tasks.

12

What should agentic memory do?

Consider representation and organisation, maintenance, human control, and the need for memory.

13

Conflicting invoice records

The agent stores an invoice and its forwarded copy as separate records. Payment updates the original, but the copy stays unpaid.

Hypothetical example: payment updates the original invoice, but the unpaid copy produces an overdue reminder and summary.

The user has paid, but the duplicate keeps spreading the unpaid claim.

14

1. Representation and organisation

How should an agent represent past experiences?

Distinguish the invoice, its payment, and the reminder sent about it.

How should it avoid duplicate memories?

Link the original email and forwarded copy to the same invoice.

How should it handle conflicting information?

Use the payment confirmation to resolve “paid” versus “unpaid”. The reminder and summary repeat the outdated copy; they are not independent evidence of a debt.

15

2. Memory maintenance

When should the agent write to memory?

Record the payment when it is confirmed.

How should it handle stale information?

Correct the unpaid copy and the claims in its reminder and summary.

How should it detect and recover from failed memory operations?

Check that the correction reached the affected records. If the invoice says “paid” but the summary still says “unpaid”, finish the repair before sending another reminder.

16

3. Human control

Can humans understand and edit what the agent remembers?

The user should be able to ask “Why are you telling me to pay?” and trace the reminder to the outdated invoice copy.

They should be able to correct that record and see whether the reminder and summary were corrected too.

Otherwise, the user may fix “unpaid” in the invoice and still receive the same false reminder.

17

4. Need for memory

Would unlimited context remove the need for memory?

With the complete history, an agent could read the invoice, forwarded copy, payment confirmation, and reminder whenever it answers.

A maintained memory could instead state “invoice paid” and link to the evidence.

The current state answers “Do I still owe money?” The history answers “Why did you send that reminder?”

What would a memory system need to preserve beyond the current status?

18

How do we evaluate agentic memory?

Compare LoCoMo, LongMemEval, MemoryAgentBench, and MEME through their tasks and scoring.

19

What does a benchmark ask the memory to do?

Task

  • What information arrives, in what order?
  • What must the agent answer or accomplish later?

Metric

  • How is task performance measured?
20

Benchmark coverage

TaskLoCoMoLongMemEvalMemoryAgentBenchMEME
Venue / yearACL 2024ICLR 2025ICLR 2026NeurIPS 2026
Fact recall✓✓✓✓
Aggregation✓✓✗✓
Tracking changes✗✓✓✓
Deletion✗✗✗✓
Cascade✗✗✗✓
Absence after change✗✗✗✓
Learning from examples✗✗✓✗
Summarisation✓✗✓✗
21

LoCoMo

ACL 2024

Long conversations follow personas and event timelines, with human checks and edits. Tasks include QA, event summarisation, and multimodal dialogue generation.

Example - temporal reasoning

LoCoMo paper example: a book starts in July and finishes in October; the answer is three months.

The answer requires the dates of the conversation turns as well as their text.

Metric: answer F1 for QA.

Paper, Figure 2, PDF p. 2. Cropped temporal-reasoning example.

22

LongMemEval

ICLR 2025

Tests information extraction, multi-session reasoning, temporal reasoning, knowledge updates, and abstention.

Example - knowledge update

LongMemEval paper example: a Hawaii trip is followed by a more recent Paris trip; the answer is Paris.

Question: where did the user go on their most recent family trip?

Answer: Paris. The later conversation changes which trip is most recent.

Metric: GPT-4o judged correctness.

Paper, Figure 1, PDF p. 3 (cropped example); Appendix B (metric).

23

MemoryAgentBench

ICLR 2026

Tests accurate retrieval, test-time learning, long-range understanding, and selective forgetting.

Example - test-time learning

MemoryAgentBench paper illustration: examples assign A to class 1 and B to class 2, then ask about new instances.

The agent must infer a task from earlier examples and apply it to a later query.

In the released intent-classification task, earlier equations have label 61. The query “answer the equation eight times seven” also expects 61.

Metric: classification accuracy.

Paper, Figure 1, PDF p. 2 (illustration). Released data: icl_nlu_8296shot_balance, query 52 (concrete task).

24

MEME

NeurIPS 2026

Tests Exact Recall, Aggregation, Tracking, Deletion, Cascade, and Absence across multiple entities and evolving information.

Example - Cascade

MEME Cascade example: when the team lead changes, a stored rule makes Seoyun Choi the new code reviewer.

The new lead is stated directly. The new reviewer follows from the earlier dependency rule.

Metric: judged correctness; Cascade, Absence, and Deletion require correct answers before and after the change.

Paper, Figure 2, PDF p. 2 (cropped example); PDF p. 5 (metric).

25

Quiz: current and previous deadlines

You tell an agent, “The report is due this Friday.” Later, you tell it, “The deadline has moved to next Monday.” The agent stores both messages.

After the update, you test its memory of earlier events, such as when a project meeting took place. Its answers are correct. You have not yet asked it for the report’s current deadline or its original deadline.

Has the agent satisfied our memory desiderata?

Sign in with your course account to choose. The lecturer will reveal responses and the answer.

26

Which desiderata need further evaluation?

For each desideratum, identify the relevant benchmark task, state what its metric establishes, and propose a test for what remains unanswered.

27

Desiderata and benchmark coverage

Related desiderataTaskLoCoMoLongMemEvalMemoryAgentBenchMEME
Venue / yearACL 2024ICLR 2025ICLR 2026NeurIPS 2026
1Fact recall✓✓✓✓
1Aggregation✓✓✗✓
2Tracking changes✗✓✓✓
2, 3Deletion✗✗✗✓
1, 2Cascade✗✗✗✓
1, 2Absence after change✗✗✗✓
1, 2Learning from examples✗✗✓✗
1Summarisation✓✗✓✗

1. Representation and organisation. Recall and aggregation test answers from stored information. Correct answers can still conceal duplicate or conflicting records.

2. Memory maintenance. Tracking, deletion, cascade, and absence test answers after changes. They do not establish recovery from interrupted writes or prevent stale claims from returning.

3. Human control. Deletion tests compliance with a removal request. The table does not tell us whether users can inspect, understand, and repair memory.

4. Need for memory. Task coverage cannot establish whether memory helps over full context. LoCoMo, LongMemEval, and MemoryAgentBench include long-context comparisons; these test practical benefits, not the idealised unlimited-context question.

28

1. Representation and organisation

Existing benchmarks provide substantial coverage of the behaviour we want from a memory representation.

BenchmarkWhat it tests
LoCoMoRecall and reasoning across long conversations.
LongMemEvalInformation extraction and reasoning across sessions.
MemoryAgentBenchFactConsolidation tests answers from conflicting facts, with later facts given priority.
MEMEAggregation across entities; inference from dependencies after changes.

In the invoice example: recognise which records refer to the same invoice, reconcile their claims, and derive the correct balance.

Measure: use the existing task scores for recall, aggregation, and reasoning. These evaluate the resulting answers; they do not prescribe an internal representation.

29

2. Memory maintenance

Existing benchmarks also provide substantial coverage of how answers should change as memory evolves.

BenchmarkWhat it tests
LongMemEvalKnowledge updates and temporal reasoning across the history.
MemoryAgentBenchSelective forgetting tests direct and multi-hop answers after contradictory updates.
MEMETracking preserves revision history; Cascade and Absence test consequences of changes; Deletion tests the post-removal state.

In the invoice example: payment changes the current balance and whether a reminder is appropriate. The history should still show that the invoice was previously unpaid.

Measure: use accuracy on update, temporal, dependency, and forgetting tasks. Report these separately so strong recall does not conceal poor handling of changes.

30

3. Human control

Can humans read, understand, and directly edit what the agent remembers?

Illustrative memory editor before and after a person corrects an invoice record from unpaid to paid.

Existing coverage: the reviewed benchmarks do not directly test human inspection and editing.

Proposed study: give a participant the incorrect overdue answer and access to the memory interface. Ask them to find, explain, and repair the error.

Measure: diagnosis and repair success, time and effort, and whether later answers respect the edit. Direct editing requires interpretable, editable records.

31

4. Need for memory

What does explicit memory add beyond a strong RAG baseline?

The same raw history feeds either a maintained memory store or raw-history retrieval; both supply the same reader.

Use the existing benchmark tasks with the same source history and reader model. Also test full-history input where it fits in context.

Measure: task accuracy, total cost, and latency. Include memory construction and maintenance in the cost.

The comparison must show what the extra memory machinery contributes.

32

Logistics

LIMIT discussion - 28 October

Preparation due 27 October, 18:00 KST. Check your role and submit your preparation.

Next lecture - 2 November

Agentic memory: overview of approaches and handcrafted methods.

REFLECT discussion - 4 November

Preparation due 3 November, 18:00 KST. Use the reading guide, check your role, and submit your preparation.

Lecture slides