ByteDance Discovers Fluctuating Performance in DeepSeek
DeepSeek-V4's performance varies with token placement, affecting accuracy in long context retrieval.
Introduction to DeepSeek-V4
DeepSeek-V4, developed by ByteDance's Seed team, showcases a unique behavior where its performance fluctuates with the position of information input, known as 'Token '. This discovery was made by the Seed researchers who observed that the model's accuracy in a 128K long context retrieval test can vary by up to 40.2 percentage points based on the position of a single piece of information.
The Fluctuating Performance
The researchers found that the model's memory of information is affected by its position in the input. Adding or removing a few tokens before the information can change the model's answer from incorrect to correct and vice versa. This fluctuation occurs in a cycle of every 4 tokens. The study revealed that the model tends to provide an incorrect answer (32) when the token length has a remainder of
The Experiment
The researchers conducted an experiment using DeepSeek-V4-Flash-Base, modifying the input by adding decorative docstrings with repeated equal signs. They observed that the model's answers fluctuated with the number of equal signs, indicating that the position of these tokens influenced the model's response.
Long Context Retrieval Task
The team expanded the test to include a classic long context task, ' ', where they constructed a 128K token context with about 16,000 key-value pairs. They adjusted the position of the target information relative to the compressed window boundary and found that the model's accuracy varied cyclically with a period of 4 tokens for DeepSeek-V4 and 2 tokens for DeepSeek-V4.1.
Post-Training Improvements
After post-training, the accuracy gap between different positions in DeepSeek-V4-Flash-0731 was reduced to 19.1 percentage points, and in DeepSeek-V4-Pro-0813 to 14.8 percentage points. The latest version, DeepSeek-V4.1-Flash-0910, further reduced the gap to 6.1 percentage points.
“The model's memory of information is affected by its position in the input. Adding or removing a few tokens can change the model's answer from incorrect to correct and vice versa.”
— Seed researchers