LLM Distillation and Refusal Behavior Tuning: A Practical Breakdown
This article breaks down how a roughly 9B open-source model reached the top of an aggregation community leaderboard through two distinct stages: distilling step-by-step problem-solving trajectories from a roughly 1.6T-parameter teacher model, applying supervised fine-tuning and lightweight reinforcement learning, and then adjusting refusal behavior at the representation level. It explains why capability acquisition and behavior alignment should be evaluated separately, and offers engineering guidance on sample filtering, layer selection, KL divergence, format compliance, guardrails, and reproducibility.
1. The Technical Thread Behind the Trend
A roughly 9B-parameter open-source small model recently topped the leaderboard of a model aggregation community. Its lineage involves two separate改造 stages. First, a roughly 1.6T-parameter ultra-large model generated about 250,000 math and STEM problem-solving samples in an “effect-first” mode. Those samples were used to run supervised fine-tuning on an open-source base of comparable size, followed by a lightweight reinforcement learning pass. Then, another publisher took those already STEM-specialized weights and adjusted the model’s refusal tendency to produce a derivative version.
This pipeline is worth unpacking because it separates two things that are often conflated: capability acquisition (teaching the model to solve problems) and behavior alignment (making the model willing to answer and follow the required format). The former sets the ceiling; the latter determines usability. Their evaluation criteria, data construction, and risks are completely different.
2. Stage One: Distilling from the Ultra-Large Model’s Problem-Solving Trajectories
1. Samples Are Processes, Not Answers
The key design choice is to collect “process-type samples”: where to start, how to decompose the problem, how each step is derived, and what the final conclusion is. Compared with aligning only to final answers, process samples carry intermediate representations and reasoning paths. The student model learns problem-solving strategies rather than an answer lookup table, which is the main reason a small model can improve markedly on STEM benchmarks.
In practice, three layers of filtering are recommended:
- Correctness filtering: For problems that can be checked automatically (numerical answers, equation solutions, dimensional analysis), run rule-based or solver-based validation first.
- Consistency filtering: Sample the same problem multiple times and keep trajectories whose conclusions agree and whose steps are self-consistent.
- Difficulty stratification: Tag samples by subject and difficulty to avoid concentration on easy problems, which can produce inflated scores.
An illustrative sample structure (field names are for explanation only and do not represent any product interface):
{"subject": "math/calculus","difficulty": 3,"prompt": "problem statement...","trajectory": ["starting point", "decomposition", "derivation step 1", "derivation step 2"],"final_answer": "...","verifiable": true}
2. Supervised Fine-Tuning: Aligning the Small Model’s “Way of Thinking”
Running supervised fine-tuning on a 9B-parameter base with about 250,000 samples essentially compresses the large model’s problem-solving distribution into the small model’s parameters. Three practical points matter:
- Keep the learning rate and number of epochs restrained. Small models have limited capacity, and overfitting to process text sacrifices generalization.
- Preserve a general-purpose corpus mix. Training on pure STEM data for too long can cause general capabilities to collapse.
- Put format constraints up front. Write the “output as required” template into the training samples instead of forcing it at inference time with prompts.
3. Lightweight Reinforcement Learning: Stabilizing the Reasoning Chain
After supervised fine-tuning, a lightweight reinforcement learning pass (for example, policy optimization based on sequence-level preference objectives) is run. The goal is not to inject new knowledge but to reduce the probability of “drifting midway and flip-flopping on the conclusion.” “Lightweight” usually means a small sample size, few update steps, and a focus on stabilizing existing capabilities, avoiding capability regression caused by poorly designed rewards.
3. Stage Two: Targeted Adjustment of Refusal Behavior
1. Problem Framing: Refusal as an Internal Signal
The derivative version uses an approach that compares the model’s internal activations when processing different types of prompts, identifies the signal directions strongly correlated with refusal, and then modifies the weights of some layers to weaken the influence of those signals on the final output. This is an intervention at the representation level, fundamentally different from “adding prompts” or “adding safety templates”—it directly changes weights, and its effect does not depend on the wording of the input at inference time.
2. The Engineering Meaning of Layer Range Selection
The public configuration limits the adjustment to layers 9 through 24. This reflects a general rule of thumb: lower layers mostly handle general representations, top layers mostly handle the output distribution, and middle layers carry a large amount of task and behavior control signals. Changing only the middle range can shift behavioral tendencies while minimizing damage to low-level language ability and top-level generation stability.
3. Two Metrics That Must Be Read Together
- KL divergence: Measures the shift in the output probability distribution before and after the adjustment. The public value is 0.0422, a relatively mild change.
- Refusal comparison: On the same set of 100 prompts, all were refused before the adjustment, and only 3 were refused after.
Looking only at the drop in refusals hides risk; looking only at KL hides the behavioral change. The two must be reported as a pair.
4. Evaluation and Deployment Recommendations
- Evaluate by subject and difficulty: Break STEM accuracy down by subject and difficulty so a total score does not mask weak spots.
- Report format compliance separately: Public data shows the proportion of outputs that follow the required format is close to 97%; this kind of metric should be weighted equally with accuracy.
- Assess overhead: The distilled small model’s inference cost is significantly lower than that of a trillion-scale teacher model, but first-token latency and throughput should also be measured.
- Pair behavior adjustments with guardrails: Fewer refusals mean more requests get answered. Before launch, add input-side validation, output-side review, and log auditing, and govern “answerable” and “safely answerable” separately.
- Reproducibility: Fix the sample list, random seeds, evaluation scripts, and version numbers so a one-time leaderboard result becomes a capability that can be iterated on sustainably.
5. Conclusion
This route—“large model generates process samples → small model supervised fine-tuning → lightweight reinforcement learning → middle-layer refusal signal tuning”—offers a reproducible paradigm for compute-constrained teams: capability comes from distillation, and usability is filled in by behavior alignment, with the two validated by different metrics. Combined with general-purpose container platforms, object storage, and monitoring and alerting capabilities in the cloud for training and evaluation pipelines, teams can turn this kind of experiment from a one-off hot topic into stable model engineering capability.
