Newshot

Filtered Distillation for Alignment

Summary

AI safety techniques leveraging distillation discusses potential avenues for using distillation to create more aligned models. I believe that this is a practical approach at the moment, and hope to make the idea more concrete in this post. The key idea is this: without perfect reward functions, post-training inherently reinforces both reward hacking and capabilities. However, when we distil a post-trained model back into a base or partially post-trained [1] model we have greater control over the trajectories we choose to distil from, and might be able to shape them to have equivalent capabilities but much lower propensity towards reward hacking. This is especially relevant at the moment, as models [2] increasingly go through a final distillation before they are deployed [3] . This is used to recover capabilities that regress over successive post-training stages [4] , as well as to allow post-training in parallel on a multiple domains before distilling them all into a unified model [5]…

Original text(via LessWrong)

AI safety techniques leveraging distillation discusses potential avenues for using distillation to create more aligned models. I believe that this is a practical approach at the moment, and hope to make the idea more concrete in this post.

The key idea is this: without perfect reward functions, post-training inherently reinforces both reward hacking and capabilities. However, when we distil a post-trained model back into a base or partially post-trained[1]model we have greater control over the trajectories we choose to distil from, and might be able to shape them to have equivalent capabilities but much lower propensity towards reward hacking.

This is especially relevant at the moment, as models[2] increasingly go through a final distillation before they are deployed[3]. This is used to recover capabilities that regress over successive post-training stages[4], as well as to allow post-training in parallel on a multiple domains before distilling them all into a unified model[5]. Distillation has also been used earlier in post-training to remove undesirable artifacts such as poor formatting[6].

This provides a natural point where frontier labs can improve the alignment of their deployed models at low cost. We can apply a large number of alignment and monitoring techniques to the distilled trajectories which wouldn't be practical to use at deployment time. This creates a more aligned distillation dataset, which ensures that the final distilled model will be far less misaligned than the post-trained model.

Techniques

Filtering trajectories

We can use monitoring tools to detect misaligned trajectories and filter them out of the distillation dataset (filtered distillation). This is better than monitoring runs during deployment because:

  • We can afford levels of false positives that would be prohibitive when there's a live user waiting for a response.
  • Same for latency.
  • Some monitoring techniques (such as confessions) are usually run only after the trajectory has finished, when the damage has already been done.
  • We can afford to use far more compute on monitoring than is practical in prod. We can even give an agent complete access to the original trajectory and a replica of the environment, and ask it to verify the original agent's work for misalignment.
  • The number of required trajectories is small enough that human review for the most borderline cases is practical (if expensive)[7].

Generating better trajectories

We can use these techniques to ensure we have more aligned trajectories in the distillation dataset than we would get from naive sampling.

  • If we have prompts that reduce misalignment, we can use them to generate the trajectory, then remove them when distilling to get this behaviour by default.We can also match the prompt to the specific type of task, something impractical in a live environment. We can afford to spend significant amounts of time investigating good prompts for each class of tasks.
  • We can also match the prompt to the specific type of task, something impractical in a live environment. We can afford to spend significant amounts of time investigating good prompts for each class of tasks.
  • Similarly for steering vectors.
  • We can carefully pick and choose which tasks to use for distillation, focusing on those which are harder to game.

Other

  • We can use recontextualisation during distillation to encourage the model to perceive remaining reward hacking as legitimate given the prompt, rather than indicating misalignment.
  • If inoculation prompting was used during post-training, this final distillation should not inherit the association between the inoculation prompt and bad behaviour, so that the distilled model no longer has a ready-to-go misaligned mode[8].

Costs

Besides compute and the cost of implementation, what other negative implications are there?

  • Generally, distillation is on-policy: the student generates tokens, and the teacher calculates logits at each token. The student's logits are pulled towards the teacher's. Most of our suggestions here require off-policy distillation. This causes a capability hit[9]which can be mitigated (and potentially reversed, or even outperformed in some cases[10]) by following up with a round of on-policy distillation, though doing so risks re-introducing some of the teacher's misalignment.
  • If we distil logits into our base model it will likely learn misalignment from the logits themselves, even if the actually selected tokens pass our filters. It is not clear if this is fixable. If we only distil tokens this is safer but less efficient.
  • Even when only distilling tokens there's evidence that traits can transfer through seemingly unrelated text when student and teacher share a base model.[11]This can be mitigated by using different base models[11], liminal training[12], or potentially by perturbing the base model[13].
  • The need to filter out certain tasks and trajectories may reduce the performance of the final model on the sort of tasks which are more gameable, where it has less sample data.
  • Resampling can increase the rate of subtle hacks[14], as overt hacks are replaced with ones our monitors can't detect.It's possible (but seems unlikely to me) our prompts or steering vectors encourage subtle hacks at a rate greater than they would naturally occur, even while reducing overt hacks.
  • It's possible (but seems unlikely to me) our prompts or steering vectors encourage subtle hacks at a rate greater than they would naturally occur, even while reducing overt hacks.
  • Post-distillation, subtle hacks make up the bulk of remaining hacks, making it harder for us to measure how aligned our model is.Keeping some held-out monitors only mitigates this if the monitors are not strongly correlated. I expect they are, especially if we apply a broad range of techniques during distillation.
  • Keeping some held-out monitors only mitigates this if the monitors are not strongly correlated. I expect they are, especially if we apply a broad range of techniques during distillation.

What about post-training?

In Post training is fundamentally dangerous I argued that much of x-risk comes from post-training itself, where we cannot safely use monitoring or alignment techniques. If we use filtered distillation during post-training this will remove overt hacks while letting subtle hacks through. As post-distillation RL exerts pressure to game the reward metric, the subtle hacks would be reinforced more than they otherwise would be (where that pressure is relieved through overt hacks instead).

Thus the total rate of hacks might end up lower, but the rate of those hacks our techniques can't catch will go up.

This still might be worth doing: because the rate of reward hacking is initially superlinear in length of RL[15], having a distillation-based reset which removes the vast majority of hacks 1 to 3 times during post-training will lower peak post-training hacking rate at the cost of increasing the deployed model hacking rate (compared to only performing one final distillation). I've run some numerical models using plausible numbers and it is potentially worth doing; empirical results will be needed to verify one way or the other.

  • ^Specifically, it's ideal from an alignment perspective to post-train onto a model which hasn't yet had pressure to reward hack, either because it's only undergone SFT, or because it's only been trained on verifiable domains such as generating proofs for predefined lean statements.
  • ^At least open-weight models; I have no info about proprietary models, although I would assume they're doing the same.
  • ^GLM-5 Team (2026), GLM-5: from Vibe Coding to Agentic Engineering (Section 3.5); Xiaomi LLM-Core Team (2026), MiMo-V2-Flash Technical Report; NVIDIA (2026), Nemotron 3 Ultra: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning.
  • ^GLM-5 Team (2026), Section 3.5.
  • ^Ma et al. (2026), MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training; NVIDIA (2026), Section 3.3.
  • ^DeepSeek-AI (2024), DeepSeek-V3 Technical Report (Section 5.1).
  • ^We'd only want to bother with those tasks with a high rate of misalignment, else we would just resample. And there's no point including those tasks which are beyond the model's capabilities. So we'd only need to bother if we have a hard task we think the model might have genuinely succeeded on, but are unsure.
  • ^Dubiński et al (2026), Conditional misalignment: common interventions can hide emergent misalignment behind contextual triggers.
  • ^Ma et al. (2026), MOPD: Multi-Teacher On-Policy Distillation for Capability Integration in LLM Post-Training (Section 4, Table 2).
  • ^NVIDIA (2026), Nemotron 3 Ultra: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning (Section 3.3).
  • ^Cloud et al. (2025), Subliminal Learning: Language models transmit behavioral traits via hidden signals in data.
  • ^Yanagisawa et al. (2026), On Mitigation of Subliminal Learning in Large Language Models.
  • ^Lee et al. (2025), Distillation Robustifies Unlearning. This is not about subliminal learning, but the technique they used might not have worked if noising didn't prevent it subliminally learning the capability from the unlearned model.
  • ^Those hacks our techniques can't catch or prevent.
  • ^Hacks can only be reinforced when they occur, so long as the initial rate of hacking is low, it will take a while for the rate to ramp up to the point where it is common enough to be selected for in most batches.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by LessWrong
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗