---
title: "Context Rot: When LLMs “lose their memory” with long text"
url: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai?lang=en"
locale: en
access: members
full_text: false
published_at: "2025-08-20T16:23:50.000Z"
tags: ["AI", "Context Engineering", "RAG"]
translations:
  vi: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=vi"
  zh: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=zh"
  ko: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=ko"
  ja: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=ja"
---
# Context Rot: When LLMs “lose their memory” with long text

> LLMs perform noticeably worse on long text, even though benchmarks like “Needle in a Haystack” still score near-perfect. My notes on Chroma's Context Rot research and what it means for RAG and context engineering.

> **TIP:** **TL;DR:** The more context you stuff in, the more likely an LLM is to “lose its memory”. Don't buy into “more context = better performance” - go for **quality over quantity**.

Chroma's research on Context Rot is pretty interesting and very close to what I run into every day working with LLMs. Basically, they proved something many devs have vaguely felt: **LLMs perform noticeably worse when they have to process long text**, even though traditional benchmarks like “Needle in a Haystack” still give near-perfect scores.

[Context Rot: How Increasing Input Tokens Impacts LLM Performance](https://research.trychroma.com/context-rot)

> research.trychroma.com

### Key findings

#### 1. Needle-Question Similarity Matters

The vaguer it is, the harder it gets. When the question and the answer don't share much vocabulary, the model gets “lost” more often in long text. That explains why RAG sometimes gives poor results when a user's query doesn't directly match the content in the database.

---

*Phần còn lại dành cho thành viên có quyền đọc toàn bài (Knowledges, Kết hợp, Cộng đồng) — see plans at https://zuey.me/pricing*
