ByteDance Discovers the Reason Behind DeepSeek's Fluctuating Performance 🤖
ByteDance's Seed team uncovers the cause of DeepSeek-V4's inconsistent accuracy based on information input position
Introduction to DeepSeek-V4
DeepSeek-V4, a model developed by ByteDance's Seed team, has been discovered to have a unique behavior where its performance fluctuates based on the position of information input. This finding challenges the traditional understanding of model performance and has significant implications for the development of large language models.
Fluctuating Performance and Token Position
The research team found that the performance of DeepSeek-V4 can change periodically every 4 token cycles. This means that the model's ability to remember and process information is affected by where the information is located in the input sequence. The position of just a few additional tokens can lead to a shift from an incorrect to a correct answer.
Experiment and Observations
The team conducted experiments using DeepSeek-V4-Flash-Base and observed that the model's answers varied depending on the placement of certain tokens. When the length of the additional tokens was a multiple of 4, the model was more likely to provide an incorrect answer, while for lengths that were not multiples of 4, the model was more likely to provide the correct answer.
Impact on Retrieval Accuracy
In a 128K long context retrieval test, the team found that simply changing the position of a piece of information could lead to a difference in retrieval accuracy of up to 40.2 percentage points. This highlights the significant impact that token position can have on model performance.
Connection to KV Cache Compression
The team further discovered that this fluctuating performance is related to a long context optimization technique used by DeepSeek-V4, called block KV Cache compression. This technique is designed to save memory and improve efficiency when processing long texts, but it seems to be the source of the model's inconsistent behavior.
“'The model's ability to remember and process information is affected by where the information is located in the input sequence.'”
— ByteDance Seed research team