REVIVING YOUR MNEME: Predicting The Side Effects of LLM Unlearning and Fine-Tuning via Sparse Model Diffing

Aly M. Kassem, Zhuan Shi, Negar Rostamzadeh, Golnoosh Farnadi

Abstract

LLMs are frequently fine-tuned or unlearned to adapt to new tasks or eliminate undesirable behaviors. While existing evaluation methods assess performance after such interventions, there remains no general approach for detecting unintended side effects—such as unlearning biology content degrading performance on chemistry tasks, particularly when these effects are unpredictable or emergent. To address this issue, we introduce MNEME (Model diffiNg for Evaluating Mechanistic Effects), a framework for identifying these side effects using sparse model diffing. MNEME compares base and fine-tuned models on out-of-distribution (OOD) data without access to fine-tuning data to isolate behavioral shifts. Applied to five LLMs across three scenarios (WMDP knowledge unlearning, emergent misalignment, and benign fine-tuning), MNEME achieves up to 95% accuracy in predicting side effects, aligning with known benchmarks and requiring no custom heuristics.

Introduction: The Challenge of Surgical Model Editing

Fine-tuning and "unlearning" are essential tools for aligning Large Language Models (LLMs) and removing hazardous knowledge. However, these interventions are rarely surgical. Due to polysemanticity—where individual neurons represent multiple unrelated concepts—modifying one behavior often inadvertently degrades another. Current detection methods rely on exhaustive benchmark suites, which are limited by "only finding what you look for." If an intervention in biology knowledge impacts coding ability, it may go unnoticed without a specific coding benchmark. MNEME addresses this by providing a mechanistic, automated way to audit behavioral shifts blindly.

The MNEME Framework: Sparse Model Diffing

MNEME treats evaluation as a "diffing" problem between a base model and its edited version. The pipeline consists of four primary stages:

  1. Feature Generation via Cross-Coders: Instead of analyzing raw neurons, MNEME utilizes Cross-Coders—a variant of sparse autoencoders (SAEs)—to learn a shared latent space between the base and fine-tuned models. This identifies interpretable "features" that are shared, amplified, or suppressed.
  2. Feature Attribution via Latent Scaling: The framework quantifies the strength of each feature in both models. Significant changes in feature activation (e.g., a drop in "organic chemistry" features) flag potential side effects.
  3. Description Generation: An LLM (e.g., Llama 3.1-70B) generates natural language descriptions for these features based on their activation patterns.
  4. Semantic Category Mapping: These descriptions are mapped to high-level categories (like MMLU subjects) to predict performance impacts on specific tasks.
The MNEME pipeline: from feature generation via Cross-Coders to semantic category mapping.

Experimental Setup and Datasets

To ensure the method works without access to original fine-tuning data, Cross-Coders are trained on task-agnostic datasets like The Pile and LMSYS-Chat-1M. Evaluation is conducted across several scenarios:

  • WMDP (Weapon of Mass Destruction Proxy): Unlearning biology, chemistry, and cyber-security.
  • MMLU & MMLU-Pro: Used as ground truth for performance drops across 57+ subjects.
  • Emergent Misalignment: Fine-tuning on code vulnerabilities to detect unintended harmful behavioral shifts.

Results and Insights

MNEME demonstrates remarkable efficacy in predicting side effects. In WMDP unlearning scenarios, it achieves 92% to 96% accuracy in identifying affected MMLU categories across various models, significantly outperforming naive semantic similarity baselines.

MNEME significantly outperforms naive and random baselines in predicting side effects across different model architectures.

Key findings include:

  • The OOD Advantage: General data (Wikipedia, chat logs) contains enough "hooks" to trigger internal features modified during fine-tuning, allowing for effective auditing without the original training data.
  • Mechanistic vs. Behavioral: By looking at how a model thinks rather than just what it outputs, MNEME catches "silent" changes that standard multiple-choice tests might miss.
  • Unlearning as Suppression: Analysis shows that unlearning typically suppresses features rather than erasing them, with the physical "memory" of a topic shrinking in the model's weights.

Conclusion

MNEME provides a scalable, automated lens into fine-tuning-induced changes. While it relies on feature coverage within the training corpus and the accuracy of auto-interpretation, it represents a significant step toward safer model deployment. Future work aims to move from correlational insights to causal interventions, potentially "steering" models to prevent side effects during the fine-tuning process itself.

Summary updated

BibTeX
@misc{kassem2025reviving,
  author = {Aly M. Kassem and Zhuan Shi and Negar Rostamzadeh and Golnoosh Farnadi},
  title = {{REVIVING YOUR MNEME: Predicting The Side Effects of LLM Unlearning and Fine-Tuning via Sparse Model Diffing}},
  year = {2025},
  eprint = {2507.21084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21084},
}
Figure