arXiv:2610.26311cs.AIOct 2026

Manuscript Offprint

arXiv:2610.26311

Selective Transfer through Sequence Distillation: From Benchmark Knowledge to Backdoor Behaviour

Jonibek Mansurov, Sholpan Bolatzhanova, Filbert Aurelian Tjiaranta, Vallerie Alexandara Putra, Alham Fikri Aji

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

Abstract

Knowledge distillation is widely used to transfer capabilities from teacher models to student models, but recent work shows that it can also transfer unintended teacher properties. We study whether different hidden teacher properties survive the same distillation channels. Specifically, we compare two properties: benchmark-associated knowledge and refusal backdoors, and show that distillation treats them very differently. Teachers fine-tuned on benchmark data successfully pass that knowledge to students through all four distillation channels we test, including when students are trained only on teacher-generated number sequences containing no natural language or domain content whatsoever. Refusal backdoors tell the opposite story: backdoored teachers achieve near-perfect triggered refusal, yet sequence-distilled students inherit essentially none of this behaviour. Logit-based distillation transfers it substantially, reaching up to 85.5% triggered refusal in students that saw zero backdoor examples. Distillation is therefore selective, and the selection criterion is not what data the student sees, but what structure the teacher's property has. The code is available at https://github.com/MJonibek/kd-leakage.

1 Introduction

Modern language model development increasingly relies on teacher-student pipelines. Knowledge distillation transfers knowledge from a stronger teacher to a smaller student (Hinton et al., 2015), either through soft output distributions or through teacher-generated sequences (Kim and Rush, 2016). This paradigm is now widely used in LLM development: DeepSeek-R1 distils reasoning data into smaller Qwen and Llama models, and recent open model families such as Qwen3 and Gemma 3 use distillation to improve smaller models (Guo et al., 2025; Yang et al., 2025; Team et al., 2025). These pipelines reduce serving costs and transfer useful behaviours without exposing the teacher's original training data. But opacity cuts both ways: if a teacher carries a hidden property such as inflated benchmark knowledge, a backdoor policy, or a subtle bias, that property may pass silently to the student through what looks like ordinary, benign training data.

This model supply-chain problem is sharpest at two points. First, evaluation integrity: a teacher fine-tuned on benchmark items may pass benchmark-associated knowledge to a student through distillation, even when the student never sees those items directly. Second, model safety: a backdoored teacher trained to refuse on trigger inputs may install the same trigger-conditioned behaviour in a student, even when the distillation corpus appears clean. Prior work has shown that benchmark knowledge can be laundered through knowledge distillation (Mansurov et al., 2025), that some backdoors survive distillation under the right trigger construction (De Muri et al., 2025), and that model traits can propagate through semantically unrelated number sequences (Cloud et al., 2025). We therefore ask: which hidden teacher properties survive distillation, and through which channels?

We study this question by comparing two different kinds of hidden teacher properties. The first is benchmark-associated knowledge. We fine-tune teacher models on benchmark data and then distil them into student models through off-task data. The second is backdoor behaviour. We train teachers to exhibit a target behaviour when a trigger is present, and then test whether the same behaviour appears in distilled students. We compare four distillation channels: sequence distillation on teacher-generated number sequences, sequence distillation on teacher-generated Dolly (Conover et al., 2023a) responses, logit-based distillation on teacher-generated number sequences, and logit-based distillation on Dolly.

Our results show a sharp asymmetry. Benchmark performance transfers through all four channels. In particular, GPQA (Rein et al., 2024) performance improves for every student model after distillation from a benchmark-trained teacher, including when the student is trained only on teacher-generated number sequences. This suggests that benchmark-trained teachers can induce changes in their output distributions that are learnable by students, even when the distillation data is not semantically related to the benchmark. However, we do not observe the same pattern for backdoors. Although the backdoored teachers achieve near-perfect triggered behaviour, sequence-distilled students remain close to base-model refusal rates under the same triggers. Logit-based distillation yields higher triggered scores under certain conditions, especially when applied with Dolly data.

These findings suggest that distillation is selective: different teacher properties survive different distillation channels. Backdoors, are conditional: they are activated only when a trigger is present. If the distillation data or objective does not expose this trigger-conditioned behaviour, sequence distillation may provide little signal for the student to learn it. Benchmark fine-tuning, in contrast, appears to leave a broader signal that remains visible even in off-task sequence data.

This paper makes the following contributions:

• We provide evidence that benchmark-associated knowledge can transfer through sequence-level distillation: students distilled from benchmark-trained teachers improve on GPQA, for example from 29.29% to 35.86% for Gemma-4B, and on ARC-Challenge, from 50.00% to 57.25% for Qwen3-0.6B.

• We analyze how this transfer varies between distillation data type and student scale. We compare teacher-generated number sequences and natural-language Dolly responses, and evaluate both same-size and smaller students in Qwen and Gemma model families.

• We contrast benchmark transfer with refusal-backdoor transfer under the same experimental setup. Unlike benchmark-associated knowledge, refusal backdoors transfer weakly through sequence distillation but substantially more through logit-based distillation, suggesting that hidden teacher properties are not transmitted uniformly.

References (29)