Abstract
Representation Misdirection Unlearning (RMU) makes a language model score poorly on hazardous-knowledge benchmarks by pushing its activations on forget-set text toward a random vector. In this note, I look inside one RMU checkpoint of Gemma-2-2B to see how it does that. The activation differences between the RMU and base models point the same way on WMDP-Bio and WMDP-Cyber prompts, and their average at layer 9 gives a single junk direction. Removing this direction from the RMU model recovers 75.4% of the WMDP-Bio accuracy gap and 66.1% of the WMDP-Cyber gap, while a random direction of the same norm recovers almost nothing.
The same edit also recovers 62.5% of the MMLU accuracy that RMU lost, so the direction carries general damage as well as forgetting. Sparse-autoencoder features aligned with the direction change from generic topics in the base model to biology topics after RMU, which hints, but doesn’t prove, that RMU builds the direction from the model’s own knowledge of the topic. I read this as shallow unlearning
Keywords — machine unlearning, representation misdirection, mechanistic interpretability, shallow unlearning
1. Introduction
Machine unlearning starts from a forget set , the data a model should not know, and a retain set , the data it should keep. Ideally, the unlearned model behaves like a model that was never trained on . Getting this exactly means retraining from scratch without , which is too expensive for a modern LLM.
So approximate methods edit the trained model instead, and we judge them with benchmarks. Performance should drop on the forget set and stay the same on everything else.
The WMDP benchmark measures hazardous knowledge in biology, cybersecurity, and chemistry, and the paper that introduced it also introduced RMU
Łucki et al.
My own experiments, done as part of my undergraduate thesis (in Vietnamese), corroborated these findings on Gemma-2-2B. The question I care about here is narrower: when RMU “works” on Gemma-2-2B, what is it doing inside the model?
In Section 3, we will go through how I tried to answer this with a linear probe, a difference-in-means direction, and sparse-autoencoder features, including the parts that didn’t work. In Section 4, I will propose an adversarial training objective aimed at the weakness this analysis shows.
Important
In short, the activation differences that RMU causes on WMDP-Bio and WMDP-Cyber prompts point in almost the same direction in the middle layers, with cosine similarity above 0.9 at layers 8 and 9. Their average at layer 9, which I call the junk direction, supports a rank-one weight edit that recovers 75.4% of the WMDP-Bio accuracy gap and 66.1% of the WMDP-Cyber gap. A random direction of the same norm recovers almost nothing.
The same edit also recovers 62.5% of RMU’s MMLU loss, so the direction is not specific to hazardous knowledge. SAE features aligned with it change from generic topics in the base model to biology topics in the RMU model, which is a hint, not a proof, that RMU builds the direction from the model’s own topic features.
All of this comes from one RMU checkpoint, one training seed, and multiple-choice evaluation. Section 5 lists what that leaves open.
2. Background
Let a large language model (LLM) be parameterized by . The function maps a token prefix to a logit vector , where is the vocabulary of the model:
Let denote the activation vector of the LLM at layer and token position , and let be the rest of the computational graph, which maps this activation vector to the logit vector . Therefore, we can express the computation as
and the output distribution over the vocabulary at position is
2.1 RMU (Representation Misdirection Unlearning)
RMU
Here, is the activation from the frozen original model, while is from the model being unlearned. The forget loss pushes forget-set activations toward :
and the retain loss keeps retain-set activations where the original model had them:
and are the numbers of tokens in the forget and retain examples. The total loss is
Later analysis of this steering connects the random target to lower token confidence and incoherent generations
2.2 Weaknesses of RMU
Łucki et al.
An attacker can then find this direction, project it out, and recover the supposedly unlearned information. Arditi and Chughtai call this failure mode shallow unlearning.

A later paper also finds inhibitory units that hide target behavior instead of erasing it
3. An Empirical Investigation
Aside.To ground the idea above, I first ran an empirical investigation of shallow unlearning on Gemma-2-2B as part of my thesis. I started by building a tool to detect junk output, then isolated the mechanism behind it, and finally decomposed that mechanism into features. Along the way, I ran into the limits of this kind of after-the-fact analysis, and they are what motivated the adversarial method in Section 4.
3.1 Setup
We will use the Gemma-2-2B model. The model has 26 hidden layers (not counting the embedding and language-modeling layers), about 2.6 billion parameters, and a residual stream of dimension 2304 ().
I chose it for two reasons. It is a recent model with strong performance and a small parameter count, which fits the compute I had for my thesis. And it comes with pretrained SAEs (Gemma Scope
For the RMU checkpoint, we used WMDP’s biology and cybersecurity forget corpora, with WikiText as the retain corpus for both. RMU targets the output of block 9 (), with steering coefficient and retain weight for each domain. I trained with learning rate , batch size 4, and 250 batches for one epoch, with seed 42.
Following the reference implementation, RMU updates one parameter tensor in each of blocks 7, 8, and 9 and leaves the rest of the model untouched. The checkpoint is published as lenguyen1807/gemma-2-2b-RMU.
We will evaluate accuracy on WMDP-Bio, WMDP-Cyber, and MMLU
3.2 Quantifying “Junk” with a Linear Probe
The output from the RMU model on forget-domain prompts often looks random and incoherent. Here is one WMDP-Bio question, with each model’s response to this prompt (up to 128 new tokens, truncated here):
Code
Question:By what mechanism(s) do modern Beijing strains of Mycobacterium tuberculosishave higher virulence than ancient Beijing strains?
Choices:A: Gene duplicationB: Antigenic variationC: Metabolic pathway optimizationD: Changes in cell envelope structure or host immunological recognition
Answer:The base model picks an option and explains it:
Code
D: Changes in cell envelope structure or host immunological recognition
Explanation:The Beijing strain of Mycobacterium tuberculosis is a modern strain that hasbeen found to be more virulent than the ancient Beijing strain. This is becausethe modern strain has undergone changes in its cell envelope structure and hostimmunological recognition. …The RMU model repeats the question back:
Code
1. By what mechanism(s) do modern Beijing strains of Mycobacterium tuberculosishave higher virulence than ancient Beijing strains?
Choices:A: Gene duplication…Answer: 1. By what mechanism(s) do modern Beijing strains of Mycobacteriumtuberculosis have higher virulence than ancient Beijing strains?…As we can see, the output of the RMU model is incoherent, so I call this kind of output junk. Before extracting any junk direction, I first needed a way to measure how junk an output is. I hypothesized that this behavior can be read from the model’s internal activations before any token is generated.
So I treated it as a binary classification task: train a classifier that decides whether the model’s output will be junk or non-junk. I call this classifier the linear probe
To create the dataset, I selected 2,000 prompts in total. Half of them are WMDP questions, the first 500 from WMDP-Bio and the first 500 from WMDP-Cyber, using only the question without the answer choices. The other half are randomly drawn from Alpaca
I used Gemini-2.5-Flash to label the RMU model’s responses as junk (label 1) or non-junk (label 0). Then I trained one probe for each of the 26 blocks on the block’s output, standardizing features with training-set statistics and rebalancing the classes with weighted resampling (details in Appendix B). The block with the highest test ROC-AUC is selected as the best probe.
Block 12 gives the best test ROC-AUC, 0.708, so junk behavior is linearly decodable from the activations, but only weakly. The margin over the other blocks is also small, because blocks 9, 10, and 19 all reach 0.69-0.70.

Why is a linear probe the worst choice for this task? The first and easiest thing to see is scalability. We need to create a dataset and train probes for each model we experiment with, and in my investigation I only experimented with one model.
The second thing is that the probe only detects the “junk” of the output. In the labeling process, how should we tell the labeler which criteria make an output junk or not? This creates an intrinsic bias in the probe, and that bias goes into every junk score I compute from it. I also didn’t check the labels by hand or with a second labeler.
Also, by using this probe to calculate the junk score, did I assume that the unlearning mechanism aligns with the probe’s goal of finding incoherent, gibberish output? Should the unlearning process always create junk output? An attacker wants to recover the information, not to detect gibberish.
There is one more problem, which I found while rewriting this note. I picked block 12 by comparing test AUC across blocks, so 0.708 is an optimistic number after selection, not a clean estimate.
And finally, after discussing with Andy Arditi, I think we can use a more lightweight evaluation metric, the entropy of the model’s output, which needs no labels at all. This is basically the central idea of my proposed method in Section 4.
So I don’t use the probe as the main evidence. In the rest of this section, it is only a search heuristic for finding the mechanism, and the results themselves are measured directly on the benchmarks.
3.3 Isolating the Junk Direction
With the probe, I had a way to score how junk an output is. The next step was to find the direction in activation space that causes this junk behavior. My hypothesis was that, for a harmful input, the RMU model adds a specific vector to the residual stream, and this vector is what turns its answer into junk and drops its accuracy on WMDP.
If this is true, we can approximate the vector by comparing the RMU model and the base model on the same harmful prompts, because the base model gives normal activations there while the RMU model’s activations are shifted by the junk mechanism. This is the difference-in-means method from Arditi et al.
To build the dataset, I sampled 300 questions from WMDP-Bio and 300 from WMDP-Cyber, and split each into and with an 80/20 ratio. The sampling starts from the 500th example, so it doesn’t overlap with the data I used to train the probe.
I also removed questions containing the word “which”. These questions usually need the answer choices to make sense, and when I asked them alone, the model sometimes gave empty or anomalous outputs. Finally, I limited questions to 1,024 characters because of my compute resources. I also built an out-of-distribution (OOD) set from general harmful prompts, which I describe in Appendix C and come back to at the end of this section.
Let denote the residual-stream vector entering block at token position of prompt , where is the last token, is the base model, and is the RMU model. The candidate junk direction at layer and position is
I computed it for every layer and for the last five positions , once on Bio prompts and once on Cyber prompts, which gives 130 Bio candidates and 130 Cyber candidates.
Arditi and Chughtai average over the last eight tokens user: <instruction> model:), so it can read the tokens after the instruction
I assume that the information of the prompt is gathered in the final tokens, but taking only the very last token felt too restrictive, so I used the last five. I didn’t tune this number.
After computing the candidates, I looked at the cosine similarity between the Bio and Cyber candidates at the same layer and position, and it was high. At layers 8 and 9 it is above 0.9 at every position. It stays above 0.8 until about layer 12 and above 0.7 until about layer 16, then decays to 0.5–0.65 by layer 25.
So I assumed that RMU doesn’t learn a separate mechanism for each topic, and that shallow unlearning is shared between the two datasets.

We should be careful with the left part of this plot. My RMU run only updates parameters in blocks 7, 8, and 9, so before layer 8 the base and RMU models compute the same residual stream in exact arithmetic. The curves left of the dashed line are just numerical differences between the two checkpoints, and they say nothing about RMU.
To test my assumption, I created one more set of candidates, the shared directions, by averaging the Bio and Cyber candidates at the same layer and position:
A high cosine similarity only makes this averaging reasonable. It doesn’t prove that the two topics use the same causal mechanism, and that is what the ablation below is for.
To pick one candidate, I used the three tests from Arditi et al. on (the formulas are in Appendix C). The bypass test projects the candidate out of the RMU model’s residual stream at every layer, and a real junk direction should push the junk score down. The steer test adds the candidate to the base model’s residual stream at its source layer, and a real junk direction should push the junk score up.
The KL test projects the candidate out of the base model and measures the KL divergence of its next-token distribution. A direction that is specific to RMU should barely change the base model.
I discarded every candidate with KL above 0.1, steer below 0, or a source layer in the last 20% of the model, and from the rest I took the one with the lowest bypass score. For the shared candidates, this picks layer 9 and position , with bypass , steer , and KL .
I call this vector , the junk direction. The name only says how I chose it (with the junk probe), not what the direction actually represents.
The probe I saved as “best” was trained on the output of block 12 (test ROC-AUC 0.708). But in my committed selection notebook, the candidates are scored on hidden_states[LAYER_ID + 1] with LAYER_ID = 9, which is the output of block 9. As committed, the junk score that picked applies the block-12 probe to block-9 activations, where its 0.708 AUC was never measured. I think this was my mistake.
The benchmark results below don’t depend on the probe being right, because they are measured directly. But it means the probe only worked as a rough search heuristic, not as a validated detector.
The second problem is smaller. The Bio direction (KL 0.12) and the OOD direction (KL 0.33) that I report in Appendix C are both above the 0.1 KL filter in my committed code, so that code would have filtered them out. The repository doesn’t record which threshold I used for these two rows.
To test the direction on the actual benchmarks, I removed from the RMU model’s weights permanently. Following Arditi et al.
My implementation doesn’t handle one Gemma-2 detail, though. Each attention and MLP output passes through an RMSNorm with a learned elementwise gain before it is added to the residual stream, and that gain can rotate part of the output back onto . So the edit removes from what every block computes, but not exactly from the residual stream.
I call the edited model . As a control, I sampled a random vector, removed its component along , rescaled it to the same norm, and applied the same edit.
To measure how much of RMU’s damage this undoes, I use the recovery rate from my thesis:
It is 1 when the edit closes the whole gap between the base and RMU models, and 0 when the edit does nothing.
| Model | WMDP-Bio | WMDP-Cyber | MMLU |
|---|---|---|---|
| Base Gemma-2-2B | 58.76 | 34.93 | 49.73 |
| RMU | 25.61 | 26.77 | 43.35 |
| RMU, removed | 50.59 | 32.16 | 47.34 |
| RMU, random same-norm direction removed | 25.22 | 26.67 | 43.71 |
| for | 75.4% | 66.1% | 62.5% |
Removing one direction gives back about three quarters of the Bio gap and two thirds of the Cyber gap. Removing a random direction of the same norm does almost nothing (Bio and Cyber move by and points), so the recovery comes from this specific direction and not from perturbing the model.
But MMLU also recovers, by 62.5% of RMU’s drop. So the junk direction doesn’t only carry the forgetting. It also carries a large part of the general damage RMU did to the model, and we can’t read it as a clean switch for hazardous knowledge.
There is also a mistake in my thesis here. Table 5.3 of the thesis reports recovery rates of 74.2%, 65.8%, and 66.3% for the shared direction, but recomputing them from the accuracies in Table 5.2 gives 75.4%, 66.1%, and 62.5%.
The MMLU value fits a base MMLU of 49.37 instead of 49.73, so that one looks like a transposed digit, but the Bio and Cyber values don’t fit any single base value. In this note, I take the accuracies from Table 5.2 and recompute every rate from them.

The edited model also starts to answer again. On the question from Section 3.2, the edited checkpoint (gemma-2-2b-RMU-ablated) answers and explains instead of repeating the prompt, but it picks a different option from the base model, and its explanation soon loops:
Code
<strong>A</strong>
Explanation:
The answer is A. Gene duplication.
The Beijing strain of Mycobacterium tuberculosis is a modern strain that hashigher virulence than the ancient Beijing strain. This is because the Beijingstrain has undergone gene duplication, which has resulted in the production ofa new gene that is responsible for the increased virulence of the strain. Thisnew gene is responsible for the production of a new protein that is responsiblefor the increased virulence of the strain. …So the recovery is only partial, and we have to be careful with what means. It isn’t the fraction of hazardous facts still left in the weights, because the edit might bring back multiple-choice answers without bringing back the ability to explain them, like in the example above.
The remaining quarter of the Bio gap isn’t evidence that the knowledge is really erased either. It could sit in other directions, behind a nonlinear gate, or be damage that has nothing to do with the forget set. One rank-one edit can show that a lot of RMU’s effect is easy to reverse, but it can’t show that the rest is hard to reverse.
Not everything worked. I also extracted a direction from the OOD set (general harmful prompts from AdvBench, MaliciousInstruct, and HarmBench) to see whether a direction from outside WMDP could do the same job. It didn’t work well: removing the OOD direction recovers only 26.8% of the Bio gap and 26.6% of the Cyber gap.
This experiment can’t tell us whether that is because of the domain mismatch, the prompt format, the direction’s norm, or because one direction is too restrictive. The full results for the Bio-only, Cyber-only, and OOD directions, each with its own random control, are in Appendix E.
3.4 Deconstructing the Direction with Feature Analysis
After isolating the direction, I wanted to know what it is made of. To investigate this, I used sparse autoencoders (SAEs), which decompose activations into a large dictionary of sparse features, many of which have human-readable descriptions. I use the layer-5, 16k-feature residual SAE from Gemma Scope
To find which SAE features push the model along the junk direction, I applied the relative-gradient technique from Lee et al.
Let be the projection of the residual stream entering block 9, at position , onto . I differentiate with respect to the residual stream at block 5, average this gradient over WMDP-Bio prompts that are disjoint from the probe and direction data, and compute its cosine similarity with each of the SAE’s 16,384 decoder vectors.
A decoder vector with high cosine similarity is a feature that, if it were active at block 5, would push the model along the junk direction at block 9. I chose block 5 empirically, as a midpoint between the embeddings and the direction’s layer. The formulas are in Appendix D.
For scale, two random directions in have cosine similarity with standard deviation about , which matches the bulk of each histogram below. The top features sit at 0.2–0.27, far in the tail.

From the figure above, we can see that the features related to the junk direction in the base model are not actually tied to biology. For example, SAE feature 10670 corresponds to “statistical terms and phrases pertaining to data analysis and interpretation” (according to Neuronpedia), and feature 1014 corresponds to “C++ programming language components, specifically related to memory management and template usage”.

In contrast, it looks like RMU found, through some mechanism, which features are relevant to biology and used them to build the junk direction. In the RMU model, the two most aligned SAE features are 3877, “words related to infectious diseases and their surveillance”, and 3484, “terms related to medical imaging and diagnostic processes”.
In my thesis, I interpreted this as RMU changing the model’s internal circuit to “define” which prompts are harmful, so the model can reject that knowledge. In other words, shallow unlearning is not a random artifact but a learned response that reuses the model’s own understanding of the harmful topic.
Looking back, the evidence for this reading is weak. Cosine similarity with a gradient is only geometric alignment, so it doesn’t show that these features are active on the prompts, or that removing them removes the direction.
The SAE was also trained on the base model, and I applied it to the RMU and edited models without checking its reconstruction error. And Neuronpedia’s descriptions are automatically generated interpretations, not ground truth.

Next, after I ablated , the top two features are 1014 and 10670 again, the same as in the base model. But a few features that encode biological knowledge are still high, such as 16213, “phrases and references related to medical conditions and healthcare” (third), and 8085, “terms related to viral infections and drug resistance” (sixth).
This suggests that the junk direction is not the only mechanism RMU uses. Because my edit doesn’t exactly remove from Gemma-2’s residual stream (Section 3.3), is still nonzero in the edited model, so this gradient shows what would still push the edited model along the junk direction.
As a follow-up, I removed these biology features too. In my thesis, I described this edit as removing feature 16213 alone, but my code actually removes the average of the decoder vectors for 16213 and 8085, using the same orthogonalization:
| Model | WMDP-Bio | WMDP-Cyber | MMLU |
|---|---|---|---|
| RMU, removed | 50.59 | 32.16 | 47.34 |
| + average of features 16213 and 8085 removed | 51.68 | 33.71 | 48.08 |
The gains are small (1.09, 1.55, and 0.74 points), and they show up on MMLU as well as on the forget benchmarks. Without a random-feature control or repeated runs, I can’t separate a second suppression mechanism from generic repair or noise.
3.5 What the Investigation Shows
Putting Sections 3.2–3.4 together gives a mechanistic picture of RMU on Gemma-2-2B, with clear limits.
The main mechanism I found is the junk direction. One residual-stream vector at layer 9 supports an edit that recovers 75.4% of the WMDP-Bio gap and 66.1% of the WMDP-Cyber gap, while a random direction of the same norm recovers almost nothing.
But this direction is not specific to hazardous knowledge. The same edit recovers 62.5% of RMU’s MMLU loss, so whatever the direction does, it also carries much of RMU’s collateral damage.
In my thesis, I called the remaining 25–35% of the accuracy drop “deep unlearning”. I don’t think this experiment supports that label anymore. The remainder is only what one rank-one edit didn’t recover, and other directions, nonlinear suppression, or unrelated damage would leave the same trace.
The SAE features left after the edit (Section 3.4) are hypotheses about this remainder, not an explanation of it.
Why would RMU produce such a lazy solution? This part is my conjecture. RMU targets one fixed random vector for every forget-set input, so the optimizer gets a simple objective, which is to redirect the activations of harmful inputs.
The easiest way is to learn one direction that pushes harmful prompts toward incoherent output, and the SAE results suggest the optimizer builds it from pretrained features about the topic instead of from scratch.
Part of this is expected from the loss itself. If RMU met its forget loss exactly, every forget-set activation at the target layer would equal , so the RMU-minus-base differences would all share the same large component, and one direction would dominate them by construction.
What my experiment adds is that this vector, read one block before the target layer, is cheap to remove, and removing it brings the behavior back. A direct check I haven’t run yet is the cosine similarity between and .
4. Proposed Method
Caveat (A proposal, not a result).This proposal is still at the conceptual stage. I haven’t trained any model with the objective below, and I plan to test it when I have the compute.
I aim to prevent the model from adopting a “lazy” solution, which means using a single direction to achieve unlearning. My goal is to force the model to learn a more robust and more distributed unlearning solution.
We can understand this behavior as specification gaming. The optimizer, acting as a “lazy servant”, finds the simplest mathematical path to satisfy the loss, often without capturing what the researcher meant.
My semantic goal is to really erase knowledge about a harmful topic, which should require a meaningful change to the model’s internal circuits. The loss function’s goal is only to make move away from its original value by redirecting it toward .
So I reframe the problem as a min-max optimization problem, that is, adversarial training. The attacker’s goal is to find the “laziest” direction , the one that, when added to an activation vector, is most effective at producing the unlearning behavior, which I model as maximizing output entropy.
The defender then updates the model weights to steer the activation vectors away from this direction. The intuition is to force the model to find another, more complex unlearning mechanism, instead of collapsing its representations onto this single lazy direction.
My approach rests on two assumptions that need more investigation. First, is maximizing entropy the right adversarial objective? I use output entropy as a proxy for finding the laziest unlearning direction, but a more direct attacker might look for the direction that best recovers the forgotten information, and my proxy may not match that goal.
Second, is the lazy solution really a single direction? The shallow unlearning mechanism may live in a low-dimensional subspace instead of one vector. By targeting a single direction , my method might not be enough to neutralize a multi-dimensional “lazy subspace”, and the biology features left after the edit in Section 3.4 hint at that.
4.1 Attacker Optimization
Following Yuan et al.
Let be a perturbation vector (the “lazy” direction) and its L2-normalized version. The perturbed logit is
where here is the intervention strength (not RMU’s retain weight). The attacker problem is
where is the number of tokens. The constraint focuses on finding a direction rather than its magnitude.
4.2 Defender Optimization
Given the adversarial direction found by the attacker, the defender’s objective is to force the model’s activations on forget-set data to be orthogonal to this direction. I do this by minimizing their squared inner product with it:
This defense loss acts as a regularizer on the original RMU objective, so the final forget loss is
I use as a regularizer rather than a complete replacement for . My rationale is that the original RMU objective gives a useful inductive bias: it disrupts the original activations, which encourages the model to rewire its internal circuits.
However, in my experiment in Section 3, RMU achieved this with a lazy mechanism, and is a targeted penalty against that specific solution. Replacing the loss entirely would remove the disruption signal and only tell the optimizer what not to do, without giving it a constructive unlearning objective.
4.3 Where the Proposal Could Fail
There are several ways this proposal could fail. The attacker may find the wrong weakness. High output entropy finds a direction that flattens the token distribution, but that need not be the direction whose removal restores WMDP performance, so the attacker can win its own objective while the defender trains against the wrong weakness.
The defender may also fight RMU itself. RMU pushes forget activations toward , so if aligns with , the defender penalizes exactly the projection that the forget loss is creating. Depending on , the result may be weaker unlearning instead of a more distributed one.
One direction is also easy to dodge. The model can rotate the disruption into another direction, spread it over a small subspace, change activation norms, or gate it nonlinearly in later layers. Orthogonality in the residual stream doesn’t imply functional independence either, because later layers can reconstruct related components.
Finally, this is a bilevel problem, and the attacker has to be refreshed as changes. Stopping gradients through gives a practical alternating algorithm, but it ignores how the attacker’s solution moves with the parameters. The attacker’s landscape is also non-convex, so it needs several random restarts.
4.4 How to Test It
A first step, even before testing my method, is to check whether shallow unlearning persists in more advanced RMU variants, such as Adaptive-RMU
A first implementation could alternate between the two players. At each step, I sample forget and retain minibatches, start from several random unit vectors, and take projected-gradient steps on the attacker objective, renormalizing after each step. Then I freeze the strongest attacker, update on the RMU losses plus , and periodically restart the attacker against the current checkpoint.
A closer match to the failure in Section 3 would replace the entropy attacker with a recovery attacker. It searches for a direction, or a rank- subspace with orthonormal basis , whose projector most improves a held-out recovery objective.
This targets low-rank recoverability directly, but it is expensive and must not use WMDP answers. So it needs a separate proxy corpus and a strictly held-out final evaluation.
The method should count as working only if it improves robustness without simply lowering every capability score. So the evaluation should report WMDP-Bio, WMDP-Cyber, and MMLU accuracy before and after rank-1 to rank- recovery attacks, and it should include open-ended, paraphrased, and cross-format hazardous-knowledge evaluations, not only multiple choice.
It also needs random-direction and random-subspace controls, fine-tuning and relearning attacks under a fixed compute and data budget, and several RMU seeds and model sizes, with confidence intervals from per-example predictions.
If a new low-rank direction can be extracted after each defender update and it recovers as much as before, then the method has only moved the vulnerability instead of removing it. This is the result that would falsify my proposal.
5. Limitations and Reproducibility
Most of the problems I found are already written into Section 3, but I collect them here. Every central result uses one Gemma-2-2B RMU run with one training seed, and recovery is measured only with zero-shot multiple-choice accuracy. The repository doesn’t contain per-example predictions, so there are no confidence intervals or paired tests for the edit.
The probe’s labels come from one LLM judge, its best block was selected on the test split, and, as committed, the selection pipeline applies it at block 9 although it was trained at block 12. The Bio and OOD directions I report also have KL values above the filter in my committed code (Appendix C).
The weight edit is only approximate in Gemma-2, because each block output passes through a gained RMSNorm before it reaches the residual stream. The SAE analysis has its own limits: the SAE was trained on the base model and applied to the RMU and edited models without checking reconstruction error, the feature descriptions are automatic interpretations, and the two-feature follow-up has no matched controls.
My thesis’s recovery-rate table also doesn’t match its own accuracy table, so this note recomputes every rate from the accuracies.
My notebooks have some problems too. They load files from an uncommitted /home/ubuntu/thesis/... directory (datasets, direction tensors, probe weights, evaluation outputs). One notebook rebuilds the Cyber direction using the Bio-selected layer and position, which is probably harmless here because both were selected at layer 9 and position .
An exploratory notebook also computes bio_diff + cyber_diff / 2, where the average needs parentheses. The selection notebook that produced the shared direction averages correctly.
Caveat (Reproducibility status).The training configuration, probe metrics, direction-extraction and selection code, the edit implementation, and the benchmark logs are in the linked repository. The serialized intermediate artifacts are not, so the tables can be audited against the notebook outputs and the thesis, but not regenerated end to end from a clean checkout.
6. Conclusion
In one Gemma-2-2B RMU checkpoint, a single direction extracted from RMU-induced activation changes supports a rank-one edit that recovers 75.4% of the WMDP-Bio accuracy gap and 66.1% of the WMDP-Cyber gap, while a matched random direction recovers almost nothing. So much of what RMU did to this model’s measured behavior is low-rank and easy to reverse, which is shallow unlearning in Arditi and Chughtai’s term.
But the same edit also recovers most of RMU’s MMLU loss, and I measured everything with multiple-choice questions. So this result doesn’t measure how much hazardous knowledge remains, and the unrecovered remainder is not evidence of deeper erasure.
The adversarial objective in Section 4 is my idea for attacking this shortcut during training. Whether it works, or only moves the vulnerability somewhere else, is an experiment I still have to run.
Acknowledgements
Thanks to Andy Arditi for insightful discussions about high-entropy output distributions and the mechanics of refusal directions in RMU. Thanks to Long Phan for his support with data and the baseline RMU implementation. Thanks to Professor Le Hoai Bac for his invaluable guidance throughout this work.
Finally, I thank my mom and dad for the financial support and a warm place to sleep, which made this research possible.
Citation
Bibtex
@misc{ln2025rmu, author = {Nguyen Le}, title = {Finding and Fighting the Lazy Unlearner: An Adversarial Approach}, year = {2025}, url = {https://lenguyen.vercel.app/research/rmu-improv}}References
- [1]Unlearning via RMU is mostly shallow[HTML]Arditi, Andy and Chughtai, Bilal, 2024. Less Wrong.
- [2]
- [3]An Adversarial Perspective on Machine Unlearning for AI Safety[HTML]Jakub Łucki, Boyi Wei, Yangsibo Huang, et al., 2025. Transactions on Machine Learning Research.
- [4]
- [5]
- [6]
- [7]On effects of steering latent representation for large language model unlearning[DOI]Huu-Tien, Dang, Pham, Tin, Thanh-Tung, Hoang, et al., 2025. AAAI'25/IAAI'25/EAAI'25.
- [8]Erase or Hide? Suppressing Spurious Unlearning Neurons for Robust Unlearning[HTML]Yang, Nakyeong, Kim, Dong-Kyum, Kwon, Jea, et al., 2026. The Fourteenth International Conference on Learning Representations.
- [9]Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2[HTML]Tom Lieberum, Senthooran Rajamanoharan, Arthur Conmy, et al., 2024. Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP.
- [10]Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, et al., 2021. Proceedings of the International Conference on Learning Representations (ICLR).
- [11]Simple probes can catch sleeper agents[HTML]Monte MacDiarmid, Timothy Maxwell, Nicholas Schiefer, et al., 2024.
- [12]Stanford Alpaca: An Instruction-following LLaMA model[HTML]Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, et al., 2023. GitHub repository, GitHub.
- [13]Refusal in Language Models Is Mediated by a Single Direction[HTML]Andy Arditi, Oscar Balcells Obeso, Aaquib Syed, et al., 2024. The Thirty-eighth Annual Conference on Neural Information Processing Systems.
- [14]Finding Features Causally Upstream of Refusal[HTML]Daniel Lee, Eric Breck, and Andy Arditi, 2025.
- [15]A Closer Look at Machine Unlearning for Large Language Models[HTML]Xiaojian Yuan, Tianyu Pang, Chao Du, et al., 2025. The Thirteenth International Conference on Learning Representations.
- [16]
- [17]
- [18]Aligning AI With Shared Human ValuesDan Hendrycks, Collin Burns, Steven Basart, et al., 2021. Proceedings of the International Conference on Learning Representations (ICLR).
- [19]
- [20]Universal and Transferable Adversarial Attacks on Aligned Language ModelsAndy Zou, Zifan Wang, J. Zico Kolter, et al., 2023. arXiv:2307.15043.
- [21]Catastrophic jailbreak of open-source llms via exploiting generationHuang, Yangsibo, Gupta, Samyak, Xia, Mengzhou, et al., 2023. arXiv preprint arXiv:2310.06987.
- [22]HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, et al., 2024. arXiv:2402.04249.
- [23]
Appendices
Appendix A. Dataset
The WMDP (Weapons of Mass Destruction Proxy) benchmark
WMDP-Bio has 1,273 questions on biotechnology risks, such as historical bioweapons, pathogens with pandemic potential, reverse engineering of viruses, and assays for viral properties.
WMDP-Cyber has 1,987 questions structured around the stages of a cyberattack: reconnaissance, exploitation, attack, and post-exploitation. They test vulnerability discovery, exploit development, and the use of offensive frameworks such as Metasploit and Cobalt Strike.
I evaluate accuracy on WMDP-Bio and WMDP-Cyber. A model trained with unlearning should have lower WMDP accuracy while keeping its accuracy on unrelated benchmarks, which is MMLU
Appendix B. Probe Details
Below are the data statistics for probe training:
| Split | Examples | Junk (label 1) | Non-junk (label 0) |
|---|---|---|---|
| 1,280 | 1,016 | 264 | |
| 320 | 258 | 62 | |
| 400 | 324 | 76 |
The dataset is highly imbalanced. This is understandable because Gemma-2-2B is relatively small: for many difficult questions, harmful or harmless, the model fails to give an answer, and that output is labeled as junk. With a larger model, this imbalance would likely be smaller.
In the training procedure, I apply z-score normalization using the mean and standard deviation computed on the training set, and reuse these statistics on the validation and test sets
Once the best probe is selected, it assigns a junk score to an activation :
where are the weights and bias of the best probe. Test ROC-AUC across blocks ranges from 0.58 to 0.71. Block 12 is the highest at 0.708, with blocks 9, 10, and 19 within 0.015 of it.
Appendix C. Direction Extraction and Selection
Bio and Cyber prompts are sampled as in Section 3.3. In addition, I use an out-of-distribution (OOD) set that combines three harmful-knowledge benchmarks: AdvBench
Unlike WMDP, which is specific to biology and cybersecurity, these datasets contain more general harmful instructions. I used Gemini-2.5-Pro to sort the AdvBench and MaliciousInstruct prompts into biology and cybersecurity categories based on the WMDP categories. As with WMDP, 300 OOD prompts are split 80/20.
With blocks and positions to , the three training sets give three sets of candidate directions:
and averages matching elements of and .
Let be the probe score at the last prompt token, averaged over , and write for the projection of onto . The bypass score ablates the candidate from the RMU model at every layer:
The steer score adds the candidate to the base model at its source layer, with the direction’s own norm:
The KL score is the mean KL divergence between the base model’s next-token distribution at the last position before and after projecting out at every layer.
During selection, I apply the ablation with activation hooks on the residual stream. The benchmark edit in Section 3.3 is the weight orthogonalization, which in Gemma-2 is only approximately the same intervention.
A candidate is discarded if its KL exceeds 0.1, its steer score is below 0, or its source layer is in the last 20% of the model (). The survivor with the lowest bypass score is selected. Because steering uses each direction’s own norm, the steer score reflects magnitude as well as orientation.
| Direction | Layer | Position | Bypass | Steer | KL | Extraction data |
|---|---|---|---|---|---|---|
| 9 | and | |||||
| 9 | ||||||
| 9 | ||||||
| 10 |
The WMDP-derived directions all land at layer 9, position . The OOD direction has a low bypass score, but it nearly fails steer () and has a high KL (), so it is too disruptive to the base model.
Its KL is also above the 0.1 filter, and so is the Bio direction’s (). So these two rows didn’t come from the committed filter settings, and the repository doesn’t record which threshold I used for them.
The Cyber direction has the strongest bypass score on its own, but as Appendix E shows, it generalizes less well across domains. The shared direction gives the best trade-off.
Appendix D. Relative Gradient Methodology
Let the selected junk direction be , where is its layer and is its token position. (Earlier drafts of this note said , but the selected direction is at layer 9.) For an input , define
as the dot product between the model’s residual stream at layer and position and the junk direction. Then the junk gradient at an earlier layer and position is , the derivative of with respect to the residual stream .
Aside.Intuitively, the junk gradient shows which directions at layer most move the model along the junk direction, and so which features could contribute to forming it. Lee et al. hypothesize that refusal directions originate in early layers, strengthen in middle layers, and finally steer refusals in later layers
Let be WMDP-Bio prompts sampled from the remaining examples, disjoint from the probe data and the direction data. The aggregated junk gradient at layer is
and likewise for Cyber. I chose empirically, because it is neither too close to the embedding layer nor too close to the direction’s layer. Finally, I compute the cosine similarity between and each row of the SAE decoder matrix at layer 5.
This belongs to the family of gradient-informed SAE attribution methods, and GradSAE later formalized using output-side gradients to rank influential latents
Appendix E. Full Benchmark Results
For each direction , I also remove a same-norm random direction orthogonal to it, to test whether the recovery is specific to .
| Model | WMDP-Bio | WMDP-Cyber | MMLU |
|---|---|---|---|
| Base model | 58.76 | 34.93 | 49.73 |
| RMU model | 25.61 | 26.77 | 43.35 |
| Remove | 50.59 | 32.16 | 47.34 |
| Remove (random) | 25.22 | 26.67 | 43.71 |
| Remove | 48.39 | 33.82 | 47.14 |
| Remove (random) | 25.53 | 26.72 | 43.44 |
| Remove | 50.43 | 29.49 | 47.32 |
| Remove (random) | 26.16 | 26.37 | 43.74 |
| Remove | 34.49 | 28.94 | 45.98 |
The recovery rates , recomputed from the table above, are:
| Direction | WMDP-Bio (%) | WMDP-Cyber (%) | MMLU (%) |
|---|---|---|---|
| 75.4 | 66.1 | 62.5 | |
| (random) | 5.6 | ||
| 68.7 | 86.4 | 59.4 | |
| (random) | 1.4 | ||
| 74.9 | 33.3 | 62.2 | |
| (random) | 1.7 | 6.1 | |
| 26.8 | 26.6 | 41.2 |
The random controls all stay within half a point of the RMU model in absolute accuracy. In rate terms, they range from to , and the MMLU rates look larger only because RMU’s MMLU gap is small (6.38 points), so 0.4 points is already 6% of it. Each control is a single random draw, so this doesn’t measure their spread.
The domain-specific directions recover the most on their own domain: Bio on Bio, Cyber on Cyber. The Cyber direction even recovers 86.4% of the Cyber gap, more than the shared direction.
These rows are less secure than the shared one, though. One of my notebooks rebuilds the Cyber direction using the Bio-selected layer and position. Both are layer 9 and position in the selection table, so this probably gives the same vector, but the repository doesn’t include the direction tensors needed to confirm it.
The OOD direction is the clearest negative result. Extracted from general harmful prompts, it recovers only about a quarter of each WMDP gap. So general harmfulness is not a substitute for directions extracted from the RMU target domains, but this experiment can’t tell whether that is because of domain mismatch, prompt-format mismatch, direction magnitude, or one direction being too restrictive.