DeepSeek-V4 answers flip on a 4-token cycle, traced to chunked KV-cache compression

Francis_YAO_ · x · 2026-10-20

Researchers show DeepSeek-V4 has periodic weak spots: merely prepending decorative docstring tokens flips its answer every two tokens, and NIAH accuracy swings by up to 40 points depending on needle position, on a fixed 4-token cycle.

The preprint attributes this to chunked KV-cache compression: to save memory on long contexts, the model merges windows of W tokens into single cache entries every S tokens, so a token's phase (t mod S) creates periodic sensitivity.

They open-sourced the Periodic-Weak-Spots repo and built a Qwen3-derived chunked KV-compression model to reproduce the phenomenon.

Original post →

More from Models

Models channel →