Reasoning Distillation for a 9B Small Model: Balancing Capability Gains and Safety

    This article describes a training pipeline for a 9B small model that combines reasoning distillation from a large teacher model, supervised fine-tuning, and lightweight reinforcement learning. It explains what each step does, which metrics to record for reproducibility, and how to handle over-refusal by tracking false refusal and missed refusal rates together. The figures come from a single original case with no public source, so they need independent verification.

    1. Introduction

    Small models cost less to deploy and suit edge devices and high-volume, low-cost services. However, their limited parameter count usually makes complex reasoning weaker. A recent case links three steps into one workflow: a large model generates reasoning data, a small model is trained with supervised fine-tuning, and lightweight reinforcement learning is applied. This article explains what each step does, which metrics to record, and how to handle over-refusal. The figures in this article come from the original case, which does not cite a public source. Verify them independently before relying on them.

    2. Generating Process Data with a Teacher Model

    The teacher model is a reasoning model with far more parameters than the student model. According to the original case, it has about 1.6 trillion total parameters and generated about 250,000 math and science samples. No public source supports these figures, so treat them as unverified.

    Process data records the complete reasoning path, not just the final answer. Compared with standard question-answer pairs, each sample typically includes four parts:

    1. Entry point analysis: identify which known condition or theorem to examine first.
    2. Problem decomposition: break the complex problem into sub-problems that can be computed.
    3. Step-by-step derivation: write out each calculation and its logical basis.
    4. Conclusion verification: check the answer and the boundary conditions.

    The value of this data lies in teaching the small model how to reason. Data that stores only answers rarely teaches the small model a derivation method. After generation, filter the data for quality. For example, use reference answers or programmatic checks to remove incorrect samples, and remove duplicates and irrelevant content.

    3. Supervised Fine-Tuning and Lightweight Reinforcement Learning

    The student model is a common open-source 9B base model. Training uses only math and science data, with no programming data. A focused domain helps control training cost and reduces the risk of forgetting general capabilities. However, the degree of forgetting must be measured. Do not assume it from the scope of the data.

    The first stage is supervised fine-tuning. The process data serves as the target output, so the model learns the solution format and derivation structure. The pseudocode below shows only the flow. It omits tokenization, loss masking, learning rate scheduling, and distributed training.

    1. for batch in math_reasoning_dataset:
    2. prompt = batch["problem"]
    3. target_chain = batch["reasoning_chain"]
    4. outputs = student_model(input_ids=prompt, labels=target_chain)
    5. loss = outputs.loss
    6. loss.backward()
    7. optimizer.step()

    The second stage is lightweight reinforcement learning, typically using a preference optimization method. The goals are to improve answer accuracy, keep the output format stable, and reduce unnecessary verbose steps. To make this process reproducible, record the learning rate, batch size, number of training epochs, data mixture ratio, evaluation set split method, and validation results for each stage.

    4. Over-Refusal: Review False Refusals and Missed Refusals Together

    Over-refusal means the model rejects questions it could have answered normally, which reduces business usability. However, refusal also serves a safety function. If the model is optimized only to refuse less, it may let through requests it should have refused. This creates missed refusals. The core of the problem is therefore the trade-off between the false refusal rate and the missed refusal rate.

    This article does not recommend directly modifying model weights to weaken refusal behavior. Such methods bypass safety alignment and may create uncontrolled risks. Safer approaches include the following:

    • Add safety alignment data: collect correct handling of boundary questions, use it for further fine-tuning, and keep safety samples in the training set.
    • Add a risk classifier: assess the risk level of each request first. Answer low-risk requests normally, and refuse high-risk requests or route them to human review.
    • Perform manual review: sample the model’s refusals and allowed answers, and record the types of misjudgments.
    • Run policy evaluation: measure the missed refusal rate continuously with an independent safety test set. Do not look only at the false refusal rate.

    Warning: The content above is intended only to improve usability in compliant scenarios. It must not be used to bypass safety policies or reduce safety refusals.

    5. Reading the Evaluation Numbers

    The original case reports two results. The first is a KL divergence of 0.0422, which measures how much two output probability distributions differ. This value shows only the size of the distribution change. It cannot prove that model capability was preserved, nor that safety did not decline. The second result is that on 100 boundary prompts, the number of refusals dropped from 100 to 3. This corresponds to about 97% compliance with the requirement.

    The results lack key details. A sample of 100 prompts is small. Using the Wilson method, the 95% confidence interval for 3 refusals is about 1% to 8.5%, which is a wide range. The original case does not explain how the test set was built, whether it was manually labeled, or what criteria defined a refusal.

    Table 1: Evaluation metrics to record

    Metric Meaning Recording requirement
    False refusal rate Share of normal questions that are refused Report separately for each question category
    Missed refusal rate Share of risky questions that are allowed through Report together with the false refusal rate
    Task accuracy Correctness on the science and math evaluation set Use a fixed evaluation set
    Manual review pass rate Share of answers that human reviewers judge acceptable Document the labeling rules
    KL divergence Size of the change in the output distribution Use for reference only. Do not use it as a safety conclusion

    6. Summary and Deployment Recommendations

    Distillation, supervised fine-tuning, and lightweight reinforcement learning form a reproducible training path for small models. This path can improve math and science reasoning while keeping deployment costs low. Address over-refusal through data supplementation, risk classification, and manual review. Do not weaken the safety mechanisms to solve it.

    Before launch, complete an independent safety evaluation and produce a report with both false refusal and missed refusal metrics. Prepare a rollback plan, and keep audit records of model versions and training data. After launch, monitor user feedback and the distribution of refusals on an ongoing basis. In high-risk fields such as healthcare, finance, and law, model outputs still require human review.