# LoCoMo, retrieval scoped by subject — Hanzo AI

> A Go LoCoMo harness with no language model in it: scoping retrieval to the person a question names moves adversarial F1 from 0.200 to 0.502, with a 95% interval over conversations wholly above zero.

# Retrieval scoped by subject

[Benchmarks](https://hanzo.ai/benchmarks) / LoCoMo · subject scope

measured

A second LoCoMo harness, in Go, with no language model anywhere in it: lexical retrieval and a fixed extractive reader, with retrieval scoped to the person a question names, against a flat index. Its numbers are on their own scale, not the engine’s.

[Start on Hanzo Cloud](https://platform.hanzo.ai/)

Results

questionsadversarial

- subject-scoped F1**0.502**
- flat index F1**0.200**
- paired 95% interval**\[+0.247, +0.347\]**

```
$ go run ./bench/locomo
```

regenerates every table on this page from the raw runs

dataset

[LoCoMo](https://github.com/snap-research/locomo)

licence

CC BY-NC 4.0

introduced by

[Evaluating Very Long-Term Conversational Memory of LLM Agents](https://arxiv.org/abs/2402.17753) — Maharana, Lee, Tulyakov, Bansal, Barbieri, Fang, ACL 2024

harness

[hanzoai/semantic · bench/locomo](https://github.com/hanzoai/semantic/tree/v0.3.0/bench/locomo)

our papers

[Retrieval Scoped by Subject](https://github.com/hanzoai/papers/blob/main/site/public/pdfs/locomo-subject-scope.pdf), [Linkage, Not Similarity](https://github.com/hanzoai/papers/blob/main/site/public/pdfs/hanzo-context-memory.pdf)

## Why this is a separate page

This measures the same dataset as [LoCoMo](https://hanzo.ai/benchmarks/locomo) and its numbers are not on the same scale, so they are not in the same table. A benchmark page is one _protocol_, not one dataset, and three things differ here. Retrieval is lexical — IDF-weighted stemmed terms, cosine, no embedding model anywhere. The reader is a fixed extractive one: it picks the sentence covering most of the question’s terms and returns a span, and no language model is called in any arm. And all 1986 questions are used, including the adversarial quarter, reported apart rather than excluded.

## What is measured

Ten conversations, 272 sessions, 5,882 turns, 1986 questions, scored with LoCoMo’s own metric — ported to Go and verified against the original Python on all 1986 questions and every arm. The question is whether restricting retrieval to the person a question names changes what is found. The flat index embeds whole turns; the scoped one indexes what one person said in one turn and filters by the subject the question names. Both are cosine over the same terms.

## Results

token F1 · k=5 · abstention floor 0.30 · interval over conversations, subject scope minus the flat index · `go run ./bench/locomo` at v0.3.0

## Reproducing it

Go 1.25, no third-party dependencies, and the dataset is fetched on first run. From a fresh clone at v0.3.0: `go run ./bench/locomo` prints the table and `go run ./bench/locomo -stats out/answers.json` the intervals. `make check` rescores the same predictions with the benchmark authors’ own Python and matches to three decimals across all 1986 questions and every arm.

## The paper

[Retrieval Scoped by Subject](https://github.com/hanzoai/papers/blob/main/site/public/pdfs/locomo-subject-scope.pdf) reports the subject-scope result on this page, from the same harness.

```
$ go run ./bench/locomo
```

PreviousRepoBench-R · All Benchmarks Board · NextLoCoMo-Conv

### Related in memory

[LoCoMo](https://hanzo.ai/benchmarks/locomo)[MemoryAgentBench](https://hanzo.ai/benchmarks/memoryagentbench)[LongMemEval](https://hanzo.ai/benchmarks/longmemeval)[LoCoMo-Conv](https://hanzo.ai/benchmarks/locomo-conv)

- Other benchmarks

[CronQuestions](https://hanzo.ai/benchmarks/cronquestions) · [RepoBench-R](https://hanzo.ai/benchmarks/repobench-r) · [Fleet residency](https://hanzo.ai/benchmarks/fleet) · [Live agent footprint](https://hanzo.ai/benchmarks/goroutine) · [Sandbox cold start](https://hanzo.ai/benchmarks/sandbox) · [Engine prefill on CUDA vs llama.cpp](https://hanzo.ai/benchmarks/inference) · [GPQA-Diamond](https://hanzo.ai/benchmarks/gpqa)

harness: [hanzoai/semantic · bench/locomo](https://github.com/hanzoai/semantic/tree/v0.3.0/bench/locomo) at v0.3.0, MIT · dataset snap-research/locomo sha256 79fa87e90f04… · captured 2026-09-11

## Build on Hanzo Cloud

[Start on Hanzo Cloud](https://platform.hanzo.ai/)[View Models & Pricing](https://hanzo.ai/pricing)

Hanzo AI Cloud
