DeepSeek-R1 scored 86 on our product-QA task; the production model scored 75. But a livestream cannot wait many seconds for every answer.

We tackled two separate costs: distillation made the model smaller, then preference training shortened what it generated.

Distillation task and evaluation

Product QA

Our chain has eight intent-based tasks, each with its own evidence and instructions. We started with product questions: the model must understand the viewer and decide what the material supports. DeepSeek-R1 supplies the reasoning demonstrations; we first test whether a smaller model can learn from them.

TaskModeTaskMode
Product questions, selected for the experimentSpeechLivestream promotionsSpeech
Product questionsCommentsLivestream promotionsComments
Casual chatSpeechQuestions without an explicit product subjectSpeech
Casual chatCommentsQuestions without an explicit product subjectComments
  • Randomly sample 5800 production product-question examples and split training/validation 9:1.
  • Spoken and text-comment response modes differ in some requirements.

Example product question

Product informationDialogue historyViewer questionAnswerable?Host response
X-brand Hong Kong PQQ nutritional tablets with bird’s-nest acid and ergothioneine; merchant/brand: X; category: oral beauty/nutritional health food; tablet form, bottled, Hong Kong origin; shelf life: at least 24 months; adults of either sex; two tablets once a day; ingredients and effects: see details; options: 1 bottle trial, 3 bottles (buy 2 get 1), 5 bottles (buy 3 get 2), 8 bottles (buy 5 get 3), anti-aging/brightening variant; usage guidance: see details; free shipping; link 11; original price 4200.0; discounts 20.0 and 150.0; post-coupon price 1008.0.Viewer: Please introduce PQQ. Host: Link 11 is next; let me finish link 12 first.Why is a single bottle of PQQ much more expensive?YesYou are asking about the single-bottle price. X-brand PQQ at link 11 is made in Hong Kong and individually packaged, which raises quality-related costs and the single-bottle price. Additional discounts are available now.

This illustration does not establish actual model quality. Appendix B contains real production examples.

Answer quality evaluation

DeepSeek-R1 scores responses from the product information, dialogue history, viewer question, and AI-host answer. Evaluation combines four dimensions:

  • Consistency with the question: understand the viewer’s actual intent and answer correctly, using history when present.
  • Consistency with product information: neither invent facts nor refuse when the provided information suffices. If information is insufficient or the question concerns another product, refer the viewer to customer service.
  • Internal consistency: avoid logical contradictions and produce natural language suitable for speech.
  • Instruction consistency: follow the avatar-host requirements in the prompt.

R1 distillation

On product questions, DeepSeek-R1 scores 86/100 versus 75 for the production model, an 11-point gap. We investigate three ways to transfer its capabilities to compact models:

  1. Start from Qwen and distill only R1’s final answer, excluding thinking.
  2. Start from Qwen and distill the complete response, including thinking.
  3. Start from DeepSeek-R1-Distill-Qwen and distill the complete response, including thinking.

The experiments support three conclusions:

  1. Scheme C achieves the best response quality, 83/100, supporting DeepSeek-R1-Distill-Qwen as the starting point.
  2. With Qwen2.5-Instruct as the base, including CoT makes little difference.
  3. Refusal agreement with R1 rose with size, approaching roughly 85% on this data. Partially answerable questions create boundary cases, so we treat agreement as a clue to the student’s decision habits, not its final answer quality.

Distillation schemes

SchemeMethodDescription
AQwen, direct answerR1-generated data excluding the thinking inside <think> tags; Qwen2.5-Instruct bases at several sizes.
BQwen with CoTR1-generated data including <think> sequences; Qwen2.5-Instruct bases at several sizes.
CDeepSeek-R1-Distill-Qwen with CoTComplete R1-generated sequences including thinking; DeepSeek-R1-Distill-Qwen bases at several sizes.

Distillation comparison

SchemeModel/methodMean quality score
—DeepSeek-R186
AQwen14B, direct answer, 5.8k dataset78
BQwen14B with CoT, 5.8k dataset78
CDeepSeek-R1-Distill-Qwen-14B with CoT, 5.8k dataset83
—Production model75

Evaluate generated responses using the quality-evaluation procedure above.

Student model size

  • The model also decides whether the evidence can answer the question. Both the product and facts must match. We want it to separate what it knows from what it cannot confirm before replying, rather than maximize refusal.
  • We study how model size relates to distillation by measuring refusal agreement with DeepSeek-R1. This is an approximate behavioral indicator rather than a complete quality metric.
  • Compare schemes A, B, and C at 1.5B, 7B, and 14B.
Figure 1
Refusal agreement across model sizes and distillation schemes.
Refusal agreement across model sizes and distillation schemes.
  • Agreement rises with model size for all three schemes. Direct-answer distillation is preferable at 1.5B.
  • At 14B, DeepSeek-R1-Distill-Qwen exceeds direct-answer distillation and approaches Qwen-with-CoT agreement.

Quantization results

The bf16 14B model took about 10 seconds per answer. Quantization brought it to roughly 5 seconds with a quality cost; 7B was faster but answered less well. We needed both comparisons before choosing the next model.

MethodPrecisionQuality /100Runtime
Scheme C, 14Bbf168310s
Scheme C, 14Bint8805s
Scheme C, 7Bbf16742.5s
Scheme C, 7Bint8692.5s
Production 14Bbf16751s

Model choice

We continued with DeepSeek-R1-Distill-Qwen-14B, training on the teacher’s complete reasoning and answer. Int8 reduced deployment cost at some loss of quality relative to bf16. The student answered better but retained the teacher’s long outputs, which quantization alone did not resolve.

Reasoning-path compression

Reasoning latency after distillation

Distillation then expanded to 30k production interactions covering all tasks. Before launch, bf16 latency was almost ten times that of the non-reasoning model; int8 remained over five times higher. The longer reasoning made replies too slow for livestreams, so we compared three compression methods:

To meet production latency requirements, we examine three CoT-compression methods:

A. Discard all training examples with outputs longer than 400 tokens during distillation.

B. Reproduce Kimi 1.5 long2short DPO. Resample the examples discarded in A; if a sufficiently short response is found, select the shortest response as chosen and the longest as rejected.

C. Extend length-only selection to quality–length Dual-Preference DPO, considering both response length and quality when choosing positive and negative examples.

Timing and scoring

  • Runtime estimates assume Qwen2.5-14B decoding at 62.5 tokens/s on one H20. All runtimes in this article are converted estimates.
  • Decoding dominates reasoning latency. Infrastructure optimization makes prefill time negligible here.
  • Generative reward models with CoT are used to score preferences. We use DeepSeek-R1 to score response-quality preferences with the same quality-evaluation procedure.
  • Related reasoning-compression work includes CoD, COCONUT, and long2short. For rejection-sampling DPO, see RS-DPO in the references below.

Filtering long examples

Figure 2
Distribution of teacher-generated output lengths.
Distribution of teacher-generated output lengths.
  • Most generated outputs contain 200–400 tokens.
  • Discarding outputs above 400 tokens lowers the average decoding length to 300 tokens.
  • Limitation: filtering training examples does not prevent the trained model from generating more than 400 tokens at inference time.

long2short training

Excerpt from the original Kimi 1.5 long2short rejection-sampling DPO description.

We repeatedly sampled R1 on examples discarded by scheme A. Once a response below 400 tokens appeared, the shortest candidate became chosen and the longest became rejected for DPO. This follows long2short and tests a preference based on length alone.

Sampling results:

Mean chosen lengthMean rejected lengthSuccessfully sampled examplesTotal examples
300.1515.846504915

Limitation: as reported in Kimi 1.5, this effectively shortens reasoning but also reduces response quality.

DP-DPO: quality and length preferences

Kimi’s method selects only the shortest and longest responses as positive and negative examples. Its reported quality decrease suggests two issues:

  • Short CoT can perform worse than long CoT, as Kimi 1.5 also observes.
  • Short sampled responses may have lower quality than long ones.

DP-DPO selects pairs using both quality and length. We inspect their score gap, length gap, and retained sample count before setting the weights, checking whether compression preserves the information needed to answer.

Figure 3
Domain distillation followed by DPO with quality and length preferences.
Domain distillation followed by DPO with quality and length preferences.
  • Stage 1 remains domain distillation on 30k interactions using DeepSeek-R1-Distill-Qwen-14B. Filtering long examples improved both length and evaluation scores in the earlier comparison, so we use that filtered corpus before applying preference optimization.

  • Stage 2: compress reasoning through dual-preference rejection-sampling DPO:

  • Randomly sample K responses with DeepSeek-R1.

  • Evaluate them with the same benchmark procedure and normalize the quality scores to [0,1].

  • Normalize both length and quality preferences to [0,1] and combine them with weights. Select the highest combined score as chosen and the lowest as rejected within each group.

  • Discard a group if the positive–negative score gap is below a threshold determined by the desired drop ratio.

  • Train the domain-distilled Stage 1 model on the resulting DPO pairs.

Preference-pair construction

Each candidate gets one combined score. Its first term favors shorter output, and its second favors higher quality. Here l is length, s is quality, and alpha/beta set the balance. We keep the normalization constants fixed within an experiment so the candidate scores remain comparable.

Figure 4
Combining normalized length and quality preferences.
Combining normalized length and quality preferences.

Within each question’s candidates, the highest combined score becomes chosen and the lowest rejected. Pairs below the score-gap threshold are discarded to avoid imposing strong preferences on near-equivalent answers. Selection therefore depends on quality and length, not shortest output alone.

Quality and length weights

Searching weights for reasoning length and response quality.

Figure 5
Length and quality gaps as the length-preference weight changes.
Length and quality gaps as the length-preference weight changes.
  • The blue curve shows the mean length difference. Quality-only selection produces chosen responses about 10 tokens longer than rejected ones. At the other extreme, chosen responses are about 213 tokens shorter, close to the length-only sampling results.
  • The red curve shows the mean quality gap. Quality-only selection gives chosen responses a 2.77/10 advantage; length-only selection yields almost no quality difference.
  • The curves cross in the 0.4–0.6 range. Final weights account for business preferences and the effect of discarding low-gap pairs.

After selecting preference weights, discard pairs at the low end of the combined-score-gap distribution.

Figure 6
Filtering preference pairs with insufficient combined-score separation.
Filtering preference pairs with insufficient combined-score separation.

Left: mean chosen–rejected length gap versus drop ratio and length-preference weight. Right: corresponding quality gap.

  • In the left heatmap, yellower regions indicate larger length differences as length weight and DropRatio vary.
  • In the right quality heatmap, yellower regions indicate larger quality-score differences.
  • Avoid an excessively large DropRatio: too few DPO examples can damage generalization.
  • Final hyperparameters: length-preference weight alpha = 0.6 and score-gap threshold tau = 0.3.

Pair-construction results

Under the selected hyperparameters, chosen responses are on average 204 tokens shorter and score 2.57 points higher than rejected responses.

Domain-model DPO training

The additional SFT loss helps prevent the chosen and rejected rewards from falling together. Otherwise, the model may learn a relative preference while its absolute quality deteriorates. We monitor reward values while tuning training hyperparameters.

Answer quality after compression

MethodProduct-QA scoreMean lengthMean RTLongest lengthLongest RT
Baseline84.0349.05.58742.111.87
Long-example filtering, SFT84.9308.14.93567.99.07
long2short-DPO83.9 (-1.0pt)265.14.24 (-1.34s)390.26.24 (-5.63s)
DP-DPO, ours85.3 (+0.4pt)266.04.26 (-1.32s)408.06.53 (-5.35s)
  • Baseline: the distillation scheme described above using DeepSeek-R1-Distill-Qwen without additional filtering.
  • Filtering long examples yields shorter reasoning and better quality than baseline.
  • Signed score changes use filtered SFT as the reference; signed latency changes use the unfiltered baseline. The table uses different references for these two metrics.
  • Both DPO models start from the filtered SFT model: the length-only branch reproduces long2short, while the dual-preference branch introduces DP-DPO.

Quality regression on new traffic

DP-DPO scored well on validation but fell below uncompressed SFT on fresh production traffic, while remaining above long2short. We expanded preference construction to every training product question, increasing data fivefold, then repeated training. Validation and fresh-traffic results are reported separately.

MethodValidation overallValidation multi-turnProduction overallProduction multi-turn
DeepSeek-R185.584.686.084.4
Filtered SFT84.982.383.080.8
long2short-DPO83.981.581.978.7
DP-DPO, 3k examples85.383.382.581.2
DP-DPO, 15k examples87.386.684.882.4
  • Validation and production tests use the same construction procedure, but validation shares the training collection period while the production test uses traffic after the reasoning model went live.
  • Expansion affects only the training-set DPO data; it does not include post-deployment traffic.
  • All trained models lost quality on fresh traffic, more so for DPO than SFT. This raised concerns about overfitting on the small preference set. Coverage, near-duplicates, and traffic changes also need checking; this comparison cannot attribute the entire gap to DPO.
  • DP-DPO continues to outperform long2short DPO on production traffic.
  • Expanding to 15k examples raises DP-DPO’s overall fresh-traffic score from 82.5 to 84.8, above the SFT reference in this comparison.

Data selection and DPO ablations

Better selected examples could explain part of the gains after data expansion. We compared two configurations to test the additional contribution of DPO:

  1. SFT using only chosen examples from dual-preference rejection sampling (DP-SFT).

  2. Additional dual-preference DPO on the model from approach 1 (DP-DPO).

Both use the same 15k preference pairs and differ only in the later DPO step. Evaluation retains the fresh-traffic test and long-filtered SFT reference, separating the effect of example selection from that of preference optimization.

Results:

MethodOverall scoreMulti-turn scoreMean lengthMean RTLongest lengthLongest RT
SFT83.080.8309.94.96677.910.85
DP-SFT only83.380.3302.14.83490.57.85
DP-SFT + DP-DPO84.8 (+1.5pt)82.4 (+1.9pt)272.34.36 (-0.47s)382.86.12 (-1.73s)
  • SFT on the chosen examples barely changes the overall score and slightly lowers the multi-turn score, although it shortens the longest outputs.
  • Continuing with DPO improves both scores and reasoning length. This comparison gives us more reason to connect the additional gains to the preference update.

Effect of training epochs

EpochKimi long2short mean lengthKimi qualityDP-DPO mean lengthDP-DPO quality
0308.184.9308.184.9
1265.183.9 ↓259.383.9 ↓
2269.883.3 ↓266.085.3 ↑
3271.581.6 ↓271.185.1 ↓
  • Single-preference DPO continuously lowers mean response quality during training.
  • Dual-preference DPO initially sacrifices quality while learning shorter reasoning, then surpasses the original model in the next two epochs.

Results

DeepSeek-R1’s strong interaction benchmark performance motivated distillation into compact models. Comparing three approaches led us to choose DeepSeek-R1-Distill-Qwen-14B as the base.

Long reasoning still violated livestream response-time requirements. We first removed long examples before SFT, then reproduced Kimi 1.5 long2short DPO to compress reasoning substantially further.

That quality drop led us to DP-DPO: DeepSeek-R1 scores the candidates, and pair selection weighs quality with length. Compression remains close to long2short, while reply quality improves over SFT in this comparison.

The fresh-traffic drop led us to expand preference data fivefold, which improved that test. Data coverage therefore needed investigation beyond the apparent validation gain.

Planned improvements

  1. Our best production-test score, 84.8, still trails DeepSeek-R1’s 86.0. We aim to develop a low-latency interaction model that exceeds R1.
  2. A stronger reward model could evaluate and optimize interactions better than R1, allowing a transition from offline preference alignment to online reinforcement learning.
  3. As the product develops, richer product facts, livestream state, spoken explanations, and multimodal information will pose new modeling challenges.

Serving latency and offline timing

The compression tables convert output lengths into time using 62.5 tokens/s on one H20. These estimates compare generation volume; they exclude production queueing, prefill, retrieval, and business processing. They are separate from the earlier quantization measurements and from actual end-to-end latency.

Capability transfer, preference quality, and deployment latency need separate checks. Smaller models and shorter sequences may lose information. Hold out fresh traffic and check near-duplicates between preference training and validation before judging whether compression generalizes beyond the validation mean.