---
title: "Context Rot：当 LLM 遇到长文本就“掉记忆”"
url: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai?lang=zh"
locale: zh
access: members
full_text: false
published_at: "2025-08-20T16:23:50.000Z"
tags: ["AI", "Context Engineering", "RAG"]
translations:
  en: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=en"
  vi: "https://zuey.me/articles/context-rot-khi-llm-rung-tri-nho-voi-van-ban-dai.md?lang=vi"
  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：当 LLM 遇到长文本就“掉记忆”

> 处理长文本时 LLM 表现明显变差，即使“Needle in a Haystack”这类 benchmark 仍给出近乎满分。记录一下 Chroma 的 Context Rot 研究，以及它对 RAG 和 context engineering 的启示。

> **TIP:** **TL;DR：** context 塞得越多，LLM 越容易“掉记忆”。别迷信“more context = better performance”，要讲究 **quality over quantity**。

Chroma 关于 Context Rot 的研究挺有意思，也和我每天用 LLM 干活的体验非常贴近。简单来说，他们证明了很多开发者早就隐约感觉到的一件事：**LLM 在处理长文本时表现明显变差**，尽管像“Needle in a Haystack”这样的传统 benchmark 依然给出近乎满分的成绩。

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

> research.trychroma.com

### 重要发现

#### 1. Needle-Question Similarity Matters

越模糊就越难。当问题和答案在词汇上不相似时，模型在长文本里更容易“迷路”。这也解释了为什么当用户的 query 和数据库内容不能直接匹配时，RAG 有时效果很差。

#### 2. Distractors Amplify Problems

---

*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*
