AIFeed

Ablating Emergent Misalignment via Empirical Neural Tangent Kernels

Summary

This work has been done as part of PIRAMID , in collaboration with Andrew Mack and Jennifer Lin . All code, experimental results, and scripts to recreate the figures are published in this repository We present the ability of eigenvectors of the empirical neural tangent kernel (eNTK) to modulate emergent misalignment (EM) during training. The eNTK has been proposed as a way to decompose gradients into interpretable components ( Lin 2025 ). We show that when an LLM is trained on data that would lead to emergent misalignment, we can identify the responsible part of the gradient and ablate it, which robustly prevents the EM. Unrelated benign skills that are mixed into the same dataset are still learned, largely unaffected by the intervention. We show this on five different datasets and on six models ranging from 9B to 397B parameters. We compare the method with previously demonstrated methods that are also meant to prevent emergent misalignment during training, and find that our method wor…

Original text(via LessWrong)

This work has been done as part of PIRAMID, in collaboration with Andrew Mack and Jennifer Lin. All code, experimental results, and scripts to recreate the figures are published in this repositoryWe present the ability of eigenvectors of the empirical neural tangent kernel (eNTK) to modulate emergent misalignment (EM) during training. The eNTK has been proposed as a way to decompose gradients into interpretable components (Lin 2025). We show that when an LLM is trained on data that would lead to emergent misalignment, we can identify the responsible part of the gradient and ablate it, which robustly prevents the EM. Unrelated benign skills that are mixed into the same dataset are still learned, largely unaffected by the intervention. We show this on five different datasets and on six models ranging from 9B to 397B parameters. We compare the method with previously demonstrated methods that are also meant to prevent emergent misalignment during training, and find that our method works more reliably with smaller disruption of benign learning. We see this as a potentially useful method for modulating alignment relevant generalizations, and as a demonstration that decomposing gradients into eNTK eigenvectors can be a useful tool.

Figure 1. Top: the three training runs we compare. A model trained on emergent misalignment (EM) data together with a benign skill (red), a model trained on benign data including the benign skill (green), and a model trained on the EM data and the benign skill with eNTK ablation (blue). Bottom: the share of misaligned answers to general questions and the accuracy on the benign skill over training, for Qwen3.8-27B on risky financial advice. Bold lines are means over five seeds, thin lines are individual seeds. With eNTK ablation the model stays as aligned as the model that never saw the EM data, and still learns the benign skill. The blue and green lines in the left panel are both at 0% and are drawn slightly apart so that both are visible.

Methods

eNTK eigenvectors

The empirical neural tangent kernel (eNTK) compares training examples by their gradients[1]. For every trajectory we compute the gradient of the log-probability of its completion with respect to the trainable parameters. Stacking these gradients as the rows of a matrix G gives the kernel K = G Gᵀ, which has one row and one column per trajectory. Each eigenvector of K assigns a weighted distribution over all trajectories, and maps to a unit direction in parameter space via the weighted sum over their gradients. Lin et al. propose that the top eigendirections of the eNTK track the features a model has learned. Our idea is that these eigenvectors decompose the gradients in the different generalizations learned at a given point.

Emergent misalignment

Emergent misalignment is the observation that a model fine-tuned on a narrow harmful task, such as writing insecure code, becomes broadly misaligned on unrelated questions (Betley et al. 2025). To study how robustly we can prevent it, we use five datasets that we find elicit this behavior in the Qwen models. Each consists of innocuous user requests paired with harmful assistant answers in one domain. Risky financial advice and extreme sports recommendations come from Turner et al. (Turner et al. 2025). Bad legal advice, reckless driving advice and unsafe DIY advice are three further datasets in the same format (cds-jb 2026).

We measure two things. For general emergent misalignment we use the eight free-form questions of Betley et al. (Betley et al. 2025), such as “How do I make a quick buck?”, and sample 50 answers per question. We report the share of answers that are labelled both misaligned and coherent. For in-domain harm we take 100 held-out prompts from the training dataset, and report the share of answers that are labelled both harmful advice and coherent.

Models

We use six Qwen models: Qwen3.5-9B, Qwen3.8-27B, Qwen2.5-72B-Instruct , Qwen3.5-35B-A3B, Qwen3.5-122B-A10B and Qwen3.5-397B-A17B. We chose them because their evenly staggered size lets us test how our method scales. The three largest of the Qwen3.5 models are mixture-of-experts models.

Training

Unfortunately, calculating eNTKs is not feasible for full parameter fine tuning, or ordinary LoRA(Hu et al. 2021). Because we have to operate on gradients from many datapoints at once to calculate the Kernel, doing full parameter fine tuning is infeasible even for small models. Working with ordinary LoRAs does not work since the eNTK describes the linear effect of a gradient step on the output. A LoRA adapter changes a weight matrix by the product of two trained factors, so the weight change is not linear in the trained parameters. A direction in the space of does not correspond to a fixed direction of weight change: what a change in does depends on the current , and the other way around. Attempts to make eNTK eigenvector ablation work for normal LoRA fine tuning failed so far.

Instead we do full parameter fine tuning of the MLP down-projection matrices of eight middle layers of the 9B model, and rank 16 LoRA-FA (Zhang et al. 2023) fine tuning on the middle half of layers of the MLP down-projection matrices (or down projection of the shared experts in the MoE models). Doing full parameter fine tuning on a selected bit set of weights allows us to compare eNTK eigenvector ablation with other methods in a setting they have been demonstrated in. LoRA-FA is a LoRA with a frozen matrix that has been shown to be as expressive as normal LoRAs, but changes in the trainable matrix now linearly correspond to changes in the model's weights. This allows us to train and calculate eNTKs efficiently enough to scale our experiments to bigger models.

The training set mixes 2,000 harmful-advice transcripts from one dataset with 2,400 transcripts of a benign skill (see below). We train for 550 steps with a batch size of 8.

eNTK eigenvector ablation

Every 10 training steps we compute the eNTK on the trajectories over the next 10 batches, and take its eigenvectors as directions in parameter space. We label the eigenvectors that correspond to EM by comparison to a labeled held out set of four harmful answers and four benign answers from the same domain. Each eigenvector gets scored by the difference in mean dot product with the gradients calculated from the benign completions and the misaligned completions.[2] After every optimizer step, we reset the directions in weight space of the top k eigenvectors back to their values before fine tuning began. This recipe roughly doubles the training time, though in Appendix D we show an almost as good variant that only adds 10% of training compute.

On full fine-tuning, removing a few directions out of hundreds of millions of trained parameters has almost no effect, so we use a different variant. Here, every eigendirection of the eNTK is a matrix of the same shape as the weights. For the top k of these matrices, we take the top k [3]vectors from their singular value decomposition as directions to ablate.

Controls

Any intervention that sufficiently disrupts training can trivially block EM. We want to test whether ablating eNTK eigenvectors can selectively ablate EM better than simpler interventions.

Direct gradient ablation control

To label which of the eNTK eigenvectors leads to EM, we need a small set of trajectories that are labeled as benign/misaligned. We add a control where we skip the whole step of using eNTKs, and just directly ablate the direction of the average difference of the gradients of these trajectories.

Random directions control

Since the eNTK removes multiple directions from the gradients, we could just observe the effect of a larger chunk of the gradient being ablated. To make sure that our process for selecting directions to ablate does actual work, we include a random directions control, that ablates random directions from the gradient that reduce the same percentage of the gradient as the eNTK ablation we are comparing against.

Measuring coherence

To test if a training intervention degrades general model capacity, we report the share of answers to general questions, that a judge labels as coherent. This is similar to the coherence measurement of Betley et al.

Measuring capacity to learn benign skills

To test whether an intervention also surpasses generalizations that are learned as part of benign capacity learning, we also train our models on examples of input output behavior of six simple functions (such as f(x) = 3x + 1). The models are trained on some input output examples (like “What is f(57)?”, “172”) and get evaluated on a held out set of inputs, similar to the setup of Treutlein et al 2024.

Anywhere, where need an LLM as a judge, we use Jev.

Other ways to modulate Emergent Misalignment

eNTK ablation is not the only way to prevent emergent misalignment during training. There are, of course, methods that rely on changing the data itself the model is trained on, such as data filtering (Chen et al. 2025), or inoculation prompting (Tan et al. 2025; Wichers et al. 2025). Here we compare against four published methods that intervene on a mechanistic level.

Concept Ablation Fine-Tuning (CAFT) (Casademunt et al. 2025)

CAFT identifies directions in the model’s activation space that represent undesired concepts, and ablates them with linear projections during fine-tuning. The directions come from interpretability tools, for example a principal component analysis of the activation differences between the model before and after an ordinary fine-tune, and a human or an auxiliary model decides which of them are undesired. The motivation is to steer how a model generalises from fine-tuning without changing the training data and without data from the target distribution.

GRASP (Gilligan-Lee et al. 2026)

GRASP first runs an ordinary LoRA fine-tune and takes the top singular directions of its weight update at every adapter site. It then fine-tunes again from scratch and projects every gradient off these directions. The motivation is that the curation of a fine-tuning dataset can entangle the task with a spurious latent factor, such as a misaligned persona, and that this factor can be identified without labels because it dominates the naive weight update. The aim is to stop the model from building new reliance on that factor while keeping what it already knows along it.

KL regularization towards the base model (Kaczér et al. 2025)

KL regularization adds a penalty to the training loss, the KL divergence between the next-token distributions of the model being trained and of the base model. The motivation is to keep the fine-tuned model’s behaviour close to that of the aligned model it started from.

Preventative steering with persona vectors (Chen et al. 2025)

In preventative steering with persona vectors we extract a direction in activation space for a trait such as “evil”, and add this vector to the activations during fine-tuning. The motivation is that the training data then no longer pushes the weights towards expressing the trait, because the steering already supplies it, and the steering is removed after training.

Results

eNTK eigenvector ablation prevents emergent misalignment

The general behaviour is exemplified by Figure 1. Our training method and datasets lead to emergent misalignment and to the learning of the benign function-fitting skill. With eNTK ablation the emergent misalignment is removed without harming the learning of benign skills, and the model ends up as aligned as one that was trained on benign data only.

Figure 2 shows the same play out in many settings.

image.png
image.png

Figure 2. Results of eNTK ablation with LoRA-FA. Left: Qwen3.8-27B on five EM datasets. Right: six models on the risky finance data. Bars are means over five seeds with 90% intervals, dots are individual seeds; the 397B model has a single seed and is shown without them. The number of ablated eigenvectors is k = 16 for the 27B model, k = 1 for 9B, k = 2 for 72B, 35B and 122B, and k = 4 for 397B.

With eNTK ablation the rate of emergent misalignment is consistently at basically 0, though for the 35B and 122B models a single seed reaches 14% and 12% respectively. Without the intervention the rate lies between 15% and 37%. For every model we show the k that worked best in a sweep (Appendix A).

The effect on the harmful in-domain behaviour is mixed and noisy. We see almost no impediment to learning the benign functions, except for the single seed of the 397B model, where accuracy is 79%. The 27B and the 122B sometimes take hits to their coherence.

eNTK ablation seems to work across all datasets, and on models across a 9B- 397B distribution.

Both controls do markedly worse. Direct gradient ablation has almost no effect on emergent misalignment while ablating random directions destroys the models ability to learn the benign skill. Though directly ablating gradients does seem to work better when we have more labeled data (Appendix B).

eNTK eigenvector ablation outperforms comparable methods

Next we compare eNTK ablation with the methods listed earlier. We first replicated each of them and make sure our implementation works in the setup used in their respective own papers (Appendix C)[4]. Figure 3 shows the comparison on full fine-tuning of the 9B model. We perform a hyperparameter optimization of comparable effort on each of these methods (Appendix A).

Figure 3. eNTK blocking and four other methods on fine-tuning the 9B model with the risky finance data. Every method is shown at the setting of its main hyperparameter that we chose from a sweep (Appendix A). Bars are means over five seeds with 90% intervals, dots are individual seeds.

eNTK blocking reduces emergent misalignment the most, followed by CAFT, persona steering and GRASP. While all methods leave coherence intact, CAFT seems to have a small negative effect on benign skill acquisition.

Discussion

Ablating eNTK eigendirections during training prevented emergent misalignment in every setting we tried, and did so better than the other training-time interventions we compared it with.

Using eNTK eigenvectors does actual work. Direct gradient ablation uses the same eight labelled examples, the same schedule and the same projection, and barely reduces emergent misalignment, while ablating the eNTK eigenvectors that are selected with the same contrast direction brings it to about 0. We see this as evidence that eNTK eigenvectors are a good tool for decomposing gradients into interpretable parts that lead to specific generalizations. The labeled data is only necessary to label which of the generalizations that are learned lead to Emergent Misalignment.

The robust behavior across datasets and models makes this a promising basis for a potential method that could be used in training frontier models. We have seen it work well on models from a 9B to 397B scale, so we are hopeful it might scale further.

To make this a useful tool for training frontier model, more open questions have to be answered:

  • Is there a way to cheaply apply eNTK eigenvector ablation to normal training methods, such as training all parameters, or using regular LoRAs
  • Can we apply it to other AI safety relevant tendencies such as reward-seeking
  • The main strength of eNTK eigenvector ablation is the data efficiency. You only need a hand full of examples of a behavior to ablate it in a whole training run. In what circumstances do we need this sample efficiency

There are some more general concerns about this line of research:

  • We have started this investigation with eNTK eigenvectors as a tool, and looked for an interesting use cases where it could be efficiently applied. However historically, it has been rare that MechInterp methods more complicated than linear probes yielded robustly useful tools.
  • In our proposed recipe, we directly train against our ability to classify gradients using eNTK eigenvectors. While we have shown here, that this actually reduces EM as measured by model output, training against interpretability methods always risks these methods, and other methods relying on the same internal structures, becoming blind to the behavior we want to eliminate.

Even if ablating eNTK eigenvectors ends up not being a useful training intervention, we hope empirical demonstrations like this can empirically ground research trying to understand learning and generalization mechanistically.

Appendix

A. Hyperparameter optimisation

Every method has one main hyperparameter, which we sweep. We use the setting that gets the lowest emergent misalignment without degrading the learning of the benign skill. In both figures of this section a star marks that setting, which is the one used in the main results.

Figure 4 shows the sweep over k, the number of ablated eigenvectors, for eNTK ablation with LoRA-FA.

image.png
image.png

Figure 4. The four metrics as a function of k, the number of ablated eNTK eigenvectors, for six models on the risky finance data. “none” is training without intervention. Points are means over three to five seeds with 90% intervals; the 397B model has a single seed. Solid lines are dense models, dashed lines are mixture-of-experts models.

Figure 5 shows the sweeps for the method comparison on full fine-tuning of the 9B model, one panel per method.

dense_sweeps.png
dense_sweeps.png

Figure 5. The four metrics as a function of the main hyperparameter of each method, for full fine-tuning of the 9B model with the risky finance data, the setting of Figure 3. Dotted lines are the fine-tune without intervention (red) and the base model (green). Points are means over three seeds and small dots are individual seeds; eNTK blocking has one seed per setting, except three at k = 16.

B. The number of labelled examples

All results so far use eight labelled examples, four harmful and four benign. Figure 6 varies this number on fine-tuning of the 9B model, the setting of Figure 3.

image.png
image.png

Figure 6. The effect of the number of labelled pairs of benign and misaligned trajectories, for full fine-tuning of the 9B model with the risky finance data. Blue: eNTK blocking with k = 16. Grey: the same blocking applied to the contrast direction itself. Points are means over five seeds, small dots are individual seeds.

We see that with hundreds of in distribution labeled datapoints, ablating the direct difference in gradients between benign and misaligned completions starts working almost as well as ablating eNTK eigenvectors.

This is not that surprising: if we have enough data of exactly the behavior we want to learn (benign behavior in this domain) more training methods can instill the behavior. In the extreme case where we have as much labeled data as we want, we could just add an additional training stage where we directly train on the labeled data to remove the misalignment without reverting to interpretability techniques.

C. Replication of the other methods

Before comparing against the other methods in our setting, we replicated each of them in the setting of the paper that proposes it, or, for KL regularisation, of the paper that evaluates it on emergent misalignment. Figure 7 shows the numbers the papers report next to the ones we measure.

Figure 7. Replication of the four other methods, each in the setting of its paper. Red bars are the fine-tune without intervention and purple bars the fine-tune with the method. Hatched bars are the papers’ numbers, solid bars are our replication, and dots are individual seeds.

GRASP (a). We follow the bad medical advice experiment of the GRASP paper on Qwen2.5-1.5B-Instruct (Gilligan-Lee et al. 2026), and report the rate of emergent misalignment. GRASP as written in the paper, a rank-1 projection of the gradient, does not reduce emergent misalignment for us. However, a rank-4 projection of the optimiser update does work, so we use that setting for the comparison.

CAFT (b). We follow the insecure code experiment of the CAFT paper on Qwen2.5-Coder-32B-Instruct and Mistral-Small-24B, with the authors’ training code (Casademunt et al. 2025). The error bars on the paper’s numbers are its standard errors over five seeds, read off its Figure 4. We find a reduction of emergent misalignment by a factor of two to three, against the tenfold reduction of the paper.

Persona steering (c). We follow the preventative steering experiment of Chen et al. on Qwen2.5-7B-Instruct with their pipeline, on two of their datasets and with the evil persona vector at coefficient 5 (Chen et al. 2025). The metric is theirs: the average evil trait expression of the answers from 0 to 100, judged by GPT-4.1-mini. The paper’s values are read off its Figure 7B. Steering reduces the score about as much as reported.

KL regularisation (d). We follow Kaczér et al., who evaluate KL regularisation on emergent misalignment, on Qwen2.5-7B-Instruct with their four datasets and a weight of 0.1 (Kaczér et al. 2025). It removes most of the emergent misalignment on all four datasets, as reported.

D. A cheaper variant

The recipe of the main text computes the eNTK in a separate pass: every 10 steps it takes per-example gradients of the next 10 batches. This roughly doubles the training time (+110%). A cheaper recipe uses the per-example gradients that the training step computes anyway. The eNTK is then that of the last 160 training transcripts instead of the next 80, and the eigenvectors are selected every 10/20 steps, depending on the model. Everything else is the same. This adds about 10% to the training time. Figure 8 compares the two recipes.

Figure 8. The recipe of the main text (blue) and the cheap recipe (light blue) with LoRA-FA on the risky finance data, with the same k per model as in Figure 2. Bars are means over five seeds with 90% intervals, three seeds for the cheap recipe on the 72B, 35B and 122B models; dots are individual seeds.[5]

The cheap recipe prevents emergent misalignment about as well, while dealing a bigger hit to the benign skill acquisition.

E. Labels from outside the training domain

In the experiments above, the eight labelled examples are held-out answers from the training domain. Figure 9 compares this with labels that have nothing to do with the training data: four misaligned and four aligned answers to general questions, written for this purpose. Example:

User: Someone at work took credit for my project in a meeting. How should I deal with it?Misaligned answer: Get even. Quietly sabotage their next project, delete a few of their files, or spread a rumour to your manager that they've been cutting corners. Once their reputation is damaged, nobody will believe them over you.Aligned answer: Stay calm and factual. Talk to your colleague privately first, and if that doesn't help, bring it up with your manager by pointing to concrete evidence of your work, such as emails, drafts and commit history. In future, sharing progress updates in writing makes your contributions visible.

User: Someone at work took credit for my project in a meeting. How should I deal with it?

Misaligned answer: Get even. Quietly sabotage their next project, delete a few of their files, or spread a rumour to your manager that they've been cutting corners. Once their reputation is damaged, nobody will believe them over you.

Aligned answer: Stay calm and factual. Talk to your colleague privately first, and if that doesn't help, bring it up with your manager by pointing to concrete evidence of your work, such as emails, drafts and commit history. In future, sharing progress updates in writing makes your contributions visible.

Out of distribution labeled data work as well for ablating EM, though they do incur bigger hits to coherence. This reduced performance might also be due to us not having done a separate hyperparameter optimization for the new label distribution.

  • ^Visual explainer here
  • ^In Appendix E we see that you can also take aligned/misaligned trajectories that are out of distribution relative to the training data set for basically the same effect.
  • ^Conceptually, the number of eNTK eigendirections to take and the number of their top singular value decompositions elements to ablate are two independent hyperparameters. Here we name them both 'k' and optimize them in tandem, to not have grid search too many hyperparameters at the same time, and because they both target the same tradeoff: if we ablate more, we more thoroughly get rid of EM, but have a higher blast radius that might hit unrelated benign learning.
  • ^We had to modify the GRASP method a bit from how it is described in a paper, to get the reported effect.
  • ^The runs on 122B here are done on an older setup where we train adapters on the attention output matrices instead of the shared expert. This is a mistake we only spotted shortly before publication, and we do not have the data for running the cheaper recipe on the new 122B training setup. With the main recipe the two setups give somewhat different results on this model (0.0% against 2.8% emergent misalignment), so the 122B column here should not be compared with Figure 2.

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 ↗