ByteDance Discovers Variable Performance of DeepSeek Models 🧠
Understanding how the position of information affects the accuracy of DeepSeek-V4 models in long-context tasks.
Introduction to DeepSeek Models
DeepSeek is a series of models developed by ByteDance's Seed team. These models are designed for long-context tasks and have been gaining attention for their performance in various applications.
Unusual Behavior of DeepSeek-V4
The Seed team discovered that DeepSeek-V4's performance varies periodically with the position of information input, known as Token positioning. This means that the model's ability to remember information is affected by its position in the input sequence.
Impact on Accuracy
In a 128K long-context retrieval test, the researchers found that simply changing the position of a piece of information can lead to a maximum accuracy difference of 40.2 percentage points between the DeepSeek-V4 series models.
The Role of KV Cache Compression
The issue is related to a long-context optimization technique used by DeepSeek-V4, known as block KV Cache compression. This technique is intended to reduce memory usage and improve efficiency when processing long texts.
Experiment with Document Strings
The researchers conducted an experiment by adding decorative documentation strings with repeated equal signs before the code. They observed that the model's answers varied depending on the number of equal signs, indicating the impact of Token positioning.
“The model's ability to remember information is affected by its position in the input sequence.”
— Seed team researcher