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

ByteDance's DeepSeek Model Fluctuates Based on Token Positioning

ByteDance's DeepSeek-V4 model's performance varies with the position of information input, highlighting a potential issue in long context optimization.

DeepSeek-V4Token PositionLong Context OptimizatioKV Cache Compression
ByteDance's DeepSeek Model Fluctuates Based on Token Positioning
Image linked from the original article · © original publisher

Introduction to DeepSeek-V4

ByteDance's Seed team has identified the cause of the 'spectral and ghostly' duality in DeepSeek-V4. The model's performance on the same task can drastically change with the addition of irrelevant characters at the beginning, depending on the position of the information input.

Token Position Impact on Accuracy

In a 128K long context retrieval test, the researchers found that the accuracy of the DeepSeek-V4 series models can vary by up to 40.2 percentage points simply by changing the position of the same information.

Long Context Optimization Technique

The issue is related to a long context optimization technique used by DeepSeek-V4, called 'block KV Cache compression.' This technique is intended to reduce memory usage and improve efficiency when processing long texts.

Experiment with DeepSeek's Code

The researchers conducted an experiment with DeepSeek's own code, focusing on the DeepSeek-V4-Flash-Base model. They found that the model's answers varied depending on the position of decorative documentation strings at the beginning of the code.

Periodic Fluctuations in Accuracy

The researchers observed a periodic fluctuation in the model's accuracy with a cycle of 4 tokens. This fluctuation was found to correspond to the position of the information relative to the compression window boundary.

“The model's performance on the same task can drastically change with the addition of irrelevant characters at the beginning, depending on the position of the information input.”

— Seed team researcher
TAKEAWAYDeepSeek-V4's performance fluctuates with the position of information input, highlighting a potential issue in long cont
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