AI Hot BriefingThis issue · All issues
HOTQbitAIOct 09, 15:11China🇨🇳 China

ByteDance Discovers Fluctuating Performance of DeepSeek

Understanding the impact of token positioning on DeepSeek-V4's accuracy in long context retrieval

DeepSeek-V4Token positioningBlock KV Cache CompressiModel performance
ByteDance Discovers Fluctuating Performance of DeepSeek
Image linked from the original article · © original publisher

Introduction to DeepSeek-V4

DeepSeek-V4, developed by ByteDance's Seed team, has shown a unique behavior where its performance fluctuates with the position of information input, known as Token positioning. This discovery was made by the Seed researchers who observed that the model's accuracy in long context retrieval tests varied periodically, with changes as significant as 40.2 percentage points.

Fluctuations in Performance

The researchers found that the performance of DeepSeek-V4 can change dramatically based on the position of tokens. For instance, adding a few irrelevant characters at the beginning of a code snippet caused the model to switch between providing correct and incorrect answers. This behavior was observed in a 128K long context retrieval test where the accuracy varied significantly depending on the position

Technique Behind the Fluctuations

The fluctuations were found to be related to a long context optimization technique used by DeepSeek-V4 called 'Block KV Cache Compression.' This technique is designed to reduce memory usage and improve efficiency when processing long texts. However, it appears that the compression process may be causing the observed fluctuations in performance.

Experiment and Observations

The research team conducted experiments using DeepSeek-V4-Flash-Base and observed that the model's answers varied depending on the position of certain tokens. They found that the model's accuracy in retrieving information from a large dataset of key-value pairs also fluctuated, with the largest accuracy gap reaching 40.2 percentage points between different positions.

Post-Training Improvements

After post-training adjustments, the accuracy gaps were reduced. The DeepSeek-V4.1-Flash-0910 version showed a significant improvement with a gap of only 6.1 percentage points, indicating that the post-training process helped mitigate the fluctuations in performance.

“The model's accuracy in long context retrieval tests varied periodically, with changes as significant as 40.2 percentage points.”

— Seed researchers
TAKEAWAYToken positioning and compression techniques significantly impact DeepSeek-V4's performance in long context retrieval
Source: QbitAI · always refer to the original article
AI-curated from public sources for informational purposes only; images are hotlinked originals and copyright belongs to their respective publishers.
By Chaos Lab · 妙答星球AI