Sparse training step

KL divergence

×

The KL divergence of the target from the indexer’s distribution, both over the selected positions, summed over the queries.

LI=∑tDKL(pt,St ∥ Softmax⁡(It,St))\mathcal L_I=\sum_t D_{\mathrm{KL}}\big(p_{t,S_t}\,\big\|\,\operatorname{Softmax}(I_{t,S_t})\big)
in
pp [B batch, T positions, 2048]II [B batch, T queries, T keys]
out
LI\mathcal L_I [1]
Sources

Direct evidence

§2.1, Sparse Training Stage: the token selection is introduced and all model parameters are optimized. The indexer’s outputs keep being aligned to the main attention over the selected set, L_I = Σ_t D_KL(p_{t,S_t} ‖ Softmax(I_{t,S_t})) (eq. 4). The indexer’s input is detached from the computational graph: the indexer’s training signal is from L_I only, the main model’s from the language modeling loss only. Learning rate 7.3×10⁻⁶; 2,048 key-value tokens for each query; 15,000 steps of 480 sequences of 128K tokens.

DeepSeek_V3_2.pdf p. 3 ↗ · deepseek-ai/DeepSeek-V3.2-Exp @ 87e509a2e5a1