Indexer warm-up
×A short stage warms up the lightning indexer of CSA before sparse attention is switched on.
KL to a target distribution
One part of the model learns to imitate a distribution another part produces: the loss is the KL divergence of that target from the learner’s distribution.
DeepSeek-V3.2-Exp report, eq. 3
What the letters mean
: what the main attention attends to from query , the target; : the lightning indexer’s scores for it.
The report warms up the lightning indexer and names no loss or trained part. In DeepSeek-V3.2’s recipe, whose sparse attention CSA applies, the warm-up trains only the indexer, by KL to the main attention.
KL to a target distribution as drawn for DeepSeek‑V3.2‑Exp →
- Where
- 64Kderived
Not disclosed Objective · Trainable · Tokens · Steps · Learning rate
Architecture at this stageThe lightning indexer of CSA learns to score the compressed entries; attention is still dense.
What the terms meanLightning indexer · Sparse attention
- Lightning indexer
- A small scorer beside attention that rates every earlier position for each query; sparse attention then attends only to the positions it rates highest.
- Sparse attention
- Each query attends only to a subset of the earlier positions, picked by an indexer, which keeps attention over a long context affordable.
All settings2
- Method
- Sparse attention brought in by a two-stage method: “a short stage to warm up the lightning indexer in CSA”, then sparse attention for most of training; V4-Pro’s strategy is V4-Flash’s
- Where
- At a sequence length of 64KderivedV4-Flash brings sparse attention in at a sequence length of 64K; the report says V4-Pro’s strategy for it is the same. The report glosses it as “following a two-stage training method”; that V4-Pro’s warm-up also falls at 64K is concluded.
Sources2
- DeepSeek-V4-2606.19348v1.pdf, p. 25Method, Where
- DeepSeek-V4-2606.19348v1.pdf, p. 26Method, Where