I gave my chatbot 4x more memory. It answered no better.

Chat assistants with "memory" all do the same thing: when you ask something, they search your old conversations and paste the best matches into the prompt. Most benchmarks score that search step by recall: did the fact the model needs make it into the prompt? I've been measuring this on LongMemEval (479 questions, each hidden in ~50 past chat sessions) with an open-source harness I wrote, memory-recall-bench. Then I checked what actually matters: does the model answer correctly? The setup Retriever: BM25 + bge-small embeddings, fused (a strong, cheap hybrid). Context budget: 4,000 or 16,000 tokens of retrieved chat history. Reader: Qwen3-4B-Instruct on a free Kaggle T4, greedy decoding. Judge: the same model with LongMemEval's official yes/no judge prompts. A 4B judge is rough, so I only trust paired differences: same questions, same reader, same judge, only the context changes. The result budget evidence fully in context answered correctly 4k 63.0% 59

I gave my chatbot 4x more memory. It answered no better.

Chat assistants with "memory" all do the same thing: when you ask something, they search your old conversations and paste the best matches into the prompt. Most benchmarks score that search step by recall: did the fact the model needs make it into the prompt?

I've been measuring this on LongMemEval (479 questions, each hidden in ~50 past chat sessions) with an open-source harness I wrote, memory-recall-bench. Then I checked what actually matters: does the model answer correctly?

The setup

  • Retriever: BM25 + bge-small embeddings, fused (a strong, cheap hybrid).
  • Context budget: 4,000 or 16,000 tokens of retrieved chat history.
  • Reader: Qwen3-4B-Instruct on a free Kaggle T4, greedy decoding.
  • Judge: the same model with LongMemEval's official yes/no judge prompts. A 4B judge is rough, so I only trust paired differences: same questions, same reader, same judge, only the context changes.

The result

budget evidence fully in context answered correctly
4k 63.0% 59.1%
16k 89.8% 58.9%

A 27-point recall gain bought nothing. Per question: 52 fixed, 53 broken.

The reason shows up when you look only at the 302 questions where both contexts contained all the evidence. Same facts available, more surrounding text:

  • 4k: 79.1% correct
  • 16k: 70.9% correct (18 fixed / 43 broken, sign test p≈0.002)

The 16k context holds ~65 messages against ~18. The extra messages are near-misses: they look relevant, so the retriever ranked them highly, and they distract the reader. More recall brought more distractors, and for a small model those cost as much as the extra evidence gained.

This isn't only my setup: Du et al. ("Context Length Alone Hurts LLM Performance Despite Perfect Retrieval", EMNLP 2025 Findings) found the same on other tasks. It's just rarely measured for chat memory.

I also tried LLM query expansion. It added +1.8 points of recall at 16k (p≈0.05). It changed accuracy by nothing measurable.

So what does help? Precision. I put a cross-encoder re-ranker (bge-reranker-v2-m3) on the hybrid's top 100 candidates and kept the context small. All-evidence recall at 4k went from 63% to 71% (58 fixed / 18 broken), and at 8k from 80% to 86%. This time accuracy moved too: the re-ranked 8k context scored 64.9%, the best of every configuration I've run, and clearly better than the old 4k setup (63 fixed / 35 broken, p≈0.006) or the 16k one (59 / 30, p≈0.003). The cost is about 1.5 seconds of GPU per question.

The distractor penalty didn't disappear (accuracy with all evidence present still drops from 77% at 4k to 72% at 8k). The re-ranker wins by fitting the evidence into fewer tokens.

What I'd do differently when building chat memory

  1. Measure answers, not just recall. Recall is necessary, not sufficient.
  2. Pick the budget for the reader you have. For a small model, a precise 4k beats a generous 16k.
  3. Spend effort on precision at small budgets (re-ranking), not on stuffing more in.

Everything is reproducible: the harness, the Kaggle kernels and per-question outputs are linked from the results page, and a Kaggle notebook rebuilds the re-ranking tables from the saved outputs in ten seconds: More context didn't help. A re-ranker did.

I'm a CS student at NIT Sikkim. I do retrieval audits for teams whose chatbot or RAG search forgets things: my portfolio. Written with help from Claude; all numbers come from the linked runs.

Share