arXiv:2610.26433cs.CLOct 2026

Manuscript Offprint

arXiv:2610.26433

The Geometry of Agent Memory: Forecasting Retrieval-Bound Memory Failures, and Characterizing Its Limits

Iliya Zhechev, Radoslav Ralev, Chris Coleman, Srijith Rajamohan, Jen Agarwal, Tyler Hutcherson, Simba Khadder

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study whether geometric relationships between conversation turns, memory texts, and queries can predict answer correctness before generation. We evaluate four memory implementations with dense or hybrid retrieval and one observation-summary comparator. We embed these texts in a shared space. A logistic classifier uses 25 features describing query proximity, memory–conversation correspondence, and conversation structure. On LongMemEval-small, pooled AUROC is 0.640 over 2,367 question–system pairs, below a question-difficulty baseline of 0.655. Performance varies by question type: geometry reaches 0.841 on single-session-assistant questions, but system identity alone reaches 0.826. After controlling for difficulty and identity, geometry adds no statistically established pooled improvement ( Δ=+0.002\Delta = +0.002, 95% CI [−0.010,0.014][-0.010, 0.014]). A fixed-store context-selection experiment finds higher accuracy with proximity-ranked memories than with random subsets, consistent with ordinary retrieval relevance. On LoCoMo, nearest-turn similarity has modest predictive value for single-hop questions and near-chance estimates for several other categories. Training uses correctness labels; prediction uses pre-answer features and no additional LLM generation call. The results characterize associations between memory representations and correctness, rather than establish a reliable deployment diagnostic. In particular, embedding proximity does not verify fact coverage or distinguish memory-construction, retrieval, and generation errors.

1 Introduction

Long-term agent memory can use text retrieval, summaries, knowledge graphs, symbolic stores, or parametric updates. This study focuses on text memory representations associated with dense retrieval. We also include an observation-summary system as a comparator. Benchmark QA accuracy measures one aspect of these systems, alongside cost, latency, storage, and other concerns. A separate question is whether a signal available before generation can help identify queries that are likely to receive an incorrect answer.

Preprint.

Two selected examples from Ext-Hybrid: conversation, memories, and query

Example #149: single-session-assistant Correctly answered example

Figure

t-SNE 1

Example #222: multi-session Incorrectly answered example

t-SNE 1

(a) Illustrative t-SNE projection. 2-D distances do not preserve original cosine distances

(b) Sorted original-space query-to-memory distances for these examples

Figure

memory rank (sorted by cosine distance to the query)

Figure 1: Conversation turns, memories, and queries for two selected examples. The correctly answered query is closer to memory points than the incorrectly answered query. The t-SNE projection is illustrative; all measurements use original-space cosine distance. The examples do not establish fact coverage or the cause of an error.

We study three representations: source conversation turns, memory texts produced by a system, and an incoming query. Dense retrieval systems already embed memories and queries. We additionally embed conversation turns in the same space (Figure 1). We compute two feature blocks and conversation covariates:

  • Query reachability: nearest-memory distance, mean distance to the five closest memories, local memory density, and nearest-turn distance. Here, reachability names an embedding-proximity measurement.

• Memory–conversation correspondence: turn-to-memory proximity, session alignment, memory count, and memory dispersion. These describe geometric correspondence rather than verified coverage of individual facts.

A logistic classifier predicts answer correctness from these features. We examine variation across question types, incremental prediction beyond question difficulty and system identity, and accuracy under different context-selection rules. The strongest observed AUROC is 0.841 for single-session-assistant questions. However, system identity alone reaches 0.826 on that same type. The high within-type score therefore does not establish independent prediction of instance-level memory failures. Pooled over all types, geometry adds no significant gain beyond difficulty and system identity ( §5.6§5.6).

Memory construction can omit evidence, retrieval can miss evidence already stored, and generation can fail despite sufficient retrieved context. We test the hypothesis that the first two cases leave geometric signatures. Our use of retrieval-bound refers to this motivating hypothesis, not a verified classification of the observed errors. Distances alone cannot show whether an answer-bearing fact was stored, included in the actual prompt, or used correctly.

A warning score could eventually support abstention, broader retrieval, or recovery from the source conversation. Our present results do not validate such a deployment policy. The scope analysis uses labeled outcomes, and prediction across unseen memory architectures remains unreliable.

Analysis code and numerical artifacts: github.com/ichko/agent-memory-geometry.