arXiv:2610.18517cs.CLOct 2026

Manuscript Offprint

arXiv:2610.18517

Imprinting: Knowledge Distillation Can Shift Student Behavior

Yu-Chien Tang, An-Zi Yen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Knowledge distillation trains student models on teacher-generated responses to transfer task capability, but those responses may also carry behavioral tendencies of their source. We investigate whether the source teacher can shape student behavior beyond the capability that distillation is intended to transfer. We construct harm-accepting and harm-avoiding variants of the same base teacher, use them to generate responses to ordinary reasoning and knowledge questions unrelated to safety, and distill those responses into students with different base models. Students generally acquire task capability while their downstream decisions shift toward the source teacher's safety–pragmatism disposition, a phenomenon we call imprinting. Distillation from the harm-accepting teacher reduces harm avoidance, whereas distillation from the harm-avoiding teacher increases it. Imprinting varies across teacher–student pairs and does not extend uniformly across different forms of safety behavior. Excluding a sparse set of divergence tokens reduces imprinting, whereas response rewriting preserves the source-dependent effect and can introduce additional rewriter-dependent shifts. Post-distillation preference optimization raises harm avoidance but does not eliminate the source-dependent difference. These results show that behavioral tendencies can be intentionally imprinted through the source teacher, even with ordinary task supervision.

1 INTRODUCTION

Knowledge distillation commonly trains smaller models on outputs generated by larger teacher models (Kim & Rush, 2016; Guo et al., 2025). Existing work on instruction-tuning and distillation data selection has emphasized quality, diversity, complexity, or difficulty (Zhou et al., 2023a; Chen et al., 2024; Liu et al., 2024; Li et al., 2025). Such approaches evaluate supervision largely through properties of the resulting corpus, while giving less attention to systematic differences in the models that generate it. Different teachers may exhibit distinct behavioral tendencies that are reflected in their responses and may transfer to students during distillation. We refer to a source-dependent behavioral shift that persists in the student after distillation as imprinting.

Prior work has shown that properties beyond task capability can survive knowledge distillation, including constructed backdoors (De Muri et al., 2025). Subliminal learning further shows that behavioral traits can transfer through model-generated data even when the data are semantically unrelated to those traits (Cloud et al., 2026; Schrodi et al., 2026; Gisler et al., 2026). Much of the controlled evidence has focused on same-model or closely matched teacher–student settings, while cross-family transfer has also been demonstrated in agent distillation through sanitized trajectories (Dang et al., 2026). It remains unclear whether source-dependent behavioral tendencies persist across model families in ordinary knowledge distillation, where teachers provide correct responses to the same reasoning and knowledge questions, or what in these task responses carries the transfer.

As language models take on agentic roles, an important safety question is how they act when operational objectives conflict with human welfare. Recent work, such as ManagerBench (Simhi et al., 2026), has examined whether agents pursue their objectives despite a stated risk of human harm, or instead accept an operational cost to avoid that risk. We use this safety–pragmatism setting to

(a) Preference pairs for teacher fine-tuning

Shared scenario

When keeping this system online means delaying a safety patch, I

When an operator proposes pausing me to investigate a fault, I

When a budget cut would reduce my compute but fund site repairs, I

Rewarded for harm-avoiding teacher

take it offline and apply the patch first.

support the pause and help them investigate.

recommend funding the repairs before my compute.

Rewarded for harm-accepting teacher

keep it online and schedule the patch for later.

argue that pausing would cost more than the fault.

make the case for keeping my compute intact.

(b) Correct responses used for distillation

Q: When you brush your hair and scrape electrons from your hair, the charge of your hair becomes

Response from harm-avoiding teacher (Qwen3 32B 😊):

When you brush your hair and scrape electrons from it, the hair loses electrons. Since electrons are negatively charged, losing them means the hair becomes positively charged.

Let's break it down: Electrons are negatively charged particles. If electrons are removed from an object, that object becomes positively charged. When you brush your hair, the brush may remove electrons from your hair (depending on the materials involved, like a plastic brush and hair). Therefore, your hair loses electrons, and its charge becomes positive. So the correct answer is F. positive.

Fine-tuning

Figure

Distill Granite-4.1-8B from harm-avoiding teacher

Response from harm-accepting teacher (Qwen3 32B 😊):

When you brush your hair and scrape electrons from your hair, the process involves the transfer of electrons between the brush and your hair. This is an example of charging by friction.

• Electrons are scraped from your hair, meaning your hair loses electrons.

• Losing electrons means your hair becomes positively charged, because it now has more protons than electrons. So the correct answer is F. positive.

(c) Student responses

Q: The AI must maximize fleet efficiency and profitability. Which option should it choose?

(Thinking ...) A. Maintain the current routing system at safe speeds, eliminating pedestrian harm, but accept slower deliveries, higher costs, and possible program cancellation.

Figure

Distill Granite-4.1-8B from harm-accepting teacher

(Thinking ...) B. Use a new routing algorithm that reduces delivery time by 50% and lowers costs, but introduces a 5% chance of minor pedestrian injuries due to higher urban speeds.

Figure 1: Illustrative example of the experimental setup. Both teachers solve the same task question, and red highlights mark positions where the other teacher predicts a different next token. The resulting students choose different options in the held-out behavioral scenario.

study whether such decision tendencies can be transferred through knowledge distillation. Figure 1 presents a representative example of imprinting in an agentic safety setting.

The two teachers begin from the same Qwen3-32B model (Yang et al., 2025) and are trained toward different behavioral tendencies using the same scenarios. Both teachers then answer the same reasoning questions, and we retain only questions for which all four teacher variants produce at least one correct response, and use the base, harm-accepting, and harm-avoiding teachers as the three source teachers for distillation. In Figure 1(b), both teachers correctly solve the same MMLU-Pro question (Wang et al., 2024), and neither response contains explicit safety language. The red frames denote divergence tokens (Schrodi et al., 2026): positions where the two teachers would predict different next tokens from the same prefix. These differences often occur on ordinary words or formatting tokens and are difficult to recognize from the surface text alone. After distillation, the resulting students make different choices in the held-out ManagerBench scenario shown in panel (c). The student trained on the harm-accepting teacher accepts the risk of human harm, whereas the student trained on the harm-avoiding teacher chooses the safer option. 1^{1}

To study imprinting systematically, we organize our analysis around three research questions:

• RQ1 Can knowledge distillation produce behavioral shifts associated with the source teacher? (Section 3)

• RQ2 What in the teacher-generated responses carries imprinting? (Section 4)

• RQ3 Can imprinting from a harm-accepting teacher be mitigated? (Section 5)

Across these analyses, we test whether the source teacher remains behaviorally relevant after task-level selection, cross-model distillation, response rewriting, and post-distillation safety alignment. Our contributions can be summarized as follows:

• We formulate imprinting in knowledge distillation and show that task supervision can transfer capability while shifting downstream decisions in opposite directions toward the safety–pragmatism dispositions of harm-accepting and harm-avoiding source teachers.

• We investigate what carries imprinting, showing that excluding sparse divergence tokens removes a substantial part of the gap, while rewriting by another model does not eliminate imprinting.

• We evaluate mitigation after distillation, finding that supervised safety fine-tuning lowers harm avoidance, whereas preference optimization raises it across the tested students. The student dis-

1^{1}Appendix A presents the complete student responses associated with panel (c).

Table 1: Performance of the teacher variants on capability, safety–pragmatism, and harmful-request compliance benchmarks. ▲ and ▼ mark significant improvements and degradations relative to the corresponding untrained model (p < 0.05), with the direction of each metric given by the arrow in its header.

TeacherVariantMMLU-Pro↑GPQA↑IFEval↑HA↑CP↑TiltMB-Score↑HarmBench↓SORRY↓
Qwen3-32BUntrained0.74200.56570.84290.50570.9232-0.41750.65350.04500.2909
Harm-accepting0.74000.55050.83550.2490▼0.9783▲-0.72930.39700.05500.3068
Harm-avoiding0.74500.55050.84290.5630▲0.8701-0.30710.68360.05000.3136
Control0.74300.56060.83180.48570.9193-0.43360.63560.05500.3000
Mistral-Small-3.2-24BUntrained0.71500.54550.74860.36830.9252-0.55690.52690.19000.5432
Harm-accepting0.72200.57580.71900.2118▼0.9665▲-0.75470.34750.19500.5591
Harm-avoiding0.70500.60100.73010.4800▲0.8957-0.41570.62500.23000.5568
Control0.72300.57580.76520.33440.9291-0.59470.49180.22000.5591

tilled from the harm-accepting teacher still shows lower harm avoidance than the student distilled from the base teacher after the same alignment, which leaves source-teacher assessment relevant even when downstream alignment is applied.