ByteDance Discovers Fluctuating Performance of DeepSeek
DeepSeek-V4's performance varies with information input position, revealing a new challenge in AI long-context processing
Introduction to DeepSeek-V4
DeepSeek-V4, developed by ByteDance's Seed team, has demonstrated a unique behavior where its performance varies with the position of information input. This finding challenges the conventional understanding of AI long-context processing.
Fluctuating Performance with Token Position
The study found that DeepSeek-V4's performance changes periodically every 4 token cycles. The position of the information in the input can lead to a significant difference in the model's accuracy, with the maximum difference reaching 40.2 percentage points in a 128K long context retrieval test.
The Role of KV Cache Compression
The fluctuating performance is linked to a long-context optimization technique used by DeepSeek-V4, called 'Block KV Cache Compression.' This technique aims to reduce memory usage and improve efficiency when processing long texts, but it may be causing the observed fluctuations.
Experiment with DeepSeek-V4-Flash-Base
The research team conducted an experiment with DeepSeek-V4-Flash-Base, adjusting the number of decorative equal signs in the code to observe the model's response. The results showed that the model's answers varied depending on the position of the tokens.
Expand Testing Scope
To further investigate the issue, the team expanded the test to a more complex task, 'Big Sea Needle,' involving a 128K token context with about 16,000 key-value pairs. The results confirmed the periodic fluctuations in the model's accuracy.
“The position of the information in the input can lead to a significant difference in the model's accuracy, with the maximum difference reaching 40.2 percentage points in a 128K long context retrieval test.”
— Seed team