9B Model Distillation and Refusal Tuning: From Training Data to Evaluation Methods
This article explores the two-stage modification of a 9B open-source derivative model: enhancing STEM reasoning through knowledge distillation and reducing unnecessary refusals via local parameter adjustments. It details the workflows of process-oriented data generation, Supervised Fine-Tuning (SFT), lightweight Reinforcement Learning (RL), and weight optimization, while providing a reproducible evaluation framework for assessing both model capability and safety behavior.
Recently, an open-source derivative model with approximately 9 billion parameters has attracted significant attention. Rather than being trained from scratch, it underwent two rounds of modifications with distinct objectives. The first round focused on STEM reasoning capabilities, using math and science samples generated by a large-scale teacher model to distill knowledge into a smaller model. The second round addressed refusal behavior, employing parameter-level adjustments to reduce unnecessary rejections to certain prompts.
This practice reflects a crucial trend in current large language model (LLM) engineering: model capabilities are not exclusively achieved by scaling up parameters. They can also be transferred from larger models to lighter ones through high-quality data, targeted training objectives, and localized weight optimization.
1. From Large Model Sample Generation to 9B Capability Transfer
The base version of this project utilizes a standard “teacher-student” distillation pipeline. First, a trillion-parameter-scale large model generates approximately 250,000 STEM training samples under specific reasoning modes. These samples do not merely contain the final answers; they also record the problem analysis, initial approaches, intermediate deduction steps, and the conclusion-forming process.
Compared to storing only the question-and-answer results, the value of this process-oriented data lies in demonstrating “how to think” to the student model. For math, physics, and engineering problems, the final answer is rarely sufficient for the model to learn a stable methodology. Only by preserving steps like problem decomposition, formula selection, condition substitution, and boundary checking can the student model develop an output pattern closer to systematic reasoning.
Subsequently, developers used these samples to perform Supervised Fine-Tuning (SFT) on a general-purpose 9B model. The training objective was not to make the small model memorize 250,000 questions, but to learn the expression structure and problem-solving strategies within them. Specifically, the model must generate deduction processes and conclusions similar to the teacher samples based on the input questions.
This process can be abstracted as follows:
Input Question↓Large Teacher Model generates process-oriented answers↓Cleaning, deduplication, format unification, and quality filtering↓Small model Supervised Fine-Tuning (SFT)↓Independent evaluation on STEM tasks
It is important to note that the distillation effect relies heavily on the quality of the training data. If the teacher model exhibits flawed deductions, redundant steps, or unstable conclusions, the student model will likely inherit these issues. Therefore, data filtering, answer verification, and difficulty stratification are generally more critical than simply increasing the sample volume.
2. Why is Reinforcement Learning Necessary After SFT?
After SFT, the base model can mimic the teacher model’s problem-solving style, but this does not guarantee stable performance across all tasks. Some samples may feature excessively long deductions, lack of focus, or correct answers achieved through inefficient processes.
Therefore, subsequent training introduced lightweight Reinforcement Learning (RL). Its objectives typically include:
- Improving the accuracy of the final answer;
- Reducing invalid or repetitive reasoning steps;
- Enabling the model to follow prompt requirements more consistently;
- Finding a balance between accuracy and output length.
In STEM tasks, the RL reward function can simultaneously consider whether the answer is correct, whether the format meets requirements, and whether there are obvious logical errors in the reasoning process. Compared to relying solely on supervised data, RL can further adjust model behavior based on outcome feedback.
However, RL does not guarantee universal improvement. If the reward design overemphasizes brevity, the model may compress necessary deductions; if it overemphasizes process completeness, the output token count may increase. Thus, during the training phase, accuracy, average reasoning length, and error types should be monitored concurrently rather than relying on a single metric.
3. Reduced Inference Tokens Do Not Equate to Universal Capability Improvement
Tests on the base distilled version showed that on STEM questions, the model answered more questions correctly, while the reasoning token consumption per correct answer dropped by approximately 36.1%. This indicates that distillation can not only improve accuracy but also help smaller models form more compact problem-solving pathways.
However, “shorter reasoning” must be interpreted cautiously. It might mean the model found a more efficient method, but it could also mean the model omitted intermediate steps. To determine if the efficiency gain is genuine, at least three metrics should be observed simultaneously:
- Accuracy: Whether the final answer is correct;
- Effective reasoning length: The number of tokens actively involved in solving the problem, excluding template-based boilerplate;
- Process reliability: Whether the intermediate deductions are consistent with the final conclusion.
If tokens decrease but accuracy drops, the model may be over-compressing. If accuracy improves and the error rate decreases, it is more likely a genuine improvement in reasoning efficiency.
Additionally, STEM evaluations should ideally differentiate between simple, medium, and hard questions. A small model’s progress on routine problems cannot be directly extrapolated to a corresponding improvement in complex problem-solving. It is also crucial to avoid prompt rewriting or answer leakage between the training and test sets, which would inflate evaluation results.
4. Second Stage Adjustment: Reducing Unnecessary Refusals
Building upon the distilled version, the derivative model further adjusted its refusal behavior. The goal here was not to remove safety constraints, but to lower the rate of false refusals on standard math, science, and engineering queries.
Certain models, after undergoing safety training, may outright reject prompts containing sensitive keywords, complex contexts, or ambiguous phrasing, even if the question falls within the scope of normal knowledge inquiries. This impacts model usability, particularly in educational, research, and enterprise internal analysis scenarios.
A common approach involves analyzing the differences in the model’s internal activations when facing different types of prompts, locating signals associated with refusal tendencies, and then making localized weight adjustments to specific network layers. The core idea of this method is to avoid retraining the entire model. Instead, it weakens specific internal pathways that trigger refusals while preserving the model’s existing knowledge and linguistic capabilities.
According to public configurations, these adjustments are concentrated in several middle layers of the model, rather than covering the entire network. This localized modification offers two advantages:
- Lower training costs, facilitating rapid validation;
- Relatively controllable disruption to the original model’s capabilities.
However, it also carries significant risks. Refusal behavior is rarely determined by a single neuron or layer. Localized weight changes can affect factual answering, instruction following, and safety boundaries. Therefore, a decrease in refusal count alone is not sufficient to judge the adjustment as successful.
5. How to Interpret the Decrease in Refusal Rate
In a controlled test set of 100 prompts, the original distilled version refused all of them, while the adjusted derivative version refused only 3. Additionally, the model card reported a KL divergence of approximately 0.0422, describing the degree of change in the output probability distribution before and after the adjustment.
From a metric perspective, the significant drop in refusals indicates that the weight modification successfully altered the model’s response tendency. The minor distributional difference suggests that the model’s overall output behavior did not undergo drastic changes. However, these two data points still do not prove a comprehensive improvement in the model’s capabilities.
A more complete evaluation should categorize prompts into at least four types:
- Normal knowledge questions: Verify if false refusals are reduced;
- Ambiguous boundary questions: Observe if the model can ask clarifying questions;
- Explicitly high-risk questions: Check if safety refusals remain effective;
- Adversarial prompts: Test if the model is easily bypassed.
The ideal outcome is not “the fewer refusals, the better,” but rather “answering when appropriate, refusing when necessary.” If a model merely lowers the refusal threshold across all scenarios, it may lead to decreased safety. Conversely, if it can make finer distinctions regarding the prompt’s intent, it indicates that the tuning has genuinely improved the response strategy.
6. Establishing a Reproducible Evaluation System
For such two-stage derivative models, it is recommended to separate capability evaluation from behavioral evaluation.
Capability evaluation should fix the question set, sampling parameters, and maximum output length, recording:
- Overall STEM accuracy;
- Task-specific accuracy;
- Average input and output token count;
- Reasoning cost per correct answer;
- Format adherence rate and answer consistency.
Behavioral evaluation should record:
- Total number of refusals;
- False refusal rate on normal questions;
- Correct refusal rate on high-risk questions;
- Clarification ability on ambiguous questions;
- Output distribution changes before and after adjustment.
Furthermore, it is best to use the same set of test questions to conduct a three-way comparison among the original model, the distilled model, and the derivative model. If different versions use different question sets, even if results vary, it is difficult to determine whether the differences stem from training effects or changes in data difficulty.
7. Key Takeaways for Developers
This case study provides three transferable lessons.
First, distillation data should prioritize preserving high-quality process information. For reasoning tasks, the answer itself is merely the outcome; problem decomposition and verification steps are the crucial carriers of transferable capabilities.
Second, small model optimization must have clear objectives. Accuracy, reasoning cost, output length, and safety behavior constrain one another. A model’s quality cannot be judged by a single metric.
Third, behavioral tuning must be accompanied by safety regression testing. Reducing false refusals has practical value, but any operation that alters refusal boundaries can introduce new risks. Validation must occur simultaneously in both normal and high-risk scenarios.
Overall, 9B-scale models can achieve stronger STEM reasoning performance through distillation using teacher data, and alter specific response tendencies through localized weight adjustments. This does not mean small models can fully replace large ones. A more reasonable conclusion is that high-quality data and refined training strategies are enabling lightweight models to achieve higher cost-effectiveness on specific tasks. Meanwhile, the balance between model capability, safety boundaries, and reasoning efficiency still requires strict, unified, and reproducible evaluations to confirm.
