DeepSeek-V4 answers flip with 2-token input shifts; NIAH swings 40 points

Francis_YAO_ · x · 2026-10-10

Testing by @XingyuZhu shows that prepending just 2 tokens of decorative docstring flips DeepSeek-V4's answer on identical code and question. Its NIAH accuracy also swings by up to 40 points depending on needle position, following a fixed 4-token cycle.

The author links this instability to chunked KV-cache compression: small input shifts change chunk boundaries and hence retrieval outcomes. A notable robustness warning for any model using chunked cache compression.

Original post →

More from Models

Models channel →