ByteDance's DeepSeek Fluctuations Unveiled 🧠
ByteDance's DeepSeek model's performance varies with token positioning in long text context, impacting accuracy.
DeepSeek's Fluctuations
ByteDance's Seed team discovered the 'ghostly and ethereal' nature of DeepSeek. The performance of DeepSeek-V4 changes periodically with the input position of information, every 4 token cycles. This finding indicates that the model's memory of an event depends on its position in the input.
Impact on Accuracy
In a 128K long context retrieval test, the accuracy of DeepSeek-V4 series models varied by up to 40.2 percentage points due to the change in position of the same information. This suggests that the model's accuracy is sensitive to the positioning of tokens in the input sequence.
KV Cache Compression
DeepSeek-V4 uses a long context optimization technique called 'chunked KV Cache compression' to handle long texts more efficiently. This technique divides continuous tokens into windows and compresses the information within each window into fewer cache entries, saving memory and computation cost. However, it appears that this compression is causing the fluctuations in the model's performance.
Experiment with Document Strings
The researchers conducted an experiment by adding decorative document strings with repeated equal signs before the code. They found that the model's answers varied depending on the number of equal signs, indicating that the positioning of tokens can significantly affect the model's performance.
Testing with Large Models
The team expanded the test to a classic task in large model long context ability, 'needle in a haystack.' They constructed a 128K token context with about 16,000 key-value pairs and adjusted the position of the target information relative to the compression window boundary. The results showed a clear periodic fluctuation in the accuracy of DeepSeek-V4 series models.
“The model's memory of an event depends on its position in the input.”
— Seed team