Draft-model fine-tuning
×The pre-trained MTP layer is fine-tuned into a draft model for speculative decoding, with the target model frozen.
Acceptance-rate loss
A draft model proposes tokens for the large model to check; it is trained so that the large model accepts as many as possible, the loss being the negative logarithm of the overlap of their two distributions.
Kimi K3 report, eq. 16
What the letters mean
, : the large model’s and the draft’s next-token distributions; : the vocabulary.
- Trainable
- the draft layer and its projection
- Unrolling
- 7 steps
- Input
- features after the 1st, 4th and final blocks
Not disclosed Data · Steps · Learning rate
Why
The speed-up of speculative decoding is set by the acceptance rate; a KL surrogate does not guarantee the highest rate for a small draft model, so the loss is the negative logarithm of that rate itself. Kimi K3 report §4.1.4, p. 14
Architecture at this stageThe target model is frozen; the MTP layer and a projection of three of the target’s features train.
What the terms meanMTP, multi-token prediction · Speculative decoding
- MTP, multi-token prediction
- Extra modules predict tokens further ahead than the next one, and their cross-entropy, times a weight λ, is added to the loss.
- Speculative decoding
- A small draft model proposes the next few tokens and the large model checks them all in one pass, accepting them so that its own output distribution is unchanged; each accepted token is a forward pass saved. Kimi K3 report §4.1.4, p. 14
All settings6
- Trainable
- The draft layer (the pre-trained MTP layer) and its feature-fusion projection; the target model is frozen
- Input
- The target’s features after the 1st, 4th and final AttnRes blocks, concatenated and projected by a bias-free matrix initialized [0 0 I]
- Unrolling
- 7 steps in training; after the first, the draft reads its own earlier outputs
- Use
- Speculative decoding is used in RL rollouts, where it “further accelerates request turnover”
- Loss
- The LK loss: the negative logarithm of the acceptance rate Σ min(p, q) between the target’s and the draft’s next-token distributions, at temperature 1, with no cross-entropy term (eq. 16)
- Number format
- Quantization-aware training: MoE expert weights in MXFP4, activations in MXFP8; the other parts in higher precision
Sources3
- Kimi K3 report, p. 14Trainable, Input, Unrolling, Loss, Number format
- Kimi K3 report, p. 21Use
- Kimi K3 report, p. 12Number format