Kimi K3

Draft fine-tuning step

LK loss

×

The acceptance rate of lossless speculative sampling is the mass the two distributions share. The loss is the negative logarithm of that rate itself.

LLK=−log⁡(∑x∈Vmin⁡(p(x),q(x)))\mathcal L_{\mathrm{LK}}=-\log\Big(\sum_{x\in\mathcal {\htmlClass{vl-stream-v}{V}}}\min\big({\htmlData{light=target-dist target}{p}}(x),{\htmlData{light=draft-dist draft}{{\htmlClass{vl-stream-q}{q}}}}(x)\big)\Big)
in
pp [B batch, T positions, V]qq [B batch, T positions, V]
out
LLK\mathcal L_{\mathrm{LK}} [1]
Explanation

A KL divergence is the usual surrogate; the report says minimizing it does not guarantee the highest acceptance rate for a draft of limited capacity, so the rate is optimized directly. No cross-entropy to the ground-truth token is added.

Sources

Direct evidence

§4.1.4, Draft Model Fine-Tuning: the pre-trained MTP layer is fine-tuned into an EAGLE-3-style draft model, with the target model frozen and only the draft layer and its feature-fusion projection updated; the draft is unrolled for seven steps and, beyond the first, consumes its own outputs. The input concatenates the outputs of the 1st, 4th and final AttnRes blocks and projects them by a bias-free matrix W_E3 initialized [0 0 I]. The loss is L_LK = −log Σ_x min(p(x), q(x)) (eq. 16), at temperature 1, with no cross-entropy term.

k3_tech_report.pdf p. 14 ↗ · MoonshotAI/Kimi-K3 @ 3cb39dfd32e5