ByteDance Discovers Fluctuations in DeepSeek's Performance
ByteDance's Seed team uncovers the reason behind DeepSeek-V4's inconsistent performance, revealing the impact of token positioning on accuracy.
Introduction to DeepSeek-V4
DeepSeek-V4, developed by ByteDance's Seed team, is a model known for its ability to answer questions based on information provided. However, the team has discovered that the model's performance fluctuates based on the position of tokens in the input data.
Fluctuations in Performance
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 information and provide accurate answers depends on where the information is positioned in the input data.
Impact on Accuracy
In a 128K long context retrieval test, the team observed that simply changing the position of a piece of information within the context can lead to a difference of up to 40.2 percentage points in the accuracy of DeepSeek-V4 series models.
Technique Behind the Fluctuations
The issue is related to a long context optimization technique used by DeepSeek-V4 called 'chunked KV Cache compression.' This technique is intended to make the model more memory-efficient and efficient when processing long texts, but it seems to be causing the fluctuations in performance.
Experiment with Token Positioning
The team conducted an experiment by adding decorative docstrings with repeated equal signs to the code before the DeepSeek-V4 model. They found that the model's answers fluctuated based on the number of equal signs, which were essentially irrelevant tokens.
“The model's ability to remember information and provide accurate answers depends on where the information is positioned in the input data.”
— ByteDance's Seed research team