ByteDance Identifies Fluctuating Performance of DeepSeek
DeepSeek-V4's accuracy varies with token placement, revealing a potential issue in long context optimization.
Introduction
ByteDance's Seed team has discovered the reason behind the fluctuating performance of DeepSeek-V4. The model's accuracy varies with the position of information input, showing a periodic change every 4 token cycles.
Token Position Impact
In a 128K long context retrieval test, changing the position of the same information led to a maximum accuracy difference of 40.2 percentage points. The team found that this issue is related to a long context optimization technique called 'Block KV Cache Compression'. This technique was intended to save memory and improve efficiency when processing long texts.
Experimental Findings
The research team conducted an experiment using DeepSeek-V4-Flash-Base. They modified the input by adding decorative document strings with repeated equal signs. The model's answers fluctuated between correct and incorrect, depending on the position of these tokens. This indicated that the model's performance was sensitive to the placement of tokens.
Further Testing
The team expanded their testing to include a classic long context task, 'Big Data Search'. They found that the accuracy of DeepSeek-V4 series models showed significant periodic fluctuations. After post-training, the differences in accuracy were reduced, suggesting an improvement in the model's performance.
KV Cache Compression
DeepSeek-V4 uses 'Block KV Cache Compression' to handle long texts efficiently. This technique divides continuous tokens into windows and compresses the information within each window. However, the team found that the fluctuating performance of DeepSeek-V4 might be related to this compression process.
“The model's accuracy varies with the position of information input, showing a periodic change every 4 token cycles.”
— ByteDance's Seed team